We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

can we possible to verify interfaces and json fields mapping inline with business logic using ATF?

gauravsp
Kilo Contributor

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/ 

1 REPLY 1

Vikram Reddy
Tera Guru

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

 

Thank you,
Vikram Karety
Octigo Solutions INC