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 => {
|
this.projectLoadingResult = this.$post('api/automation/export/jmx', condition, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
data.forEach(d => {
|
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 => {
|
threadGroups.forEach(tg => {
|
||||||
tg.options = {};
|
tg.options = {};
|
||||||
this.scenarios.push(tg);
|
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.uploadList.push(file);
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
name: file.name,
|
name: file.name,
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="type"
|
prop="type"
|
||||||
|
width="100"
|
||||||
:label="$t('load_test.file_type')">
|
:label="$t('load_test.file_type')">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
Loading…
Reference in New Issue