11-14-2017 07:26 AM
Hello,
is there a way to create an exeption with the onbard steps of teststand?
Reason: I am using a custom OPUI and want to test its behaviour when an exception in the testplan occurs.
Thanks
11-15-2017 02:00 AM
What do you consider to be an "exception"?
That term does not exist in the API of TS. What i think comes close to your 'exception' is the occurrance of a runtime error. There is a UI Message called UIMsg_RuntimeError (code 45) which should do something close to what you are looking for.
11-24-2017 06:57 AM
Hello,
simply use a post expression for the step which should generate an error:
Step.Result.Error.Code = 42,
Step.Result.Error.Msg = "Forced error message",
Step.Result.Error.Occurred = true
It will cause a UIMsg_RuntimeError to be sent to your custom user interface.