Jmeter system parameter -- Property (original)

Source: Internet
Author: User

1. Property is a function that jmeter reads its own attributes. There are three parameters: attribute name, function name, and default value. His simplified version is the P function, which has only two parameters: attribute name and default value.

2. Use this function to set the thread.

1) EDIT jmeter's property first: Add # defaults in jmeter. properties group1.threads = 10 group1.loops = 100 group1.rampup = 10

Note: group1 is the name of the thread group.

2) added result: If you are at nmuber of threads :$ {_ property (group1.threads)} ramp-up period :$ {_ property (group1.rampup)} loop count: $ {_ property (group1.loop)}. During running, jmeter reads its property file (under the bin directory) and creates 10 threads, each of which loops 100 times, the total interval is 10 s.

3) If you do not want to run jmeter according to the default settings, You can execute jmeter-jgroup1.loops = 1000 in the command line before starting jmeter. jmeter runs 1000 times in a loop.

This is suitable for complex test scripts that set multiple thread groups. With one command, you can change the settings between multiple thread groups. Is andProgramSetting variables in.

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.