bulbasorus
bulbasorus

Reputation: 53

Performing CRUD Operations on Leads Using Karate: Creating, Retrieving, and Updating with CSV Data

I am working on an API testing project using Karate for CRUD operations on leads. Specifically, I need to create leads from CSV data(meaning i am converting csv data into JSON request using JSON placeholders), retrieve the created lead, extract important information for updates, update leads using another CSV file(meaning i will place important fields fetched from get into JSON request and other data fields from csv), and finally retrieve the updated lead data.

Specific Questions: How can I ensure that when the feature is executing, the first row of the CSV used for creating data, and also first row of csv should be used for updating data in Karate?

This whole thing is a workflow so how can i ensure that everything work in flow, creating data from csv using scenario outline, getting the data, and updating data from csv using scenario outline and then again getting updated data?

Upvotes: 1

Views: 75

Answers (0)

Related Questions