diff --git a/frontend/src/business/components/api/test/model/JMX.js b/frontend/src/business/components/api/test/model/JMX.js index 1e036808d0..22d41dfea8 100644 --- a/frontend/src/business/components/api/test/model/JMX.js +++ b/frontend/src/business/components/api/test/model/JMX.js @@ -350,7 +350,7 @@ export class HTTPSamplerArguments extends Element { let collectionProp = this.collectionProp('Arguments.arguments'); this.args.forEach(arg => { - if (arg.enable === true) { // 非禁用的条件加入执行 + if (arg.enable === true || arg.enable === undefined) { // 非禁用的条件加入执行 let elementProp = collectionProp.elementProp(arg.name, 'HTTPArgument'); elementProp.boolProp('HTTPArgument.always_encode', arg.encode, true); elementProp.boolProp('HTTPArgument.use_equals', arg.equals, true); @@ -520,7 +520,7 @@ export class HeaderManager extends DefaultTestElement { let collectionProp = this.collectionProp('HeaderManager.headers'); this.headers.forEach(header => { - if (header.enable === true) { + if (header.enable === true || header.enable === undefined) { let elementProp = collectionProp.elementProp('', 'Header'); elementProp.stringProp('Header.name', header.name); elementProp.stringProp('Header.value', header.value); @@ -576,7 +576,7 @@ export class Arguments extends DefaultTestElement { let collectionProp = this.collectionProp('Arguments.arguments'); this.args.forEach(arg => { - if (arg.enable === true) { // 非禁用的条件加入执行 + if (arg.enable === true || arg.enable === undefined) { // 非禁用的条件加入执行 let elementProp = collectionProp.elementProp(arg.name, 'Argument'); elementProp.stringProp('Argument.name', arg.name); elementProp.stringProp('Argument.value', arg.value); @@ -601,7 +601,7 @@ export class ElementArguments extends Element { let collectionProp = this.collectionProp('Arguments.arguments'); if (args) { args.forEach(arg => { - if (arg.enable === true) { // 非禁用的条件加入执行 + if (arg.enable === true || arg.enable === undefined) { // 非禁用的条件加入执行 let elementProp = collectionProp.elementProp(arg.name, 'Argument'); elementProp.stringProp('Argument.name', arg.name); elementProp.stringProp('Argument.value', arg.value); diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index f2d5a342c8..0a375848d0 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit f2d5a342c82e629f510550d5778d752bb73bf5e7 +Subproject commit 0a375848d034d20eaf05caf11769e1c75c39235c