XML Tree/Options Area (Checkpoint Properties Dialog Box) - XML Checkpoints

Relevant for: GUI tests and scripted GUI components

For an XML checkpoint, this area displays the XML hierarchy of the selected test object and the elements, attributes, and values to check.

This area includes the following sections:

XML Tree

    Note:
  • The XML tree displays the hierarchical relationship between each element and value in the XML tree, enabling you to select the specific elements, attributes and values you want to check. Each element is displayed with a icon. Each value is displayed with a icon.

  • Select the checkbox next to an element or value node to include that item in the checkpoint. Select an element or value node in the XML tree to display, edit, or parameterize its expected attributes and values in the options area of the XML Checkpoint Properties dialog box. For details, see the section on the Options area, below.

User interface elements are described below:

UI Element

Description

Add Child. Adds a child node below the selected node in the tree.

Insert Sibling. Adds a sibling node at the same level as the selected node in the tree.

Add Value. Enables you to assign a constant or parameterized value to the selected element.

Delete. Deletes the selected node. Note that you cannot delete the root node of the checkpoint.

Import XML. Enables you to browse to an existing XML file and import it. The new file replaces the selected node and its current sub-tree.

Export XML. Enables you to save the content of the checkpoint tree to an .xml file. This option is enabled only when the root node of the tree is selected.

Edit XML as Text. Opens the Edit XML as Text Dialog Box, enabling you to modify the XML text of the selected node and its subnodes in a text editor.

Select All. Selects all element and value nodes in the XML tree as well as all element attributes.

Clear All. Clears all element and value nodes in the XML tree as well as all element attributes.

 

Duplicate. Adds a new node, identical to the selected one, as a sibling node at the same level as the selected node in the XML tree.

Available: Only from the context menu (right-click menu).

<XML tree> A hierarchy of all XML elements in the selected XML test object.

Options Area

User interface elements are described below:

UI Element

Description

Attribute

The list of attributes for the selected element or value node in the XML tree.

Value

The list of values for the selected element or value node in the XML tree.

Check number of attributes

Checks the number of attributes that are attached to the element.

Check number of child element occurrences in block

Displays the number of child elements associated with the selected parent element. If you select this option, OpenText Functional Testing verifies that the number of child elements in your XML tree (with the specified name, if applicable) corresponds to the number that appears in the Check number of child element occurrences in block field.

You can specify the child element name for the Number of child element occurrences check. If you select a child element name, OpenText Functional Testing verifies that the number of child elements with that name corresponds to the number that you specify in the Number of child element occurrences in block field.

Select Any Child (default) to check the total number of child elements associated with the selected parent element.

Schema Validation

Confirms that the XML in your application or file adheres to the structure defined in a specific XML schema or schemas. You can validate the structure of the XML you are checking using one or more external schema files or using schemas embedded within your XML document. For details, see Schema Validation Dialog Box.

See also: