From d97f72315c4fbdaa97a44e184e1ec02085f8f5ea Mon Sep 17 00:00:00 2001 From: q4speed Date: Thu, 30 Apr 2020 16:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90jmx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/ApiTestService.java | 1 + .../components/api/test/ApiTestConfig.vue | 13 +- .../api/test/components/ApiAssertionRegex.vue | 14 +- .../components/ApiAssertionResponseTime.vue | 8 +- .../api/test/components/ApiAssertionText.vue | 21 +- .../api/test/components/ApiAssertions.vue | 2 +- .../api/test/components/ApiAssertionsEdit.vue | 4 +- .../api/test/components/ApiBody.vue | 4 +- .../api/test/components/ApiKeyValue.vue | 74 +- .../api/test/components/ApiRequestConfig.vue | 2 +- .../api/test/components/ApiRequestForm.vue | 52 +- .../api/test/components/ApiScenarioConfig.vue | 4 +- .../api/test/components/ApiScenarioForm.vue | 24 +- .../business/components/api/test/model/JMX.js | 918 +++++++----------- .../api/test/model/ScenarioModel.js | 238 ++++- .../components/api/test/model/test.js | 95 -- frontend/src/i18n/zh-CN.js | 5 +- 17 files changed, 690 insertions(+), 789 deletions(-) delete mode 100644 frontend/src/business/components/api/test/model/test.js diff --git a/backend/src/main/java/io/metersphere/api/service/ApiTestService.java b/backend/src/main/java/io/metersphere/api/service/ApiTestService.java index 546d5343a7..c99b6c6a79 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiTestService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiTestService.java @@ -75,6 +75,7 @@ public class ApiTestService { } public void delete(DeleteAPITestRequest request) { + deleteFileByTestId(request.getId()); apiTestMapper.deleteByPrimaryKey(request.getId()); } diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 76f3b9cb07..bb9a1f2da5 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -32,8 +32,6 @@