Postman export

In addition to importing API collections from Postman, you can also export mabl API tests back to Postman. The export workflow consist of three simple steps:

  1. Export a mabl API tests as a Postman collection in JSON file format
  2. Import the file into Postman as a new collection
  3. Run the collection in Postman to verify everything works

That's it!

Exporting an API test

You can export a mabl API test as a Postman collection from the test details page as well as from within the API test editor. Look within the available actions next to the API test flow name to locate the export button. Click on the Export as Postman collection button to download a file in JSON format.

Export an API test flow as Postman collection from the test details page.Export an API test flow as Postman collection from the test details page.

Export an API test flow as Postman collection from the test details page.

Next, open the Postman application and click on the Import button located around the top left area of the app. This will open up a dialog where you can upload the exported file from mabl.

Once imported, you will see the API collection within the Postman collections.If you click on a request and go its Test tab, you may also see mabl-generated code that accounts for assertions and variables created in mabl without scripting. Please, do not change that script in Postman so that you will be able to import the collection back to mabl without issues.

mabl-generted script after export to Postman.mabl-generted script after export to Postman.

mabl-generted script after export to Postman.

Next, run the collection in Postman to see that everything works! If the Postman collection run fails, check if all external variables that the API requests rely on are present at the collection and environment level.


Did this page help you?