JDBC Connection Configuration
Database URL: jdbc:mysql:// database address/library name
JDBC Driver class:com.mysql.jdbc.Driver
Username: account number
Password: Password
JDBC Request
field meaning
field | meaning |
Variable Name Bound to Pool |
The name of the database connection pool configuration |
Query Type |
Type of sql statement |
SQL Query |
|
Parameter values |
Variable values that need to be passed, multiple variables are separated by , |
Parameter types |
variable type |
Variable Names |
|
Result Variable Name |
An Object variable stores all return values |
Query timeout(s) |
Timeout time; default 0, means infinite time |
Limit ResultSet |
Similar to limit, limit the number of rows returned by the sql statement in the result set |
Handle ResultSet |
How to define the result set returned by callable statements; the default is stored as a string |
Description: Variable Name in JDBC Connection Configuration is the same as Variable Name in JDBC request
Add loop controller:
Put the target interface under the loop controller, and add a counter, because the value we take is based on ${mac_N}, then this N can be obtained by incrementing the counter
Add counter:
Get nested functions via function helpers:
The function __V can be used to execute the variable name expression and return the execution result. It can be used to execute nested function references (currently not supported by JMeter).