fix(测试跟踪): fix 提缺陷生成D实际结果不正确
This commit is contained in:
parent
b37d6a15f2
commit
9692b8d2a5
|
@ -428,14 +428,14 @@
|
||||||
if (this.testCase.issues.hasIssues) {
|
if (this.testCase.issues.hasIssues) {
|
||||||
let desc = this.addPLabel('[' + this.$t('test_track.plan_view.operate_step') + ']');
|
let desc = this.addPLabel('[' + this.$t('test_track.plan_view.operate_step') + ']');
|
||||||
let result = this.addPLabel('[' + this.$t('test_track.case.expected_results') + ']');
|
let result = this.addPLabel('[' + this.$t('test_track.case.expected_results') + ']');
|
||||||
let executeResult = this.addPLabel('[' + this.$t('test_track.plan_view.actual_result') + ']');
|
let actualResult = this.addPLabel('[' + this.$t('test_track.plan_view.actual_result') + ']');
|
||||||
this.testCase.steps.forEach(step => {
|
this.testCase.steps.forEach(step => {
|
||||||
let stepPrefix = this.$t('test_track.plan_view.step') + step.num + ':';
|
let stepPrefix = this.$t('test_track.plan_view.step') + step.num + ':';
|
||||||
desc += this.addPLabel(stepPrefix + (step.desc == undefined ? '' : step.desc));
|
desc += this.addPLabel(stepPrefix + (step.desc == undefined ? '' : step.desc));
|
||||||
result += this.addPLabel(stepPrefix + (step.result == undefined ? '' : step.result));
|
result += this.addPLabel(stepPrefix + (step.result == undefined ? '' : step.result));
|
||||||
executeResult += this.addPLabel(stepPrefix + (step.executeResult == undefined ? '' : step.executeResult));
|
actualResult += this.addPLabel(stepPrefix + (step.actualResult == undefined ? '' : step.actualResult));
|
||||||
});
|
});
|
||||||
this.testCase.issues.content = desc + this.addPLabel('') + result + this.addPLabel('') + executeResult + this.addPLabel('');
|
this.testCase.issues.content = desc + this.addPLabel('') + result + this.addPLabel('') + actualResult + this.addPLabel('');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addPLabel(str) {
|
addPLabel(str) {
|
||||||
|
|
Loading…
Reference in New Issue