Save API Response Data
Last updated
Last updated
Effectively manage and analyse API response data within our test case management tool. Capture essential details like response status, response code, and response body for in-depth analysis and validation.
In this section you'll learn how to save the various response data to validate the API response.
To save the entire API response, locate the 'Save' option in the response section and select 'Save Response' to save the entire API response payload.
ss
Assign the extracted value to a parameter for later use. You can also create a new parameter of type and assign.
ss
After storing the API response, you can custom validate the response key and value, JSON Array and JSON Object using .
Effectively handle dynamic JSON keys within API responses by using "Save JSON Key".
Determine the JSON key that appears dynamically within the API response and select the "Save JSON Key" option.
ss
Specify the JSON path to the desired key using a valid JSONPath expression. Assign the extracted value to a parameter for later use. You can also create a new parameter of type and assign.
ss
Example:
JSON Response
In below example JSON key to save email which occurs dynamically in the response would be
When you run a API request in the API Editor, API response should contain response status code, size and time.
ss
To save this response data and validate in the same test case or some other test case, click on the respective response and assign the extracted value to a parameter for later use. You can also create a new parameter of type and assign.