refactor(性能测试): 资源文件限制增大至100,并给出相关使用建议
This commit is contained in:
parent
1bfa2afbcb
commit
989c59aaf2
|
@ -77,7 +77,7 @@
|
||||||
@click="loadFile()"/>
|
@click="loadFile()"/>
|
||||||
<span style="margin-left: 15px;">{{$t('performance_test.basic_config_file_limit_tip')}}</span>
|
<span style="margin-left: 15px;">{{$t('performance_test.basic_config_file_limit_tip')}}</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table class="basic-config" :data="tableData">
|
<el-table class="basic-config" :data="pagedData">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="name"
|
prop="name"
|
||||||
:label="$t('load_test.file_name')">
|
:label="$t('load_test.file_name')">
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<ms-table-pagination :current-page.sync="currentPage" :page-size.sync="pageSize" :total="tableData.length"/>
|
||||||
<exist-files ref="existFiles"
|
<exist-files ref="existFiles"
|
||||||
@fileChange="fileChange"
|
@fileChange="fileChange"
|
||||||
:test-id="test.id"
|
:test-id="test.id"
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
||||||
tableData: [],
|
tableData: [],
|
||||||
uploadList: [],
|
uploadList: [],
|
||||||
metadataIdList: [],
|
metadataIdList: [],
|
||||||
fileNumLimit: 50,
|
fileNumLimit: 100,
|
||||||
threadGroups: [],
|
threadGroups: [],
|
||||||
loadFileVisible: false,
|
loadFileVisible: false,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
|
@ -192,6 +192,12 @@ export default {
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
pagedData() {
|
||||||
|
const start = (this.currentPage - 1) * this.pageSize;
|
||||||
|
return this.tableData.slice(start, start + this.pageSize);
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.test.id) {
|
if (this.test.id) {
|
||||||
this.getFileMetadata(this.test);
|
this.getFileMetadata(this.test);
|
||||||
|
|
|
@ -10,7 +10,7 @@ const message = {
|
||||||
},
|
},
|
||||||
max_current_threads_tips: 'Exceeded the maximum concurrent number of this node {0}',
|
max_current_threads_tips: 'Exceeded the maximum concurrent number of this node {0}',
|
||||||
sync_scenario_no_permission_tips: 'No permission to create the scenario cannot perform synchronization',
|
sync_scenario_no_permission_tips: 'No permission to create the scenario cannot perform synchronization',
|
||||||
basic_config_file_limit_tip: 'Note: The maximum number of resource files is limited to 50',
|
basic_config_file_limit_tip: 'Note: The maximum number of resource files is limited to 100, Too many resource files may be detrimental to your testing.',
|
||||||
edit_performance_test_tips: 'No permission to edit test, please check it before operation',
|
edit_performance_test_tips: 'No permission to edit test, please check it before operation',
|
||||||
error_samples: 'Error samples',
|
error_samples: 'Error samples',
|
||||||
all_samples: 'All samples',
|
all_samples: 'All samples',
|
||||||
|
|
|
@ -10,7 +10,7 @@ const message = {
|
||||||
},
|
},
|
||||||
max_current_threads_tips: '超出此节点{0}最大并发数',
|
max_current_threads_tips: '超出此节点{0}最大并发数',
|
||||||
sync_scenario_no_permission_tips: '没有创建接口的权限无法执行同步',
|
sync_scenario_no_permission_tips: '没有创建接口的权限无法执行同步',
|
||||||
basic_config_file_limit_tip: '注:资源文件数最大限制为50个',
|
basic_config_file_limit_tip: '注:资源文件数最大限制为100个,资源文件太多可能不利于您的测试正常进行',
|
||||||
edit_performance_test_tips: '没有编辑性能测试的权限,请勾选后再操作',
|
edit_performance_test_tips: '没有编辑性能测试的权限,请勾选后再操作',
|
||||||
error_samples: '错误请求',
|
error_samples: '错误请求',
|
||||||
all_samples: '所有请求',
|
all_samples: '所有请求',
|
||||||
|
|
|
@ -10,7 +10,7 @@ const message = {
|
||||||
},
|
},
|
||||||
max_current_threads_tips: '超出此節點{0}最大並發數',
|
max_current_threads_tips: '超出此節點{0}最大並發數',
|
||||||
sync_scenario_no_permission_tips: '沒有创建接口的權限無法執行同步',
|
sync_scenario_no_permission_tips: '沒有创建接口的權限無法執行同步',
|
||||||
basic_config_file_limit_tip: '注:資源文件數最大限制為50個',
|
basic_config_file_limit_tip: '注:資源文件數最大限制為100個,資源文件太多可能不利於您的測試正常進行',
|
||||||
edit_performance_test_tips: '沒有編輯性能測試的權限,請勾選後再操作',
|
edit_performance_test_tips: '沒有編輯性能測試的權限,請勾選後再操作',
|
||||||
error_samples: '錯誤請求',
|
error_samples: '錯誤請求',
|
||||||
all_samples: '所有請求',
|
all_samples: '所有請求',
|
||||||
|
|
Loading…
Reference in New Issue