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 9cd229e026..561c80052a 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -130,6 +130,7 @@ public class APITestService { test.setScenarioDefinition(request.getScenarioDefinition()); test.setUpdateTime(System.currentTimeMillis()); test.setStatus(APITestStatus.Saved.name()); + checkApiTestPlanExist(test); apiTestMapper.updateByPrimaryKeySelective(test); return test; } diff --git a/frontend/src/business/components/api/test/ApiTestList.vue b/frontend/src/business/components/api/test/ApiTestList.vue index e3cb18c6aa..44fe26faf9 100644 --- a/frontend/src/business/components/api/test/ApiTestList.vue +++ b/frontend/src/business/components/api/test/ApiTestList.vue @@ -7,7 +7,8 @@ :title="$t('commons.test')" @create="create" :createTip="$t('load_test.create')"/> - +