JMeter Learning notes--jmeter properties and variables

Source: Internet
Author: User

The JMeter property is uniformly defined in the Jmeter.properties file. The JMeter property is visible anywhere in the test script (global) and is typically used to define some default values that are used by JMeter. such as attribute remote_hosts defines the server address that JMeter runs in remote mode. Property can be referenced in a test plan, but not as a variable value for a specific thread

The JMeter variable is a local variable for the test thread, which means that the jmeter variable is in a different test thread, either done the same or different, and if a thread has updated the variable, it simply updates the value that the variable replicates in that thread. For example, the regular expression extractor (the Post processor) updates the value of the variable based on the results of its thread adoption, which can provide the same threads for subsequent use.

Variables defined in both the test plan and the user-defined variables (configuration component) are visible to the test plan at jmeter startup. If the same variable is defined in more than one user-defined variable (configuration symbol), only the last definition will take effect. Once a thread is started, the initial value of the entire set of variables is copied to the thread, and other test elements such as "User variables" (pre-processor) or "Regular expression Extractor" (post processor) can be used to redefine variables (or create new variables) that affect only the current thread

You can define the JMeter property by using the _setproperty function.

JMeter Learning notes--jmeter properties and variables

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.