fix(接口测试): 修复事物控制器多层嵌套结果错误问题

--bug=1014984 --user=赵勇 [接口测试]github#15873]事务控制器下添加事务控制器,场景调试内层事务控制器下步骤调试一直测试中,测试报告显示未执行 https://www.tapd.cn/55049933/s/1203905
This commit is contained in:
fit2-zhao 2022-07-19 10:53:11 +08:00 committed by f2c-ci-robot[bot]
parent 316ea534b2
commit 11e2d5985f
1 changed files with 1 additions and 1 deletions

View File

@ -939,7 +939,7 @@ export default {
if (data.method === 'Request' && data.subRequestResults && data.subRequestResults.length > 0) { if (data.method === 'Request' && data.subRequestResults && data.subRequestResults.length > 0) {
data.subRequestResults.forEach(subItem => { data.subRequestResults.forEach(subItem => {
if (item.data && item.data.id + "_" + item.data.parentIndex === subItem.resourceId) { if (item.data && item.data.id + "_" + item.data.parentIndex === subItem.resourceId) {
subItem.requestResult.console = data.responseResult.console; subItem.responseResult.console = data.responseResult.console;
item.data.requestResult.push(subItem); item.data.requestResult.push(subItem);
// //
this.resultEvaluation(subItem.resourceId, subItem.success); this.resultEvaluation(subItem.resourceId, subItem.success);