03-02-2005 06:58 AM
08-10-2006 08:26 AM
Hi,
Due to the execution order within a step's execution a post step substep will be called directly after the code module itself has run.
You could evaluate the status as part of the step if you wanted, or you could move to using a post step callback in the sequence, then you could get a handle to the step, and in theory (I've not tried this) use the step's adapter to get to the adapter API and find out the path to a custom substep (rather than a post step substep) and run this, thus giving you a generic method of calling into the step after the status is resolved.
Counting the number of steps in a sequence is part of the sequence object (such as runstate.sequence) where you can call a method (use an activex/COM adapter to call an action step) and call the method GetNumSteps (this is based per step group, so run it out 3 times)
There are a few methods of including more variables into the resultlist - try looking at the AddExtraResult method of the Execution object, used in the process model sequencefile (from the sequential model, go to the test uuts entry point, and open the sequence call setup result settings (8 or so down in the main step group). That calls into the ModelSupport.seq and the Setup Result Settings sequence. In there are two pre-conditioned action steps that say if there is a property of the step called "x" then add it to the step result element in the resultlist array and call it "res x".
Hope that helps
Thanks
Sacha