How to create a test step in ATF for REST outbound request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2020 10:04 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2020 10:08 PM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2020 10:34 PM
Hi Rahul,
check below links:
https://developer.servicenow.com/blog.do?p=/post/using-atf-rest-api-test-steps/
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 06:22 AM
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.