fix: xpath提取出错会添加断言错误
This commit is contained in:
parent
6b076416fb
commit
83da070040
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue