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:
-
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.
-
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
-
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.
-
In the Checkpoint wizard, select the page you want to verify. Then specify the data to check.
-
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