Build from Postman Collection

API Fortress can now generate a test from a Postman collection!

The first step is exporting your collection from within Postman.

collection

Next to your Collection name click the ellipsis (three dots) … then click Export and choose ‘Collection v2.’

export exportCollectionV2

Once done, go to API Fortress and create a New Test.

newTest

On the interstitial page, click Build from Spec.

buildFromSpec

In the following page, choose Postman Collection from the dropdown menu, and upload the collection file we exported. Click Save.

specFile

For a new test, choose From Scratch and then click the check. If you are updating a test then you would use the Merge option.

buildoptions

This imports the API call to the composer. Now we can use this to call the payload and build a test automatically!

testcreated

The easiest way to create a test is using our Magic tool. To do so you need to import the call into the console. First, select the call in the composer, which will highlight it, then click the Import button (shown highlighted below).

importFromComposer

This will open the HTTP console at the bottom and load the call.

importToConsole

When the call is in the console, click the Send button in the top right and you will see the response.

response

At this point, the Magic tool can do the test for you. Click the magic wand icon next to the send icon at the top right of the console, that will launch the Magic tool. Click Continue a few times and voila, a complete API test generated without having to write any code.

magic

You can review the test and add some more logic. This is just a simple version of the test!