agubba
7 years agoNew Contributor
Script assertion to assert json response
Team,
Step 1: I have an excel datasource with 3 columns - ID, Description and Case
Step 2: I have a rest service for which ID is a required parameter, which brings back description and case along with other parameters. A single ID can have "n" number of cases. This is a json response
Step 3: I have a data source loop, as I want to iterate this for more ID's
Need help in asserting the response, where the assertion should validate the combination of Description and Case together.
Can someone please provide the Groovy script assertion for this? I have to run this for almost 100 unique ID's