02-18-2002 11:18 AM
02-19-2002 02:27 AM
02-04-2008 05:28 PM
02-05-2008 12:56 AM
02-05-2008 10:03 AM
02-05-2008 04:07 PM
I figured out how to make this work. Instead of calling the Sequence File View Manager ConnectCommand method using the Run Selected Steps button and the CommandKind_RunSelectedSteps command kind, you use the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind. The tricky part is that before you can use the ConnectCommand method with the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind, you have to create a set of new commands. Do this by first invoking the Application Manager method NewCommands. This method returns an empty set of commands. You must then add a new command to that set. Do this by invoking the InsertKind method on the empty set of commands using CommandKind_RunEntryPointOnSelectedSteps for cmdKind, Sequence File View Manager for managerControl, -1 for insertBefore, and empty strings for currentMenuName and allMenuNames parameters. Once you have made these calls, then you can call the Sequence File View Manager ConnectCommand method using the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind.
The previous instructions work just the same for the Loop On Selected Steps button. Just substitute the CommandKind_RunEntryPointOnSelectedSteps and CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind constants with CommandKind_LoopEntryPointOnSelectedSteps and CommandKind_LoopOnSelectedStepsUsingEntryPoints_Set command kinds (and of course use the Loop On Selected Steps button reference instead of the Run on Selected Steps button reference when invoking the ConnectCommand method).
There is one mystery with this solution that I haven't figured out yet, besides the fact that it is so laborious and non-intuitive to me (but at least it works). Nowhere in any of the calls detailed above did I ever see a parameter to specify which execution entry point to use. I am using the default sequential model entry points Test UUTs and Single Pass. Typically you specify which entry point you want to use (such as when invoking the ConnectCommand method) in the form of an index to a set of entry points where the Test UUTs entry point corresponds to a set index of 0 and Single Pass corresponds to a set index of 1. How did the previous calls determine which entry point to use when I didn't specify anywhere which one to use? Do this just work because you can only run or loop on selected steps using no process model or the Single Pass entry point?