|
|
@@ -12,23 +12,24 @@
|
|
|
prop="testName"
|
|
|
label="测试名称"
|
|
|
align="center"
|
|
|
- width="300">
|
|
|
+ width="170">
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
|
prop="username"
|
|
|
label="创建者"
|
|
|
align="center"
|
|
|
- width="180">
|
|
|
+ width="170">
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
|
prop="createTime"
|
|
|
label="创建时间"
|
|
|
align="center"
|
|
|
- width="250">
|
|
|
+ width="160">
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
|
label="详情"
|
|
|
- align="center">
|
|
|
+ align="center"
|
|
|
+ width="500">
|
|
|
<template #default="scope">
|
|
|
<ElButton
|
|
|
@click="handleClick('latest', scope.row.testId)"
|
|
|
@@ -637,7 +638,7 @@
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
</ElTabPane>
|
|
|
- <ElTabPane label="自动化测试" name="autotest">
|
|
|
+ <ElTabPane label="自动化测试结果" name="autotest">
|
|
|
<ElTable :data="autoTestResult" width="100%">
|
|
|
<ElTableColumn
|
|
|
prop="id"
|
|
|
@@ -649,17 +650,18 @@
|
|
|
prop="test_id"
|
|
|
label="所属测试ID"
|
|
|
align="center"
|
|
|
- width="120">
|
|
|
+ width="100">
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
|
prop="executeTime"
|
|
|
label="执行时间"
|
|
|
align="center"
|
|
|
- width="250">
|
|
|
+ width="160">
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
|
prop="timeList"
|
|
|
label="执行时间列表"
|
|
|
+ width="430"
|
|
|
align="center">
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn
|
|
|
@@ -804,6 +806,11 @@ export default {
|
|
|
}
|
|
|
case 'trigger': {
|
|
|
await APITestAPI.executeAPITestByTestId(id);
|
|
|
+ this.timer = setTimeout(() => {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ ElMessage.success('执行成功!');
|
|
|
+ });
|
|
|
+ }, 3000);
|
|
|
break;
|
|
|
}
|
|
|
case 'delete': {
|