How to read JSON data from file and use it in request body ?
I have one JSON file which contains following data:
{
"registrationKey": "sadnskjadsdkfj",
"firstName": "Renuka",
"lastName": "Saini",
"email": "reom@gmail.com",
"phone": "1234567890",
"notes": "testing",
"isvApiKey": "87779"
}
This data I need to put in one of the api's request body. Can anybody help be how to load this data using data source 'JSON'?
I'm sorry but I do not have experience of the JSON data source (The vast majority of my SoapUI use is with XML data).
If you haven't already I suggest you read the documentation section on Data Driven Testing, this has a lot of useful information, in particular the JSON Data Source section. It looks like you could set your File Wait test step as the source of the JSON data (Please Note: I have not tried or tested this).