Use the following:
If myArray(counter).Exist Then
Reporter.ReportEvent micPass, "Link ", myArray(counter)
.GetROProperty("name")&" - Exists"
Else
Reporter.ReportEvent micFail, "Link ", myArray(counter)
.GetROProperty("name")&" - does not exist"
End If
On Mon, May 20, 2013 at 11:59 PM, Jon <[email protected]> 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.
>
>
>
--
Shanker.
--
--
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.