fix: --bug=1007382 --user=刘瑞斌 【性能测试】执行提示参数不能为空,但是都填写了 https://www.tapd.cn/55049933/s/1061235
This commit is contained in:
parent
17d52a6e19
commit
d229998785
|
@ -593,13 +593,13 @@ export default {
|
||||||
}
|
}
|
||||||
for (let i = 0; i < this.threadGroups.length; i++) {
|
for (let i = 0; i < this.threadGroups.length; i++) {
|
||||||
let tg = this.threadGroups[i];
|
let tg = this.threadGroups[i];
|
||||||
if (tg.enabled === 'false' ) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
tg.durationHours = tg.durationHours || 0;
|
tg.durationHours = tg.durationHours || 0;
|
||||||
tg.durationMinutes = tg.durationMinutes || 0;
|
tg.durationMinutes = tg.durationMinutes || 0;
|
||||||
tg.durationSeconds = tg.durationSeconds || 0;
|
tg.durationSeconds = tg.durationSeconds || 0;
|
||||||
this.getDuration(tg);
|
this.getDuration(tg);
|
||||||
|
if (tg.enabled === 'false' ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!tg.threadNumber || !tg.duration
|
if (!tg.threadNumber || !tg.duration
|
||||||
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
|
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
|
||||||
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
|
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
|
||||||
|
|
|
@ -594,13 +594,13 @@ export default {
|
||||||
|
|
||||||
for (let i = 0; i < this.threadGroups.length; i++) {
|
for (let i = 0; i < this.threadGroups.length; i++) {
|
||||||
let tg = this.threadGroups[i];
|
let tg = this.threadGroups[i];
|
||||||
if (tg.enabled === 'false' ) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
tg.durationHours = tg.durationHours || 0;
|
tg.durationHours = tg.durationHours || 0;
|
||||||
tg.durationMinutes = tg.durationMinutes || 0;
|
tg.durationMinutes = tg.durationMinutes || 0;
|
||||||
tg.durationSeconds = tg.durationSeconds || 0;
|
tg.durationSeconds = tg.durationSeconds || 0;
|
||||||
this.getDuration(tg);
|
this.getDuration(tg);
|
||||||
|
if (tg.enabled === 'false' ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!tg.threadNumber || !tg.duration
|
if (!tg.threadNumber || !tg.duration
|
||||||
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
|
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
|
||||||
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
|
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
|
||||||
|
|
Loading…
Reference in New Issue