fix(接口测试): 场景重复
This commit is contained in:
parent
a8671ca4f3
commit
59c9cdfef2
|
@ -56,8 +56,8 @@
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
minutes: Math.floor(this.totalTime / 60),
|
minutes: Math.floor((this.totalTime % (1000 * 60 * 60)) / (1000 * 60)),
|
||||||
seconds: this.totalTime % 60,
|
seconds: Math.round((this.totalTime % (1000 * 60)) / 1000),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -87,7 +87,10 @@
|
||||||
schedule: {},
|
schedule: {},
|
||||||
});
|
});
|
||||||
this.test = this.test || test;
|
this.test = this.test || test;
|
||||||
this.test.scenarioDefinition = this.test.scenarioDefinition.concat(test.scenarioDefinition);
|
if (this.tests.length > 1) {
|
||||||
|
this.test.scenarioDefinition = this.test.scenarioDefinition.concat(test.scenarioDefinition);
|
||||||
|
|
||||||
|
}
|
||||||
if (this.tests.length === this.selectIds.size) {
|
if (this.tests.length === this.selectIds.size) {
|
||||||
this.tests = [];
|
this.tests = [];
|
||||||
this.saveRunTest();
|
this.saveRunTest();
|
||||||
|
@ -127,7 +130,7 @@
|
||||||
}));
|
}));
|
||||||
let jmx = this.test.toJMX();
|
let jmx = this.test.toJMX();
|
||||||
let blob = new Blob([jmx.xml], {type: "application/octet-stream"});
|
let blob = new Blob([jmx.xml], {type: "application/octet-stream"});
|
||||||
formData.append("files", new File([blob], jmx.name));
|
formData.append("file", new File([blob], jmx.name));
|
||||||
return {
|
return {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: url,
|
url: url,
|
||||||
|
|
Loading…
Reference in New Issue