API Fortress can now generate a test from a Postman collection!
The first step is exporting your collection from within Postman.
Next to your Collection name click the ellipsis (three dots) … then click Export and choose ‘Collection v2.’
Once done, go to API Fortress and create a New Test.
On the interstitial page, click Build from Spec.
In the following page, choose Postman Collection from the dropdown menu, and upload the collection file we exported. Click Save.
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.
This imports the API call to the composer. Now we can use this to call the payload and build a test automatically!
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).
When the call is in the console, click the Send button in the top right and you will see the 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.
You can review the test and add some more logic. This is just a simple version of the test!