Loop Test
Hi all
I intend to design a loop test where my keyword test will look at the 'Next' button on the screen and its property. If the button is disabled it will select number 2 from one of the drop down list, if still disabled then it must select number 3 from the dropdown list and so on. So this loop must continue to select the next available number until the 'Next' button is enabled.
I am bit struggling to come up with a keyword test solution which will continue to select next available number from the list until the the button in question is enabled. Any help around this will be much appreciated.
Thanks
G
I'm not 100% positive, but I believe your issue is the Data-Driven Loop inside of your While loop.
If you convert the keyword test to script you will see that a Data-Driven Loop translates to a While Not loop. So you have a While Not Loop inside of a While Loop. The code will not exit the While Not Loop until all data is read from the Data-Driven Loop.
I recommend finding a different way to feed the different data to your keyword test
OR
instead of using a While Loop use an If.. Then statement to exit your Data-Driven Loop. In other words, for each iteration of the Data-Driven Loop check the Enable property and exit the loop using a Go To label if the property is set as you want.
Hope that helps.