How to create a test step in ATF for REST outbound request?

Rahul33
Kilo Contributor

There is no step in ATF to create REST outbound request.So do I have to create a custom script? Can anyone guide on this?

3 REPLIES 3

Harsh Vardhan
Giga Patron

kindly have a look on below blog. it has mentioned the details. 

 

https://developer.servicenow.com/blog.do?p=/post/using-atf-rest-api-test-steps/

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rahul,

check below links:

https://developer.servicenow.com/blog.do?p=/post/using-atf-rest-api-test-steps/

https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framewor...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think there are a couple of ways to do this, but the best would probably be to mimic how the outbound rest request gets generated normally, outside of ATF. If you're generating it through a business rule, workflow, etc. based on some user action I would just have ATF perform the user action that would generally create the outbound REST call.

Yur other option would be to use a server script step to generate the outbound REST call from some JS using the RESTMessageV2 API.