How to open an HR Case(created from Rest API) using "Run server side script" test step in ATF

Pallavi Thumma
Tera Contributor

Hi,

We have a requirement to open the Case Number which got created from the Rest API Explorer using Automated Test Framework (ATF).

Step 1: We are using 'Send REST Request - Inbound - REST API Explorer' step to create an HR case using POST method(The response body will populate the case number and the AWS link of the case which we want to retrieve).

Step 2: We have to get the case number i.e; created from the step 1 by using 'Run Server Side Script' step.

Is there any possible way to do this?

Thanks in Advance,

Pallavi

2 REPLIES 2

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi @Pallavi Thumma You can find the answer in this post where another community member was doing the same thing. Let us know if this leads to your resolution.

Regards,

Mike

Hi @michaelj.sheridan 

The above mentioned link is very helpful for me to explore further on this. Thank you for the reply.

 

Regards,

Pallavi