02-25-2015 03:27 AM
Hi,
I am something of a TestStand novice, so apologies if this is a simple question.
Is there a way of programmatically closing a TestStand sequence on completion, or can I give it an instruction in its final step to close itself.
I would like the TestStand environment itself to remain running, I want to close only the sequence file in question.
Thanks,
Dan
Solved! Go to Solution.
02-25-2015 04:16 AM - edited 02-25-2015 04:38 AM
For closing the sequence file you can use a method of ApplicationManager called CloseSequenceFile.
You can obtain ApplicationManager reference out of the SequenceContext by getting its property Engine -> method GetInternalOption (InternalOption_ApplicationManger) -> cast it to IApplicationMgr class.
The easiset way to do that in TS is to use an action with ActiveX/COM adapter and set its settings like this. It should close the sequence file after its execution is over.