fix: --bug=1007382 --user=刘瑞斌 【性能测试】执行提示参数不能为空,但是都填写了 https://www.tapd.cn/55049933/s/1061235

This commit is contained in:
CaptainB 2021-10-28 17:13:17 +08:00 committed by 刘瑞斌
parent 17d52a6e19
commit d229998785
2 changed files with 6 additions and 6 deletions

View File

@ -593,13 +593,13 @@ export default {
}
for (let i = 0; i < this.threadGroups.length; i++) {
let tg = this.threadGroups[i];
if (tg.enabled === 'false' ) {
continue;
}
tg.durationHours = tg.durationHours || 0;
tg.durationMinutes = tg.durationMinutes || 0;
tg.durationSeconds = tg.durationSeconds || 0;
this.getDuration(tg);
if (tg.enabled === 'false' ) {
continue;
}
if (!tg.threadNumber || !tg.duration
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));

View File

@ -594,13 +594,13 @@ export default {
for (let i = 0; i < this.threadGroups.length; i++) {
let tg = this.threadGroups[i];
if (tg.enabled === 'false' ) {
continue;
}
tg.durationHours = tg.durationHours || 0;
tg.durationMinutes = tg.durationMinutes || 0;
tg.durationSeconds = tg.durationSeconds || 0;
this.getDuration(tg);
if (tg.enabled === 'false' ) {
continue;
}
if (!tg.threadNumber || !tg.duration
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));