Common web stress test structure
Two, thousands of people pressure Baidu and Google
1. Thread Group: Set the number of pressure
2.forEach Logical unit: Traverse the URL that you want to visit, the general multiple URLs will use
3. User-defined variables: Accessing multiple URLs using variables to represent
4.http Request: Specific requests sent from the client to the server
5. Aggregation report: Run results View and analyze
third, log in once
1. Record log in with Badboy
2. Delete unused to HTTP request
3. Create logic that loops only once
4. View Results
four, 2 users cycle log in
1. Create loop logic: Right-click Thread Group-add-Logical Controller-loop controller
2. Keep the HTTP request for login and drag it to the loop logic device
3. Create a CSV data set config to invoke a CSV file that holds the username and password
3. Create a user name and password csv file, saved to the JMeter installation directory in the bin directory (specifically how to create to find http://blog.csdn.net/u011649536/article/details/45643795)
4. Back to CSV Data set config, make call settings
5. Open HTTP request, modify parameter
Five. View access to two home pages load response time of 20QPS
Six. 2 users impersonate 50 users log in at the same time (parameterized)
七、一个 User Login simulate 50 Operations Access Web page
Login only once in logic, 50 operations access in the loop