diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index 975cd599e8..9e61574651 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -604,16 +604,20 @@ export default { this.$emit('changeActive', '1'); return false; } - for (let i = 0; i < this.threadGroups.length; i++) { - if (!this.threadGroups[i].threadNumber || !this.threadGroups[i].duration - || !this.threadGroups[i].rampUpTime || !this.threadGroups[i].step || !this.threadGroups[i].iterateNum) { + let tg = this.threadGroups[i]; + tg.durationHours = tg.durationHours || 0; + tg.durationMinutes = tg.durationMinutes || 0; + tg.durationSeconds = tg.durationSeconds || 0; + this.getDuration(tg); + if (!tg.threadNumber || !tg.duration + || !tg.rampUpTime || !tg.step || !tg.iterateNum) { this.$warning(this.$t('load_test.pressure_config_params_is_empty')); this.$emit('changeActive', '1'); return false; } - if (this.threadGroups[i].rpsLimitEnable && !this.threadGroups[i].rpsLimit) { + if (tg.rpsLimitEnable && !tg.rpsLimit) { this.$warning(this.$t('load_test.pressure_config_params_is_empty')); this.$emit('changeActive', '1'); return false;