邮递员脚本到JMeter脚本 [英] Postman script to JMeter script

查看:112
本文介绍了邮递员脚本到JMeter脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几个Postman HTTP脚本,

We have several Postman HTTP scripts,

我们想将其转换为JMeter脚本,是否有一个简单的转换工具/选项?我们是否应该按照 quora 中的建议使用录音?

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. 启动邮递员并在File> Settings> Proxy下设置代理服务器以将端口用作localhost:8087.

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

启动JMeter工具,打开记录模板并设置代理以使用"HTTP(S)Test Script Recorder"元素下的端口"8087"(在Postman中设置相同的端口)

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)

现在,您在Postman中发送的所有API请求都将在JMeter中捕获,并存储在Thread Group> Recording Controller下.

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

推荐答案

您的建议似乎是最快的方法之一-使用Collection Runner可以帮助加快捕获过程.

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

这是我发现通过此解决方案的 YouTube视频.

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

这篇关于邮递员脚本到JMeter脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆