05-13-2010 01:25 PM
My code tries to execute a test via the following C# code:
Datetime startTime = DateTime.Now;
this.axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 1).Execute(true);
Datetime endTime = DateTime.Now;
However, the call to Execute() doesn't block. I assume it spawns a new thread or process and returns.
Is there a way to configure TestStand so this call will block until the execution completes?
Solved! Go to Solution.
05-13-2010 01:31 PM
No, it launches a new thread. It would be very bad if it did block, because your GUI thread needs to process Windows and TestStand events.
Instead, use both the StartExecution and EndExecution events on the ApplicationMgr.