feat(UI测试): UI编辑页支持生成报告
This commit is contained in:
parent
a14582f9f9
commit
8c0c74c6c4
|
@ -545,7 +545,7 @@ export default {
|
|||
return getCurrentProjectID();
|
||||
},
|
||||
isUi() {
|
||||
return this.report.reportType.startsWith("UI");
|
||||
return this.report.reportType && this.report.reportType.startsWith("UI");
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ export default {
|
|||
}
|
||||
},
|
||||
isUi() {
|
||||
return this.report.reportType.startsWith("UI");
|
||||
return this.report.reportType && this.report.reportType.startsWith("UI");
|
||||
},
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -273,7 +273,7 @@ export default {
|
|||
return this.content.errorCode + " / " + this.content.totalAssertions;
|
||||
},
|
||||
isUi() {
|
||||
return this.report.reportType.startsWith("UI");
|
||||
return this.report.reportType && this.report.reportType.startsWith("UI");
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
isUi() {
|
||||
return this.report.reportType.startsWith("UI");
|
||||
return this.report.reportType && this.report.reportType.startsWith("UI");
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -67,7 +67,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
label() {
|
||||
return this.command.label ? commandDefinition[this.command.label].cnName : '';
|
||||
return this.command.label && commandDefinition[this.command.label] ? commandDefinition[this.command.label].cnName : '';
|
||||
},
|
||||
isUnexecute() {
|
||||
return this.result && this.result.status === 'unexecute';
|
||||
|
|
Loading…
Reference in New Issue