refactor(性能测试): 性能测试显示压力预估图时排除按照迭代次数
This commit is contained in:
parent
df0ccea57f
commit
dc97aa4b3e
|
@ -51,7 +51,7 @@
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
v-model="threadGroup.duration"
|
v-model="threadGroup.duration"
|
||||||
:min="1"
|
:min="1"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
<el-input-number
|
<el-input-number
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
v-model="threadGroup.rpsLimit"
|
v-model="threadGroup.rpsLimit"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
:min="1"
|
:min="1"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="threadGroup.duration"
|
:max="threadGroup.duration"
|
||||||
v-model="threadGroup.rampUpTime"
|
v-model="threadGroup.rampUpTime"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('load_test.ramp_up_time_minutes', [getUnitLabel(threadGroup)])">
|
<el-form-item :label="$t('load_test.ramp_up_time_minutes', [getUnitLabel(threadGroup)])">
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="Math.min(threadGroup.threadNumber, threadGroup.rampUpTime)"
|
:max="Math.min(threadGroup.threadNumber, threadGroup.rampUpTime)"
|
||||||
v-model="threadGroup.step"
|
v-model="threadGroup.step"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('load_test.ramp_up_time_times')"/>
|
<el-form-item :label="$t('load_test.ramp_up_time_times')"/>
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
v-model="threadGroup.iterateNum"
|
v-model="threadGroup.iterateNum"
|
||||||
:min="1"
|
:min="1"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<br>
|
<br>
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
<el-input-number
|
<el-input-number
|
||||||
:disabled="true || !threadGroup.rpsLimitEnable"
|
:disabled="true || !threadGroup.rpsLimitEnable"
|
||||||
v-model="threadGroup.rpsLimit"
|
v-model="threadGroup.rpsLimit"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
:min="1"
|
:min="1"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
:min="1"
|
:min="1"
|
||||||
v-model="threadGroup.iterateRampUp"
|
v-model="threadGroup.iterateRampUp"
|
||||||
@change="calculateTotalChart(threadGroup)"
|
@change="calculateTotalChart()"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('load_test.ramp_up_time_seconds', [getUnitLabel(threadGroup)])"/>
|
<el-form-item :label="$t('load_test.ramp_up_time_seconds', [getUnitLabel(threadGroup)])"/>
|
||||||
|
@ -256,7 +256,7 @@ export default {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.calculateTotalChart(this.threadGroups[i]);
|
this.calculateTotalChart();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getLoadConfig() {
|
getLoadConfig() {
|
||||||
|
@ -326,7 +326,9 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
for (let i = 0; i < handler.threadGroups.length; i++) {
|
for (let i = 0; i < handler.threadGroups.length; i++) {
|
||||||
if (handler.threadGroups[i].enabled === 'false' || handler.threadGroups[i].deleted === 'true') {
|
if (handler.threadGroups[i].enabled === 'false' ||
|
||||||
|
handler.threadGroups[i].deleted === 'true' ||
|
||||||
|
handler.threadGroups[i].threadType === 'ITERATION') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let seriesData = {
|
let seriesData = {
|
||||||
|
|
Loading…
Reference in New Issue