Jmeter write test scripts

I. Introduction

 Apache JMeter is a Java-based stress test tools developed by Apache. For software to do the stress test, which was originally designed for testing Web applications, but later extended to other test areas. It can be used to test static and dynamic resources, such as static files, Java servlets, CGI scripts, Java objects, databases, FTP servers, and so on.

5134062-c64e064fe9479eaa.png


So how jmeter scripting?

jmeter not really need to add your own scripts, you can configure some things tested! ! !

Second, detailed steps

1, go to the official website to download apache jmeter, then turn into the bin directory, click jmeter.bat

5134062-16ca34d48e99d1aa.png

2. After clicking'll see a black window (this window can not be closed), there is a working window jmeter

5134062-e18200d78b9fccbf.png
5134062-9532f67fd05c7a7b.png


3, right-testing program, the new thread group

5134062-36abbd8b4ab21e64.png


4, right thread group, create a new http request

5134062-b86be522a57234c5.png


5, built after the http request, take the necessary parameters to fill up (my servers are their own, according to your own fill) 

5134062-16fd5618b8da7559.png


6, the implementation of interface calls

5134062-20ffef7721ab6543.png


7, execution over how to see the results of it? Right first thread group, add a tree to see the results

5134062-800146f810b30838.png

8, click on the result tree, you can see the results

5134062-4fa35eaec5408bce.png

Recommended reading:

1, the Spring Security tutorial series

Reproduced in: https: //www.jianshu.com/p/79dc6a32ef52

Guess you like

Origin blog.csdn.net/weixin_34237596/article/details/91294262