当前位置:网站首页>postman的json脚本转jmeter的jmx脚本
postman的json脚本转jmeter的jmx脚本
2022-07-17 00:15:00 【[email protected]】
一般研发同学会用postman做接口自测,但是我们做性能测试的时候,又不能用postman,对鉴权不了解的接口,自己调试脚本又很麻烦,这个时候,我们就可以用这个方法把json脚本转换成jmeter用的jmx脚本。
环境准备:
(这几个工具需要提前装好,不会安装的同学可以搜一下)
1. jdk1.8
2. maven
3. git
4. postman
5. jmeter
一、克隆项目到本地
使用命令:git clone https://github.com/Loadium/postman2jmx.git

克隆完成:
二、用:cd postman2jmx进入postman2jmx
然后用:mvn package 构建

构建完成:

三、构建成功后,在Windows进入到target目录下的 Postman2Jmx文件夹,就能看到Postman2Jmx.jar,把要转格式的json文件放到这里。
然后在git命令框中输入:cd target/Postman2Jmx
四、执行:(如果把json文件放在Postman2Jmx.jar同一个文件夹就不用写路径,转换后的jmx文件也会生成在这个文件夹)
java -jar Postman2Jmx.jar mpaas消息推送.postman_collection.json 1.jmx


这样就完成了,json脚本转jmx脚本的操作。
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_60664821/article/details/124631512
边栏推荐
猜你喜欢

ENVI_ IDL: read OMI data (HDF5) and output it as GeoTIFF file + detailed parsing

sqlmap的使用

Logical vulnerability - authentication vulnerability

ENVI_ Idl: average calculation + analysis of MODIS swath products in batches

ENVI_ Idl: read the NO2 column content of all OMI products and calculate the monthly average, quarterly average, annual average + analysis
![[unity Editor Extension] the pre-processing and post-processing pictures of unity assets are automatically transferred to sprite2d](/img/84/34879d5c0b6e19d599c99eec944c26.png)
[unity Editor Extension] the pre-processing and post-processing pictures of unity assets are automatically transferred to sprite2d

CTFHub----RCE

bugku---game1
![【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti](/img/a8/2daa2c0d834f1986c8421bf5138c7e.png)
【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti

SSTI模板注入
随机推荐
英文商务邮件常用语
Lintcode 366:Fibonacci 斐波那契数列
LeetCode:动态规划中的0-1背包问题【快来直接套模板啦】
接口(Collection/Map)- 各接口的实现与对比
最长上升子序列----优化
STL -- set container
[unity panel attribute literacy] set texture import settings after importing textures
leetcode---每日一题
30分钟搞懂 HTTP 缓存
leetcode力扣经典问题——42.接雨水
各种开发工具
uniapp微信小程序登录(先授权微信后授权手机号)-- (1)
剑指 Offer 48. 最长不含重复字符的子字符串
Visual Studio 2019-QT调试
Hash table, bloom filter, distributed consistency hash
STL--stack容器
理解:什么是接口,接口的概念
Gdb+vscode for debugging 2 - GDB breakpoint related
DoubleDQN的理论基础及其代码实现【Pytorch + Pendulum-v0】
Attack and defense world - easytornado notes