The use of p,property in the JMeter function helper

Source: Internet
Author: User

1. Use of P and property in function helper

${__p (init,2)}, ${__property (init,start,200)}

You can define your own variable name, and the default value of the variable

The P variable is named init, and the value is 2, and when used, the direct ${__p (init,2)} is available, and the result of the change amount is 2.

The ${__property (init,start,200)} variable is named init, the default value is 200, and 200 is passed to the start variable by default, and start can be reused ${start}

2. Another usage is to add a few fixed variables directly to the Jmeter.properties file

#默认的一些值

Group1.thread = 10

Group2.rampup=1

After setting this up, restart JMeter, and you can use these variables with P/property.

${__p (Group1.thread)}, ${__property (Group1.thread,save,)}

Such variables will go to the jmeter.properties to read the corresponding configuration default values

The difference between P and property is whether the value of the first variable is stored in another variable

The use of p,property in the JMeter function helper

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.