Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Postman script to JMeter script

We have several Postman HTTP scripts,

We would like to convert it to JMeter scripts, is there a simple conversion tool/option? should we use recording as suggested in quora ?

  1. Launch Postman and setup the proxy server under File>Settings>Proxy to use port as localhost:8087.

  2. Launch JMeter tool, open recording template and setup the proxy to use the port '8087' under 'HTTP(S) Test Script Recorder' element (same port that is set in Postman)

  3. Now all the API requests that you send in Postman will be captured in JMeter and store under Thread Group>Recording Controller.

like image 467
user7294900 Avatar asked Dec 28 '17 14:12

user7294900


People also ask

Can we convert Postman script to JMeter?

All you need to do is to drag and drop your Postman collection version 2 file and download JMeter file. After a few usages, you will realize that the tool has some limitations. It can create the request on the right order with parametrization.

Can we integrate Postman with JMeter?

1- Launch Postman and setup the proxy server under File>Settings>Proxy to use port as localhost:8087. 3- Now all the API requests that you send in Postman will be captured in JMeter and store under Thread Group>Recording Controller.

Which is better Postman or JMeter?

I find JMeter a better fit for complexity, strong scripting, CICD inclusion, simple end-point, total load, and performance testing, allowing test re-use. Keep in mind, both tools can perform all of the above operations.

Can we do performance testing using Postman?

Postman has become a synonym for trying out, testing or debugging APIs without writing a line of code. The product has evolved into an almost complete collaboration tool for API Development and over 8 million people use it. OK, so we have established that Postman is super popular and people use it for working on APIs.


3 Answers

Your suggestion seems to be one of the quickest ways of doing this - Using the Collection Runner would help speed up the capture process.

Here's a YouTube video I found going through this solution.

like image 107
Danny Dainton Avatar answered Oct 02 '22 13:10

Danny Dainton


Loadium have an new Postman to JMeter converter:

You can use our new feature by uploading Postman's JSON file and click CONVERT NOW

like image 25
tarikfasun Avatar answered Oct 02 '22 12:10

tarikfasun


The approach is good if not the best.

However if your Postman scripts assume any form of correlation you will need to manually handle dynamic data using JMeter Post-Processors, you can consider an alternative way of recording your tests using cloud proxy server which is capable of exporting recorded requests in SmartJMX mode with automatic correlation applied. See How to Cut Your JMeter Scripting Time by 80% for more details.

like image 29
Dmitri T Avatar answered Oct 02 '22 12:10

Dmitri T