Object checkpoints are deprecated. We do not recommend using them. Use property checkpoints instead. |
On the first page of the Object Checkpoint wizard, you can specify the window, control or object whose data you want to verify.
Note for mobile testing: To verify data on an object in a mobile application, you can specify the object by selecting it on the Mobile Screen. Make sure that the Mobile Screen window is not hidden when you call the checkpoint wizard. Also note that the mobile application under test and the mobile device where the application is running must be prepared for testing in order for TestComplete to be able to access the application objects.
You can specify the object in one of the following ways:
-
Pick the object with the target glyph
Drag the target glyph () to the desired onscreen object.
To select an object in a mobile application, drag the target glyph to the desired object on the Mobile Screen (see Select an Object on the Mobile Screen).
Select an Object on the Mobile Screen (for Android Applications)
Select an Object on the Mobile Screen (for iOS Applications)
Drop the glyph when a red frame appears around the object.
-
Select the object with the cursor and fix
Click the button and move the mouse pointer to the desired onscreen object.
To select an object in a mobile application, move the mouse pointer over the desired object on the Mobile Screen (see Select an Object on the Mobile Screen).
Select an Object on the Mobile Screen (for Android Applications)
Select an Object on the Mobile Screen (for iOS Applications)
When a red frame appears around the object, press the Select object shortcut, Shift+Ctrl+A. (The shortcut can be changed in the Global Shortcuts options.)
-
Select the object from Test Visualizer
This functionality is available only: -
for desktop and web applications,
-
if the Visualizer images contain object information, that is, they were captured in the Capture tested object properties mode.
Click the button. The Visualizer Frame window will open and display the image (frame) that is currently selected in the Test Visualizer panel. Select the desired object on the image.
-
-
Enter the object name manually
Enter the full name (or full mapped name, or alias) of the desired object into the Object box.
For web objects: If your project is configured to use XPath expressions and CSS selectors to locate web objects, the dialog will show the list of available locators (if any) for the specified web object. You can select the needed locator from the drop-down list.
Tips for selecting objects:
-
You may find the second technique more convenient than using the target icon, because you can manipulate applications before actually selecting an object. For example, you can open the tested application window containing the desired control and so on. Unlike using the target icon, with this technique, you can point to popup windows, tooltips, and other objects that are hidden in the application when being inactive.
-
To select a non-onscreen object, such as a
process
, enter the object name manually. -
Instead of selecting the object, you can copy its name from the Object Browser, Object Spy, keyword test, or script code beforehand and paste it into the Object box.
-
Despite the way you specify the object name, you can change or correct it directly in the Object box.
If the Map object names automatically option is selected, TestComplete automatically adds the specified object to the Name Mapping repository (if it is not there already). Your tests will take the object alias from the repository.
To make sure you have selected the correct object, click Highlight. TestComplete will highlight the appropriate object on the desktop screen or in the Mobile Screen window.
To proceed with the checkpoint creation, click Next.
See Also
Object Checkpoint Wizard
About Object Checkpoints
Name Mapping
About Mobile Screen Window
Selecting an Object on the Mobile Screen (Android Testing)
Select an Object on the Mobile Screen (iOS Testing)
Preparing Android Applications
Preparing iOS Applications
Testing Mobile Applications