diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 80984c85d1..ddf2cd45ee 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -830,7 +830,7 @@ public class ApiAutomationService { } private void checkEnv(RunScenarioRequest request, List apiScenarios) { - if (StringUtils.isNotBlank(request.getRunMode()) && StringUtils.equals(request.getRunMode(), ApiRunMode.SCENARIO.name())) { + if (StringUtils.isNotBlank(request.getRunMode()) && StringUtils.equalsAny(request.getRunMode(), ApiRunMode.SCENARIO.name(), ApiRunMode.SCENARIO_PLAN.name())) { StringBuilder builder = new StringBuilder(); for (ApiScenarioWithBLOBs apiScenarioWithBLOBs : apiScenarios) { try { diff --git a/backend/src/main/resources/db/migration/V84__v1.10_release.sql b/backend/src/main/resources/db/migration/V84__v1.10_release.sql index 3e53aec3e4..c9573234b6 100644 --- a/backend/src/main/resources/db/migration/V84__v1.10_release.sql +++ b/backend/src/main/resources/db/migration/V84__v1.10_release.sql @@ -129,4 +129,8 @@ END // DELIMITER ; CALL test_cursor(); -DROP PROCEDURE IF EXISTS test_cursor; \ No newline at end of file +DROP PROCEDURE IF EXISTS test_cursor; + + +-- 修改 test_case type字段为为非必填 +ALTER TABLE test_case MODIFY COLUMN `type` varchar(25) NULL COMMENT 'Test case type';