07-19-2005 02:28 AM
I want if is possible to specify during the execution if any step will be executed or will be skipped.
My opinion is to use PreStep Callbacks, and here to specify if will be executed or not.
Thank you,
07-19-2005 12:43 PM
Nicut
It seems that you want to specify some preconditions for your step.
Depending on the precondition your step will be executed or skipped.
Check The Precondition Dialog Box help.
Best Regards.
07-20-2005 10:02 AM
After my knowledge each step or Sequences from the Precondition is executed only one date. My problem is I need soothing with is executed every beginning each step, for I can to determine if the step will by executed or not
07-20-2005 10:26 AM
Nicut,
Do you want to know before hand whether the an specific step will be executed or not?
1.Is it step type specific?
2. How would you prevent the step to execute?
3. Why do you want to know if the step will be executed?
The precondition expression is evaluated before the step executes. Every time it is turn for a step to be executed the precondition needs to be evaluated in order to decide whether skip or execute the step.
Check the Step Execution Section in the TestStand Reference Manual so you can see the order of actions that a step perform.
(What version of TestStand are you using?)
Best Regards!!
I
07-21-2005 03:08 AM
I want in preconditions to make something like this
SelectedSteps [StepId] == ‘True’ the step will be executed
== ‘False’ the step will be skipped
From other program language I export in a text file the array SelectedSteps, and in this mode to determine if the steps will be executed or not.
Thank you,
Best regards,
07-21-2005 10:00 AM
Nicut,
Yes you can do that using preconditions.
I assume that you want to skip steps (tests) in your sequence based on these external "flags".
This is a pretty common scenario. You have the same test sequence for different units and you want to skip certain tests based on a model number or serial number.
I am curious on how you are exporting your array. I assume that you export the array at the beginning of your sequence.
I am attaching an example that uses the property loader step type to export a series of Boolean local variables. I use this locals to decide whether or not to run the steps in my sequence. Notice that I am using preconditions.
The zip file contains two files. The sequence file and a text file called sourceFile. You can modify the source file in order to skip or execute the desired steps next time you execute your sequence.
I hope this helps.
Let me know how it works.
Regards.
07-22-2005 06:27 AM
Thank you