Working With Application Objects and Controls

Applies to TestComplete 15.47, last modified on January 20, 2023

TestComplete provides various test objects, methods and properties for simulating user actions on objects in the application under test, retrieving data from objects and verifying the state of objects. Operations on objects can be both recorded and added to the test manually. Support for custom controls can be extended by mapping them to standard object classes, or by using a variety of supplementary techniques for manipulating objects.

The following topics provide detailed information about automating operations on objects in applications.

General Information

About Working With Application Objects and Controls

Contains basic information about TestComplete automation capabilities provided for application objects.

Interacting With Non-Compatible Application Objects

Describes extra techniques of working with non-supported controls in tested applications.

Testing Owner-Drawn Controls

Describes the specifics of testing owner-drawn controls.

Working With Custom Child Controls

Describes the specifics of accessing child elements of supported third-party controls.

Common Tasks

Checking Object State

Explains how you can check the current state of objects in your tested application.

Checking Whether an Object Exists

Explains how you can check whether a specific object exists in your tested application at the moment.

Searching for an Object

Explains how you can find an object in your tested application by its property values.

Waiting for an Object, Process or Window Activation

Explains how to wait until a specific process or window becomes available before continuing the test.

Waiting for an Object to Have a Specific Property Value

Explains how to wait until an object gets a specific property value before continuing the test.

Waiting for Object State Changes

Explains how to wait until an object's state changes before continuing the test.

Simulating User Actions

Simulating User Actions on Application Windows

Describes test object methods that are used to activate, close, maximize and minimize a window, restore its position and perform other actions on windows.

Simulating Menu Actions

Describe test object methods that let you simulate actions on menus and context menus.

Simulating Mouse Actions

Describes test object methods for simulating various mouse events.

Simulating Mouse Wheel Rotation

Describes test object methods for simulating mouse wheel rotation.

Simulating Selection of Items and Nodes

Describes test object methods used to select items in list controls.

Simulating Keystrokes

Explains how to simulate keypresses in applications.

Differences Between Simulated User Actions and Real User Actions

Lists known differences between actions of real users and actions simulated by TestComplete.

Object-Specific Tasks

Working With Standard Windows Controls

Provides detailed information about automating various testing operations on standard Windows controls. Sample scripts are included.

Working With Android Controls

Provides detailed information about automating various testing operations on standard Android controls. Sample scripts are included.

Working With iOS Controls

Provides detailed information about automating various testing operations on standard iOS controls. Sample scripts are included.

Working With Grids

Provides detailed information about automating testing operations on various grid controls. Sample scripts are included.

Working With Open File and Save File Dialogs

Describes test object methods used to automate operations on the standard Windows Open and Save dialogs.

Testing Modal Windows

Explains how you can handle modal windows displayed by your tested application.

Working With Ribbon Command Bars in Windows 7 Applications

Contains information about automating standard Windows Ribbon controls. Sample scripts are included.

Working With XtraBars Controls

Contains information about automating Developer Express XtraBars controls. Sample scripts are included.

Working With .NET ErrorProvider

Contains information on how to work with the Windows Forms ErrorProvider component from tests. Sample scripts are included.

Related Topics of Interest

Supported Controls

Provides a complete list of controls supported by TestComplete.

Object Identification

Describes various approaches to identifying controls in tested applications.

About Checkpoints

Describes various checkpoint types provided by TestComplete and explains how you can use them to verify controls in your tested application.

See Also

Applications Testing

Highlight search results