How do I set a variable value on the catalog task interface using ATF?

Ravish Shetty
Tera Guru

Hi all,

 

I am creating an end to end ATF test case where the user is submitting a laptop request, the request gets approved and fulfilled.

We have a test step in the middle of the fulfillment process where the fulfillment team enters the serial number of the laptop in the variable editor field of the Catalog task. I am looking for help on automating this step. 

Somehow, the Custom UI step is not able to pull all the elements of this page.

 

find_real_file.png

 

Thanks,

Ravish

12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

@Ravish Shetty 

please share your steps

Did you open the correct sc_task record?

Did you select the Item during set variable value step?

this worked well for me during setting reference variable value on sc_task

Test Steps:

find_real_file.png

Output:

find_real_file.png

Regards
Ankur

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

Hey Ankur,

 

currency is a field on the RITM form. I am trying to set the variable values and not form fields. apparently, these variable values are not selectable in the set form field test step.

 

find_real_file.png

Also tried to reproduce this out of box in a new york instance

find_real_file.png

find_real_file.png

@Ravish Shetty 

since those are variables and not fields on form you cannot use Set Field Values

Instead you should use "Set Variable Values" and then select the catalog item and then the variable

Please refer the screenshots shared in my previous comment

Regards
Ankur

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