There are two different abort scenarios.
If you want to programmatically abort a Test Plan execution from a
TestStep you can call the
If you have a step that takes a long time to execute, you can call the
OpenTap.TapThread.ThrowIfAborted() method to check if an abort is requested during the execution of the step.