JMeter Study Notes--Detailed jmeter configuration components

Source: Internet
Author: User
Tags current time ftp generator http cookie http request first row

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 then store them in a variable, suitable for handling many variables Variable Names: variable Name list (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 read starts again from the first line of the file, if set to false, and stop thread on EOF is false, then all variables are set to <EOF> when the tail of the file is reached; You can change this value 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: The file shares the current thread group across all threads: Each file opens a current thread for each thread group: each file is Each thread opens Identifier separately: All threads share the same identity and share the same file. With 4 thread groups, testers can use a common ID to share files between two or more thread groups.

Note: The CSV DataSet variable is defined at the initial stage of each test cycle, because the definition occurs 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.

  &NBSP;FTP request Defaults: Used to set the default value for FTP requests HTTP Authorization Manager: You can help testers specify one or more logins for a Web page. If there is no definition, the HTTP client sampler uses the pre-emptive checksum by default, to disable this feature, do the following: jmeter.propertied: Set httpclient.parameters.file= httpclient.parameters  httpclient.parameters: Set the http.authentication.preemptive$boolean=false  The above settings affect only the HttpClient sampler (SOAP sampler, also use httpclient). Note that there is currently no way to confirm which Authorization Manager JMeter uses if there are multiple authorization managers within the scope of a sampler. Base URL: A partial or complete URL that matches one or more HTTP request URLs. For example: Specify a base URL (http://jakarta.apache.org/restricted/), corresponding to the user name "JMeter", and the password "JMeter". If the tester sends an HTTP request to the URL (http:// jakarta.apache.org/restricted/ant/mypage.html), Authorization Manager sends the user name "JMeter" Login information username: The user name of the checksum Password: The user's password Domain: Domain realms used for NTLM realm: Realm HTTP cache Manager for NTLM: used to provide caching functionality for HTTP requests within its scope if "Use Cache-control/expires header is ... "Selected, then the current time is selected, if the request is" GET ", and the time points to the future, then the sampler will return immediately, without the need to request the URL from the remote server, in order to simulate the browser operation, please note that the Cache-control header must be" Pulic ", and only The "max-age" termination option is processed and if the request document has not changed since it was cached, the response package body will be empty. HTTP Cookie Manager: There are two main features: it stores and sends cookies just like a Web browser. If the tester has an HTTP request and the correspondingThe inclusion of the Cookie,cookie Manager automatically stores the cookie, which is then used in all requests for a particular Web site. Can be viewed in the results tree. The received cookie can be saved as a variable, the attribute "Cookiemanager.save.cookie=true" must be defined, and the cookie name is prefixed with "cookie_" before being stored, and the attribute "is defined when the previous processing is resumed." Cookiemanager.name.prefix= "(one or more spaces). If this feature is enabled, a COOKIE named TEST can be referenced by ${cookie_test}. Manually add a cookie to the cookie manager (shared for all jmeter threads). HTTP request default: Set HTTP request using default HTTP header manager: You can add or reload HTTP request headers, JMeter currently supports multiple header managers, and the information leader will be merged to form the sampler list. If a pending entry matches an existing information header, it replaces the current entry, unless the entry value is empty, in which case the existing entry is removed, allowing the user to set a series of default information headers and adjust the specific sampler. Name: The names of the request headers, frequently used two common request headers "user-agent" and "Referer" value: Request header Values Login configuration symbol: Add or reload the user name and password for the sampler. User-defined variables: Defines the initialization of a series of variables. are processed during the initialization phase. Therefore, some variables cannot be referenced. Random Variable: Used to generate a random numeric string, which is then stored in a variable. Variable Name: variable name used to hold random string output format: Use Java.text.DecimalFormat format string, for example "000" produces a random number of at least 3 digits, or "user_000" The resulting output format is user_nnn, if not specified, long.tostring () is used to produce the number Minimum value: the minimum (integer) that produces the random number Maximum value:seed for random Function: The seed of the random number generator, which defaults to the current time (in milliseconds) per thread (User)?: If False, the random number generator thread group's desired threads are shared, true, and each thread has its own random number generator. Counter: Allows the user to create a counter, can be in the thread group anyPlace referenced simple configuration element: You can add or reload arbitrary values in the sampler

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.