Hi,
CheckPoint statement in QTP returns a boolean value. You can verify the return value & put reporter.reportevent statement accordingly
eg.
...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
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