While Not/Table Variables issue - keeps resetting
I've got a Table Variable with 2 columns and 31 rows. I use those values in the following loop...
Project.Variables.PayFrequency_02d.Iterator.Reset();
while (!Project.Variables.PayFrequency_02d.Iterator.IsEOF())
{
.ComboBox.ClickItem(Project.Variables.PayFrequency_02d.Iterator("Frequency"));
aqObject.CheckProperty(.ComboBox, "wItemList", cmpContains, Project.Variables.PayFrequency_02d.Iterator("PayDateRule"));
Project.Variables.PayFrequency_02d.Iterator.Next();
}
Any ideas why it doesn't run neatly through rows 1 to 31 (or 0 to 30). It runs 1 to 12, then 2 to 15, and then all gets a bit more random looping between rows 3 and about 20?
I saw a similar issue last week with a data loop and a (not-particularly) large table using the Keyword Tests feature, which was when I was given the steer by a colleague to switch to scripting as it was deemed more stable.
My workaround has been to break this down into 4 smaller tables and have 4 While! loops instead, which obviously doesn't look pretty and is giving me extra code to maintain. (Even then one of those While! loops iterates through 1 to 4 then 1 to 8 (ie 12 iterations) when there are only 8 records in the table.
Thanks.