Occurs when a test case run is over.
Occurs when TestComplete stops running a test case:
- When the execution of any project test item marked as a test case is stopped (regardless of whether you run individual test items or the entire project).
- When the execution of an arbitrary part of script code marked as a test case (by using the
aqTestCase.Endmethods) is finished.
- When the execution of any BDD scenarios or features, or tests specified via tags is stopped.
You can create an
OnStopTestCase event handler to perform actions after the test case execution is finished. For instance, to send information about the executed test case to an external test management system. For more information, see Integration With Test Management Systems (TMS).
The event has the following parameters:
The Event control that processes the event.
An object whose properties contain information about the executed test case. All properties are read-only.
||String. Specifies the test case name.|
Integer. Specifies whether the executed test case was successful or not. Possible values:
String. Same as
||Integer. Specifies the overall duration of the test case execution (in milliseconds).|
||String. Contains the first error message posted to the test log during the test case execution.|
||String. Contains the first warning message posted to the test log during the test case execution.|