Can you create data-driven loop with 2 variables and can both variables iterate through their values
I have a data-driven loop in a desktop keyword test that contains 2 variables, Var1 and Var2. Var1 refers to a an Excel spreadsheet with just 5 rows of data in column 1. Var2 is a simple table of integers with 5 values, 100 - 104. For some reason, I am not able to get both variables to ITERATE through their 5 values if both variables are referenced in the loop. However, if I remove or disable the one statement in the loop that references Var2, then Var1 will ITERATE through its 5 values? Shouldn't both variables ITERATE through their values?
Please note that when I created the data-driven loop I only defined one variable, named Var1. Later on, I needed another variable so I then defined Var2. One thing that I am wondering about is that the statement containing the data-driven loop statement only refers to Var1. Could that be a problem?
Data-Driven Loop Var1 [Local] (Records from start to 5)
Also, I have the following questions:
1) If there is more than one reference to the SAME variable in the data driven loop, does the SAME value get used for each reference, only does the value change on each reference within the loop?
2) Is there any way to randomize the selection of values for the variables contained in a data-driven loop?