fix: 测试计划场景用例环境校验
This commit is contained in:
parent
927c93f09a
commit
fda7b38b7e
|
@ -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 {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue