当前位置:网站首页>jmeter生成测试报告
jmeter生成测试报告
2022-06-22 11:29:00 【叶梓啊】
* 如果使用过jemeter,建议倒着看,直接看第三步,重点就是那个命令
- 步骤:安装,创建脚本,通过脚本对应的测试生成测试报告
1.安装
1.1下载地址
https://mirrors.tuna.tsinghua.edu.cn/apache//jmeter/binaries/apache-jmeter-5.4.1.zip
1.2官网地址
https://jmeter.apache.org/download_jmeter.cgi
1.3解压即安装
zip下载完成后,解压
2.脚本创建
2.1打开软件
- 方式一
***\apache-jmeter-5.4.1\bin
在bin目录下打开jmeter.bat,运行jmeter
- 方式2
或者进入bin目录, 双击 ApacheJMeter.jar 就可以打开jmeter了 (打开方式选java)
2.2添加测试计划
右键测试计划 -> 添加 -> 线程(用户) -> 线程组
2.3添加单个计划具体内容
右键线程组 -> 添加 -> 取样器 -> HTTP请求
2.4添加HTTP请求信息
请求参数
右击HTTP请求 -> 配置元件 -> HTTP信息头管理器
- 在里边添加Authorization和Content-Type
返回结果
右击HTTP请求 -> 监听器 -> 查看结果树
- 可以右击清除。右边查看可以选 json 看着方便点(对我来说)
2.5测试和清除
上方工具栏中的绿色箭头(播放按钮)是启动,齿轮+扫把的按钮是清除运行结果。
2.6 保存脚本
ctrl+s,或者菜单栏中,文件 -> 保存测试计划为…
3.生成测试报告
在bin目录下,输入以下代码,创建得到测试报告。
./jmeter -n -t "D:\App Tools\apache-jmeter-5.4.1\a_report\test.jmx" -l report.jtl -e -o "D:\App Tools\apache-jmeter-5.4.1\a_report\aa3"
第一个路径是测试脚本的路径,第二个路径是生成的文件的路径(不要有中文)。
每次创建后,需要在bin目录下,删除report.jtl.
边栏推荐
- NOI使用案例
- Promise upgraded async, await is coming, which is more fragrant with try+catch
- 奋斗吧,程序员——第四十章 一面风情深有韵,半笺娇恨寄幽怀
- “不敢去怀疑代码,又不得不怀疑代码”记一次网络请求超时分析
- Interpretation of basic requirements for classified protection of network security (GBT 22239-2019)
- 奋斗吧,程序员——第三十九章 人生不失意,焉能慕知己
- Redis - 11、集群(Cluster)
- 奋斗吧,程序员——第三十六章 落花人独立,微雨燕双飞
- Solution to the 55D problem of Niuke challenge
- The R language dplyr package mutate function divides two numeric variables in the dataframe to create a new data column (create a new variable)
猜你喜欢

SPI 与 API的区别

【软工】 概论 & 过程和生命周期建模

NFT交易平台数字藏品系统开发技术

2022 the latest software testing classic summarized by major manufacturers. After reading it, I'm not afraid I won't get an offer

xlrd. biffh. XLRDError: Excel xlsx file; Not supported solution

Wechat applet project example - image processing gadget (self-made low configuration version of Meitu XiuXiu)

把蔚来告上法庭,奥迪急什么?

From prototype chain to inheritance, illustrate the context and recommend collection

Configure the GPU version of pytorch and torchvision, and learn the GPU version of torch step

国外LEAD需要干劲、兴趣、钻研、勤奋、缺一不可
随机推荐
CF751D Difficult Mountain
牛客练习赛94D题解
The R language dplyr package mutate function divides two numeric variables in the dataframe to create a new data column (create a new variable)
The software used is PHP MySQL database
Add custom fields to the time synchronization message based on uavcan protocol in Px4 code learning
Solution to 94d problem of Niuke practice match
[2206] An Improved One millisecond Mobile Backbone
The R language uses the matchit package for propensity matching analysis and match The data function constructs the matched sample set, and uses visual analysis to test the balance of all covariates i
Idr Display function obtains the summary statistical information of Poisson regression Poisson model (initial event density ratio IDR value, adjusted event density ratio IDR value and its confidence i
奋斗吧,程序员——第五十章 海内存知己,天涯若比邻
企业官网如何提高客户转化率
The use of cellstr function in MATLAB
奋斗吧,程序员——第四十七章 所谓伊人,在水一方
Solution to 54e of Niuke challenge
Development technology of NFT trading platform digital collection system
奋斗吧,程序员——第四十章 一面风情深有韵,半笺娇恨寄幽怀
美团基于 Flink 的实时数仓平台建设新进展
HMS Core新闻行业解决方案:让技术加上人文的温度
鉴权之cookie、session、JWT
【软工】计划和项目管理