Micro Focus QTP (UFT) Forums

Full Version: how can i see the results through the Reporter .reoprtevent function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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..