i = 1
While (i<>3)
i = i +1
print i
Wend
prints
2
3
There is no problem with the loop. Are sure that is the part where the QTP
stack?
(p.s. there are two strange things in the code
1) comment "//The following line generates random number in datatable."
2) Why you export the same table each iteration of the loop.
)
On Tue, Dec 2, 2008 at 7:55 AM, mabobine <[EMAIL PROTECTED]> wrote:
>
> i = 1
>
> While (i<>3)
>
> //The following line generates random number in datatable.
> Browser("SYZ").Page("ABC").Output CheckPoint("MMP")
>
> DataTable.SetCurrentRow(DataTable.GetCurrentRow + 1)
> DataTable.Export("C:\res.xls")
> i = i +1
> Wend
>
> The above code should have run twice, but it runs indefinitely and
> overwrites the results. Can i know the reason and also how to fix it?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---