Postman script to JMeter script

May 2024 ยท 2 minute read

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.

  • 1

    4 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.

    0

    Loadium have an new Postman to JMeter converter:

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

    3

    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.

    0

    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.

    ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJoa3FoYG6CeYOOqaasrJ2Wu26%2Fwqugqaxdqbxutsyeq56qXaiws7XPrQ%3D%3D