How a parameter get a value from a dropdown list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 08:21 AM
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.
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 09:59 AM
You can configure parameterized test in ATF to verify choice list values.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 08:16 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 05:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 02:56 PM
Please, I need more info. how u managed to test if all choices are there?