Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jenkins integrated jmeter- performance automation

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

First of all, you need to confirm that in jmeter.properties, jmeter.save.saveservice.output_format=csv

New

Free style

Timing construction

Construction

Execute windows batch command

If exist "output" (rd / SQL Q output)

If exist "JOB_BASE_NAME%.csv" (del "JOB_BASE_NAME%.csv")

Set scrip_home=D:\ apache-jmeter-4.0\ bin

Jmeter-n-t% scrip_home%\% JOB_BASE_NAME%.jmx-Jthreads=100-Jloops=10-l% JOB_BASE_NAME%.csv-e-o output

Note: the specific number of threads and cycles are specified here, or variables can be used, using the following statement:

Jmeter-n-t% scrip_home%\% JOB_BASE_NAME%.jmx-Jthreads=%threads%-Jloops=%loops%-l% JOB_BASE_NAME%.csv-e-o output

Then, you need to define threads and loops, as follows:

Select Build with Parameters to set the parameters on the right.

But it seems that the browser is not compatible and cannot be filled in, so it cannot be used, so it can only be modified at any time in jenkins or in the .jmx script.

Operation after building-> Publish HTML reports, enter the path and name of the result file, and you can also add the result email notification, etc.

Build, view report

Note:

If the report generated above is ugly or has a problem, you need to run:

System.setProperty ("hudson.model.DirectoryBrowserSupport.CSP", "")

Rebuilt, the report will look much better.

Note 2:

Remark 3:

Using .jtl or .csv is fine

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report