Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update to reporting values = pass, fail or deferred.
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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."
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
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

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is VBScripting disabled in Office 365 update? soumyarani 0 1,254 12-19-2020, 12:37 PM
Last Post: soumyarani
  Pass reference to datatable into function smallsteve 2 1,888 09-28-2017, 09:18 PM
Last Post: smallsteve
  UFT 12.02 Compatibility for IE 11.0 : Fail to identify the defined Object Amruta_121 9 10,487 01-11-2016, 12:45 PM
Last Post: vinod123
  Can you please help me in QTP DP to pass the variable name anshika.agarwal 1 2,593 09-04-2014, 06:43 PM
Last Post: anshika.agarwal
  vb script to stop execution of functions if conditions fail visitjaga 1 7,130 12-05-2013, 12:26 AM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)