Postman 脚本转 JMeter 脚本 [英] Postman script to JMeter script

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

问题描述

我们有几个 Postman HTTP 脚本,

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

  1. 启动 Postman 并在 File>Settings>Proxy 下设置代理服务器以使用端口作为 localhost:8087.

  2. 启动 JMeter 工具,打开记录模板并设置代理以使用HTTP(S) 测试脚本记录器"元素下的8087"端口(与 Postman 中设置的端口相同)

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

解决方案

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

这是我通过此解决方案找到的 YouTube 视频.

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.

解决方案

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.

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

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