Validating All Drop down values in ATF

surya gundumall
Tera Contributor

How to check whether All values in the drop-down are present or not in ATF?
If any new value shows up in drop down values the ATF Script should detect the defect.

 

5 REPLIES 5

Kieran Anson
Kilo Patron

Without further context, you might want to refactor this test to use the "Set Field Values" and "Field Value Validation" to test each option you're expecting.

 

Otherwise, you'll need to create a custom test step configuration

Any other ways apart from above?

As stated previously, without further context you likely need to change your approach to how you're building your tests. They should be business process specific. 

kkrushkov
Mega Sage

You could use the Record Query step to check whether the options exist in the sys_choice table.