refactor(性能测试): 固定 rampup 单位 (#4465)

Co-authored-by: Captain.B <bin@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-07-07 17:29:07 +08:00 committed by GitHub
parent 29ecd9fd11
commit 8e3a07a142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -871,11 +871,9 @@ public class JmeterDocumentParser implements DocumentParser {
switch (unit) { switch (unit) {
case "M": case "M":
duration = String.valueOf(Long.parseLong(duration) * 60); duration = String.valueOf(Long.parseLong(duration) * 60);
rampUp = String.valueOf(Long.parseLong(rampUp) * 60);
break; break;
case "H": case "H":
duration = String.valueOf(Long.parseLong(duration) * 60 * 60); duration = String.valueOf(Long.parseLong(duration) * 60 * 60);
rampUp = String.valueOf(Long.parseLong(rampUp) * 60 * 60);
break; break;
default: default:
break; break;
@ -988,11 +986,9 @@ public class JmeterDocumentParser implements DocumentParser {
switch (unit) { switch (unit) {
case "M": case "M":
hold = String.valueOf(Long.parseLong(hold) * 60); hold = String.valueOf(Long.parseLong(hold) * 60);
rampUp = String.valueOf(Long.parseLong(rampUp) * 60);
break; break;
case "H": case "H":
hold = String.valueOf(Long.parseLong(hold) * 60 * 60); hold = String.valueOf(Long.parseLong(hold) * 60 * 60);
rampUp = String.valueOf(Long.parseLong(rampUp) * 60 * 60);
break; break;
default: default:
break; break;

View File

@ -607,8 +607,8 @@ export default {
rps_limit: 'RPS上限', rps_limit: 'RPS上限',
input_rps_limit: '请输入限制', input_rps_limit: '请输入限制',
ramp_up_time_within: '在', ramp_up_time_within: '在',
ramp_up_time_minutes: '{0}内,分', ramp_up_time_minutes: '内,分',
ramp_up_time_seconds: '{0}内增加并发用户', ramp_up_time_seconds: '内增加并发用户',
iterate_num: '迭代次数 (次): ', iterate_num: '迭代次数 (次): ',
by_iteration: '按迭代次数', by_iteration: '按迭代次数',
by_duration: '按持续时间', by_duration: '按持续时间',

View File

@ -607,8 +607,8 @@ export default {
rps_limit: 'RPS上限', rps_limit: 'RPS上限',
input_rps_limit: '請輸入限制', input_rps_limit: '請輸入限制',
ramp_up_time_within: '在', ramp_up_time_within: '在',
ramp_up_time_minutes: '{0}內,分', ramp_up_time_minutes: '內,分',
ramp_up_time_seconds: '{0}內增加並發用戶', ramp_up_time_seconds: '內增加並發用戶',
iterate_num: '叠代次數 (次): ', iterate_num: '叠代次數 (次): ',
by_iteration: '按叠代次數', by_iteration: '按叠代次數',
by_duration: '按持續時間', by_duration: '按持續時間',