diff --git a/api-test/backend/src/main/java/io/metersphere/commons/utils/HashTreeUtil.java b/api-test/backend/src/main/java/io/metersphere/commons/utils/HashTreeUtil.java index a622912c1d..8f8b5f56ae 100644 --- a/api-test/backend/src/main/java/io/metersphere/commons/utils/HashTreeUtil.java +++ b/api-test/backend/src/main/java/io/metersphere/commons/utils/HashTreeUtil.java @@ -98,7 +98,7 @@ public class HashTreeUtil { return returnMap; } - public synchronized Map> getEnvParamsMapByHashTree(HashTree hashTree) { + public Map> getEnvParamsMapByHashTree(HashTree hashTree) { Map> returnMap = new HashMap<>(); if (hashTree != null) { for (Object hashTreeKey : hashTree.keySet()) { @@ -116,8 +116,8 @@ public class HashTreeUtil { JSR223Sampler processor = (JSR223Sampler) hashTreeKey; scriptValue = processor.getPropertyAsString(SCRIPT); } - } catch (Exception ignored) { - LogUtil.error(ignored); + } catch (Exception e) { + LogUtil.error(e); } if (StringUtils.isNotEmpty(scriptValue)) { diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/service/BaseEnvironmentService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/service/BaseEnvironmentService.java index 341944d400..206a3ff527 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/service/BaseEnvironmentService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/service/BaseEnvironmentService.java @@ -531,7 +531,7 @@ public class BaseEnvironmentService extends NodeTreeService { return baseApiTestEnvironmentMapper.selectNameById(id); } - public synchronized ApiTestEnvironmentWithBLOBs getMockEnvironmentByProjectId(String projectId) { + public ApiTestEnvironmentWithBLOBs getMockEnvironmentByProjectId(String projectId) { SystemParameterService systemParameterService = CommonBeanFactory.getBean(SystemParameterService.class); BaseSystemConfigDTO baseSystemConfigDTO = systemParameterService.getBaseInfo(); diff --git a/report-stat/backend/src/main/java/io/metersphere/reportstatistics/utils/ChromeUtil.java b/report-stat/backend/src/main/java/io/metersphere/reportstatistics/utils/ChromeUtil.java index 8943985821..a4b8bd39fb 100644 --- a/report-stat/backend/src/main/java/io/metersphere/reportstatistics/utils/ChromeUtil.java +++ b/report-stat/backend/src/main/java/io/metersphere/reportstatistics/utils/ChromeUtil.java @@ -22,7 +22,7 @@ public class ChromeUtil { return chromeUtils; } - private synchronized WebDriver genWebDriver(String seleniumUrl, String language) { + private WebDriver genWebDriver(String seleniumUrl, String language) { if (StringUtils.isEmpty(seleniumUrl)) { LogUtil.error("Headless request is null! " + seleniumUrl); return null; @@ -52,7 +52,7 @@ public class ChromeUtil { return driver; } - public synchronized Map getImageInfo(HeadlessRequest request, String langurage) { + public Map getImageInfo(HeadlessRequest request, String langurage) { Map returnMap = new HashMap<>(); if (request.isEmpty()) { return returnMap; diff --git a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java index ecc4d5b46e..9c065d01c0 100644 --- a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java +++ b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java @@ -160,7 +160,7 @@ public class TestPlanService { @Resource private ApiPoolDebugService apiPoolDebugService; - public synchronized TestPlan addTestPlan(AddTestPlanRequest testPlan) { + public TestPlan addTestPlan(AddTestPlanRequest testPlan) { if (getTestPlanByName(testPlan.getName()).size() > 0) { MSException.throwException(Translator.get("plan_name_already_exists")); } @@ -678,7 +678,7 @@ public class TestPlanService { } catch (Exception e) { sqlSession.rollback(); throw new RuntimeException(e); - }finally { + } finally { if (sqlSession != null && sqlSessionFactory != null) { SqlSessionUtils.closeSqlSession(sqlSession, sqlSessionFactory); } @@ -2009,7 +2009,7 @@ public class TestPlanService { //未勾选资源池运行时,将资源池ID赋空 runModeConfig.setResourcePoolId(null); } - + String apiRunConfig = JSON.toJSONString(runModeConfig); return this.runTestPlan(testPlanId, testplanRunRequest.getProjectId(), testplanRunRequest.getUserId(), testplanRunRequest.getTriggerMode(), testplanRunRequest.getReportId(), testplanRunRequest.getExecutionWay(), apiRunConfig); diff --git a/test-track/frontend/src/business/plan/components/ScheduleMaintain.vue b/test-track/frontend/src/business/plan/components/ScheduleMaintain.vue index 371a844198..6db030b2c7 100644 --- a/test-track/frontend/src/business/plan/components/ScheduleMaintain.vue +++ b/test-track/frontend/src/business/plan/components/ScheduleMaintain.vue @@ -86,12 +86,12 @@ {{ $t("run_mode.title") }}: {{ $t("run_mode.serial") }} - {{ - $t("run_mode.parallel") - }} + {{ $t("run_mode.parallel") }} + -
+
{{ $t("浏览器") }}:
- {{ - $t("api_test.fail_to_stop") - }} + {{ $t("api_test.fail_to_stop") }} +
-
+
-   +  
diff --git a/test-track/frontend/src/business/plan/components/TestPlanList.vue b/test-track/frontend/src/business/plan/components/TestPlanList.vue index 6fc96f9d64..ac129e962f 100644 --- a/test-track/frontend/src/business/plan/components/TestPlanList.vue +++ b/test-track/frontend/src/business/plan/components/TestPlanList.vue @@ -1059,9 +1059,7 @@ export default { async scheduleTask(row) { row.redirectFrom = "testPlan"; this.currentPlanId = row.id; - this.haveUIScenario().then(() => { - this.$refs.scheduleMaintain.open(row); - }); + this.$refs.scheduleMaintain.open(row); }, saveSortField(key, orders) { saveLastTableSortField(key, JSON.stringify(orders));