QTP - Reporter Utility
What is Reporter Utility in QTP?
How to use Reporter Utility in QTP?
Different methods and properties of QTP - Report Utility
ReportEvent Method
Description
Syntax
Examples
ReportNote Method
Description
Adds a note to the run results. The note is displayed in the Executive Summary Notessection of the Result Details pane when the root node is selected in the run results tree.
Syntax
Example
The following examples use the ReportNote method to add test-related configuration and version notes to the results.
Reporter.ReportNote "This test was run on version " & DataTable.GlobalSheet.GetParameter("App_Version_Value")
Reporter.Filter
Description
Retrieves or sets the current mode for displaying events in the Run Results. You can use this property to 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.
Example
The following example uses the Filter property to report the following events in the Run Results: 1, 2, 5, and 6.
ReportPath Property
Description
Syntax
Example
The following example uses the ReportPath property to retrieve the folder in which the results are stored and displays the folder in a message box.
RunStatus Property
Description
Retrieves the run status at the current point of the run session. For tests, it returns the status of current test during the test run. For business components, it returns the status of current business component (not the entire business process test).
Syntax
Example
The following example uses the RunStatus property to retrieve the status of the run session at a specific point and exit the action if the test status is fail. If the test status is not fail, the test run continues.
0 comments:
Post a Comment