Combo field testing based on inputs from text file
I need a method to validate combo boxes based on the valid and invalid inputs from a text file.
I have to automate the testing of combo, where in the the combo lists only the supported valid options given as a input from a text file.
In the combo, i have to test for the following 2 scenarios:
1. The unsupported (invalid) options, given in the text file, should not appear in the combo list.
2. All the supported (valid) options, given in the text file, should appear in the combo list.
If the above 2 cases are not happening then the scenarios should fail.
I tried the image capturing method, but found that it'll work only for the options displayed in the combo. As the image can be captured only for the displayed options in the list.
Currently in my application, the combo does not display the invalid options in the list, but it does not list all the valid options also in it(only few valids are getting displayed). So i have to put not displaying all the valid options as an error with the scripts. Also, if unsupported option get displayed in future, i need to handle this and log that as an error.
What method i can use to test these scenarios correctly :!: