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:
-
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.
-
In the dialog, specify the name and location of the created element and press OK.
To add an existing element:
-
Right-click the Stores > XML node in the Project Explorer and choose Add > Existing Item from the context menu.
-
Select the file of the desired element in the ensuing standard Open File dialog.
Adding Elements While Creating Checkpoints
-
During test recording, click Add Check on the Recording toolbar. Select Web service or 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 Web Service or select File and then click XML in the resulting wizard.
-
In the Checkpoint wizard, specify the data to store.
-
TestComplete will add the appropriate XMLCheckpoint element to the XML collection automatically.
For more information, see About XML Checkpoints and About Web Service Checkpoints.
See Also
About XML Collection
About XML Checkpoints
About Web Service Checkpoints