Postman script to JMeter script
Asked Answered
M

4

10

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.

Mutt answered 28/12, 2017 at 14:51 Comment(1)
please watch youtube.com/watch?v=OQWyLMJbXawBorrowing
K
6

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.

Killifish answered 28/12, 2017 at 15:15 Comment(0)
B
5

Loadium have an new Postman to JMeter converter:

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

Bevins answered 15/9, 2018 at 7:18 Comment(3)
Its very useful. ThanksInutility
It doesn't work anymore. Every json file I upload (for v2 or v2.1 collection), it just says an error occurred.Aramen
After signing up and going through some things. v2 did work for me. But the link to it is different.Walter
S
1

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.

Sapele answered 28/12, 2017 at 16:0 Comment(2)
The link to "How to Cut Your JMeter Scripting Time by 80%" is not working any more.Oribelle
Try this one: Recording Your Session, look for SmartJMX optionSapele
W
1

https://www.npmjs.com/package/convert-postman-jmeter

Latest changes seem to make v2.1 work (at least in some cases)

I was using testcafe hook and https://www.npmjs.com/package/postman-collection to build collections before using above to convert to jmeter. And https://www.npmjs.com/package/postman-to-openapi to convert it to OpenAPI.

A postman ItemGroup describing each e2e test file. And adding items for each request in order.

Walter answered 14/12, 2022 at 23:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.