Simple application of database in Jmeter

Note:
When writing scripts, many times you cannot get the desired value directly from the corresponding data, and you need to query the database; or, after some interfaces are executed, you need to modify the data in a certain table in the database. In this case, you need to SQL is used to help complete the script.

1. When you need to execute SQL after executing part of the script, first add the database request plug-in, as shown in the figure below to configure it;
Insert image description here
Insert image description here
Note:
The database application name has been explained in the previous article, click here ;
Insert image description here
2. Quote the value queried in the data ;
Note: When quoting, the value of the referenced database must be + "_1" after the name, as shown in the figure: stone_id_1.
Insert image description here

Guess you like

Origin blog.csdn.net/bigge_L/article/details/109515866