JMeter Basic Knowledge

Source: Internet
Author: User

JMeter official website and help document is very comprehensive, some functions and operation I have not used, and so on after the experience and then constantly updated to enrich some of their own understanding.

JMeter Introduction:

JMeter is a 100%de Java desktop application for stress testing of software. It was originally designed for Web application testing and later extended to other areas. In addition, JMeter is able to perform functional/regression testing of the application by creating a script with assertions to verify that the tested program returns the desired results.

Of course, it is best known as an open-source performance testing tool.

Common terms:

test Plan:

The test plan is the root node of the JMeter test script, and some basic settings for the entire test script can be set here, such as user-defined variables.

Test plan can be added below:

Threads Group (users) (thread group):

A thread group defines a virtual user pool. In the control Panel, we can define the number of users to impersonate (num of threads), ramp-up time: Start all threads/users at the required times. For example, num of threads is 5,ramp up time is 10, which is to start a virtual user every two seconds.

SetUp Thread Group: Similar to Threads Group, is a special threadgroup that can be used to perform some pre-test operations before threadgroup execution.

TearDown Thread Group: Similar to Threads Group, is a special threadgroup that can be used to perform some post-test operations after threadgroup execution.

Test Fragment (Testing fragment):

The test fragment is used in conjunction with the include controller and the module controller.

Config element (config element):

Used to set some information common to jmeter test scripts.

Timer (timer):

Used to save some information about the time associated with the JMeter test script, such as think time.

Pre-processors (front-facing processor):

Within the scope of the predecessor processor, before any sampler is executed, the predecessor processor is executed first.

Post-processors (Rear processor):

Within the scope of the post processor, after any sampler is executed, the post processor is executed first.

Assertions (assertion):

is used to verify that the actual information returned by the server is consistent with what the user expects.

Listener (Listener):

is used to collect information about test results and display them in a user-specified manner.

Below the thread group, you can also add:

Logic controller (logical controllers):

A logical controller is adopted to control the order in which the JMeter test scripts are executed so that the tests can be executed in the order and logic expected by the user.

Sample (Sampler):

is the base unit of the JMeter test script that the user can use to send a specific green vegetable to the server, and the sampler waits for the server to respond before timing out.

JMeter Basic Knowledge

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.