Whether you need to track test run results for compliance purposes or share results with your team for further troubleshooting, mabl offers a few different methods to export run artifacts for browser tests:
These options are available for browser tests executed in the mabl cloud. For more information on the differences between local, CI, and cloud runs, see the test execution overview article.
Xray results reporting
To set up a direct synchronization from mabl to Xray, check out our integration for Xray results reporting.
From the mabl app
In the mabl app, you can export test run artifacts for all steps or for specific steps.
All steps
To export test run artifacts for all steps:
- Click on …(More actions) > Export test run artifacts.
- Select the artifacts you would like to export. Artifacts available for export include:
- Console logs (Chrome only)
- DOM snapshots
- HAR logs
- Screenshots
- Step traces (Chrome and Edge only)
- Xray JSON
- Click Export to download the file.
Exporting test run artifacts from the test output page
Specific steps
To export run artifacts for a specific step, click on the ACTIONS dropdown and select the type of data you’d like to export. Depending on the step, artifacts can include:
- Screenshot
- Step trace (Chrome and Edge only)
- DOM snapshot
- HTTP archive (HAR)
- Console logs (Chrome only)
- Accessibility check results
Exporting step-level artifacts
From the mabl CLI
To export browser test run artifacts from the mabl CLI, use the mabl test-runs export command. The following artifact types are available for export:
| Type | Description |
|---|---|
screenshots |
Step-level screenshots (default) |
console_logs |
Browser console logs (Chrome only) |
doms |
DOM snapshots |
hars |
HTTP archive (HAR) logs |
traces |
Step traces (Chrome and Edge only) |
xray_json |
Xray-compatible JSON results |
variables |
Resolved variable values used during the test run |
all |
All of the above |
To export specific artifact types, use the --types flag:
mabl test-runs export {run-id} --types variablesYou can specify multiple types in a single command:
mabl test-runs export {run-id} --types screenshots variablesOr export all available artifact types at once:
mabl test-runs export {run-id} --types allFor the latest, most up-to-date list of available export types, see the mabl CLI command reference.
From the mabl API
To export browser test run artifacts from the mabl API, use the “run artifacts” endpoints in the reporting API:
-
Create a test run artifact export endpoint for a specific test run ID. The POST request returns an export ID ending in
-ex. - Use the export ID to get the test run artifact export. The mabl API returns a URL where you can access a zip file containing the export.
The following artifact types are available for export via the API:
| Type | Description |
|---|---|
screenshots |
Step-level screenshots |
console_logs |
Browser console logs (Chrome only) |
doms |
DOM snapshots |
hars |
HTTP archive (HAR) logs |
traces |
Step traces (Chrome and Edge only) |
xray_json |
Xray-compatible JSON results |
variables |
Resolved variable values used during the test run |
For full request and response details, see the create test run artifact export API reference.