Working with Reporter Object, MsgBox and Print Statement in UFT? – User friendly Tech help

Following video tutorial covers the mostly used scenario’s for reporting results in UFT/QTP.
n
nFor reporting in Selenium we need ReportNG
n
nJust a brief summary of topics that are highlighted inthe video, firstly we discussed the usage of “MsgBox and Print Statements” with their differences and then our main focus was on “Reporter Utility Object“,in this we focused on “ReportEvent and ReportNote” methods and “Filter,RunStatus and RepotPath” properties.
n
n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

MsgBox

n

n

Print

n

Vb-scripting Feature UFT , utility statements
Information displayed using Popup Information is displayed in Print Log file
Script execution stops when it is displayed Script execution is not interrupted
MsgBox(“Welcome to uftHelp.com”) Print “Welcome to uftHelp.com”

n

n
nWe also discussed what is a utility object and utility statements in uft/qtp, than we did the syntax of “ReportMethod” 
n
nReporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath] 
n
nEventStatus:-Status of Run Result 

n

    n

  • 0-micpass
  • n

  • 1-micfail 
  • n

  • 2-micdone 
  • n

  • 3-micwarning 
  • n

nReportStepName:-Name of the step to be displayed in Result Viewer
nDetails:-Description of ReportStepName
nImagefilepath:-Optional, path of the image that need to be displayed
n
nExample:-
n
Reporter.ReportEvent 0, “uftHelp.com”, “Helping Ppl Learn”
n

Examples of ReportNote, Run Status, ReportPath and Filter are also shown in the video
n
Incase video doesnot load, please follow the YouTube link
n

Was this article helpful?
YesNo

Similar Posts