Hello,
I know it's recommended to use the TestStand User Interface Controls to write apps, but I want to write one using the TestStand Engine API.
I've been able to add an ApplicationMgr to my app and get an engine from it.
Using the TestStand Sequence Editor, I wrote a trivial sequence: a single step which is a Message Popup. I am able to Execute the sequence in the Sequence Editor, and I would now like to make my program execute it.
I thought this would execute my sequence and show me my popup:
SequenceFile sequenceFile = engine.GetSequenceFileEx ( fileName, GetSeqFileOptions.GetSeqFile_OperatorInterfaceFlags, TypeConflictHandlerTypes.ConflictHandler_Error);
object ignoredOptionalArg = System.Type.Missing;
Execution ex = engine.NewExecution(sequenceFile, sequenceFile.GetSequence(0).Name, null, false, ExecutionTypeMask.ExecTypeMask_Normal, ignoredOptionalArg, ignoredOptionalArg, ignoredOptionalArg);
int startCount = ex.StartCount;
engine.ReleaseSequenceFileEx(sequenceFile,0);
but nothing happens. What am I doing wrong?
Thanks,
Jeff