feat(接口测试): 支持sqlserver

This commit is contained in:
chenjianxing 2020-09-17 11:02:16 +08:00
parent 9918d77e51
commit 21ad96c691
4 changed files with 10 additions and 3 deletions

View File

@ -171,6 +171,13 @@
<version>${jmeter.version}</version> <version>${jmeter.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>7.4.1.jre8</version>
</dependency>
<!-- Zookeeper --> <!-- Zookeeper -->
<dependency> <dependency>
<groupId>org.apache.dubbo</groupId> <groupId>org.apache.dubbo</groupId>

View File

@ -541,7 +541,7 @@ export class ConfigCenter extends BaseConfig {
} }
export class DatabaseConfig extends BaseConfig { export class DatabaseConfig extends BaseConfig {
static DRIVER_CLASS = ["com.mysql.jdbc.Driver"]; static DRIVER_CLASS = ["com.mysql.jdbc.Driver","com.microsoft.sqlserver.jdbc.SQLServerDriver"];
constructor(options) { constructor(options) {
super(); super();

View File

@ -536,7 +536,7 @@ export default {
form_description: "如果当前配置项无值,则取场景配置项的值", form_description: "如果当前配置项无值,则取场景配置项的值",
}, },
sql: { sql: {
dataSource: "数据源", dataSource: "数据源名称",
sql_script: "SQL脚本", sql_script: "SQL脚本",
timeout: "超时时间(ms)", timeout: "超时时间(ms)",
database_driver: "数据库驱动", database_driver: "数据库驱动",

View File

@ -536,7 +536,7 @@ export default {
form_description: "如果當前配置項無值,則取場景配置項的值", form_description: "如果當前配置項無值,則取場景配置項的值",
}, },
sql: { sql: {
dataSource: "數據源", dataSource: "數據源名稱",
sql_script: "SQL腳本", sql_script: "SQL腳本",
timeout: "超時時間(ms)", timeout: "超時時間(ms)",
database_driver: "數據庫驅動", database_driver: "數據庫驅動",