logo

NJP

Automated Test Framework

Import · Apr 05, 2023 · article

ATF fails when using a choice list to populate a Lookup List field requiring a Reference Qualifier

ATF tests do not allow the use of reference qualifiers to filter items from a table, at least not until the Washington iteration. As an example, the test needs to use a dropdown (choice) field to populate another dropdown (choice) field, let's say, select an Office that then populates their list of Applications into a Lookup List. If you're using a table with a lot of entries like the Choice List Table to populate the second field, you won't be able to use the ATF unless your items appear within the first 2,000 entries. Most likely, the test will not be able to identify those applications, and the test fails.

In your form, record producer, portal page, etc. do not use the Lookup List field. Convert the Lookup List field to a Reference field and use the condition to populate the field.

View original source

https://www.servicenow.com/community/architect-articles/automated-test-framework/ta-p/2526957