I am using UFT11.53 patch 3. One of my script in chrome browser keeps executing repeatedly until I stop the script.
Login datatable sheet has three rows two Row with Execute=N and Last one is Execute=Y
Here is the code, I think My first For loop keep starting over again. Not sure why.
For i = 1 To TR
If datatable.Value("Execute","Login") = "Y" Then
'Get data from Second Datasheet
For j = 1 To TS
If datatable.Value("Execute","Datasheet2") = "Y" Then
Last edited by szkapoo; 11-04-2014 at 01:00 PM.
could you explain in more detailed
when things gets harder ,the harder gets going
nevermind my prev comment, been a while since I did vbscript, normally there is an increment clause in a for loop in most programming language.
SDET / Consultant LinkedIn profile
Have you checked your rowcounts for the 2 sheets to see what QTP 'thinks' it is?
Thank you all for responding, I fixed the issue. It was related to my first for loop variable also been used else where.
This happens to me a lot. I am using the same variable in two different places. I find option explicit to be useful.