fix(测试跟踪): 编辑用例报错

This commit is contained in:
chenjianxing 2020-12-04 10:55:51 +08:00
parent 897017be77
commit 5b41a76935
1 changed files with 7 additions and 5 deletions

View File

@ -484,12 +484,14 @@ export default {
item.issues.hasIssues = false; item.issues.hasIssues = false;
} }
item.steptResults = []; item.steptResults = [];
for (let i = 0; i < item.steps.length; i++) { if (item.steps) {
if (item.results[i]) { for (let i = 0; i < item.steps.length; i++) {
item.steps[i].actualResult = item.results[i].actualResult; if (item.results[i]) {
item.steps[i].executeResult = item.results[i].executeResult; item.steps[i].actualResult = item.results[i].actualResult;
item.steps[i].executeResult = item.results[i].executeResult;
}
item.steptResults.push(item.steps[i]);
} }
item.steptResults.push(item.steps[i]);
} }
this.testCase = item; this.testCase = item;
this.initTest(); this.initTest();