Jmeter use interface test

1, Jmeter start

Jmeter.bat start in the bin

 

2, create a test plan

Double-click to open jmeter.bat, pop up a new test plan, choose Save Path, later step, every time you add or modify some of the options, the software will not save the file to the jmx automatically, so after the test, if necessary save this test option to manually to the "file" menu to save it.

 

3. Add a new thread group

On this test plan node, click on the "add  plus " → " Threads " "thread group ", you can add more thread groups

 

Thread group page parameter settings

 

 4, add "request Default" in the thread group

Thread group - Add - Front Manager --HTTP Request Defaults

 

Configuration Parameters page "HTTP Request Defaults" in

 

 5, add "HTTP header Manager"

Thread group - Add - Profile --HTTP Request Defaults

 

6, a request to add HTPP

Thread group - Add --sampler - HTPP request

 

 

Note: When content_type added, careful not to check "Use multipart / form-data for POST" 

 

7, add the listener

Right thread group, select the "Add " → "listener " → " XXXXXXXXX "

You can add the listeners there are many, can add multiple listeners, here we add a few commonly used "graphical results", "View results tree", "Aggregate Report"

You can view each "listener" results

 

 

 

 

Label: JMeter of each element (e.g. HTTP Request) has a Name attribute, shown here is the value of the Name attribute

 

#Samples: this test that you have issued a total number of requests, if simulate 10 users, each 10 iterations, this display 100

 

Average:平均响应时间——默认情况下是单个 Request 的平均响应时间,当使用了 Transaction Controller 时,也可以以Transaction 为单位显示平均响应时间

 

Median:中位数,也就是 50% 用户的响应时间

 

90% Line:90% 用户的响应时间

 

Note:关于 50% 和 90% 并发用户数的含义,请参考下文

 

http://www.cnblogs.com/jackei/archive/2006/11/11/557972.html

 

Min:最小响应时间

 

Max:最大响应时间

 

Error%:本次测试中出现错误的请求的数量/请求的总数

 

Throughput:吞吐量——默认情况下表示每秒完成的请求数(Request per Second),当使用了 Transaction Controller 时,也可以表示类似 LoadRunner 的 Transaction per Second 数

 

KB/Sec:每秒从服务器端接收到的数据量,相当于LoadRunner中的Throughput/Sec

 

置上面几个参数,模拟的总的请求数是:线程数*循环次数。执行一下,用“图形结果”监听器查看一下

 

样本数目:总共发送到服务器的请求数.
最新样本:代表时间的数字,是服务器响应最后一个请求的时间.
吞吐量:服务器每分钟处理的请求数.
平均值:总运行时间除以发送到服务器的请求数.
中间值:时间的数字,有一半的服务器响应时间低于该值而另一半高于该值.
偏离:服务器响应时间变化、离散程度测量值的大小,或者,换句话说,就是数据的分布.

 

PS:Jmeter快捷键操作

Ctrl+R  运行测试计划

Ctrl+E 清除运行结果

Ctrl+T 启用/禁用

 

Guess you like

Origin www.cnblogs.com/chuchu5811/p/10949602.html