ATF how to use REST inbound api response as input to next test step?

kranthi24
Giga Contributor

For example

ATF  test step

ATF  test step 1. post method to created incident task:

Response body

 

{"result":{"code":201,"status":"success","body":{"message": "Successfully created record TASK0000001 in ServiceNow","number":"TASK0000001","parentIncident":"INC0000000"}}}

ATF  test step 2.   By using step 1 response body to  created post method for close  incident task(TASK0000001> step 1 task) 

Please tell me how to  achieve this?

 

1 ACCEPTED SOLUTION

kranthi24
Giga Contributor

Please find the answer in below article:

https://community.servicenow.com/community?id=community_question&sys_id=5e70d988db0567002be0a851ca961918

View solution in original post

1 REPLY 1

kranthi24
Giga Contributor

Please find the answer in below article:

https://community.servicenow.com/community?id=community_question&sys_id=5e70d988db0567002be0a851ca961918