fix: 断言正确时获取不到请求结果

This commit is contained in:
chenjianxing 2021-01-06 18:10:48 +08:00
parent 625085c0a6
commit 32b8f17ba0
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
requestResult.addPassAssertions();
}
//xpath 提取错误会添加断言错误
if (!responseAssertionResult.getMessage().contains("The required item type of the first operand of")) {
if (StringUtils.isNotBlank(responseAssertionResult.getMessage()) && !responseAssertionResult.getMessage().contains("The required item type of the first operand of")) {
responseResult.getAssertions().add(responseAssertionResult);
}
}