diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index a7499a6363..e4e0bdd1a1 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit a7499a636342d4b58bb799c45468eb1245ce6e6b +Subproject commit e4e0bdd1a1272fda4ca654427a62f30cf90f672b diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue index 2a767cde64..edc03a59c4 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue @@ -467,7 +467,80 @@ export default { } }, - execute(row) { + async validateSeleniumSetting() { + //选择本地调试默认取消性能模式 + const h = this.$createElement; + //检测是否配置了 个人地址, 检测配置的ip端口 是否正常 + let result = await this.$get("/ui/automation/verify/seleniumServer"); + if (result.data) { + let res = result.data; + if (res.data === "ok") { + return true; + } else if (res.data === "connectionErr") { + this.showServerMessageBox( + h("p", null, [ + h( + "span", + null, + "连接失败,请检查 selenium-grid 服务状态" + ), + h( + "p", + { + style: "color: #aeb0b3;cursor:pointer;font-size: 10px;", + on: { + click: (value) => { + this.redirectSetting(); + }, + }, + }, + "查看配置信息" + ), + ]) + ); + return false; + } else { + this.showServerMessageBox( + h("p", null, [ + h("span", null, "连接失败,请检查 selenium-grid 地址信息"), + h( + "p", + { + style: "color: #aeb0b3;cursor:pointer;font-size: 10px;", + on: { + click: (value) => { + this.redirectSetting(); + }, + }, + }, + "查看配置信息" + ), + ]) + ); + return false; + } + } + return true; + }, + redirectSetting() { + window.open("/#/setting/systemparametersetting"); + }, + showServerMessageBox(msg) { + this.$msgbox({ + title: "", + message: msg, + confirmButtonText: this.$t("commons.confirm"), + cancelButtonText: this.$t("commons.cancel"), + }) + .then((action) => {}) + .catch(() => {}); + }, + async doExecute(row){ + //校验selenium + let serverResult = await this.validateSeleniumSetting(); + if(!serverResult){ + return; + } this.infoDb = false; let param ={planCaseIds: []}; this.reportId = ""; @@ -492,6 +565,9 @@ export default { }); } }, + execute(row) { + this.doExecute(row); + }, buildExecuteParam(param,row) { // param.id = row.id; param.id = getUUID(); diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 90ebdc95e7..d8e611f44c 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 90ebdc95e77e628581e2ac083568a3e543cb7c00 +Subproject commit d8e611f44c07a1e8d30f003f5f3107dec7d5ce65 diff --git a/frontend/src/i18n/track/en-US.js b/frontend/src/i18n/track/en-US.js index 05347a3c60..3b94f3fc9b 100644 --- a/frontend/src/i18n/track/en-US.js +++ b/frontend/src/i18n/track/en-US.js @@ -523,6 +523,8 @@ export default { fail_case: "Fail Case", issue_list: "Issue List", all_case: "All Case", + command_steps_label: "Command steps", + command_step_info: "Add a command step on the right", }, reporter: 'Reporter', lastmodify: 'Last Modify', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 7bf87e7de0..2b27e71d95 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -2988,6 +2988,8 @@ export default { delete_scenario_lable: "删除场景", delete_command_lable: "删除指令", command_name_label: "指令名称", + command_steps_label: "指令步骤", + command_step_info: "在右侧添加指令步骤", }, project_application: { workstation: { diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 654a6cf185..1780359457 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -2967,6 +2967,8 @@ export default { delete_scenario_lable: "刪除場景", delete_command_lable: "刪除指令", command_name_label: "指令名稱", + command_steps_label: "指令步驟", + command_step_info: "在右側添加指令步驟", }, project_application: { workstation: {