How to check reference type variable displaying expected values on catalog item form using ATF ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 12:30 AM
There are two variables on a Catalog Item form. Based on the value selected in the first variable, the second variable (which is of reference type) is dynamically filtered.
I want to use Automated Test Framework (ATF) to verify that the second variable displays the correct list of reference values after selecting a value in the first variable.
Can I test this filtering behavior using ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 09:56 PM
You cannot validate list values displayed in the reference field at client side. However, you can create a server side script and get the list of values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 10:41 PM
@Som4 , Thanks for quick reply.
Can you give me sample code to do this. How can we fetch what values the reference field is displaying after filtering in server-side script? How to check whether it's showing the expected values only ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 10:27 PM
you cannot test this using ATF.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader