diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java index 8369fd49af..b51d5572f7 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java @@ -272,6 +272,7 @@ public class PerformanceReportService { if (StringUtils.isEmpty(content)) { return null; } + return JSON.parseObject(content, SamplesRecord.class); } diff --git a/performance-test/frontend/src/business/report/PerformanceReportView.vue b/performance-test/frontend/src/business/report/PerformanceReportView.vue index 7a4f674ee7..f4419775d4 100644 --- a/performance-test/frontend/src/business/report/PerformanceReportView.vue +++ b/performance-test/frontend/src/business/report/PerformanceReportView.vue @@ -307,7 +307,6 @@ export default { checkReportStatus(status) { switch (status) { case 'Error': - // this.$warning(this.$t('report.generation_error')); this.active = '4'; break; case 'Starting': @@ -368,6 +367,7 @@ export default { this.$error(e.data); return; } + this.checkSampleResults(this.report.id); this.$set(this.report, "status", 'Running'); this.status = 'Running'; this.initReportTimeInfo(); diff --git a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue index a488173079..2d5a7abd30 100644 --- a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue +++ b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue @@ -17,7 +17,7 @@ min-width="180"> @@ -137,7 +137,6 @@ export default { }, openRecord(row) { let drawerSamples = this.errorSamples.samples[row.name][row.code]; - console.info(drawerSamples); this.$refs.sampleDrawer.openRecord(drawerSamples); }, },