can we possible to verify interfaces and json fields mapping inline with business logic using ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Is it possible to verify interfaces and json fields mapping inline with business logic using ATF tool?
Team wanted to verify 3rd party applications request/response over Business Service, Service Offering and Assignment Group per scope testing scenarios/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @gauravsp,
Assuming the 3rd party is posting into your Scripted REST API or Import Set API inbound, yes, one ATF test covers this end to end without any extra tooling.
- Send REST Request - Inbound to fire the real JSON payload at your endpoint
- Assert Status Code right after, since the inbound step alone passes even if nothing happened
- Assert JSON Response Payload Element to check values in the response body
- Validate Field Values on the resulting record to confirm Business Service, Service Offering and Assignment Group mapped correctly
For outbound calls to the 3rd party, ATF has no dedicated step, so wrap RESTMessageV2 in a Server-side Run Script step and assert the response the same way.
References
- Send REST Request - Inbound (ATF test step reference)
- Using ATF REST API Test Steps
- ServiceNow ATF - Automated Test Framework for Testing REST based Integration
Thank you,
Vikram Karety
Octigo Solutions INC