Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can i see the results through the Reporter .reoprtevent function
#1
Solved: 11 Years, 4 Months ago
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
Reply
#2
Solved: 11 Years, 4 Months ago
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..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,114 06-26-2015, 12:31 AM
Last Post: babu123
  Reporter unable to load results when objects are involved? Elimelech.Eli 2 3,788 06-01-2014, 01:37 PM
Last Post: Elimelech.Eli
  How to get qtp Reporter/Summary in vb script rlin2012 1 3,512 11-20-2012, 02:55 PM
Last Post: harishshenoy
  Reporter.reportevent result not displayed for second checkpoint sudhirzpatil 5 4,536 12-07-2010, 06:22 PM
Last Post: manishbhalshankar
  how to call reporter event through function upadhyay40 2 2,980 11-09-2009, 12:25 PM
Last Post: upadhyay40

Forum Jump:


Users browsing this thread: 1 Guest(s)