Jmeter (3)_Configuration components

HTTP Cookie Manager is used to store user information generated by the browser

Clear Cookies each Iteration: Clears cookies each time the request is iterated, and any cookies defined in the GUI will not be cleared.
Implementation:默认HC4CookieHandler
Cookie Policy: The cookie policy that will be used to manage cookies
 
HTTP Header Manager header management

Common request headers

HTTP Cache Manager Cache Manager (simulates browser behavior)

Clear cache each iteration
Clear cache on every request
Use Cache Control/Expires header when processing GET requests
If the "Use Cache-Control/Expires header" option is selected, the Cache-Control/Expires value is checked against the current time. If the request is a GET request and the timestamp is in the future, the sampler will return immediately without requesting the URL from the remote server. This is to simulate browser behavior

HTTP Request Defaults

basic
Basic information, the value of the default http request, such as server, ip, port, Protocol, and even path, parameters, can be set
For the new http request below, you only need to fill in the key data of the request, such as path, parameters
 
JDBC Connection Configuration (Database Configuration Element)

Variable Nam

The name of the database connection pool, because a test plan can have multiple JDBC Connection Configurations, and each can take a different name. In the jdbc request, the appropriate connection pool is selected for use by this name.

Connection Pool Connetion: Connection pool parameter configuration, basically keep the default, modify it as needed;
Max Number of Connections: The maximum number of connections; if doing performance, it is recommended to fill in 0, if the default is 10, the maximum number of connections can only be 10;
Max Wait(ms): the maximum waiting time, in milliseconds;
Time Between Eviction Runs(ms): There are idle threads, and unused threads are released;
Auto Commit: automatic commit, the default is true, such as when modifying the database, automatically commit;
Transaction isolation: transaction isolation (default);
Connection Validation by pool: Verify the connection pool;
Test While idle:
Soft Min Evictable Idle Time(ms):
Validation Query:
Database Connection Configuration: Database connection configuration:
Database URL: database connection url; jdbc:mysql://localhost:3306/dbname, ipaddr:3306
JDBC Driver class: database driver; com.mysql.jdbc.Driver
Username: User
Password: password
 
Attached are some commonly used, unused database connection configurations (see the official website for details: http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Connection_Configuration):
MySQL
Driver class
com.mysql.jdbc.Driver
Database URL
jdbc:mysql://host[:port]/dbname
PostgreSQL
Driver class
org.postgresql.Driver
Database URL
jdbc:postgresql:{dbname}
Oracle
Driver class
oracle.jdbc.OracleDriver
Database URL
jdbc:oracle:thin:@//host:port/service OR jdbc:oracle:thin:@(description=(address=(host={mc-name})(protocol=tcp)(port={port-no}))(connect_data=(sid={sid})))
Microsoft SQL Server (MS JDBC driver)
Driver class
com.microsoft.sqlserver.jdbc.SQLServerDriver
Database URL
jdbc:sqlserver://host:port;DatabaseName=dbname
 
Example:
 
 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325093998&siteId=291194637