linda_marshall
11 years agoOccasional Contributor
Keyword Test - population of drop down list field with value from Table Variable
I'm at the beginning stage of using TestComplete, and am just using Keyword Tests in order to get an initial success for test automation by automating the setting up of data required by a set of test scripts. To do this, I have a Keyword Test that loops through values held in Table Variables for that test. These values are used to complete fields populated from drop down lists.
When the ClickItem Operation Parameters take the value from the Table Variable
- If the field is to have a value, and the value of the Table Variable is a string which equals a value in the drop down list, the field is successfully filled with that value
- If the field is to be blank (blank is always the first item on the list) errors are encountered as follows:
When the ClickItem Operation Parameters take the value from a Constant
- If the field is to have a value, and the Constant is a string which equals a value in the drop down list, the field is successfully filled with that value.
- If the field is to be blank it is successfully set to blank in the following cases:
Any ideas on how I can get a blank into the drop down list field using the Table Variable?
When the ClickItem Operation Parameters take the value from the Table Variable
- If the field is to have a value, and the value of the Table Variable is a string which equals a value in the drop down list, the field is successfully filled with that value
- If the field is to be blank (blank is always the first item on the list) errors are encountered as follows:
When there is no value in the Table Variable the error message is "The combo box item's index -1 is out of bounds".
When the value of the Table Variable is 0 the error message is "The combo box item '0' not found"
When the ClickItem Operation Parameters take the value from a Constant
- If the field is to have a value, and the Constant is a string which equals a value in the drop down list, the field is successfully filled with that value.
- If the field is to be blank it is successfully set to blank in the following cases:
When the Constant is a String with no value
When the Constant is an Integer value of 0
Any ideas on how I can get a blank into the drop down list field using the Table Variable?