Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I add a reporter event to a checkpoint
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
How can I add a report. reporter event to a checkpoint??
Reply
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
CheckPoint in QTP itself has the Reporter.Reportevent that goes to the test result as Pass or Fail. You will not be able to alter this. Let us know exactly what do you want to do, may be some more detail will help.

Reply
#3
Solved: 10 Years, 9 Months, 2 Weeks ago
Laura -
Yes you can add. I hope this is what you are looking at,

Code:
Chkstat = Browser("Google").Page("Google").Check (CheckPoint("Google"))
msgbox Chkstat

-basanth
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#4
Solved: 10 Years, 9 Months, 2 Weeks ago
Yes. Thanks
Reply
#5
Solved: 10 Years, 9 Months, 2 Weeks ago
Is it - Laura? I thought you want to use reporter.reportevent with checkpoint as mentioned in your question.

Reply
#6
Solved: 10 Years, 9 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
#7
Solved: 10 Years, 9 Months, 2 Weeks ago
Done. thanks for your help
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)