04-06-2023 10:53 AM
Hello,
I'm developping a software using TestStand api in C#.
I am executing a sequence from a .seq file using
axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 0).Execute(true);
How can I know when the execution ended ? Where/how can I check the status ?
Thanks.
Solved! Go to Solution.
04-06-2023 11:43 AM
You can handle the ApplicationMgr.StartExecution and ApplicationMgr.EndExecution events to monitor executions.
If there is an issue determining which execution event is for the execution you started with Command.Execute, you would need to instead start the execution with Engine.NewExecution, which returns the Execution reference.
Command.Execute is intended for use with standalone UI elements performing a wide range of possible actions. It does not return any command specific information.