Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to create the ATF steps for rest API integration?

DeepikaR1661877
Tera Contributor

Hi All,

I need know how to write a ATF Test case for Rest API integration? Below is the Secnirio

 

REST API Phantom integration
Step 1:In Navigation go to REST API Explorer
Step 2:Select API Name = Import Set API, Select Create a record (POST)
Step 3:Under "Prepare Request" section, select staging table as "incident.LIST" and goto request body section
STEP 4:- Click Add Field and select UseCase and fill ANY EXISTING value from the use_case table
Click + sign and select correlation id and fill any values
Step 5:Validate, NO NEW record in the use_case have been created
Step 6:Validate, the newly created incident  has Use Case = STEP 4 record

 

This steps are working in manually but this now working in ATF, Any help on this?

 

Thanks,

Deepika

0 REPLIES 0