fix(接口自动化): 场景名称变更,执行报告同步变更。

This commit is contained in:
fit2-zhao 2021-04-01 14:35:45 +08:00 committed by 刘瑞斌
parent 3ce3bc88f0
commit 2a376889f3
2 changed files with 3 additions and 1 deletions

View File

@ -88,6 +88,7 @@ public class MsScenario extends MsTestElement {
ApiScenarioWithBLOBs scenario = apiAutomationService.getApiScenario(this.getId());
if (scenario != null && StringUtils.isNotEmpty(scenario.getScenarioDefinition())) {
JSONObject element = JSON.parseObject(scenario.getScenarioDefinition());
this.setName(scenario.getName());
hashTree = mapper.readValue(element.getString("hashTree"), new TypeReference<LinkedList<MsTestElement>>() {
});
// 场景变量

View File

@ -100,9 +100,10 @@
<select id="list" resultMap="BaseResultMap">
SELECT r.name AS test_name,
r.name, r.description, r.id, r.project_id, r.create_time, r.update_time, r.status, r.trigger_mode,r.scenario_name,
r.name, r.description, r.id, r.project_id, r.create_time, r.update_time, r.status, r.trigger_mode,s.name as scenario_name,
project.name AS project_name, user.name AS user_name
FROM api_scenario_report r
LEFT JOIN api_scenario s on r.scenario_id = s.id
LEFT JOIN project ON project.id = r.project_id
LEFT JOIN user ON user.id = r.user_id
<where>