You can export all artifacts from a single browser test run using the mabl CLI command mabl test-runs export
. This command is useful if you want to collect archival data for audit and retention purposes.
mabl test-runs export
The mabl test-runs export
command sends an export request to mabl and downloads the export as a zip file to your local machine. By default, this command exports screenshots. You may also export console logs, DOM snapshots, HAR files, and step traces.
Options
Option | Details |
---|---|
--file |
Export to a specific file. By default the command exports a zip file to the local path. |
--types |
Type of test data to export: screenshots, console_logs, doms, hars, traces, xray_json |
Examples
# Export screenshots from a test run to a file called "audit" mabl test-runs export--file ./audit # Export console logs and HAR files from a test run mabl test-runs export --types console_logs hars
For an overview of all the different export methods, see the main article on exporting test run artifacts.