How a parameter get a value from a dropdown list

NiKi6
Kilo Contributor

I need to create a ATF test to test all the options in a dropdown list of a field. I tried to use a parameter with choices type. And then set the options as its data set. But when I run the test, I got the following error. 

FAILURE: Unable to set field 'install_status' to value '0'. Value '0' is not currently a valid choice

 

I actually never set value 0 to this parameter and have no idea where it comes from. My values are about the status, like New, Ordered, etc. 

Did I do something wrong or miss any setup here?

Many thanks in advance. 

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

You can configure parameterized test in ATF to verify choice list values.

 

Regards,

Sachin

Sachin, thank you for your replying. But how? Can you give me more details about it? I already create a parameter in Parameter Definitions, and create list values for this parameter. And then create a test run data set. What else configuration I need to do?

Hello Niki6,

 

You need to create parameter with Type as "Choice" and need to add all the choice value at bottom of page in choice table by clicking on new button.

Luiza Andres
Tera Contributor

Please, I need more info. how u managed to test if all choices are there?