From 354a65938a5ae2b3d318caf7d11f9b9e129aec23 Mon Sep 17 00:00:00 2001 From: fanzhuxian <17826840660@139.com> Date: Sun, 27 Apr 2025 18:09:51 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9AUI=E6=B5=8B=E8=AF=95-=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=8A=A5=E5=91=8A=E5=88=97=E8=A1=A8api=EF=BC=8C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85api?= =?UTF-8?q?=EF=BC=8C=E8=87=AA=E5=8A=A8=E5=8C=96=E5=88=97=E8=A1=A8api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-ui/src/api/uiTest/automationTest.js | 46 +++- .../src/views/test/uiTest/automationTest.vue | 93 +++++-- .../src/views/test/uiTest/elementLibrary.vue | 14 +- test-ui/src/views/test/uiTest/testReport.vue | 76 ++++-- .../views/test/uiTest/testReportDetail.vue | 228 +++++++++++++----- test-ui/vue.config.js | 2 +- 6 files changed, 362 insertions(+), 97 deletions(-) diff --git a/test-ui/src/api/uiTest/automationTest.js b/test-ui/src/api/uiTest/automationTest.js index 5d1beae..afdfcd5 100644 --- a/test-ui/src/api/uiTest/automationTest.js +++ b/test-ui/src/api/uiTest/automationTest.js @@ -1 +1,45 @@ -import request from '@/utils/request' \ No newline at end of file +import request from '@/utils/request' + +// 自动化 - 列表查询 +export function getAutomationList(query) { + return request({ + url: '/test/automation/list', + method: 'get', + params: query + }) +} + +// 自动化 - 新增 +export function addAutomation(data) { + return request({ + url: '/test/automation/add', + method: 'post', + data: data + }) +} + +// 自动化 - 删除 +export function deleteAutomation(data) { + return request({ + url: '/test/automation/delete/' + data, + method: 'put', + }) +} + +// 自动化- 编辑 +export function updateAutomation(data) { + return request({ + url: '/test/automation/update', + method: 'put', + data: data + }) +} + +// 自动化 - 详情 + +export function getAutomationDetail(data) { + return request({ + url: '/test/automation/getInfo' + data, + method: 'get', + }) +} \ No newline at end of file diff --git a/test-ui/src/views/test/uiTest/automationTest.vue b/test-ui/src/views/test/uiTest/automationTest.vue index eb66177..807ffec 100644 --- a/test-ui/src/views/test/uiTest/automationTest.vue +++ b/test-ui/src/views/test/uiTest/automationTest.vue @@ -11,23 +11,35 @@
- +
- - - - - - - - - - + + + + + + + + + + + + + + +