The Report view displays a detailed report about a test run. It allows you to view the results in different formats, analyze them, restart failed tests, and export the report to a file.
- Analyze Test Results
- Rerun Tests
- Export the Report
- Remove the Report
- Get More Report Formats
Analyze Test Results #
The Report view can display data in different formats. You can use the report header's drop-down list to select a format.
TestCafe Studio provides the following report formats:
- Grid view
See Get More Report Formats for information on how to add more report formats.
You can select the default format in the run configuration settings.
Work with a Grid #
The grid view displays test run results in the tabular form.
You can click a test or fixture name to navigate to this test or fixture.
Click the button in the Screenshots column to see screenshots taken with the Take Screenshot action during the test run.
Examine Failed Tests #
An arrow is displayed near a failed test's status. This arrow allows you to expand the grid row and see details about this failure.
For recorded tests, the detail view displays a link to a test action that caused the failure. Click this link to navigate to the test file. The failed action is automatically expanded and displays the error message.
For coded tests, the report shows a place in code where the failure occurred and the call stack.
Sort Data #
Click the column header to sort tests by a column. To toggle sort order, click the header one more time.
Search for Tests #
The search bar in the grid header allows you to search for a test by its name or a fixture name.
You can also search for a failed test by the error message, callstack or call site.
Group Data Records #
You can drag a column header and drop it onto the grid's header to group grid rows by that column. The grid creates a row group for each value in the grouped column.
You can group by multiple columns. Drag several column headers to the grid header to create nested groups.
Rerun Tests #
You can rerun tests from the Report view. To rerun all tests in the test run, use the Restart all tests button. If there are failed tests, you can use the Restart failed tests button to rerun them separately.
Export the Report #
TestCafe Studio allows you to export a report to an archive file. This archive includes the serialized report in the selected format (JSON if grid view is selected) and screenshots taken during the test run.
Use the Export report button to export a report.
Remove the Report #
Click the Remove report button in the grid view header to delete a test run report.
Note that this action cannot be undone.
Get More Report Formats #
You can install TestCafe reporter plugins to add more report formats to TestCafe Studio.
Use the following console command to download and install plugins from npm:
npm install -g <reporter-plugin-name>
Reporter plugins are npm packages. The reporter package name consists of two parts - the
testcafe-reporter- prefix and the reporter's name itself; for example,
You can search for more reporter packages on npm: https://www.npmjs.com/search?q=testcafe-reporter.
TestCafe Studio automatically detects reporter plugins on the local machine and adds them to the Report view's drop-down list.