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).

  1. Download the Reporting SDK.

  2. Create an instance of the ReportiumClient object.

    The ReportiumClient monitors the application and transfers the report information and artifacts to the Reporting storage server.

  3. 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.

  4. Start the "test" by notifying the Reporting Client that the test unit for the report is starting. Use the testStart() method of the ReportingClient class.

    This indicates the point of a single test.

  5. 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.

  6. Stop the "test" by notifying the Reporting client that the test unit has completed, providing a status for the test completion.

  7. 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.

  8. 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: