Record query step failing in ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I am writing ATF test script to validate the lifecycle of service catalog. In this I am using Record query as one of the test step to validate the SCTASK record for a given REQ/RITM. However the test step is failing with the error message as in attached image. I have tried implementing the scenario manually and it works fine
The step 9 referenced in the below image is a Record query step which returns the sys_id of REQ created from service catalog and passess . Please suggest , how to resolve this
Error:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
A Catalog Task (SCTASK)doesn't connect directly to a Request (REQ)—it connects to a Requested Item (RITM)
Because your Step 9 is looking for a Request (REQ), your query in Step 10 is coming up empty.
How to fix it:
1. Insert a Record Query step before this one to find the Requested Item (sc_req_item) where Request is your Step 9 record.
2. In your Catalog Task (sc_task) query step, change the condition dropdown from Request to Requested item and point it to that new RITM
step.