refactor(测试计划): 接口&场景执行状态默认值
This commit is contained in:
parent
849bff9498
commit
9e22faaf36
|
@ -74,4 +74,7 @@ public class TestPlanApiCasePageResponse implements Serializable {
|
||||||
|
|
||||||
@Schema(description = "协议")
|
@Schema(description = "协议")
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
|
@Schema(description = "接口用例id")
|
||||||
|
private String apiTestCaseId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -420,7 +420,8 @@
|
||||||
t.execute_user,
|
t.execute_user,
|
||||||
t.last_exec_time,
|
t.last_exec_time,
|
||||||
t.last_exec_report_id,
|
t.last_exec_report_id,
|
||||||
atc.status
|
atc.status,
|
||||||
|
atc.id as apiTestCaseId
|
||||||
FROM
|
FROM
|
||||||
api_test_case atc
|
api_test_case atc
|
||||||
INNER JOIN api_definition a ON atc.api_definition_id = a.id
|
INNER JOIN api_definition a ON atc.api_definition_id = a.id
|
||||||
|
|
|
@ -585,6 +585,7 @@ public class TestPlanApiCaseService extends TestPlanResourceService {
|
||||||
testPlanApiCase.setCreateUser(user.getId());
|
testPlanApiCase.setCreateUser(user.getId());
|
||||||
testPlanApiCase.setPos(nextOrder.getAndAdd(DEFAULT_NODE_INTERVAL_POS));
|
testPlanApiCase.setPos(nextOrder.getAndAdd(DEFAULT_NODE_INTERVAL_POS));
|
||||||
testPlanApiCase.setExecuteUser(apiTestCase.getCreateUser());
|
testPlanApiCase.setExecuteUser(apiTestCase.getCreateUser());
|
||||||
|
testPlanApiCase.setLastExecResult(ExecStatus.PENDING.name());
|
||||||
testPlanApiCaseList.add(testPlanApiCase);
|
testPlanApiCaseList.add(testPlanApiCase);
|
||||||
buildLog(logDTOS, testPlan, user, apiTestCase);
|
buildLog(logDTOS, testPlan, user, apiTestCase);
|
||||||
});
|
});
|
||||||
|
|
|
@ -224,6 +224,7 @@ public class TestPlanApiScenarioService extends TestPlanResourceService {
|
||||||
testPlanApiScenario.setCreateUser(user.getId());
|
testPlanApiScenario.setCreateUser(user.getId());
|
||||||
testPlanApiScenario.setPos(nextOrder.getAndAdd(DEFAULT_NODE_INTERVAL_POS));
|
testPlanApiScenario.setPos(nextOrder.getAndAdd(DEFAULT_NODE_INTERVAL_POS));
|
||||||
testPlanApiScenario.setExecuteUser(scenario.getCreateUser());
|
testPlanApiScenario.setExecuteUser(scenario.getCreateUser());
|
||||||
|
testPlanApiScenario.setLastExecResult(ExecStatus.PENDING.name());
|
||||||
testPlanApiScenarioList.add(testPlanApiScenario);
|
testPlanApiScenarioList.add(testPlanApiScenario);
|
||||||
buildLog(logDTOS, testPlan, user, scenario);
|
buildLog(logDTOS, testPlan, user, scenario);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue