Creating a Printable Report

To add the test data ReadyAPI collects to a printable report, you need to include the subreport in the main report.

  1. Select Project > Reporting from the main menu.

  2. Switch to the Subreports tab.

  3. To add a new custom subreport, click add.png.

  4. In the Add Subreport dialog:

    • Enter the subreport name – CityDataResult.

    • Select the TESTCASE subreport type.

    • Select the <custom> subreport data source.

    • Select the Empty Template subreport template.

    • Click OK.

      Adding a subreport
  5. Replace the content of the new subreport with the following:

    This creates a tabular layout. The names of its fields and the names of data sink step properties are identical.

  6. Switch to the Available Reports tab.

  7. Click clone.png to copy the existing Test Case Report report.

    ReadyAPI: The report's copy in the Reporting window
  8. Click Rename to change the name of the copy.

  9. Click the new copy.

  10. In the editor under the table, remove or comment out the following lines:

    Changing the template
  11. Add the following code after the commented lines:

    Here you add the CityDataResult subreport to the report template and fill it with the data sink data.

    Important

    dataSourceExpression should match the name of the data sink test step.

  12. Now you can create a test case report. Switch to the test case page.

  13. Click Report.

  14. The Create Report dialog will appear.

    In the Type list, select the template you have modified.

    ReadyAPI: Creating the modified report
  15. Click OK to finish the creation.

The result should look as follows:

ReadyAPI: The report with the data sink's data

See Also

Publication date: