OnStartTest Event

Applies to TestComplete 15.69, last modified on November 13, 2024

Occurs when TestComplete starts a test run.

Declaration

OnStartTest(Sender) Parameters
Sender [in] Required Variant

Description

The OnStartTest event occurs when TestComplete starts a test run, namely --

  • When you run any test in your project. For example, the event fires when you run a keyword test or script routine by selecting Run from TestComplete toolbars or menus, or by passing command-line parameters to TestComplete.
  • When a project test item starts running (regardless of whether you run individual test items or the entire project). If the tests are organized into batches, the event will be fired for each test item.

You can create an OnStartTest event handler to perform desired actions after the test starts, for example, to set initial conditions for the test.

Parameters

The event has the following parameter:

Sender

The Event control that processes the event.

Remarks

For information on how to create an event handler for this and other TestComplete events, see Handling Events.

See Also

OnStopTest Event
OnTimeout Event
Handling Events
Event Control

Highlight search results