Forum Discussion
shankar_r
8 years agoCommunity Hero
while (!TableList.IsEOF())
{
actual_Item = Grid.Rows.Item(i).Cells.Item(ColumnIndex).Value.OleValue;
expected_Item = TableList.Value(TableColName);
}
In the above code, where are you incrementing i ?. which looping on the same which might be the reason for TestComplete to crash.
You have to change your code like below.
var i = 0;
while (!TableList.IsEOF())
{
actual_Item = Grid.Rows.Item(i).Cells.Item(ColumnIndex).Value.OleValue;
expected_Item = TableList.Value(TableColName);
i++;
}