Posts: 281
Threads: 116
Joined: Oct 2010
Reputation:
0
11-30-2011, 02:26 AM
I have a For loop...
For Gr = GrStart to GrEnd
My variables GrStart = 1 and GrEnd = "14" in my Debug Viewer
For whatever reason, the For loop exists after 1 iteration even though it should continue.
Is the fact that the GrEnd = "14" (with the quotes) the issue?
Lor
Posts: 281
Threads: 116
Joined: Oct 2010
Reputation:
0
11-30-2011, 09:30 PM
That's what I tought to. I set my int(GrEnd) to see and still my For exists after one iteration. Somewhere my variable is getting changed.
thx for looking ;-)
Posts: 61
Threads: 0
Joined: Jun 2011
Reputation:
0
12-01-2011, 01:12 AM
could you please paste in some more code so that we can look around for the error.
Posts: 281
Threads: 116
Joined: Oct 2010
Reputation:
0
12-01-2011, 02:20 AM
As it turns out, another QTP coder had added a script mid steam that had changed a variable within the For loop causing it to exit after only one iteration.
That i guess will happen when more then one script creator builds the automated tests.
Thx everyone for looking.