Adding Elements to the WebTesting Collection

Applies to TestComplete 15.70, last modified on December 17, 2024

The WebTesting collection of the Stores project item contains elements that are used to check and compare web pages. 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 > WebTesting 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:

  • Right-click the Stores > WebTesting 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

  1. During test recording, click Add Check on the Recording toolbar and then select Web page in the resulting wizard.

    – or–

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

    – or –

    In a script test, click Add Checkpoint on the Code Editor toolbar and then select Web page in the resulting wizard.

  2. In the Checkpoint wizard, select the page you want to verify. Then specify the data to check.

  3. TestComplete will add the appropriate element to the project’s Stores > WebTesting collection automatically.

See Also

About WebTesting Collection
About Web Accessibility Checkpoints
About Web Comparison Checkpoints

Highlight search results