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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 01:48 PM
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.
Thanks,
Ravish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2020 10:08 AM
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:
Output:
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2020 09:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2020 09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2020 09:35 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader