ATF tests

Siris
Tera Contributor

Hi everyone, I am doing ATF tests for first time, I am having issue validating choice list of a field on an incident form. Can anyone help me solve this issue??

7 REPLIES 7

How would you use a field validation step to check the values available on a form (including options you want to validate are NOT available) in a choice list?

You can check for the available choices by using Parameterization. 
1. Create new Incident

2. Select State value <<parameter value>>>


Each choice that you expect to be available would be a new iteration.

 

As far as I know there is no way to test for the absence of a choice in the state field. 

best regards,

Beate

Brian Bouchard
Mega Sage

To test if an option is NOT available, you can query the table for that value and assert that there is no record found.

 

For example, for the State field on Incident, you can do a Record Query on the sys_choice table where table= incident, element = state and inactive = false,  and the label you are looking for...so the step would look something like this:

BrianBouchard_0-1729768615247.png