Hiya All
I've been playing with the idea of extending a test case by having it use an array to call data that essentially 're-uses' the test case. To do this however I need a way to combine Ruby script with Selenium Commands.
The basic loop works fine as you can see here:

However the idea is to wrap the test case with this loop, avoid having to repeat the set of steps multiple times within the case with hard coded strings such as "Software - Google Search" and instead use strings pulled from the array. So it looks like this:

It all seems to work well
except for the fact the string used isn't changing. When the script runs it cycles through four times but only uses the first array item of 'software'. This is re-used for every loop through the test.
As you can see from the images I've moved some variables both before the While Loop and within it, i also tried using a
begin...end while structure and the effect was roughly the same.
* Can anyone suggest why this would be?
* Why is it that the
testLoop value is not getting picked up and/or used?
Both the sample loop and DDT script are attached in case you want to look at them.
Thanks again,
Mark.