Occurs when a timeout expires in a project or in a project suite.
The event has the following parameters:
The Event control that processes the event.
Params parameter refers to the
TimeoutParams object which provides information about the test item whose timeout exceeds. The object contains the following properties:
||Read-Only. Either “Project Suite”, or “Project” string. Use it to determine whether a project or project suite timeout occurs.|
||Read-Only. Specifies the test item name (the same string that is shown in the Name column of the Project editor) or the name of the project (the Name column of the Project Suite editor).|
If this parameter is True, TestComplete continues execution of the current iteration of the test item but cancels execution of the test item’s further iterations and its child test items.
Two notes (when the Break parameter is True):
If the parameter is False, TestComplete does not break the execution of the currently running test item.
When terminating the test item execution on a timeout, TestComplete terminates the tested applications that were launched from TestComplete. They are terminated before the
OnTimeout event is generated. See Stopping Tests on Timeout.
For information on how to create an event handler for this and other TestComplete events, see Handling Events.
The OnTimeout event is not generated if there is not enough free disk space during the test run. See System Requirements.