Book Image

Advanced UFT 12 for Test Engineers Cookbook

Book Image

Advanced UFT 12 for Test Engineers Cookbook

Overview of this book

Table of Contents (18 chapters)
Advanced UFT 12 for Test Engineers Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using an XML checkpoint


Since the early 1990s XML files have been widely used for data transfer between application modules and even between different systems. An XML file may contain, for instance, the results of a billing record for a cellular phone customer. In such a case, it may be of high value to be able to have preset expected results and be able to compare actual XML files with these.

How to do it...

Proceed with the following steps:

  1. From the UFT menu navigate to Design | Checkpoint | XML Checkpoint (From Resource), which will open the dialog by the same title:

  2. Click on the Browse button and select a file from the Open XML File dialog. In our example, we will be using a sample XML given by Microsoft with the following contents:

    <?xml version="1.0"?>
    <catalog>
       <book id="bk101">
          <author>Gambardella, Matthew</author>
          <title>XML Developer's Guide</title>
          <genre>Computer</genre>
          <price>44.95</price&gt...