Create tree Module Attributes
You can create a tree Module Attribute from the structure of an XML or JSON message.
As opposed to the body Module Attribute, the tree Module Attribute includes a parent element and all its nodes rather than the whole message body.
Create tree Module Attributes from an XML message
To create a tree Module Attribute from an XML structure, follow the steps below:
-
Select the Module and switch to the Technical View.
-
Access the API Testing menu.
-
To mark the parent element you would like to steer, highlight it with your mouse.
-
Click Add in the API Testing menu.
Added tree Module Attribute SecurityToken with nodes
Create tree Module Attributes from a JSON message
To create a tree Module Attribute from a JSON structure, follow the steps below:
-
Select the Module and switch to the Technical View.
-
Access the API Testing menu.
-
To define the correct path for the tree Module Attribute, add the root element of the message as a Module Attribute.
Added Module Attribute item from first element
-
To mark the parent element you would like to steer, highlight it with your mouse.
-
Click Add in the API Testing menu.
Added tree Module Attribute Address with nodes
For information on how to steer tree Module Attributes, see chapter "Steer tree Module Attributes".