Report View
- 4 minutes to read
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
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
- JSON
- xUnit
- List
- Minimal
- Spec
See Get More Report Formats for information on how to add more report formats.
You can select the default format in the Run Configurations dialog 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
The report displays an arrow near a failed test’s status. This arrow allows you to expand the grid row and see details about this failure.
The detail view displays a link to the line of code or the test action that caused the failure. Click this link to navigate to the test file and view the full error message.
For test scripts, the report displays the call stack and the place in code where the failure occurred.
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, call stack 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 group row for each value in the grouped column.
You can group reports 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.
Note
TestCafe Studio will rerun the tests with the same run configuration options and network settings as in the previous run. If you need to run tests with different settings, first modify options in the Run Configuration and Preferences/Settings dialogs, then start the tests from the Test Editor or the Explorer panel. See the following topic for more details: Run Tests.
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, testcafe-reporter-list
.
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.