Get XML Block Data
Last updated
Last updated
The Get XML Block Data action in the Avo Assure is found under the @Generic Element is used to retrieve XML data from a specified block, based on the provided block XPath and save the result in the given output variable.
Input: <Filepath >;<block xpath>
Note: The tag which user want to find or store in output that user need to mention as block xpath.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
A transportation provider receives shipping data in XML format, containing blocks of information such as sender details, package contents, and delivery dates. During testing, the Avo Assure tool uses the specified XPath to retrieve data from the “name” block. This allows testers to confirm that each package name in the XML file is accurate. By automatically extracting data from the specified block, they ensure the tracking system displays correct information without requiring manual checks of each XML file.
Input: Provide the correct input as shown below:
C:\Docs\xml1.xml;<name>
XML Data:
The user must provide the name of the block they want to check.
<widget>
<debug>on</debug>
<window title="Sample Konfabulator Widget">
<name>main_window</name>
<width>500</width>
<height>500</height>
</window>
</widget>
Expected Result: It should display the <name> block content specified in the input value.
Output: The result of Get XML Block Data action is stored in the {result} output variable as [‘<name>main_window</name>’], which can be utilized for display or other purposes.