性能测试修改文件上传个数

This commit is contained in:
shiziyuan9527 2020-05-29 16:42:28 +08:00
parent 3dbd617ded
commit 3fc0f46f35
4 changed files with 11 additions and 8 deletions

View File

@ -4,7 +4,7 @@
accept=".jmx,.csv"
drag
action=""
:limit="5"
:limit="2"
multiple
:show-file-list="false"
:before-upload="beforeUpload"
@ -175,7 +175,7 @@
}
},
handleExceed() {
this.$error(this.$t('load_test.delete_file'));
this.$error(this.$t('load_test.file_size_limit'));
},
fileValidator(file) {
/// todo:

View File

@ -212,7 +212,7 @@ export default {
'is_running': 'Test is running! ',
'test_name_is_null': 'Test name cannot be empty! ',
'project_is_null': 'Project cannot be empty! ',
'jmx_is_null': 'Can only contain one JMX file',
'jmx_is_null': 'Must contain a JMX file, and can only contain a JMX file!',
'file_name': 'File name',
'file_size': 'File size',
'file_type': 'File Type',
@ -222,7 +222,8 @@ export default {
'upload_type': 'Only JMX/CSV files can be uploaded',
'related_file_not_found': "No related test file found!",
'delete_file_confirm': 'Confirm delete file:',
'delete_file': "Please delete an existing file first!",
'file_size_limit': "The number of files exceeds the limit",
'delete_file': "The file already exists, please delete the file with the same name first!",
'thread_num': 'Concurrent users:',
'input_thread_num': 'Please enter the number of threads',
'duration': 'Duration time (minutes):',

View File

@ -209,7 +209,7 @@ export default {
'is_running': '正在运行!',
'test_name_is_null': '测试名称不能为空!',
'project_is_null': '项目不能为空!',
'jmx_is_null': '只能包含一个JMX文件',
'jmx_is_null': '必需包含一个JMX文件只能包含一个JMX文件',
'file_name': '文件名',
'file_size': '文件大小',
'file_type': '文件类型',
@ -219,7 +219,8 @@ export default {
'upload_type': '只能上传JMX/CSV文件',
'related_file_not_found': "未找到关联的测试文件!",
'delete_file_confirm': '确认删除文件: ',
'delete_file': "请先删除已存在的文件!",
'file_size_limit': "文件个数超出限制!",
'delete_file': "文件已存在,请先删除同名文件!",
'thread_num': '并发用户数:',
'input_thread_num': '请输入线程数',
'duration': '压测时长(分钟):',

View File

@ -210,7 +210,7 @@ export default {
'is_running': '正在運行! ',
'test_name_is_null': '測試名稱不能為空! ',
'project_is_null': '項目不能為空! ',
'jmx_is_null': '只能包含一個JMX文件 ',
'jmx_is_null': '必需包含一個JMX文件只能包含一個JMX文件',
'file_name': '文件名',
'file_size': '文件大小',
'file_type': '文件類型',
@ -220,7 +220,8 @@ export default {
'upload_type': '只能上傳JMX/CSV文件',
'related_file_not_found': "未找到關聯的測試文件!",
'delete_file_confirm': '確認刪除文件: ',
'delete_file': "請先刪除已存在的文件!",
'file_size_limit': "文件個數超出限制!",
'delete_file': "文件已存在,請先刪除同名文件!",
'thread_num': '並髮用戶數:',
'input_thread_num': '請輸入線程數',
'duration': '壓測時長(分鐘):',