Jmeter's first use

Source: Internet
Author: User

1. Install jmeter

Http://apache.etoak.com//jmeter/binaries/apache-jmeter-2.9.zip

Click jmeter in the bin directory to start. An error is reported because JDK is not installed. After JDK is installed, configure the environment variable. directly add it in path. C: \ Program Files \ Java \ jdk1.7.0 _ 21 \ bin


2. Start successfully. Create a test plan, create a thread group, and configure the number of threads and startup mode.


3. Add an HTTP request. Enter the request URL directly in the path.


4. Add the listener to aggregate the report and click Start to execute the report. Then, you can observe the throughput and other metrics...


Summary

It seems very simple. At the beginning, I still got a mistake. There are three thread groups. I checked them. According to the explanation of the wormhole, I still want to learn from young people. There are too few things to study, if you are younger, you will be out of date!

Although there are three options for adding a thread group with different names, the interface is identical after creation. The previous version only has the name of a thread group. Now there is one more setup theread group and terdown thread group.

1) setup thread group

A special type of threadgroup that can be used to perform pre-test operations. These threads act like a normal thread group component. The difference is that these types of threads perform regular thread group execution before testing.

2) teardown thread group.

A special type of threadgroup that can be used to perform post-test actions. These threads act like a normal thread group component. The difference is that these types of threads execute regular thread groups after testing.

Maybe you still don't quite care about the differences between them and common thread groups. If you have used JUnit, you may not be unfamiliar with setup or teardown. It does not matter if it is used in real time. Familiar with LoadRunner, we should know that the LoadRunner script is not only the core content of the real script in the action, but also the initialization script for initializing the "Environment" and the script block for clearing information after the test. Here, setup thread group and teardown thread group respectively refer to these two parts. In essence, they are no different.

3) thread group (thread group ).

This is the thread we usually add to run. Generally speaking, a thread group can be considered as a virtual user group. Every thread in the thread group can be considered as a virtual user. The number of threads in the thread group will not change during the test execution.

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.