Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Executeing a TestStand Sequence in a Random Order

by Active Participant Al.B on ‎06-25-2010 04:46 PM

Description

It is sometimes necessary to execute tests in no particular order to simulate real use, where tasks are not always run in the same order.  The example uses an array to determine the order of the execution, which can be easilty generated in a code module. Each step's post expression uses this array to determine the next step.  The post expression used is:

RunState.Sequence.Main[Locals.stepOrder[Locals.stepsExecuted]].Name

where stepsExecuted is used to track how many steps have been run, and stepOrder contains an array of the step indices in the desired order. 

Note: the "end" step should be the last array index to make sure the sequence finishes properly.

ts1.png

Comments
Member Cluo
Member

un

Member ccardona
Member

Hi, How can I run it instead ramdon in paralel, Thanks