I have a Test Case that will send an API request and in the response for that request, I want to grab an id that will change every time this request is sent, and assign that to the value of a variable. After this, the test will navigate to a web page where I will confirm that metadata is returned with that current id included. Heres an example of a response I will receive:
{
“status_code”:200,
“message”:“message here”,
“task_id”:“id here”,
“external_task_id”:“test123”,
“creation_date”:“date here”,
“response_date”:“another date here”,
“response_data”:{
“project_id”:“another id here”
}
}
I need to grab the value of the project_id. How would I do this? Thank You!