You can now export resolved variable values from your browser test runs using the mabl CLI or the mabl API! Previously, the actual resolved values in test runs were only visible from the test output page in the mabl app. With this update, you can programmatically access the full set of variable values used during a test run!
This export option is especially useful for checking the resolved runtime values of dynamic, data-driven variables for compliance, auditing, or troubleshooting purposes.
Try it out
mabl CLI
To export variable values from a test run, update the mabl CLI to version 2.100.6 or later and use the mabl test-runs export command with the --types flag:
mabl test-runs export {run-id} --types variables
Use --types all to export all available artifact types:
mabl test-runs export {run-id} --types all
Exported variable data is saved in a zip file. Unzip the download to access the downloaded runtime values.
mabl API
To export variable values from a test run using the mabl API:
-
Create test run artifact export endpoint with
variablesincluded in the artifact types. - Use the returned export ID to get test run artifact export endpoint to retrieve a zip file containing the exported data.
Variable export is available for browser tests run in the mabl cloud. For more information on the differences between local, CI, and cloud runs, see the test execution overview article.
Learn more
To learn more, see the article on exporting test run artifacts.