Programmatically Access the Number of Loops in TestStand

Updated Aug 17, 2018

Reported In

Software

  • TestStand

Issue Details

I am using looping on multiple steps in TestStand and want to programmatically access the value I set for Number of Loops. Is this property being stored in a variable at run-time? 

Solution

At the end of the step, TestStand adds the property TS.NumLoops to the main result of the step. If you need to access this value before the step executes, the value is stored in the Loop While Expression and you can parse through this string. 

WAS THIS ARTICLE HELPFUL?

Not Helpful