element describes the configuration and use of jmeter-
- CSV data file settings
- HTTP header information manager
- HTTP Cookie Manager
- HTTP Cache Manager
- HTTP Request Defaults
- counter
- DNS Cache Manager
- FTP requests Default
- HTTP Authorization Manager
CSV data file settings
CSV data file settings regardless of the interface and performance testing will be frequently used components. It simply reads the data from the file, and then assigned to the variable data used by scripts. Let's look at an example using specific
CSV data file settings
We define a thread group, the number of threads is 2. Add an HTTP request, the HTTP request to add a data file CSV arranged to read data from a.txt. A.txt we first look at the data, as shown below:
Then we read out data into the key variable, and then use the HTTP request $ {key} refer to this variable.
operation result
HTTP header information manager
HTTP header Manager is our common assembly, that is, we often say that the request hearders.
HTTP header information manager instance
HTTP Cookie Manager
We can use HTTP Cookie Manager to our request to add Cookie. About what is Cookie, you can refer me to write another article 20. Cookie and the Session . Here we need to emphasize is that we can check each iteration clear cookies, doing what good is it? In the performance test with a request if the second transmission may carry Cookie, if repeated many times, so our Cookie might become particularly long. If we check each iteration clear cookies, then the next request will not be retained on a cookie request.
HTTP Cache Manager
http cache manager http request to add caching capabilities to its scope, in order to simulate browser caching feature. Each virtual user thread has its own cache. By default, the Cache Manager will use lru algorithm in the cache for each virtual user thread store up to 5000 entries. Using the property "maxsize" modify this value. Note that the higher the value, the more http cache manager memory consumption, so make sure to adjust -xmx jvm options accordingly.
HTTP Request Defaults
HTTP Request Defaults also our common components. Such a scenario, assuming 25 A HTTP request to the server, the general practice is not required in this request are 25 plus A server address. If one day A server address has changed, then we have to change our script might have to change 25 requests server address, to do so it is particularly troublesome, and HTTP Request Defaults solve this trouble.
Default HTTP request instance
operation result
counter
Counter name suggests is in the process of execution of the test will record the number of iterations.
- Starting value start value
- Incremental steps
- Maximum value maximum
- Counter format digital format, can be a number, such as 00000, 00000 is to the beginning
- Variable reference name
Counter Instance
operation result
DNS Cache Manager
FTP requests Default
Figure EENOW, FTP test ~
HTTP Authorization Manager
Authorization Manager enables you to limit the use of web server authentication to specify one or more users login. When you use a browser to access a restricted page, you will see this type of authentication, and the browser displays a login dialog. When faced with such a page, JMeter will send login information. HTTP Authorization Manager Portal
Jane Wang address book software testing
software testing Wang blog address
Welcome attention to micro-channel public number: Wang software testing. Software testing exchange group: 809 111 560
Reprinted Please note that the source, thank you