fix(接口测试): 修复请求步骤添加等待控制器显示异常的问题

修复请求步骤添加等待控制器显示异常的问题
This commit is contained in:
song-tianyang 2022-11-21 20:35:35 +08:00 committed by 建国
parent 8e0c28e75f
commit 45ac274062
2 changed files with 20 additions and 1 deletions

View File

@ -916,11 +916,22 @@ export default {
array = this.scenarioDefinition; array = this.scenarioDefinition;
} }
let isLeaf = true; let isLeaf = true;
let nodeType = '';
if (node) {
nodeType = node.type;
}
array.forEach((item) => { array.forEach((item) => {
item.checkBox = false; item.checkBox = false;
if (isLeaf && this.stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1) { if (isLeaf && this.stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1) {
isLeaf = false; isLeaf = false;
} else if (
isLeaf &&
item.type === 'ConstantTimer' &&
this.stepFilter.get('AllSamplerProxy').indexOf(nodeType) === -1
) {
isLeaf = false;
} }
if (item.hashTree && item.hashTree.length > 0) { if (item.hashTree && item.hashTree.length > 0) {
this.commandTreeNode(item, item.hashTree); this.commandTreeNode(item, item.hashTree);
} else { } else {

View File

@ -70,7 +70,15 @@ export function STEP() {
['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']], ['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']],
[ [
'ALlSamplerStep', 'ALlSamplerStep',
['JSR223PreProcessor', 'JSR223PostProcessor', 'JDBCPreProcessor', 'JDBCPostProcessor', 'Assertions', 'Extract'], [
'JSR223PreProcessor',
'JSR223PostProcessor',
'JDBCPreProcessor',
'JDBCPostProcessor',
'Assertions',
'Extract',
'ConstantTimer',
],
], ],
[ [
'AllCanExecType', 'AllCanExecType',