当前位置:网站首页>Command line execution and test report generation of JMeter performance test
Command line execution and test report generation of JMeter performance test
2022-07-26 07:33:00 【South wind of Mu City】
Get ready
Jmeter There are two modes of operation : One is the interface mode adopted above (GUI) form , Will occupy java Resources of virtual machine ; The other is command line mode (non-GUI) perform , This saves resources , Especially in continuous integration, it basically adopts non-GUI Pattern .
Configure environment variables

Command line execution
Command line format
jmeter -n -t <testplain filename> -l <listener filename>
Parameter description :
testplain filename:jmx The absolute or relative path of the filelistener filename: Name of the result file after execution , The suffix must be .jtl
Commissioning pressure test request
At the command line , If you want to view the results returned by each request , Need modification jmeter.properties The configuration file

Open the comments above , And the value is changed to true, It will open the record ,jmeter This message will be output to our designated jtl In file , Do not pay attention to the pressure measurement process , Will produce a large number of such records , In real pressure measurement , It's better not to log too much .
Check the pressure test results in real time
jmeter At the command line , You can also view the pressure test results in real time , It is also to modify the configuration file jmeter.properties

Open the top summariser.name、summariser.interval、summariser.out These three configuration items , preservation , Rerun jmeter, It should be in shell I see the statistics in the library .

Generate test reports
Execute the order as follows
jmeter -n -t test.jmx -l result.jtl -e -o ./result_report
Parameter description :
n: Not GUI Mode execution JMeter
t: Script files (.jmx file ) The path of
l: Specifies the save file for generating test results (.jtl Format ), This file must not exist
e: After the test , Generate test reports
o: The path used to store the test report
Be careful :result_report It is the test report folder created by yourself , Before each start command , The contents of the folder should be consistent with jtl Empty files together , Otherwise, an error will be reported .
View test report

open index.html

Reference resources :
https://www.cnblogs.com/kaibindirver/p/10767105.html
https://www.cnblogs.com/zichuan/p/9135544.html
边栏推荐
- Apache dolphin scheduler 2.x nanny level source code analysis, China Mobile engineers uncover the whole process of service scheduling and start
- Tensorflow learning diary tflearn
- PyTorch
- Wrong Addition
- 4. Data integrity
- Interview question set
- 数据库基础
- WCF deployed on IIS
- C语言关键字extern
- Keras learning part: obtaining the output results of neural network middle layer
猜你喜欢

系统架构&微服务

Oauth2.0 series blog tutorial summary

China Unicom transformed the Apache dolphin scheduler resource center to realize the one-stop access of cross cluster call and data script of billing environment

Examples of financial tasks: real-time and offline approval of three scenarios and five optimizations of Apache dolphin scheduler in Xinwang bank

:app:checkDebugAarMetadata 2 issues were found when checking AAR metadata: 2 issues were found when

【每日一题】919. 完全二叉树插入器

深度学习模型部署

Hcip--- BGP comprehensive experiment

ARIMA model for time series analysis and prediction

NFT数字藏品系统开发:NFT数藏 的最佳数字营销策略有哪些
随机推荐
6、MySQL数据库的备份与恢复
Jmeter性能测试之将每次接口请求的结果保存到文件中
In July, glassnode data showed that the open position of eth perpetual futures contract on deribit had just reached a one month high of $237959827.
ARIMA model for time series analysis and prediction
C# 使用Log4Net记录日志(基础篇)
Taishan Office Technology Lecture: how to calculate page blank (margin)
WCF introductory tutorial II
Simulation of transfer function step response output of botu PLC first-order lag system (SCL)
Quantitative perception training in tensorflow2.x and x86 end evaluation of tflite
[daily question 1] 919. Complete binary tree inserter
2022.7.22DAY612
Open source management system based on ThinkPHP
Learning Efficient Convolutional Networks Through Network Slimming
DevExpress.XtraEditors.DataNavigator用法
OVSDB
NFT数字藏品开发:数字艺术藏品赋能公益平台
NFT digital collection system development: Huawei releases the first collector's digital collection
Machine learning related competition website
Sort: merge sort and quick sort
微服务feign调用时候,token丢失问题解决方案