Adding Elements to the XML Collection

Applies to TestComplete 15.69, last modified on November 13, 2024

The XML collection of the Stores project item contains elements that are used to check and compare XML documents and web services. You can append elements to this collection in several ways:

Adding Elements From the Project Explorer

To create a new element:

  1. Right-click the Stores > XML node in the Project Explorer panel and then select Add > New Item from the context menu. This will call the Create Project Item dialog.

  2. In the dialog, specify the name and location of the created element and press OK.

To add an existing element:

  1. Right-click the Stores > XML node in the Project Explorer and choose Add > Existing Item from the context menu.

  2. Select the file of the desired element in the ensuing standard Open File dialog.

Adding Elements While Creating Checkpoints

  1. During test recording, click Add Check on the Recording toolbar. Select File and then click XML in the resulting wizard.

    – or –

    In a keyword test, add the XML Checkpoint or Web Service Checkpoint operation to the test at design time.

    – or –

    In a script test, click on the Code Editor toolbar. Select File and then click XML in the resulting wizard.

  2. In the Checkpoint wizard, specify the data to store.

  3. TestComplete will add the appropriate XMLCheckpoint element to the XML collection automatically.

For more information, see About XML Checkpoints.

See Also

About XML Collection
About XML Checkpoints

Highlight search results