fix(接口测试): 修复场景执行在某些情况下转Hashtree失败的问题
--bug=1023565 --user=宋天阳 【接口测试】附件中的场景执行报错 https://www.tapd.cn/55049933/s/1340115
This commit is contained in:
parent
b749ff3d9f
commit
ae4908ad39
|
@ -277,7 +277,7 @@ public class MsScenario extends MsTestElement {
|
|||
String environmentGroupId = scenario.getEnvironmentGroupId();
|
||||
if (StringUtils.equals(environmentType, EnvironmentType.GROUP.name())) {
|
||||
this.environmentMap = environmentGroupProjectService.getEnvMap(environmentGroupId);
|
||||
} else if (StringUtils.equals(environmentType, EnvironmentType.JSON.name())) {
|
||||
} else if (StringUtils.isNotEmpty(environmentJson) && StringUtils.equals(environmentType, EnvironmentType.JSON.name())) {
|
||||
this.environmentMap = JSON.parseObject(environmentJson, Map.class);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
AND t.user_id = #{request.executor}
|
||||
</if>
|
||||
AND (t.integrated_report_id IS NULL OR t.integrated_report_id = 'null')
|
||||
ORDER BY t.create_time,t.end_time DESC
|
||||
ORDER BY t.create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="getScenarioTasks" resultType="io.metersphere.task.dto.TaskCenterDTO" parameterType="java.lang.String">
|
||||
|
@ -70,7 +70,7 @@
|
|||
<if test="request.executor != null and request.executor != ''">
|
||||
AND t.user_id = #{request.executor}
|
||||
</if>
|
||||
ORDER BY t.create_time,t.end_time DESC
|
||||
ORDER BY t.create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="getPerfTasks" resultType="io.metersphere.task.dto.TaskCenterDTO" parameterType="java.lang.String">
|
||||
|
|
Loading…
Reference in New Issue