JMeter Study Notes--Detailed jmeter configuration components

Source: Internet
Author: User

The JMeter configuration component can be used to initialize default values and variables for use by subsequent samplers. will be processed at the initialization stage of its scope.

  • CSV data Set Config: Used to read data from a file and split them into variables for handling many variables
    • Variable Names: List of variable names (comma delimited). JMeter2.3.4 later versions, the CSV header row is supported, and if the variable name is empty, then the first row of the file is read and interpreted as a list of column names. These variable names must be distinguished by using delimiters, which they can refer to using double quotation marks. By default, the file is opened only once, and each thread uses a different row of data in the file. As for the order in which the data rows are passed to the thread, depending on the order in which they are executed, the data rows are read at the beginning of each test cycle, and the file name and pattern are parsed at the first iteration.
    • Delimiter: Default comma
    • Allow quoted data?: Whether the CSV file allows values to be referenced
    • Recycle on EOF?: When the end of the file is reached, whether to re-read from the beginning of the file (default true), when the end of the file is reached, and the Recycle option is set to true, the first row of the file is read again, if set to false, and the stop thread on EOF? is false, so when the end of the file is reached, all variables are set to <eof>, and the value can be changed by setting the JMeter property csvdataset.eofstring. If the recycle option is false and the stop thread is true, then the end of the file will cause the thread to be terminated.
    • Stop thread on EOF?: whether the thread terminates after the end of the file is reached.
    • Sharing mode: If you want each thread to have its own set of values, create a series of data files, prepare a data file for each thread, such as Test1.csv, Test2.csv, and so on, using the file name Test${__threadnum}.csv, and set "sharing mode" to "Current thread"
      • All threads: Files are shared across all threads
      • Current thread group: Each file is opened once for each thread group
      • Current thread: Each file is opened separately for each thread
      • Identifier: All threads share the same identity and share the same files. With 4 thread groups, testers can use a common ID to share files between two or more thread groups.

Note: CSV DataSet variables are defined at the initial stage of each test cycle, because the definitions occur after configuration processing is complete, so they cannot be used with some configuration components, such as JDBC Config, to process their content at configuration time. Can be used normally in HTTP Auth manager.

    • FTP Request Defaults:

JMeter Study Notes--Detailed jmeter configuration components

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.