fix(性能测试): --bug=1007710 --user=刘瑞斌 【性能测试】-创建性能测试-压力配置压测时间默认是空 https://www.tapd.cn/55049933/s/1063824

This commit is contained in:
CaptainB 2021-11-03 18:16:53 +08:00 committed by 刘瑞斌
parent cec4d32449
commit 52e4c2ffa8
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ export default {
threadGroups.forEach(tg => {
tg.threadNumber = tg.threadNumber || 10;
tg.duration = tg.duration || 10;
tg.durationHours = Math.floor(tg.duration / 3600);
tg.durationMinutes = Math.floor((tg.duration / 60 % 60));
tg.durationSeconds = Math.floor((tg.duration % 60));
tg.rampUpTime = tg.rampUpTime || 5;
tg.step = tg.step || 5;
tg.rpsLimit = tg.rpsLimit || 10;