03-28-2011 09:05 AM
In TestStand 3.5, how do you programatically read the status of the Configure->Station Options->Immediately Goto Cleanup on Sequence Failure checkbox? How would you programatically set this value?
Solved! Go to Solution.
03-28-2011 03:44 PM
Engine.StationOptions.AlwaysGotoCleanupOnFailure
03-29-2011 11:59 AM
Thanks for the reply, but I tried your suggestion and it cannot resolve the reference. When I typed in Engine. it was immediately replaced by RunState.Engine. so I used RunState.Engine.StationOptions.AlwaysGotoCleanupOn Failure. When the step was executed, there was an error stating "Unknown variable or property name RunState.Engine.StationOptions". When I go to the context tab, I see the Engine object, but I cannot expand to see what elements it contains. Any further suggestions? How does one find out what "Engine" contains anyway?
03-29-2011 12:43 PM
Thanks for the suggestion. After reading up a bit on the TestStand object model, I was able to utilize the ActiveX/COM adapter to get the property information I needed.
03-29-2011 01:18 PM
Sorry, I should have said you need to use the ActiveX adapter in 3.5. In 4.0 and beyond, you can also use an expression to access the TestStand API.