fix(接口测试): 接口自动化场景步骤限制 200 条步骤内使用原生渲染,超过 200 条步骤使用虚拟树渲染

This commit is contained in:
baiqi 2023-11-03 16:18:15 +08:00 committed by Craftsman
parent ad7484c71e
commit 5e866b2a22
1 changed files with 9 additions and 3 deletions

View File

@ -2195,9 +2195,8 @@ export default {
});
}
},
dataProcessing(stepArray) {
dataProcessing(stepArray, parent = null) {
if (stepArray) {
this.stepCount += stepArray.length;
for (let i in stepArray) {
let typeArray = ['JDBCPostProcessor', 'JDBCSampler', 'JDBCPreProcessor'];
if (typeArray.indexOf(stepArray[i].type) !== -1) {
@ -2218,8 +2217,15 @@ export default {
},
};
}
if (
this.stepFilter.get('ALlSamplerStep').indexOf(stepArray[i].type) === -1 ||
!parent ||
this.stepFilter.get('AllSamplerProxy').indexOf(parent.type) === -1
) {
this.stepCount += 1;
}
if (stepArray[i].hashTree.length > 0) {
this.dataProcessing(stepArray[i].hashTree);
this.dataProcessing(stepArray[i].hashTree, stepArray[i]);
}
}
}