03-18-2013 05:40 AM
Hello,
I am planning to do a test which must know the state of the security bit all the time. If this bit changes it's state to alarm state the currently running test must either abort testing immediately or goto cleanup (this part is still open). My question is how to do that? Should I do a parallel test process which constantly reads the state of the sequrity bit? I am using TS 2012.
BR,
Jick
03-18-2013 06:41 AM
One of the methods :
Main sequence()
Call new sub sequence in a seperate thread
other tests
new sub sequence()
Check for shutdown bit
if yes - run a statement step for terminate - ThisContext.RunState.Execution.Terminate()
wait - small delay
go to check for shut down bit
Refer API for either terminating ( which also calls cleanup) or abort ( no cleanup - not preferred).