Relevant for: GUI tests and scripted GUI components
You can use XML checkpoints to check the contents of individual XML data files or documents that are part of your Web application.
You can perform checkpoints on XML documents contained in Web pages or frames, on XML files, and on test objects that support XML (such as WebXML test objects). An XML checkpoint is a verification point that compares a current value for a specified XML element, attribute and/or value with its expected value. During a run session, UFT One compares the expected results of the checkpoint to the current results.
You can create the following types of XML checkpoints:
XML Web Page/Frame Checkpoint. Checks an XML document within a Web page or frame.
XML File Checkpoint. Checks a specified XML file.
In addition, UFT One provides several scripting methods that you can use with XML data. You can use these scripting methods to retrieve data and return new XML objects from existing XML data. You do this by using the XMLUtil, or WebXML objects to return XML data and then using the supported XMLData objects and methods to manipulate the returned data.
For details on XML objects and methods, see the Supplemental Objects section of the UFT One Object Model Reference for GUI Testing.
Note: XML checkpoints are compatible with namespace standards. A change in namespace between expected and actual values results in a failed checkpoint.
For details on XML standards, see: http://www.w3.org/XML/
For details on namespace standards, see: http://www.w3.org/TR/1999/REC-xml-names-19990114/