fix: 测试计划场景用例环境校验

This commit is contained in:
chenjianxing 2021-05-24 18:58:35 +08:00 committed by jianxing
parent 927c93f09a
commit fda7b38b7e
2 changed files with 6 additions and 2 deletions

View File

@ -830,7 +830,7 @@ public class ApiAutomationService {
}
private void checkEnv(RunScenarioRequest request, List<ApiScenarioWithBLOBs> 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 {

View File

@ -129,4 +129,8 @@ END //
DELIMITER ;
CALL test_cursor();
DROP PROCEDURE IF EXISTS test_cursor;
DROP PROCEDURE IF EXISTS test_cursor;
-- 修改 test_case type字段为为非必填
ALTER TABLE test_case MODIFY COLUMN `type` varchar(25) NULL COMMENT 'Test case type';