Skip navigation


Currently Being Moderated

Executeing a TestStand Sequence in a Random Order

Created on: Jun 25, 2010 4:46 PM by Al.B - Last Modified:  Jun 25, 2010 4:57 PM by Al.B



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:




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.




Comments (2)