JMeter basic process and exemplary performance testing

jmeter provides the following features for the performance testing:

jmeter can test static resource (e.g. js, html, etc.) and dynamic resource (e.g. php, jsp, ajax etc.) performance testing
jmeter can dig out the maximum number of concurrent users the system can handle
jmeter provides a series of various forms of performance analysis report

Use jmeter generally used two types of performance testing

Load Test: The test system performance under overload conditions resources to find errors or verify the load capacity of the system design.
Stress Test: Test the system can withstand the maximum load capacity. The purpose is to send to dig out the maximum load target service system can handle.

 The basic process

 Here we look at the basic process of using performance testing jmeter

The figure for a brief explanation
new thread group
to create a test thread group, and set the number of threads and thread initialization starts.
JMeter new tuple
to create and test various default tuple tuple, fill in the target test static and dynamic resource requests and resource requests parameter data.
New listeners
to create various forms of result tuples gathering, monitoring indicators in order to collect data at the end of the process run and run.
Run & View Results
commissioning, analysis indicators data mining performance bottlenecks, performance evaluation system state;

Example
Let's demonstrate the above procedure to open Baidu.
New thread group
, double-click jmeter.bat in the bin directory jmeter or ApacheJMeter.jar start jmeter, as shown below:


In the left column select operation "Test Plan", right-click to add a thread group, as shown:

Initialize the thread group information

JMeter new tuple
is added default configuration element, add the following default configuration, FIG.

 

The default configuration of each component shown in FIG. HTTP Cache Manager

HTTP Cookie Manager

HTTP Request Defaults

Add HTTP Request tuple
in the new thread group Right-click HTTP request, as shown:

FIG HTTP request sets:

 

 

Add listener
Here we add the following listener, shown in FIG.

 

 

Run & see the results
if you start running jmeter, you can click Add listeners to view monitoring data indicators during operation, you can wait after a run, and then view.

The results illustrate
Below we briefly explained the results of drawing the listener collected: graphical results

View results tree

See the results in tabular

Aggregate Report

Summarize
this were to share the basic process of how to use jmeter use, and to access the Baidu homepage has also been the actual test demonstration. It is described in the last few listeners on common fields in meaning. Please conduct drills based on actual business projects, do not use the example Baidu example.

Guess you like

Origin www.cnblogs.com/liang114/p/11724989.html