Operation Steps:
1. Double-click Jmeter.bat
2 . Right click on test plan à add àthreadsà thread group, at which point the thread group option is exposed below the test plan. Click this option to expose the thread group interface. Parameters of the number of arguments to express a number of please, the parameter ramp-up period expression in how long to run all the kindly, the number of loops to express the same please do several times.
If these three parametric are 100,10,1, execute 100/10=10 per second.
If these three parametric are 100,10,2, execute 100*/10=10 per second.
, but the total execution time for 100*2=200 is 10*2=20 seconds.
3, right click on the thread group à add àhttp please, at this time the online group revealed HTTP please options. Click this option to reveal the HTTP please interface.
Server name or IP address, such as 172.20.0.4; port number used for interface, such as 5432;connect to express the time, such as 10000 milliseconds, response expression response time, such as 10000 milliseconds.
Implementation choose HTTPCLIENT4; http;content encoding fill utf-8.
Access interface address, such as login interface/api/user/mobilelogin.jsp
Add parameter variables, for example, the name username value is 13621225664, the value is the password name is JUB9NHM6UDQ hundred 3D.
4, right click http please à add à equipped with layout elements Àhttp Information Header Manager, in the HTTP Header manager interface, click the "Add" button, add UserID and token two key value pairs. This step is in the business thinking law thinking about the problem.
5, right click on http please à add à listener à use the table to check the final results
6, Click on the top of the Start work button (green color three-side shape).
Complete!
Steps for interface pressure testing with JMeter