refactor(性能测试): 设置定时任务时间隔不能小于压测时长的提示
--bug=1011623 --user=刘瑞斌 【性能测试】-定时任务执行时间3分钟一次,小于该性能测试执行时间5分钟,建议提示不能小于性能测试执行时间 https://www.tapd.cn/55049933/s/1124645
This commit is contained in:
parent
9fc331c4fb
commit
a78f8591f8
|
@ -463,8 +463,14 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
durationValidate(intervalTime) {
|
durationValidate(intervalTime) {
|
||||||
let duration = this.$refs.pressureConfig.duration * 60 * 1000;
|
let duration = 0;
|
||||||
if (intervalTime < duration) {
|
this.$refs.pressureConfig.threadGroups.forEach(tg => {
|
||||||
|
let d = this.$refs.pressureConfig.getDuration(tg);
|
||||||
|
if (duration < d) {
|
||||||
|
duration = d;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (intervalTime < duration * 1000) {
|
||||||
return {
|
return {
|
||||||
pass: false,
|
pass: false,
|
||||||
info: this.$t('load_test.schedule_tip')
|
info: this.$t('load_test.schedule_tip')
|
||||||
|
|
|
@ -33,18 +33,9 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="num"
|
prop="num"
|
||||||
label="ID"
|
label="ID"
|
||||||
width="100"
|
width="100">
|
||||||
show-overflow-tooltip>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
v-if="versionEnable"
|
|
||||||
:label="$t('project.version.name')"
|
|
||||||
:filters="versionFilters"
|
|
||||||
column-key="versionId"
|
|
||||||
min-width="100px"
|
|
||||||
prop="versionId">
|
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span>{{ scope.row.versionName }}</span>
|
<span @click="link(scope.row)" style="cursor: pointer;">{{ scope.row.num }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -55,6 +46,16 @@
|
||||||
<span @click="link(scope.row)" style="cursor: pointer;">{{ scope.row.name }}</span>
|
<span @click="link(scope.row)" style="cursor: pointer;">{{ scope.row.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="versionEnable"
|
||||||
|
:label="$t('project.version.name')"
|
||||||
|
:filters="versionFilters"
|
||||||
|
column-key="versionId"
|
||||||
|
prop="versionId">
|
||||||
|
<template v-slot:default="scope">
|
||||||
|
<span>{{ scope.row.versionName }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="userName"
|
prop="userName"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
|
|
Loading…
Reference in New Issue