*Use the below code as an example to keep your runstatus for each iteration
in an array.
As Ganesh said you cannot reset the RunStatus.*
Dim statuscheck(0,5)
For i=1 to 5
If Browser("xx").Page("xx").Webedit("Username").exist(10) then
statuscheck(0,i) = "Pass"
Else
statuscheck(0,i) = "Fail"
EndIF
next
*Use The Below code to fetch the run status & get QTP results accordingly
*
For i=1 to 5
If (0,i) = "Pass"
Reporter.Reportevent micPass,"Result of : "&i,"Pass"
Else
Reporter.Reportevent micFail,"Result of : "&i,"Fail"
EndIF
next
*Regards
Sanketh Shanbhag*
On Sun, Nov 4, 2012 at 5:36 PM, Ganesh muralidharan <[email protected]>wrote:
> Cant we keep a output variable inside the action which is flagged as
> Passed or Failed so that after exiting its value is checked?
>
>
> On Sun, Nov 4, 2012 at 6:22 AM, robin felix <[email protected]>wrote:
>
>> 1, if run an action for 5 iteration, can i check their status using
>> runstatus
>> ans: No. once there is a failure in the test runstaus would be set as
>> micfail . it would not change even if further steps pass
>> this answer could give me example in gmail or railway....plz
>> 2,How would you check the status of iteration then?
>> could give me some example in gmail or railway....plz
>>
>> --
>> with regard ;
>> robin
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Regards,
>
>
> Ganesh Muralidharan
> 'God Never Forgets'
>
> --
> 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