fix(接口测试): sql自定义变量
This commit is contained in:
parent
cccb100ed0
commit
79d9926e53
|
@ -477,14 +477,14 @@ export class SqlRequest extends Request {
|
||||||
this.useEnvironment = options.useEnvironment;
|
this.useEnvironment = options.useEnvironment;
|
||||||
this.resultVariable = options.resultVariable;
|
this.resultVariable = options.resultVariable;
|
||||||
this.variableNames = options.variableNames;
|
this.variableNames = options.variableNames;
|
||||||
this.variables = options.variables || [];
|
this.variables = [];
|
||||||
this.debugReport = undefined;
|
this.debugReport = undefined;
|
||||||
this.dataSource = options.dataSource;
|
this.dataSource = options.dataSource;
|
||||||
this.query = options.query;
|
this.query = options.query;
|
||||||
// this.queryType = options.queryType;
|
// this.queryType = options.queryType;
|
||||||
this.queryTimeout = options.queryTimeout || 60000;
|
this.queryTimeout = options.queryTimeout || 60000;
|
||||||
|
|
||||||
this.sets({args: KeyValue, attachmentArgs: KeyValue}, options);
|
this.sets({args: KeyValue, attachmentArgs: KeyValue, variables: KeyValue}, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
isValid() {
|
isValid() {
|
||||||
|
@ -1117,7 +1117,6 @@ class JMXGenerator {
|
||||||
if (request.enable) {
|
if (request.enable) {
|
||||||
if (!request.isValid()) return;
|
if (!request.isValid()) return;
|
||||||
let sampler;
|
let sampler;
|
||||||
|
|
||||||
if (request instanceof DubboRequest) {
|
if (request instanceof DubboRequest) {
|
||||||
sampler = new DubboSample(request.name || "", new JMXDubboRequest(request, scenario.dubboConfig));
|
sampler = new DubboSample(request.name || "", new JMXDubboRequest(request, scenario.dubboConfig));
|
||||||
} else if (request instanceof HttpRequest) {
|
} else if (request instanceof HttpRequest) {
|
||||||
|
|
Loading…
Reference in New Issue