Skip navigation

Community

Currently Being Moderated

Executeing a TestStand Sequence in a Random Order

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

 

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

 

Attachments:
Comments (2)