Running Object-Driven Tests

Applies to TestComplete 15.62, last modified on March 19, 2024

The object-driven testing (ODT) functionality is deprecated. Do not use it to create new tests. It will be removed from the product in one of the future releases. As an alternative, you can create custom classes in your scripts. For more information, see Alternatives to the ODT functionality.

The ODT project item specifies an object-driven test in the given project. You can run this test as a whole or run its parts individually.

To run the entire object-driven test, right-click the ODT project item in the Project Explorer panel and select Run from the context menu.

TestComplete will walk down the hierarchy of the test's custom objects starting from the very beginning. To control the test process, use specific means for filtering test data, for walking down the object hierarchy and running methods of each object, and for selecting the methods to be run. See Controlling Object-Driven Tests.

The entire object-driven test can also be run as a test item (see Tests, Test Items, and Test Cases).

To initiate a run of the entire object-driven test from a script, call the Data.Run method. To run the test from a script for all objects of a particular data group, for a particular custom object or for a definite array object, use the Group.Run, Object.Run or ArrayObject.Run methods respectively. You can also call all of these methods from your keyword test using the Call Object Method, Run Code Snippet or Run Script Routine operation. To run an object-driven test from a keyword test, you can also use the Run Test operation.

See Also

Object-Driven Testing
Controlling Object-Driven Tests
ODT Object

Highlight search results