ATF: Record Query unable to find catalog request from previous step

Brad D
Tera Expert

The below Record Query test steps fail roughly 80% of the time for no discernible reason. The test successfully orders a catalog item (apparently) but then cannot find it, even with a 60 second timeout. Occasionally it will find it, but then it's unable to find the RITM associated with the request (test step 9).

How do I go about resolving/troubleshooting this?

find_real_file.png

 

I then duplicated step 8, and here you see it succeeds, but then step 9 fails

find_real_file.png

1 ACCEPTED SOLUTION

Brad D
Tera Expert

I ended up using creating a HI ticket for this and it was resolved earlier today. The test step which I had generated via script was missing an associated record in the sys_element_mapping table. Inserting that record when creating the test step allowed the test runner to successfully complete the test step.

View solution in original post

2 REPLIES 2

codycotulla
Tera Guru

Hi Brad,

Increasing the timeout is the change that I would suggest, but you've already done that.

In your description you say that you are looking for the RITM, if that's the case then on the sc_req_item table, you'd need to search the request > sys_id field, rather than the sys_id field using the result from your Order a Catalog Item (SP) step, since that step returns the sys_id of the sc_request record.

Hope this helps.

Thanks,

Cody

Brad D
Tera Expert

I ended up using creating a HI ticket for this and it was resolved earlier today. The test step which I had generated via script was missing an associated record in the sys_element_mapping table. Inserting that record when creating the test step allowed the test runner to successfully complete the test step.