refactor(性能测试): 压力配置时ramp过大时图表不予展示

--bug=1009613 --user=刘瑞斌 性能测试压力配置页面上用户时间设置很大时,浏览器直接奔溃 https://www.tapd.cn/55049933/s/1103329
This commit is contained in:
CaptainB 2022-02-12 14:15:16 +08:00 committed by 刘瑞斌
parent bf20f68c15
commit a198bbfb2b
4 changed files with 8 additions and 0 deletions

View File

@ -649,6 +649,7 @@ export default {
smooth: false,
symbolSize: 5,
showSymbol: false,
sampling: 'lttb',
itemStyle: {
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
@ -656,6 +657,10 @@ export default {
},
};
if (tg.rampUpTime > 10000) {
this.$warning(this.$t('load_test.ramp_up_tips'));
return;
}
let timePeriod = Math.floor(tg.rampUpTime / tg.step);
let timeInc = timePeriod;

View File

@ -994,6 +994,7 @@ export default {
ramp_up_time_within: 'In',
ramp_up_time_minutes: 'seconds, separate',
ramp_up_time_seconds: 'seconds add VUs',
ramp_up_tips: 'The RampUp is too large, the chart rendering will not be displayed, this does not affect the test execution, please refer to the actual results',
iterate_num: 'Iterations',
by_iteration: 'By iterations',
by_duration: 'By duration',

View File

@ -998,6 +998,7 @@ export default {
ramp_up_time_within: '在',
ramp_up_time_minutes: '秒内,分',
ramp_up_time_seconds: '秒内增加并发用户',
ramp_up_tips: 'RampUp 过大,图表渲染卡顿不予展示,这并不影响测试执行,请以实际结果为准',
iterate_num: '迭代次数',
by_iteration: '按迭代次数',
by_duration: '按持续时间',

View File

@ -998,6 +998,7 @@ export default {
ramp_up_time_within: '在',
ramp_up_time_minutes: '秒內,分',
ramp_up_time_seconds: '秒內增加並發用戶',
ramp_up_tips: 'RampUp 過大,圖表渲染卡頓不予展示,這並不影響測試執行,請以實際結果為準',
iterate_num: '叠代次數',
by_iteration: '按叠代次數',
by_duration: '按持續時間',