Virus scan in progress. Please wait to download attachments.
You can use a TestStand expression to dynamically change the name of a test step in the execution window and the test report or database. This provides a convenient way to include step-related data in the test report or database.
In many cases, it is useful to include information about the test state in the report for a test step. You can accomplish this by dynamically modifying the name of a step using the pre-expression in the step. In addition to including the current state in the execution window, the updated step name will also be shown in the test report or results database.
Note: You can also log additional data using other approaches, such as the Additional Results feature. These approaches will include the data in the test report or database, but will not add information to the execution window.
This example uses the following expression to dynamically add information to the step name of a test step, including the current loop iteration and channel number:
The expression uses Step.Name to access the step name for the current execution, and Uses the step object in Runstate.SequenceFile to access the step object in the non-executing sequence file. This object is used because it will always have the original step name without the dynamic modifications from previous iterations of the step.
Hardware and Software Requirement
Change Step Name - TS3_1.seq
TestStand 3.1 or Compatible
Change Step Name - TS2010.seq
TestStand 2010 SP1 or Compatible
Change Step Name - TS2016.seq
TestStand 2016 or Compatible
Steps to Implement or Execute Code
Open the attached Sequence file, and observe that it has a single Numeric Limit Test step.
Select the test step, and click the Expressions tab. Observe that the pre-expression is configured to append the current iteration and the current channel name.
To see the step name update in the execution view, enable tracing and select a slower speed in the Execution tab of the Station Options (Configure » Station Options).
Execute the sequence using Single Pass. Observe the step name updating as it executes.
View the test report. Observe that the step name for the test results contains the dynamically added information.