6.12.2. How Event Handlers work
Prev | 6.12. Event Handlers | Next

### 6.12.2. How Event Handlers work

When an error occurs in a Test Step, its parent Test Case is searched for an Event Handler for this type of error. If no Event Handler is found, the parent Test Case of this Test Case is searched and so on. Once a corresponding Event Handler is found, it is activated.

If no Event Handler is found in the highest Test Case in this part of the tree, a default Event Handler (set in the Test Suite properties) is activated.

Each Event Handler requires an ”Event Type” and a ”Reentry Type”. For information on these terms, see the section in the Tasks chapter (Section 3.27, “Dealing with errors in tests: Event Handlers”).