当前位置:网站首页>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
边栏推荐
- 5. Multi table query
- NFT digital collection system development: the collision of literature + Digital Collections
- tensorflow2.x中的量化感知训练以及tflite的x86端测评
- Devaxpress.xtraeditors.datanavigator usage
- Learning Efficient Convolutional Networks Through Network Slimming
- Tensorflow learning diary tflearn
- Model pruning 3: learning structured sparsity in deep neural networks
- 现在开发人员都开始做测试了,是不是以后就没有软件测试人员了?
- PXE高效批量网络装机
- Keras learning part: obtaining the output results of neural network middle layer
猜你喜欢

Sort: merge sort and quick sort

NFT digital collection development: Six differences between digital collections and NFT

系统架构&微服务

What is bloom filter in redis series?

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

NFT数字藏品系统开发:NFT数藏 的最佳数字营销策略有哪些

NFT digital collection system development: digital collections give new vitality to brands

Learning Efficient Convolutional Networks Through Network Slimming

时间序列分析预测实战之ARIMA模型

NLP natural language processing - Introduction to machine learning and natural language processing (3)
随机推荐
1.MySQL架构篇【mysql高级】
5. Multi table query
【Keras入门日志(3)】Keras中的序贯(Sequential)模型与函数式(Functional)模型
MySQL之执行计划
系统架构&微服务
Hcip--- BGP comprehensive experiment
Come across the sea to see you
Taishan Office Technology Lecture: page width, height, size and source, and the conversion relationship between inches, centimeters and DPI
Modulenotfounderror: no module named 'pip' solution
[C language] do you really know printf? (printf is typically error prone, and collection is strongly recommended)
6. Backup and recovery of MySQL database
DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
Singles cup web WP
Taishan office lecture: word error about inconsistent values of page margins
Jmeter性能测试之将每次接口请求的结果保存到文件中
[200 opencv routines] 231. Gray level co-occurrence matrix (GLCM) for feature description
Hcip--- MPLS detailed explanation and BGP route filtering
Fang Wenshan, Jay Chou's best partner, will officially announce "Hualiu yuancosmos" on July 25
Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architectures论文翻译/笔记
Configure flask