$show=home$hide=mobile-page

Reporting Modes in UFT

Reporter object in UFT has different reporting modes. This post discusses about various mode available in reporter object.

Reporter object in UFT has different reporting modes. This post discusses about various mode available in reporter object
Reporter object in UFT has different reporting modes. This post discusses about various mode available in reporter object.

Available reporting modes in UFT are

Report ModeDescription
0 or rfEnableAllAll events are displayed in the Run Results.
This is the Default report mode
1 or rfEnableErrorsAndWarningsOnly events with a warning or fail status are displayed in the Run Results.
2 or rfEnableErrorsOnlyOnly events with a fail status are displayed in the Run Results.
3 or rfDisableAllNo events are displayed in the Run Results.
You can use the Report.Filter method to determine which steps or types of steps are included in the Run Results. You can completely disable or enable reporting of steps following the statement, or you can indicate that you only want subsequent failed or failed and warning steps to be included in the report. You can also use the Report.Filter method to retrieve the current report mode.
Code Description
Reporter.Filter = rfDisableAll Disables reporting of subsequent steps.
Reporter.Filter = rfEnableAll Enables reporting of subsequent steps.
Reporter.Filter = rfEnableErrorsOnly Instructs UFT to include only subsequent failed steps in the Run Results.
Reporter.Filter = rfEnableErrorsAndWarnings Instructs UFT to include only subsequent Failed or Warning steps in the Run Results
myReportMode = Reporter.Filter Returns current Report Mode.
Sample Code
Dim myReportMode
reporter.Filter = rfDisableAll
PrintReportMode("rfDisableAll")
reporter.Filter = rfEnableAll
PrintReportMode("rfEnableAll")
reporter.Filter = rfEnableErrorsOnly
PrintReportMode("rfEnableErrorsOnly")
reporter.Filter = rfEnableErrorsAndWarnings
PrintReportMode("rfEnableErrorsAndWarnings")

Sub PrintReportMode(ByVal reportModeName)
 myReportMode = reporter.Filter
 print myReportMode & " - " & reportModeName
End Sub

Output of above sample code would be

3 - rfDisableAll
0 - rfEnableAll
2 - rfEnableErrorsOnly
1 - rfEnableErrorsAndWarnings

COMMENTS





Name

AngularJS,3,Automation Testing,8,CSharp,5,Disqus,1,Excel,2,HP ALM,5,HTML5,1,ISTQB,2,Java Script,2,Manual Testing,7,Photography,1,Quiz,2,REST API,5,Testing,15,UFT,8,VB,5,VBScript,1,Wordpress,1,
ltr
item
Aneejian: Reporting Modes in UFT
Reporting Modes in UFT
Reporter object in UFT has different reporting modes. This post discusses about various mode available in reporter object.
https://1.bp.blogspot.com/-jvspPwK67uQ/WMkZlnHkmXI/AAAAAAAAAGQ/aF492-hOVIcAMjy0KGkp_Si1CjAFEWzYQCLcB/s320/report-modes.jpg
https://1.bp.blogspot.com/-jvspPwK67uQ/WMkZlnHkmXI/AAAAAAAAAGQ/aF492-hOVIcAMjy0KGkp_Si1CjAFEWzYQCLcB/s72-c/report-modes.jpg
Aneejian
http://www.aneejian.com/2015/05/qtp-uft-report-modes.html
http://www.aneejian.com/
http://www.aneejian.com/
http://www.aneejian.com/2015/05/qtp-uft-report-modes.html
true
5798203121010168414
UTF-8
Loaded All Posts No posts found VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU ARCHIVE SEARCH ALL POSTS No post found which matches with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy