Steps for interface pressure testing with JMeter

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.