JUnit-Style HTML Reports For Automation

JUnit-style HTML reports in ReadyAPI are HTML reports similar to ant and junitreport reports. This report template is available right after you install ReadyAPI, so you can use it without any preparations.

To create a JUnit-style report:

  1. Run a test case, or a test suite, or a project.

  2. When the test run finishes, click Report.

  3. In the Create Report dialog, select the JUnit-Style HTML report for automation type.

    ReadyAPI: Configuring the JUnit-style HTML report
  4. Select a style for the report. You have two options:

    Option

    Description

    Single Page (print)

    Creates a single-page printable report.

    Multiple Pages

    Splits the report into multiple pages.

  5. Specify the output folder manually in the Folder field, or click Browse and select the target folder.

  6. Click OK.

ReadyAPI will create the report. It will then appear in your default browser:

The JUnit-style HTML report

Note

The JUnit reports will list all the executed Test Suites and Test Cases for the run project/test suite/test case and their success/failure results. In addition, for the failed test cases the JUnit report will also list all the corresponding test steps that have failed alongside the failure, error details, and the reason.

Important

JUnit reports now display tests marked as Canceled, counting them as failed in the overall passed/failed summary.

Fonts in Linux

ReadyAPI reports use some of Microsoft core fonts. Not all Linux installations include these fonts. If you have issues with creating reports:

  1. Install the mscorefonts package applicable for your Linux distributive.

  2. Copy TTF files from /usr/share/fonts/truetype/msttcorefonts to the <ReadyAPI Installation>/jre/lib/fonts directory.

Make sure to specify the <ReadyAPI Installation>/bin/reports directory in the Custom Reports Library field of the ReadyAPI tab in the Preferences window.

Generated files

The JUnit-Style HTML report consists of two parts:

  • JUnit-compatible report - a number of XML files similar to a regular JUnit report.

  • HTML report - a number of HTML pages to view the report in any web browser.

Note

The Security TestRunner utility generates only the JUnit-compatible report.

See Also

Publication date: