fix(接口定义): 修复场景列表执行结果重置失效的缺陷

--bug=1017842 --user=王孝刚 【接口测试】接口自动化-执行结果-重置无效
https://www.tapd.cn/55049933/s/1259526
This commit is contained in:
wxg0103 2022-10-12 15:00:15 +08:00 committed by f2c-ci-robot[bot]
parent 7b36ad2a04
commit 0c4ce0f831
1 changed files with 2 additions and 2 deletions

View File

@ -209,10 +209,10 @@ public class ApiScenarioService {
} }
if (MapUtils.isNotEmpty(request.getFilters()) if (MapUtils.isNotEmpty(request.getFilters())
&& request.getFilters().containsKey(ApiTestConstants.LAST_RESULT)) { && 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(""); 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()); request.getFilters().get(ApiTestConstants.LAST_RESULT).add(ApiReportStatus.FAKE_ERROR.name());
} }
} }