mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 11:08:38 +08:00
fix(接口定义): 修复场景列表执行结果重置失效的缺陷
--bug=1017842 --user=王孝刚 【接口测试】接口自动化-执行结果-重置无效 https://www.tapd.cn/55049933/s/1259526
This commit is contained in:
parent
7b36ad2a04
commit
0c4ce0f831
@ -209,10 +209,10 @@ public class ApiScenarioService {
|
||||
}
|
||||
if (MapUtils.isNotEmpty(request.getFilters())
|
||||
&& request.getFilters().containsKey(ApiTestConstants.LAST_RESULT)) {
|
||||
if (request.getFilters().get(ApiTestConstants.LAST_RESULT).contains(ApiReportStatus.PENDING.name())) {
|
||||
if (request.getFilters().get(ApiTestConstants.LAST_RESULT) != null && request.getFilters().get(ApiTestConstants.LAST_RESULT).contains(ApiReportStatus.PENDING.name())) {
|
||||
request.getFilters().get(ApiTestConstants.LAST_RESULT).add("");
|
||||
}
|
||||
if (request.getFilters().get(ApiTestConstants.LAST_RESULT).contains(ApiTestConstants.FAKE_ERROR)) {
|
||||
if (request.getFilters().get(ApiTestConstants.LAST_RESULT) != null && request.getFilters().get(ApiTestConstants.LAST_RESULT).contains(ApiTestConstants.FAKE_ERROR)) {
|
||||
request.getFilters().get(ApiTestConstants.LAST_RESULT).add(ApiReportStatus.FAKE_ERROR.name());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user