Hi all,

For  more  info  on  UFT 11.5, Please  browse  the  below  website:

www.automationuft.com

www.learnuft.blogspot.in


Regards
Madhu


On Sun, Jun 9, 2013 at 11:43 PM, arun <[email protected]> wrote:

> Hi Jon,
>
> i feel you are ok with your approach, you are asking only about the pass
> or failure. In both cases you need link to be displayed. Did i understood
> correctly?
>
> if it is the case then try this
>
> For Counter = 0 to 41
> myLinkNme=myArray(counter).**GetROProperty("name")
>         If myArray(counter).Exist Then
> Reporter.ReportEvent micPass, "Link ", myLinkNme&"- Exists"
>  Else
> Reporter.ReportEvent micFail, "Link ", myLinkNme&"- does not exist"
>  End If
> Next
>
> if i understood the problem in wrong way, please make me understand.
>
>
> Thanks
> -Arun
>
> On Monday, May 20, 2013 11:59:36 PM UTC+5:30, Jon wrote:
>>
>> Is there a way to customize the Reporter feature so that it basis the
>> message on which step in an Array passed or failed?
>>
>> using this:
>>
>> Dim myArray(42)
>>> Set myArray(0)=Browser("...").**Page("...").Link("A")
>>> Set myArray(1)=Browser("...").**Page("...").Link("B")
>>> Dim Counter
>>> For Counter = 0 to 41
>>>  If myArray(counter).Exist Then
>>> Reporter.ReportEvent micPass, "Link ", "Exists"
>>> Else
>>>  Reporter.ReportEvent micFail, "Link ", "does not exist"
>>> End If
>>> Next
>>
>>
>> I'd like for the reportEvents to be actually say what passed/failed.
>>
>> I've tried:
>>
>>>
>>>     Reporter.ReportEvent micPass, myArray(counter), "Exists"
>>
>>
>> and
>>
>>    oLinkTemp = myArray(counter)
>>>     Reporter.ReportEvent micPass, oLinkTemp, "Exists"
>>
>>
>> Neither works.
>>
>>
>> In case the problem was missed, I want the link name (set in the array)
>> to show up in the reporter event so that in the results it'll say,
>> [name of link] exists
>> or
>> [name of link] does not exist
>>
>>  --
> --
> 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 Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 



Thanks & Regards

Madhusudhan.s

-- 
-- 
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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to