refactor(性能测试): 压力配置时ramp过大时图表不予展示
--bug=1009613 --user=刘瑞斌 性能测试压力配置页面上用户时间设置很大时,浏览器直接奔溃 https://www.tapd.cn/55049933/s/1103329
This commit is contained in:
parent
cf56c752c1
commit
848c057cb0
|
@ -626,6 +626,7 @@ export default {
|
||||||
smooth: false,
|
smooth: false,
|
||||||
symbolSize: 5,
|
symbolSize: 5,
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
|
sampling: 'lttb',
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: hexToRgb(color[i % color.length]),
|
color: hexToRgb(color[i % color.length]),
|
||||||
borderColor: 'rgba(137,189,2,0.27)',
|
borderColor: 'rgba(137,189,2,0.27)',
|
||||||
|
@ -633,6 +634,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 timePeriod = Math.floor(tg.rampUpTime / tg.step);
|
||||||
let timeInc = timePeriod;
|
let timeInc = timePeriod;
|
||||||
|
|
|
@ -991,6 +991,7 @@ export default {
|
||||||
ramp_up_time_within: 'In',
|
ramp_up_time_within: 'In',
|
||||||
ramp_up_time_minutes: 'seconds, separate',
|
ramp_up_time_minutes: 'seconds, separate',
|
||||||
ramp_up_time_seconds: 'seconds add VUs',
|
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',
|
iterate_num: 'Iterations',
|
||||||
by_iteration: 'By iterations',
|
by_iteration: 'By iterations',
|
||||||
by_duration: 'By duration',
|
by_duration: 'By duration',
|
||||||
|
|
|
@ -995,6 +995,7 @@ export default {
|
||||||
ramp_up_time_within: '在',
|
ramp_up_time_within: '在',
|
||||||
ramp_up_time_minutes: '秒内,分',
|
ramp_up_time_minutes: '秒内,分',
|
||||||
ramp_up_time_seconds: '秒内增加并发用户',
|
ramp_up_time_seconds: '秒内增加并发用户',
|
||||||
|
ramp_up_tips: 'RampUp 过大,图表渲染卡顿不予展示,这并不影响测试执行,请以实际结果为准',
|
||||||
iterate_num: '迭代次数',
|
iterate_num: '迭代次数',
|
||||||
by_iteration: '按迭代次数',
|
by_iteration: '按迭代次数',
|
||||||
by_duration: '按持续时间',
|
by_duration: '按持续时间',
|
||||||
|
|
|
@ -995,6 +995,7 @@ export default {
|
||||||
ramp_up_time_within: '在',
|
ramp_up_time_within: '在',
|
||||||
ramp_up_time_minutes: '秒內,分',
|
ramp_up_time_minutes: '秒內,分',
|
||||||
ramp_up_time_seconds: '秒內增加並發用戶',
|
ramp_up_time_seconds: '秒內增加並發用戶',
|
||||||
|
ramp_up_tips: 'RampUp 過大,圖表渲染卡頓不予展示,這並不影響測試執行,請以實際結果為準',
|
||||||
iterate_num: '叠代次數',
|
iterate_num: '叠代次數',
|
||||||
by_iteration: '按叠代次數',
|
by_iteration: '按叠代次數',
|
||||||
by_duration: '按持續時間',
|
by_duration: '按持續時間',
|
||||||
|
|
Loading…
Reference in New Issue