AnsweredAssumed Answered

Evaluate Response Xpath assertion fail the policy

Question asked by Bravomao on Nov 27, 2018
Latest reply on Nov 27, 2018 by dasjo02

Hi,

Here's a sample XML.

<aaa>

   <bbb>111</bbb>

   <ccc>222</ccc>

</aaa>

If this XML contains node <ddd></ddd>, I need to know and show the value.

The problem is every response XML could contain this node or not.

I tried to use evaluate response XPath assertion to check the path. (/aaa/ddd)

 

If the node(ddd) exists, the policy goes smooth.

If the node(ddd) doesn't exist, the policy will fail.

 

Is there any way to make the policy continue when the node(ddd) doesn't exist?

 

Best Regards,

Outcomes