12-08-2009 03:25 AM
Hi
Can any explain how to create an execution which will end with termination stateExecutionTerminationStates.ExecTermState_KillingThreads?
Regards,
Ceaser
12-11-2009 12:49 PM
Ceaser,
Killing threads is a drastic action that a user can choose to take if an execution is not responding. Executions should should never enter this state under normal testing conditions!
Since you don't provide any background as to why you want to know this information, I want to be very clear that you should not be using this state to implement any normal code-flow. The state should only ever exist in an error condition.
Now with that said, if you want to do testing of some error handling code, here's how you can get into that state if you want to do testing:
Please note the warning under Kill threads: "WARNING: killing threads can leave TestStand in an unreliable state". For this reason, you only want to kill threads if you are willing to take the chance that your system will be in an unknown state and you will need to restart TestStand.