feat(UI测试): UI编辑页支持生成报告
This commit is contained in:
parent
a14582f9f9
commit
8c0c74c6c4
|
@ -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");
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue