当前位置:网站首页>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
边栏推荐
- Gdb+vscode for debugging 1 -- compile and debug using cmakelist files + attach process debugging
- 剑指 Offer 48. 最长不含重复字符的子字符串
- 2022.6.28-数据库-1.数据库的隔离级别
- STL--vector容器
- Chapter 2 - system control principle - > classical control theory
- Difference between close and shutdown
- 【Unity面板属性扫盲】导入纹理后设置Texture Import Settings
- 去中心化边缘渲染元宇宙协议Caduceus受邀出席CBAIA 2022峰会,以技术赋能更多Web3应用场景
- STL -- string container
- Gdb+vscode debugging 6 -- Notes on GDB debugging multithreaded commands
猜你喜欢

Engineering compilation: makefile and cmake (I)

基于蒙特卡洛的强化学习方法【附带代码实现】

Line process of pool components

新手如何配置多个 SSH Key(通俗易懂手把手教学)

剑指 Offer 53 - I. 在排序数组中查找数字 I

(with word operation and video explanation) map registration using ArcGIS_ Projection transformation_ General map making_ Thematic map making

Jmeter接口测试之响应断言

Gdb+vscode for debugging 5 - GDB view relevant commands

怎么将软件的快捷方式添加到鼠标右键的列表中

Memory pooling of pooled components
随机推荐
STL--stack容器
【HSJFramework】Unity时间管理TimeManger计时器
[unity Editor Extension] scriptableobject for internal asset configuration of unity
flask模板注入
[unity development tips] unity packs the EXE on the PC side and compresses and packs it into an EXE file
ENVI_ Idl: read the text file and output it in GeoTIFF format + simple mean interpolation
Vmware Tools最新安装教程(RHEL8)
STL -- List container (linked list)
2022.6.28-数据库-1.数据库的隔离级别
Lecture 2 BTC cryptography principles (notes)
STL -- stack container
UE4 笔记
Gdb+vscode for debugging 1 -- compile and debug using cmakelist files + attach process debugging
SSTI模板注入
ENVI_ Idl: batch splice the daily data of MODIS swath and output it in GeoTIFF format
Install websocketpp
第二讲 BTC-密码学原理(笔记)
Swagger——世界上最流行的Api框架
Jmeter接口测试之响应断言
字符串转换为整数