Postman script to JMeter script

五迷三道 提交于 2019-11-29 15:13:07

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/48009587/postman-script-to-jmeter-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!