hi
Write all code in For loop
Example:
For i =1 to TotalNumberOfIteration
For J=i to i 'only one iteration
' Write all script in this loop
Result=Function1(par1,par2)
If Result=True Then
'Write +ive Log and move to next step
Else
Exit for '' This will skip current Iteration and move to next
iteration
End If
Result=Function2(par1,par2)
If Result=True Then
'Write +ive Log and move to next step
Else
Exit for '' This will skip current Iteration and move to next
iteration
End If
Next 'End of inner loop
Next 'End of Outer loop
I think this may helpful for you.
if any problem feel free to revert mail.
--
Thanks & Regards
Sujit :)
On Thu, Sep 27, 2012 at 2:57 PM, Gajendra Jain <[email protected]>wrote:
> Hi,
>
> I want to design a framework where the scripts fails for the 1st time
> should run in the 2nd time.
>
> And the result should contain, how many times the script is run?
>
>
> Regards,
> Gajendra
>
> --
> 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
>
--
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