Here you are checking item.exist means it is object
and in your reporter.reporterevent statement  item object is passing
directly, use something like that


set a = Browser("Google").Page("Google").WebButton("Google Search")
Reporter.ReportEvent micFail,"tty","hgfjhg"& a.getroproperty("name")

On Sun, Mar 20, 2011 at 3:19 PM, avinash vl <[email protected]> wrote:

> Hi All,
>
> While running a set code I'm getting an error on ReporterEvent line,
>
> a= Browser("abc").Page("abc")
> b=WebRadioGroup
> item = an option from the group
>
> public function FName(a,b,itm)
>
> if item.exist then
>       some code
> else
> *Reporter.ReporterEvent MicFail, "step name","The " &a &" "&b & " "& itm
> &"not found"*
> end if
> end Function
>
> In test result these items (a, b, itm) should also get displayed
> No errors are getting when using "Print"
>
> Please Help
>
> Many Thanks,
> Avinash
>
> --
> 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




-- 
RAJIV KUMAR

<http://rajivkumarnandvani.wordpress.com/>
<http://learnqtphelp.blogspot.com/>

-- 
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

Reply via email to