Could you elaborate on what you mean by terminated and errored? Are you asking how to terminate an execution?
Please explain the background of that request. TestStand should not alter the test result by forcing a specific "outcome".
Also note that "error" has a very specific meaning for TestStand: The test system itself encounters an issue and is not able to proceed with a normal test run with an evaluation of the DUT.
Errors are induced in case Step.Result.Error.Occurred turns true for the active step.
Terminated is a result of termination of the execution by e.g. Runstate.Execution.Terminate().
I have a step that checks if there is an error with test equipment. If I find a fault, I want the test sequence to stop and run the cleanup but the key here is I want the overall UUT Result = ERROR or TERMINATE.
You seem to mixup abort and terminate. Terminate WILL execute all steps in cleanup stepgroups while abort skips even those...
Do you know the terminate step statement to terminate the test sequence that will still run the cleanup?
Also, while you mention abort, what is the step statement to do that as well?
Thanks for your help!
You should not use abort (unless in specific corner cases)!
Anyhow, similar to terminate: Runstate.Execution.Abort()