The Read Attribute from XML Tag filter lets you store the text of a specific attribute in a property. The attribute can occur anywhere in the result.
You can create this filter either manually from the filter list, or by using the embedded filter commands on an XML response.
To create the filter manually:
Complete the following fields:
The name of the property to consider as the last response for the step. If the property is not in the pull-down menu, you can enter it. The property must exist.
The name of the XML tag; for example, "target".
The occurrence of the tag from the top of response; for the first tag enter "1".
The name of the attribute to filter; for the href attribute enter "href".
The property in which to store the value.
The value to use if the attribute value is not found.
When selected, property value is URLEncoded.
Displays the property and values that result from running the filter.
To run and execute the filter, click Run Filter. The results appear in the Filter Run Results section.
To create the filter from the response page:
You can also add an assertion here. A Property Value Expression Assertion can be added to this step.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|