Forum Discussion
Abramova
Staff
14 years agoHi,
There is no need to create a data-driven test. If you already have aliases for your check boxes (checkbox0, checkbox1, …, checkbox68), you can use a sample keyword test to check whether all the check boxes are checked. In the attachments, there is an image of such a test.
The test uses the While loop to iterate through the check boxes. In the loop, you first specify the check box's alias name by using the constant "Aliases.checkbox" and the keyword test variable i. Then you obtain a reference to the check box with the specified name (by using the Eval function) and check whether the check box is selected (by using the checked property). If the checked property is False, the test enables the check box by using the ClickChecked method.