In reply to Rao.Bee:
A more simple solution is to run the loop in the sequence and starting this sequence in the test. Running the loop in the test complicates your problem.
In reply to Rao.Bee:
A more simple solution is to run the loop in the sequence and starting this sequence in the test. Running the loop in the test complicates your problem.