Micro Focus QTP (UFT) Forums

Full Version: Update to reporting values = pass, fail or deferred.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Howdy ,
I need to update QTP reporter to reflect a pass, fail or deferred in my recorded scripts. I currently have reporter set to 0. So if a check point or test fails I need the reporter to reflect that. Any suggestions on how to incorporate that into tests are appreciated. Thank you
Reporter.Filter = rfEnableAll

Reporter.ReportEvent 0, "2.1.30 Step 1" ,"Send a valid Speed Restriction Bulletin (xxxx) message."
you can use something like -
Code:
Val =Browser("Name").Page("Page").WebEdit("edit box").Check (CheckPoint("error"))

If Val = "Pass" Then
     Reporter.ReportEvent 0, "2.1.30 Step 1" ,"Send a valid Speed Restriction Bulletin (xxxx) message."
Else
     Reporter.ReportEvent 1, "2.1.30 Step 1" ,"Send a valid Speed Restriction Bulletin (xxxx) message."
End If