性能测试压力配置添加参数校验
This commit is contained in:
parent
74eacb1bd4
commit
5f1ff0753f
|
@ -304,6 +304,12 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!this.threadNumber || !this.duration || !this.rampUpTime || !this.step || !this.rpsLimit) {
|
||||
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
|
||||
this.$emit('changeActive', '1');
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
convertProperty() {
|
||||
|
|
|
@ -268,6 +268,7 @@ export default {
|
|||
'download_log_file': 'Download',
|
||||
'user_name': 'Creator',
|
||||
'special_characters_are_not_supported': 'Test name does not support special characters',
|
||||
'pressure_config_params_is_empty': 'Pressure configuration parameters cannot be empty!'
|
||||
},
|
||||
api_test: {
|
||||
creator: "Creator",
|
||||
|
|
|
@ -268,6 +268,7 @@ export default {
|
|||
'pressure_prediction_chart': '压力预估图',
|
||||
'user_name': '创建人',
|
||||
'special_characters_are_not_supported': '测试名称不支持特殊字符',
|
||||
'pressure_config_params_is_empty': '压力配置参数不能为空!'
|
||||
},
|
||||
api_test: {
|
||||
creator: "创建人",
|
||||
|
|
|
@ -266,6 +266,7 @@ export default {
|
|||
'pressure_prediction_chart': '壓力預估圖',
|
||||
'user_name': '創建人',
|
||||
'special_characters_are_not_supported': '測試名稱不支持特殊字符',
|
||||
'pressure_config_params_is_empty': '壓力配置參數不能為空!'
|
||||
},
|
||||
api_test: {
|
||||
title: "測試",
|
||||
|
|
Loading…
Reference in New Issue