The CreatorCon Call for Content is officially open! Get started here.

How to create ATF for catalog item

anvitha ash
Tera Contributor

Hello community,

 

I am new to ATF, I wanted to create Test for catalog item flow

Steps need to validate:

Open catalog item 

Fill variable values 

Submit item

Open the RITM 

group approval, there will be group approval created and we need to approve that. Once approved one task will be created and on closure of first task another task will be created. Once the second task is closed RITM should be closed 

 

Need help in creating test. Thanks in advance 🙂 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@anvitha ash 

what's your actual requirement here?

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

@Ankur Bawiskar 

Need to create request, group approval, once approved task 1 created, once 1st task closed 2nd task creation and once closure of 2nd task RITM should be closed 

 

I know steps till order the catalog item 

Need help in approval group, tasks closures 

@anvitha ash 

for approval group you need to search the exact sysapproval record and impersonate the approver and then click the Approve button

you might have to use custom server side script step here for determining the approval record

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Valmik Patil1
Kilo Sage

Hello @anvitha ash ,

 

There are examples available on PDI to test catalog like Search and Open Catalog Item (SP).

You can refer the examples to create your ATF.

 

Thanks,

Valmik Patil