refactor(性能测试): 固定 rampup 单位 (#4465)
Co-authored-by: Captain.B <bin@fit2cloud.com>
This commit is contained in:
parent
29ecd9fd11
commit
8e3a07a142
|
@ -871,11 +871,9 @@ public class JmeterDocumentParser implements DocumentParser {
|
|||
switch (unit) {
|
||||
case "M":
|
||||
duration = String.valueOf(Long.parseLong(duration) * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60);
|
||||
break;
|
||||
case "H":
|
||||
duration = String.valueOf(Long.parseLong(duration) * 60 * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60 * 60);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -988,11 +986,9 @@ public class JmeterDocumentParser implements DocumentParser {
|
|||
switch (unit) {
|
||||
case "M":
|
||||
hold = String.valueOf(Long.parseLong(hold) * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60);
|
||||
break;
|
||||
case "H":
|
||||
hold = String.valueOf(Long.parseLong(hold) * 60 * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60 * 60);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -607,8 +607,8 @@ export default {
|
|||
rps_limit: 'RPS上限:',
|
||||
input_rps_limit: '请输入限制',
|
||||
ramp_up_time_within: '在',
|
||||
ramp_up_time_minutes: '{0}内,分',
|
||||
ramp_up_time_seconds: '{0}内增加并发用户',
|
||||
ramp_up_time_minutes: '秒内,分',
|
||||
ramp_up_time_seconds: '秒内增加并发用户',
|
||||
iterate_num: '迭代次数 (次): ',
|
||||
by_iteration: '按迭代次数',
|
||||
by_duration: '按持续时间',
|
||||
|
|
|
@ -607,8 +607,8 @@ export default {
|
|||
rps_limit: 'RPS上限:',
|
||||
input_rps_limit: '請輸入限制',
|
||||
ramp_up_time_within: '在',
|
||||
ramp_up_time_minutes: '{0}內,分',
|
||||
ramp_up_time_seconds: '{0}內增加並發用戶',
|
||||
ramp_up_time_minutes: '秒內,分',
|
||||
ramp_up_time_seconds: '秒內增加並發用戶',
|
||||
iterate_num: '叠代次數 (次): ',
|
||||
by_iteration: '按叠代次數',
|
||||
by_duration: '按持續時間',
|
||||
|
|
Loading…
Reference in New Issue