fix(性能测试): 保证每次从接口测试都能创建新的性能测试

This commit is contained in:
Captain.B 2021-03-25 10:19:09 +08:00
parent c6319bf763
commit 4e270cd409
2 changed files with 4 additions and 2 deletions

View File

@ -132,12 +132,13 @@ export default {
this.projectLoadingResult = this.$post('api/automation/export/jmx', condition, response => {
let data = response.data;
data.forEach(d => {
let threadGroups = findThreadGroup(d.jmx, d.name + ".jmx")
let jmxName = d.name + "_" + new Date().getTime() + ".jmx";
let threadGroups = findThreadGroup(d.jmx, jmxName)
threadGroups.forEach(tg => {
tg.options = {};
this.scenarios.push(tg);
});
let file = new File([d.jmx], d.name + ".jmx");
let file = new File([d.jmx], jmxName);
this.uploadList.push(file);
this.tableData.push({
name: file.name,

View File

@ -34,6 +34,7 @@
</el-table-column>
<el-table-column
prop="type"
width="100"
:label="$t('load_test.file_type')">
</el-table-column>
<el-table-column