Micro Focus QTP (UFT) Forums
how can i see the results through the Reporter .reoprtevent function - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how can i see the results through the Reporter .reoprtevent function (/Thread-how-can-i-see-the-results-through-the-Reporter-reoprtevent-function)



how can i see the results through the Reporter .reoprtevent function - siri - 08-29-2008

Hi ,
Tell me if the function is having errors
Code:
sub LaunchBrowser()

SystemUtil.Run"iexplore"," https://stg-myresources.health.ge.com/idm/user/"

If browser("internet explorer").page("path").exist then
wait(20)
reporter.reportevent micpass,"step","The browser is launched"
else
reporter.reportevent micfail,"step","The browser did not launch"
end if
end sub

''login
'if Browser("name:=SSO LOGIN").Page("title:=SSO LOGIN").WebEdit("name:=username").Set"501173213".exist then
'
'reporter.reportevent micpass,"step","The userid is present"
'else
'reporter.reportevent micfail,"step","The userid is not present"
'end if
'
'end sub



RE: how can i see the results through the Reporter .reoprtevent function - somisays - 08-30-2008

Dear Siri,
Reporter Object is used for sending information to the test results..

Please read the following article by using the link..

https://www.learnqtp.com/qtp-and-reporter-objects/

Hope This helps..