XML Adaptor example
Description
The XML adapter allows you to interact with an .xml file, offering a set of Predefined Functions so that you can retrieve, review and modify the contents of the file. It also allows you to save the modified document. In this example we choose the option to download an XML file. We will also generate the same XML file as evidence.
Statement of the exercise
Solving the test case
As initialization parameter we will indicate the complete path of the file (File Path)
- FilePath: complete path of the file.
As a part of the mapping process, you should provide the adaptor’s information, regarding to connect and use it.
Functions we have used with XML Adaptor:
Files needed to run the case
Test Set Execution
When we finish executing this test case, we see if it has been executed correctly:
Capture of results
We then open the icon on the right (marked with a red arrow) and we have as a result the evidence folder, where both the log of the execution is stored, as well as all the screenshots, files, etc... if we have checked the "Evidence" box in the general settings of the diagram.
When returning the results, H-TEST returns a Word document, detailing the steps we have taken, the results obtained from each step, the links to the diagram and the test set, if we have clicked on download document in the Results box.

