Example 3 - XPath expression to ignore the payload's namespace

Read variable from the saved message - XPath expression to ignore the payload's namespace.

There may be cases where the used messages for test case creation do not have the same namespace with the Object Definition. In that case, the namespace of the message payload must be ignored.

 

To achieve this situation, follow the instruction below.

  1. Add the new variable to the Automation Object.

2. Under the Variable Processing, add a new row and choose READ_MSG as a Var. Proc. Add the processing Parameter use the XPath expression.


The following XPath expression must be used in order to ignore the namespace of the xml payload:


//path/to/*[local-name()='nodeName']/text() or

//path/to/*:nodeName/text()

 

 

© 2017 - 2022 Int4 AG All rights reserved