性能测试压力配置添加参数校验

This commit is contained in:
shiziyuan9527 2020-06-16 15:29:33 +08:00
parent 74eacb1bd4
commit 5f1ff0753f
4 changed files with 9 additions and 0 deletions

View File

@ -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() {

View File

@ -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",

View File

@ -268,6 +268,7 @@ export default {
'pressure_prediction_chart': '压力预估图',
'user_name': '创建人',
'special_characters_are_not_supported': '测试名称不支持特殊字符',
'pressure_config_params_is_empty': '压力配置参数不能为空!'
},
api_test: {
creator: "创建人",

View File

@ -266,6 +266,7 @@ export default {
'pressure_prediction_chart': '壓力預估圖',
'user_name': '創建人',
'special_characters_are_not_supported': '測試名稱不支持特殊字符',
'pressure_config_params_is_empty': '壓力配置參數不能為空!'
},
api_test: {
title: "測試",