Reporter Object
Description
The object used for sending information to the run results.
Methods and Properties
![]() | Reports an event to the run results (HTML Report only) |
![]() | Retrieves or sets the current mode for displaying events in the run results. |
![]() | Reports an event to the run results |
![]() | Reports an event to the run results, with step name and details in HTML format if applicable. |
![]() | Adds a note to the run results. |
![]() | Retrieves the folder path in which the current test's results are stored. |
![]() | Retrieves the run status at the current point of the run session. |
AddRunInformation Method
Description
Reports an event to the run results (HTML Report only)
Syntax
Reporter.AddRunInformation Custom Key,Description
Argument | Type | Description |
---|---|---|
Custom Key | String | The field to add to the run results. This field is added to the run results summary information in Additional Run Information (displayed at the top of the HTML report). |
Description | String | The text to report to the run results. |
Filter Property
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.
Syntax
To retrieve the mode setting:
CurrentMode = Reporter.Filter
To set the mode:
Reporter.Filter = NewMode
The mode can be one of the following values:
Mode | Description |
---|---|
0 or | Default. All reported events are displayed in the Run Results. |
1 or rfEnableErrorsAndWarnings | Only event with a warning or fail status are displayed in the Run Results. |
2 or | Only events with a fail status are displayed in the Run Results. |
3 or | No events are displayed in the Run Results. |
ReportEvent Method
Description
Reports an event to the run results
Syntax
Reporter.ReportEventEventStatus, ReportStepName, Details, [ImageFilePath]
Argument | Type | Description |
---|---|---|
EventStatus | Number or pre-defined constant | Status of the run results step: 0 or micPass: Causes the status of this step to be passed and sends the specified message to the run results. 1 or micFail: Causes the status of this step to be failed and sends the specified message to the run results. When this step runs, the test or component fails. 2 or micDone: Sends a message to the Run Results window without affecting the pass/fail status of the test or component. 3 or micWarning: Sends a warning message to the run results window, but does not cause the test or component to stop running, and does not affect the pass/fail status of the test or component. |
ReportStepName | String | Name of the step displayed in the Run Results window. |
Details | String | Description of the run results event. The string will be displayed in the step details frame in the run results. |
ImageFilePath | String | Optional. Path and filename of the image to be displayed in the run results. Images in the following formats can be displayed: BMP, PNG, JPEG, and GIF. Notes:
|
ReportHtmlEvent Method
Description
Reports an event to the run results, with step name and details in HTML format if applicable.
Syntax
Reporter.ReportHtmlEventEvent Status, ReportStepName, Details, [Image File Path]
Arguments
Argument | Type | Description |
---|---|---|
Event Status | String | The textual content of the note. Possible values include:
|
ReportStepName | String | Name of the step displayed in HTML format. |
Details | String | Description of the run results event. The string will be displayed in HTML format. |
Image File Path | Variant | Optional. Path and filename of the image to be displayed in the run results. Images in the following formats can be displayed:
Note: Images cannot be loaded from ALM. Including large images in the run results may impact performance. If an image is specified as a relative path, UFT One will first search the Results folder for the image and then the search paths specified in the Folders pane of the Options dialog box (Tools > Options > GUI Testing tab > Folders node). |
IMPORTANT
- This method is similar to the existing ReportEvent method. However, this method is able to report the step name and details in HTML format.
- It is important to ensure that the html string sent to the run results has correct syntax and will not affect the ability of the HTML report to display properly. Therefore, It is not recommended to use <html>, <head>,<body>, <script> tags in both step name and details.
ReportNote Method
Description
Adds a note to the run results. The note is displayed in the Executive Summary Notes section of the Result Details pane when the root node is selected in the run results tree.
Syntax
Reporter.ReportNote NoteContent
Arguments
Argument | Type | Description |
---|---|---|
NoteContent | String | The textual content of the note. |
ReportPath Property
Description
Retrieves the folder path in which the current test's results are stored.
Note: Do not use this property to attempt to set the results folder path.
Syntax
Path = Reporter.ReportPath
Argument | Type | Description |
---|---|---|
Path | String | The folder path in which the current test's results are stored. |
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
Reporter.RunStatus
See also:
- Crypt Object
- DataTable Object
- Description Object
- DeviceReplay Object
- DotNetFactory Object
- DTParameter Object
- DTSheet Object
- Environment Object
- Extern Object
- Parameter Object
- JSON Object
- JsonUtil Object
- MercuryTimers Object (Collection)
- MercuryTimer Object
- NV Object
- OptionalStep Object
- ParallelUtil Object
- LocalParameter Object
- PasswordUtil Object
- PathFinder Object
- PDFUtil Object
- Properties Object (Collection)
- QCUtil Object
- RandomNumber Object
- Recovery Object
- Remote Connection Object
- Reporter Object
- RepositoriesCollection Object
- Repository Object
- Services Object
- Setting Object
- SystemMonitor Object
- TestArgs Object
- TextUtil Object
- UIAutomation Object
- VisualRelation Object
- VisualRelations Object
- VisualRelationsCollection Object
- WebUtil Object
- XMLUtil Object