ATF tests
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2024 01:27 AM
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??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2024 07:09 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 02:11 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2024 04:17 AM
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: