[Collapse]TestComplete/viewarticle/63445/
 [Expand]General Information/viewarticle/63445/
 [Expand]Using Help System/viewarticle/55799/
 [Expand]Getting Started Tutorial/viewarticle/56246/
 [Collapse]Using TestComplete/viewarticle/57875/
  [Expand]TestComplete User Interface, Projects and Settings/viewarticle/57876/
  [Collapse]Creating, Recording and Running Tests/viewarticle/56646/
   [Expand]Naming Objects/viewarticle/56265/
   [Expand]Creating Tests/viewarticle/57373/
   [Expand]Managing Tested Applications/viewarticle/57435/
   [Collapse]Checkpoints and Stores/viewarticle/56266/
    [Collapse]Checkpoints/viewarticle/55270/
     [Expand]Property Checkpoints/viewarticle/57028/
     [Collapse]Object Checkpoints/viewarticle/57021/
       About Object Checkpoints/viewarticle/57018/
       Creating Object Checkpoints/viewarticle/57022/
       Parameterizing Object Checkpoints/viewarticle/57026/
       Alternatives to Object Checkpoints/viewarticle/57016/
       Updating Object Checkpoints/viewarticle/57024/
     [Expand]Table Checkpoints/viewarticle/57051/
     [Expand]File Checkpoints/viewarticle/57002/
     [Expand]XML Checkpoints/viewarticle/57104/
     [Expand]Database Checkpoints/viewarticle/56990/
     [Expand]Region Checkpoints/viewarticle/57039/
     [Expand]Mobile Checkpoints/viewarticle/57109/
     [Expand]Clipboard Checkpoints/viewarticle/56983/
     [Expand]Manual Checkpoints/viewarticle/55350/
     [Expand]Web Service Checkpoints/viewarticle/55279/
     [Expand]Web Accessibility Checkpoints/viewarticle/57067/
     [Expand]Web Comparison Checkpoints/viewarticle/57077/
    [Expand]Stores/viewarticle/55001/
   [Expand]Running Tests/viewarticle/56462/
   [Expand]Handling Playback Errors/viewarticle/56641/
   [Expand]Keyword Testing/viewarticle/55462/
   [Expand]Scripting/viewarticle/56245/
   [Expand]Test Visualizer/viewarticle/55007/
   [Expand]Exploring Applications/viewarticle/55055/
   [Expand]Debugging Tests/viewarticle/56567/
  [Expand]Test Results/viewarticle/55010/
  [Expand]Enhancing Tests/viewarticle/56964/
  [Expand]Teamwork and Integration Into QA Process/viewarticle/57266/
  [Expand]Extending TestComplete/viewarticle/57655/
  [Expand]Automating TestComplete/viewarticle/57438/
   TestComplete Tips/viewarticle/57877/
 [Expand]Testing Types/viewarticle/62721/
 [Expand]Applications Testing/viewarticle/62606/
 [Expand]Working With Application Objects and Controls/viewarticle/55815/
 [Expand]Samples and Tutorials/viewarticle/56239/
 [Expand]References/viewarticle/57878/
 [Expand]Other Tools That Help You Test Better/viewarticle/63442/
 [Expand]TestComplete Licensing Guide/viewarticle/63451/
Updated: 3/11/2014 Applies To: TestComplete 10 Rating: ExcellentExcellentExcellentExcellentExcellent 1 vote(s) Click to rate: PoorNot badAverageGoodExcellent
Object Checkpoints Select language for code samples Select language for code samples

About Object Checkpoints

An object checkpoint is a test operation that verifies that an object’s properties contain expected values. For example, it can verify that a control in your application under test is enabled, visible on screen and located at the specified position.

In keyword tests, object checkpoints are performed using the Object Checkpoint operation:

Object checkpoint in a keyword test

In scripts, object checkpoints are performed using the Objects.CheckpointName.Check method:

Show Example

How to Create Object Checkpoints

You can add object checkpoints to your tests during the test recording and at design time. TestComplete provides the Object Checkpoint wizard that assists you in creating and configuring object checkpoints. For detailed instructions on how to use the wizard to insert checkpoints in your tests, see Creating Object Checkpoints.

When you create an object checkpoint, TestComplete stores collection of the object’s properties with their values and, optionally, collections of its child objects’ properties with their values to the project’s Stores | Objects collection.

How Object Checkpoints Work

An object checkpoint takes only one parameter - the name of the object whose properties you want to verify. Properties to be verified and baseline values to be used for comparison are specified by the Stores | Objects collection used by the checkpoint.

When you run your test, the object checkpoint obtains the specified object in your application (this object must exist at that moment), checks its actual property values and its child objects’ property values against expected values stored in the Objects collection and reports results.

Object Checkpoint Results

During the test run, object checkpoints check actual values of object properties against stored values and post check results to the test log. If the objects are identical (if the Store data of the selected object and its children option was enabled, TestComplete also checks all child objects), the checkpoint returns True and posts a successful checkpoint message () to the test log.

Otherwise, the checkpoint returns False and posts an error message () to the test log. The Additional Info panel displays a table containing properties that fail verification with their actual and expected values.

Object checkpoint results
Note: If you want to change the type of the message posted to the test log on verification failure or customize the log message of the checkpoints, use one of the alternative approaches described below.

Alternatives to Object Checkpoints

In addition to object checkpoints, you can use the following approaches to verify object properties:

  • Create a custom verification procedure that obtains the desired object and its properties and compares them with expected values.

  • Use the Objects.Compare method. The method is similar to object checkpoints, but it posts less detailed output to the test log.

Note: To verify a single property, use property checkpoints.

For more information, see Alternatives to Object Checkpoints.

Updating Object Checkpoints

If an object under test whose properties you verify has been modified in your application under test, your object checkpoint may fail. In order for the checkpoint to be passed successfully, update the collection of baseline values stored in the project’s Stores | Objects collection.

For information on how to do this, see Updating Object Checkpoints.

Samples

TestComplete includes sample projects (one for each supported language) that demonstrate how to create object checkpoints:

<TestComplete Samples>\Desktop\Checkpoints\Object

See also
Object Checkpoints | Object Checkpoint Operation | Check Method | About Objects Collection | About Property Checkpoints


© 2014 SmartBear Software. All rights reserved.
Email Send feedback on this document