|
OpenTAP 9.34
API Reference
|
Implementing this interface will enable hooks before and after resources are opened and closed. More...
Public Member Functions | |
| void | BeforeOpen (IEnumerable< IResourceReferences > resources, CancellationToken abortToken) |
| This hook is triggered before IResource.Open is executed. Only called once when e.g. a TestStep with mulitple resources starts. | |
| void | AfterClose (IEnumerable< IResourceReferences > resources, CancellationToken abortToken) |
| This hook is triggered after the TestStep or TestPlan is done executing. If triggered by a TestStep, defered actions may still be running. | |
Implementing this interface will enable hooks before and after resources are opened and closed.
| void OpenTap.ILockManager.AfterClose | ( | IEnumerable< IResourceReferences > | resources, |
| CancellationToken | abortToken ) |
This hook is triggered after the TestStep or TestPlan is done executing. If triggered by a TestStep, defered actions may still be running.
| resources | This will contain the same resources as given to BeforeOpen".</param> <param name="abortToken">A token that will be signalled if the locking action should be cancelled. |
| void OpenTap.ILockManager.BeforeOpen | ( | IEnumerable< IResourceReferences > | resources, |
| CancellationToken | abortToken ) |
This hook is triggered before IResource.Open is executed. Only called once when e.g. a TestStep with mulitple resources starts.
| resources | The resources that will be opened. |
| abortToken | A token that will be signalled if the locking action should be cancelled. |
OpenTAP 9.34 API built Wed Jul 1 2026 09:21:15