|
@@ -178,6 +178,7 @@
|
|
|
<template #title>创建测试任务</template>
|
|
<template #title>创建测试任务</template>
|
|
|
<el-form
|
|
<el-form
|
|
|
:model="createAPITestForm"
|
|
:model="createAPITestForm"
|
|
|
|
|
+ :rules="rules"
|
|
|
ref="createAPITestForm"
|
|
ref="createAPITestForm"
|
|
|
label-position="right"
|
|
label-position="right"
|
|
|
label-width="100px"
|
|
label-width="100px"
|
|
@@ -214,8 +215,8 @@
|
|
|
</ElOption>
|
|
</ElOption>
|
|
|
</ElSelect>
|
|
</ElSelect>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="并发数" prop="qps" required>
|
|
|
|
|
- <el-input v-model="createAPITestForm.qps" placeholder="请输入并发数"></el-input>
|
|
|
|
|
|
|
+ <el-form-item label="并发数" prop="qps" required="">
|
|
|
|
|
+ <el-input v-model="createAPITestForm.qps" placeholder="请输入并发数(10的倍数)"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
@@ -646,7 +647,7 @@
|
|
|
width="60">
|
|
width="60">
|
|
|
</ElTableColumn>
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
<ElTableColumn
|
|
|
- prop="test_id"
|
|
|
|
|
|
|
+ prop="testId"
|
|
|
label="所属测试ID"
|
|
label="所属测试ID"
|
|
|
align="center"
|
|
align="center"
|
|
|
width="120">
|
|
width="120">
|
|
@@ -835,7 +836,7 @@ export default {
|
|
|
await APITestAPI.createAPITest({
|
|
await APITestAPI.createAPITest({
|
|
|
projectId: this.$store.state.workspace.currentProjectId,
|
|
projectId: this.$store.state.workspace.currentProjectId,
|
|
|
createTime: this.createAPITestForm.createTime,
|
|
createTime: this.createAPITestForm.createTime,
|
|
|
- username: '',
|
|
|
|
|
|
|
+ username: this.$store.state.user.username,
|
|
|
testName: this.createAPITestForm.testName,
|
|
testName: this.createAPITestForm.testName,
|
|
|
url: this.createAPITestForm.url,
|
|
url: this.createAPITestForm.url,
|
|
|
params: this.createAPITestForm.params,
|
|
params: this.createAPITestForm.params,
|