Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I add a reporter event to a checkpoint
#6
Solved: 10 Years, 10 Months, 2 Weeks ago
Hi,
CheckPoint statement in QTP returns a boolean value. You can verify the return value & put reporter.reportevent statement accordingly

eg.
Code:
If Browser("Google").Page("Google").Check (CheckPoint("Google")) then
    reporter.reportevent micPass, "Step Name", "Description"
Else
    reporter.reportevent micFail, "Step Name", "Description"
EndIf

...continue...
When you will see the result you will find the same case has been reported twice. First by the "CheckPoint" statement & other by "Reporter.ReportEvent" statement
Reply


Messages In This Thread
RE: Can I add a reporter event to a checkpoint - by manabh - 08-05-2009, 05:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] [WPF] Table: how simulate Click or DBClick event robertosalemi 0 2,801 05-17-2016, 08:22 PM
Last Post: robertosalemi
  How to capture objects of Event Viewer ? Vishnu Narayan 1 2,468 06-11-2015, 06:29 PM
Last Post: venkatesh9032
  Reporter unable to load results when objects are involved? Elimelech.Eli 2 3,489 06-01-2014, 01:37 PM
Last Post: Elimelech.Eli
  MouseOver Event on Flex Object Sourabh146 0 2,484 01-13-2014, 07:36 PM
Last Post: Sourabh146
  How to get qtp Reporter/Summary in vb script rlin2012 1 3,306 11-20-2012, 02:55 PM
Last Post: harishshenoy

Forum Jump:


Users browsing this thread: 1 Guest(s)