Jmeter JDBC executes multiple SQL

Today, when writing an automated regression script, I need to execute multiple sqls in jmeter's jdbc request. I searched for some articles in Baidu, and found that it didn't work according to the steps provided on the Internet. Later, I found that the author's screenshot was misleading. In order to Let the following students avoid detours. Here I will mention two key steps:

1. Right-click [Test Plan] - [Add] - [Configuration Original] - [JDBC Connection Configuration] When configuring the DataBase URL, add the allowMultiQueries=true parameter such as:

jdbc:mysql://192.168.0.183:3306/mysql?allowMultiQueries=true

2. Right-click [Thread Group] - [Add] - [JDBC Request] In the jdbc request, the Quer Type must select Callable statement. When using Callablestatement, multiple SQLs can be included at a time, but non-ending SQLs must be added with "" ;" 

Guess you like

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