ATF: Validate List Values and Look up field values

pratap_chiluver
Kilo Contributor

Hello Everyone,

Have below two questions, wanted to know the possibility with script or UI Step.

1) I am looking for a way to validate the the Reference field values are coming correctly or not.

        For Ex: In Incident Table I wanted to validate the values of the field "Caller" (This is an example. In real time scenario, the developer will apply a filter criteria before populating the values to this reference field and tester is responsible to validate the number of records and the values too).

find_real_file.png

2) Do we have a way to validate the drop down field values (the values could be hard-coded or coming from a table). In this example wanted to validate the "State" field values, with script or a UI Step.

find_real_file.png

10 REPLIES 10

him001
ServiceNow Employee
ServiceNow Employee

Hi Pratap,



As far as I understand, you are willing to test the values of fields getting populated correctly or not.



I would like to mention here that, these field values are governed as per the configuration and user can change that as per needs.



1. For reference fields:


Right click on field -> configure dictionary -> change the table name and query condition. Reference qualifier will follow these conditions and show the records.



2. For choice:


Right click -> configure choices and you can put the choices there.



If these config are correct, there should not be a further need to validate the data again. Please elaborate your question further, if this does not answers your query.



Hope this helps.



Thanks,


Himanshu


Thanks for the reply Himanshu.



Actually I am trying to automate the scenario with ATF. Would like to validate the reference field values / dropdown values using ATF. Do we have a way to do this?


She Sull
Giga Guru

Looks like we may have to create and run a server side script step:



Server test step: Run Server Side Script


pratap_chiluver
Kilo Contributor

Tried, but really not sure how to get that. Asked dev team and they are also not able to provide any assistance