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

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

View File

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

View File

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