Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to check reference type variable displaying expected values on catalog item form using ATF ?

BhagyashriS8790
Tera Contributor

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?

3 REPLIES 3

Som4
Tera Contributor

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.

@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 ?

Ankur Bawiskar
Tera Patron
Tera Patron

@BhagyashriS8790 

you cannot test this using ATF.

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