Setting Verdict.Aborted does not stop the Execution

Hi,
We are using Keysight 9.26.1 developer version.
When TestStep set the Teststep verdict as Verdict.Aborted, It does not stop the Test step execution. It continue to execute the remaining test steps. But setting Verdict.Error stop the Test execution.

In order to stop the Test execution after setting verdict as Aborted, need to throw OperationCanceledException(). But this change verdict from Aborted(Set By TestStep) to Error.

  1. How to stop the execution after setting verdict as Aborted without throwing OperationCanceledException.
  2. If above is limitation, Is there anyway, throwing OperationCanceledException should not change previously set verdict?

Hi @rajanbabu033,

If you want to end test plan execution, you can abort the test plan main thread. This behaves the same as clicking the stop button in the UI.

step.PlanRun.MainThread.Abort();

Note, that this is not as flexible as throwing an exception. It cannot be handled or undone by e.g a parent step.