database using JDBC connection jmeter

jmeter using JDBC database connection configuration elements, required to query the data through the sql statement

Configuration element name: JDBC connection configuration, prior to use, to be introduced mysql-connector-java-5.1.41-bin.jar package, the lib jmeter installation directory address, can be used to restart the jmeter

1. Add the original configuration JDBC connection configuration parameters

2. Add samples: JDBC request, sql query statement input

  variable name have to be consistent with the original configuration

3. Access database data: jdbc return value, the behavior of the first field names, the second row is the start value, 0 represents the first row $ {itemid_0} = sales_bill_id, so the field is applied $ {itemid_1} = 475563, $ { itemid_1,2,3,4, ......}

 

So you get the data from the database

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/cty136/p/11305358.html