Importing Postman Requests to Octoperf

Importing Postman Requests to Octoperf

Introduction

You may have spent a considerable amount of time configuring Postman requests for your in-house API tests, and you wish to use them without having to create them again from scratch on Octoperf.

That’s one of the many situations where Octoperf’s compatibility with Jmeter is going to come in a handy.

Postman to Jmeter

The first step will be to convert your requests into a JMeter-friendly format, using Postman Code Generation Snippet :

savecode

Select ‘Curl’ and in the settings, disable the multiline option :

codeline

Your curl request should look something like this :

curl --header "Authorization: Bearer <apiKey>" -v -X POST https://api.octoperf.com/runtime/scenarios/run/<scenarioId>

Open JMeter, create a “Thread Group” that will host all your requests, and in the “Tools” Menu select “Import from Curl” :

importcurl

Paste your Curl request and click on “Create Test Plan”

importedcurl

When you’re finished importing all your requests, save your JMeter project locally.

You’re almost there ! Time to go on Octoperf.

Jmeter to Octoperf

You can now create your virtual User by importing the JMeter project file (.jmx) :

creatvuser

Your requests will then appear in your Virtual User :

octoperfrequest

Now you can unit test your API calls using Octoperf’s interface .

Validate your API Calls

Click on the right side panel to validate your calls :

validate

You can know check the response for each one of your calls :

validate2

You did it ! You can now modify your requests, launch load tests and analyse them directly on Octoperf.

By - Load Testing Expert.
Tags: Tutorials Postman Api Jmeter Performance Testing

Comments

 

Thank you

Your comment has been submitted and will be published once it has been approved.

OK

OOPS!

Your post has failed. Please return to the page and try again. Thank You!

OK

Get our whitepaper,
A beginners guide to performance testing!