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 9dc614f3b2..a2a11831ba 100644 --- a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue +++ b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue @@ -39,7 +39,7 @@ label="Response Code" min-width="180"> @@ -79,6 +79,9 @@ export default { this.initTableData(); }, methods: { + isSuccessRspCode(code) { + return !(Number.isNaN(Number(code)) || 300 <= Number(code) || Number(code) < 200); + }, initTableData() { if (this.errorSamples && this.errorSamples.sampleCount) { let allSampleCount = 0; diff --git a/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue b/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue index b804d9dfa0..8b62ce0dbf 100644 --- a/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue +++ b/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue @@ -46,7 +46,8 @@ export default { for (let sampleName in this.samples.sampleCount) { let sampleCountObj = this.samples.sampleCount[sampleName]; for (let code in sampleCountObj) { - if (code !== '200') { + + if (Number.isNaN(Number(code)) || 300 <= Number(code) || Number(code) < 200) { if (!this.errorSamples.sampleCount[sampleName]) { this.errorSamples.sampleCount[sampleName] = {}; this.errorSamples.samples[sampleName] = {};