fix(接口测试): 修复全选某一版本case执行时,会执行所有版本case的缺陷

--bug=1020794 --user=王孝刚 [BUG]接口定义-CASE处,选择某一版本所有数据批量执行,其他版本的CASE也执行了。
#20584 https://www.tapd.cn/55049933/s/1315522
This commit is contained in:
wxg0103 2022-12-14 11:14:51 +08:00 committed by 刘瑞斌
parent 5e0ae35227
commit a2b4c68319
2 changed files with 5 additions and 0 deletions

View File

@ -53,4 +53,6 @@ public class RunScenarioRequest {
private String serialReportId; private String serialReportId;
private Map<String, ApiScenarioReportResult> reportMap; private Map<String, ApiScenarioReportResult> reportMap;
private String versionId;
} }

View File

@ -836,6 +836,9 @@
<if test="request.protocol != null and request.protocol !=''"> <if test="request.protocol != null and request.protocol !=''">
and a.protocol = #{request.protocol} and a.protocol = #{request.protocol}
</if> </if>
<if test="request.versionId !='' and request.versionId != null">
and t1.version_id =#{request.versionId}
</if>
<if test="request.combine != null"> <if test="request.combine != null">
<include refid="combine"> <include refid="combine">
<property name="condition" value="request.combine"/> <property name="condition" value="request.combine"/>