feat(UI测试): UI编辑页支持生成报告

This commit is contained in:
chenjianxing 2022-04-01 14:39:30 +08:00 committed by jianxing
parent a14582f9f9
commit 8c0c74c6c4
5 changed files with 5 additions and 5 deletions

View File

@ -545,7 +545,7 @@ export default {
return getCurrentProjectID(); return getCurrentProjectID();
}, },
isUi() { isUi() {
return this.report.reportType.startsWith("UI"); return this.report.reportType && this.report.reportType.startsWith("UI");
}, },
} }
} }

View File

@ -95,7 +95,7 @@ export default {
} }
}, },
isUi() { isUi() {
return this.report.reportType.startsWith("UI"); return this.report.reportType && this.report.reportType.startsWith("UI");
}, },
}, },
data() { data() {

View File

@ -273,7 +273,7 @@ export default {
return this.content.errorCode + " / " + this.content.totalAssertions; return this.content.errorCode + " / " + this.content.totalAssertions;
}, },
isUi() { isUi() {
return this.report.reportType.startsWith("UI"); return this.report.reportType && this.report.reportType.startsWith("UI");
}, },
}, },
} }

View File

@ -50,7 +50,7 @@ export default {
}, },
computed: { computed: {
isUi() { isUi() {
return this.report.reportType.startsWith("UI"); return this.report.reportType && this.report.reportType.startsWith("UI");
}, },
}, },
methods: { methods: {

View File

@ -67,7 +67,7 @@ export default {
}, },
computed: { computed: {
label() { label() {
return this.command.label ? commandDefinition[this.command.label].cnName : ''; return this.command.label && commandDefinition[this.command.label] ? commandDefinition[this.command.label].cnName : '';
}, },
isUnexecute() { isUnexecute() {
return this.result && this.result.status === 'unexecute'; return this.result && this.result.status === 'unexecute';