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 ?
Launch Postman and setup the proxy server under File>Settings>Proxy to use port as localhost:8087.
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)
Now all the API requests that you send in Postman will be captured in JMeter and store under Thread Group>Recording Controller.
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.
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.
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.
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.
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.
Loadium have an new Postman to JMeter converter:
You can use our new feature by uploading Postman's JSON file and click CONVERT NOW
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With