Implement the reporting framework
Implementing the reporting framework involves the following high-level steps. Detailed steps are provided per framework (see links at the end of this article).
-
Create an instance of the
ReportiumClient
object.The
ReportiumClient
monitors the application and transfers the report information and artifacts to the Reporting storage server. -
Create a
PerfectoExecutionContext
instance.The execution context defines metadata for the execution report. The metadata includes "tags" that can be used to select the execution report from the list of reports.
A single Execution report may include multiple test reports.
-
Start the "test" by notifying the Reporting Client that the test unit for the report is starting. Use the
testStart()
method of theReportingClient
class.This indicates the point of a single test.
-
Define the logical steps of the test.
Each logical step may include a number of actual command steps in the automation script but delineate a logical sequence of command steps.
The report will show the collection of the logical steps that can be drilled down to check the component command steps.
-
Stop the "test" by notifying the Reporting client that the test unit has completed, providing a status for the test completion.
-
Gain access to the final report. The Reporting client can supply the URL to the report for retrieval.
The actual report is not readily available because it has to be compiled from the different component artifacts.
-
In addition, the Reporting client supplies an API that supports exporting the execution report or individual test reports in different formats.
The following video shows an overview of how to integrate the Reporting SDK into your test script:
The following pages provide details on how to implement reporting for your programming language and framework: