fix(性能测试): 保证每次从接口测试都能创建新的性能测试
This commit is contained in:
parent
c6319bf763
commit
4e270cd409
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue