JMeter Practice---Web stress test

Source: Internet
Author: User

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


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.