fix: xpath提取出错会添加断言错误

This commit is contained in:
chenjianxing 2021-01-05 11:35:39 +08:00
parent 6b076416fb
commit 83da070040
1 changed files with 4 additions and 1 deletions

View File

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