From 7f2fe8acd1ad02dabf8f7326148b3ecf11a800bf Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 23 Nov 2020 15:17:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=8F=90=E5=8F=96=E5=8F=82=E6=95=B0=E5=92=8C?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/ApiDefinitionService.java | 1 + backend/src/main/java/io/metersphere/xpack | 2 +- .../resources/i18n/messages_en_US.properties | 1 - .../resources/i18n/messages_zh_CN.properties | 1 - .../resources/i18n/messages_zh_TW.properties | 2 - .../assertion/ApiAssertionDuration.vue | 5 +- .../assertion/ApiAssertionJsonPath.vue | 1 - .../assertion/ApiAssertionJsr223.vue | 1 - .../assertion/ApiAssertionRegex.vue | 1 - .../assertion/ApiAssertionXPath2.vue | 1 - .../components/assertion/ApiAssertions.vue | 29 ++++- .../assertion/ApiAssertionsEdit.vue | 3 +- .../assertion/ApiJsonpathSuggestList.vue | 107 +++++++++--------- .../components/extract/ApiExtract.vue | 10 +- .../components/extract/ApiExtractCommon.vue | 1 - .../components/extract/ApiExtractEdit.vue | 2 +- .../components/request/ApiHttpRequestForm.vue | 49 ++++---- .../components/response/ResponseResult.vue | 9 ++ .../api/definition/model/ApiTestModel.js | 1 + frontend/src/business/components/xpack | 2 +- frontend/src/i18n/en-US.js | 7 ++ frontend/src/i18n/zh-CN.js | 7 +- frontend/src/i18n/zh-TW.js | 6 + 23 files changed, 141 insertions(+), 108 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 683c78b0d9..ad1bf9d528 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -220,6 +220,7 @@ public class ApiDefinitionService { createBodyFiles(bodyUploadIds, bodyFiles); HashTree hashTree = request.getTestElement().generateHashTree(); + request.getTestElement().getJmx(hashTree); // 调用执行方法 jMeterService.runDefinition(request.getId(), hashTree, request.getReportId(), ApiRunMode.DELIMIT.name()); return request.getId(); diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index 24047fea95..419c75bca6 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit 24047fea950a74f7848a9fdaa857a22b884c4ce2 +Subproject commit 419c75bca64b7c5bfbd1194d7f0fd9919f0caa04 diff --git a/backend/src/main/resources/i18n/messages_en_US.properties b/backend/src/main/resources/i18n/messages_en_US.properties index 5dc4f84212..9aec80622b 100644 --- a/backend/src/main/resources/i18n/messages_en_US.properties +++ b/backend/src/main/resources/i18n/messages_en_US.properties @@ -167,7 +167,6 @@ check_owner_comment=The current user does not have permission to manipulate this upload_content_is_null=Imported content is empty test_plan_notification=Test plan notification task_defect_notification=Task defect notification -task_notification=Jenkins Task notification task_notification_=Timing task result notification api_definition_url_not_repeating=The interface request address already exists task_notification_jenkins=Jenkins Task notification diff --git a/backend/src/main/resources/i18n/messages_zh_CN.properties b/backend/src/main/resources/i18n/messages_zh_CN.properties index bc3e719677..8226488ddb 100644 --- a/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -168,7 +168,6 @@ check_owner_comment=当前用户没有操作此评论的权限 upload_content_is_null=导入内容为空 test_plan_notification=测试计划通知 task_defect_notification=缺陷任务通知 -task_notification=jenkins任务通知 task_notification_=定时任务结果通知 api_definition_url_not_repeating=接口请求地址已经存在 task_notification_jenkins=jenkins任务通知 diff --git a/backend/src/main/resources/i18n/messages_zh_TW.properties b/backend/src/main/resources/i18n/messages_zh_TW.properties index b0be5d2483..4d60417416 100644 --- a/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -171,7 +171,5 @@ test_plan_notification=測試計畫通知 task_defect_notification=缺陷任務通知 task_notification_jenkins=jenkins任務通知 task_notification=任務通知 - -task_notification=jenkins任務通知 task_notification_=定時任務通知 api_definition_url_not_repeating=接口請求地址已經存在 diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertionDuration.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertionDuration.vue index 9412f0c145..a24aabc915 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertionDuration.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertionDuration.vue @@ -17,14 +17,12 @@