feat(UI测试): UI报告分享
This commit is contained in:
parent
45c9a5caaf
commit
a14582f9f9
|
@ -482,14 +482,14 @@ export default {
|
|||
},
|
||||
handleExport() {
|
||||
if (this.report.reportVersion && this.report.reportVersion > 1) {
|
||||
if (this.report.reportType === 'API_INTEGRATED') {
|
||||
if (this.report.reportType === 'API_INTEGRATED' || this.report.reportType === 'UI_INTEGRATED') {
|
||||
let scenario = {name: "", requestResults: []};
|
||||
this.content.scenarios = [scenario];
|
||||
this.formatExportApi(this.fullTreeNodes, scenario);
|
||||
} else {
|
||||
if (this.fullTreeNodes) {
|
||||
this.fullTreeNodes.forEach(item => {
|
||||
if (item.type === "scenario") {
|
||||
if (item.type === "scenario" || item.type === "UiScenario") {
|
||||
let scenario = {name: item.label, requestResults: []};
|
||||
if (this.content.scenarios && this.content.scenarios.length > 0) {
|
||||
this.content.scenarios.push(scenario);
|
||||
|
@ -544,6 +544,9 @@ export default {
|
|||
projectId() {
|
||||
return getCurrentProjectID();
|
||||
},
|
||||
isUi() {
|
||||
return this.report.reportType.startsWith("UI");
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
</el-button>
|
||||
|
||||
<el-popover
|
||||
v-if="!isPlan && (!debug || exportFlag) && !isTemplate && !isUi"
|
||||
v-if="!isPlan && (!debug || exportFlag) && !isTemplate"
|
||||
v-permission="['PROJECT_PERFORMANCE_REPORT:READ+EXPORT']"
|
||||
style="margin-right: 10px;float: right;"
|
||||
placement="bottom"
|
||||
|
@ -95,7 +95,7 @@ export default {
|
|||
}
|
||||
},
|
||||
isUi() {
|
||||
return this.$route && this.$route.meta && this.$route.meta.isUi;
|
||||
return this.report.reportType.startsWith("UI");
|
||||
},
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -273,7 +273,7 @@ export default {
|
|||
return this.content.errorCode + " / " + this.content.totalAssertions;
|
||||
},
|
||||
isUi() {
|
||||
return this.$route && this.$route.meta && this.$route.meta.isUi;
|
||||
return this.report.reportType.startsWith("UI");
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
isUi() {
|
||||
return this.$route && this.$route.meta && this.$route.meta.isUi;
|
||||
return this.report.reportType.startsWith("UI");
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -23,7 +23,7 @@ export function STEP() {
|
|||
['CustomizeReq', getDefaultSamplerMenu()],
|
||||
['MaxSamplerProxy', getDefaultSamplerMenu()],
|
||||
['GenericController', getAll()],
|
||||
['AllSamplerProxy', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'Sampler', 'AbstractSampler', 'JSR223Processor', 'API']],
|
||||
['AllSamplerProxy', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'Sampler', 'AbstractSampler', 'JSR223Processor', 'API', 'MsUiCommand']],
|
||||
['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']],
|
||||
['ALlSamplerStep', ['JSR223PreProcessor', 'JSR223PostProcessor', 'JDBCPreProcessor', 'JDBCPostProcessor', 'Assertions', 'Extract', 'ConstantTimer']],
|
||||
['AllCanExecType', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'JSR223Processor', 'AbstractSampler']]]);
|
||||
|
|
Loading…
Reference in New Issue