We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to get to catalog request using ATF

Troy25
Kilo Contributor

Hey guys,

I am trying to test a catalog request using the Automated Test Framework (ATF).  I would like to validate some fields in the sc_request table after ordering a Catalog Item.  So I am wondering how to I open an existing request that I just created.

Steps used in ATF:

Impersonate User

Open a Catalog Item

Set Variable Values

Order Catalog Item

I can query the request item using the following:

find_real_file.png

I can also query the catalog task using

find_real_file.png

However, how do I query the request in the sc_request table so that I can then open up the form?

Thanks in advance

Troy

1 ACCEPTED SOLUTION

Not applicable

Oh Okay got it. Can you try this to get the REQ and open the REQ form-

 

Give Sys ID instead of Request in the Conditions-

 

find_real_file.png

 

Data pill chosen is-

find_real_file.png

View solution in original post

10 REPLIES 10

Not applicable

Okay I am guessing "glide.sc.checkout.twostep" is set to 'true' on your instance. Can you check this property on 'sys_properties' table.

 

If that property is set to 'true', the ATF will not execute as expected as it is a known issue (https://hi.service-now.com/kb_view.do?sysparm_article=KB0695998)

 

Set that Property to "false" and re-run your ATF, it should work. 

 

Let me know the result 🙂

Thanks so much shruthiub.  Worked a treat 🙂

Appreciate the help.

Priyanka Chandr
Mega Guru

Hi Troy,

Please have a look into this that will  help you in all way

https://docs.servicenow.com/bundle/orlando-application-development/page/administer/auto-test-framewo...

Kindly mark it correct and helpful if it is applicable.

Thanks,

Priyanka

Thanks Priyanka,

I had gone through this article but only shows how to open up a requested item, approval and tasks.  It doesn't actually open up the request.

Any other suggestions?

Thanks

Troy

Hi,

please select the Request field from the data picker of Order a Catalog item step to open sc_request record

Screenshot already mentioned in previous reply of shruthi

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader