NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the maximum iterations in TS property

Solved!
Go to solution

I was set the loopType of one step to Pass/Fail count. For example "Stop after 1 iterations pass or after a maximun of 3 iterations. The Maximun iteration is 3. What my qustion is how to get the maximum iteration from TS property by test codes during running. Thanks very much!

 

Corey Chen

Test Developer from OPPO

0 Kudos
Message 1 of 4
(2,871 Views)
Solution
Accepted by topic author Corey Chen

Hi,

 

This may be a hack but RunState.Step.LoopWhileExpression has the information.  It will return a string like: "RunState.LoopIndex < 69 && RunState.LoopNumPassed < 5"

0 Kudos
Message 2 of 4
(2,857 Views)

Hi TSJim.

 

Out test step can not identify the "RunState.Step.LoopWhileExpression", Seems it is an unknown variable. Could you tell me how to utilize it ? Thanks in advance!

0 Kudos
Message 3 of 4
(2,843 Views)

Hi Jim,

 

It is OK now, I will be accept you suggestions. Get my usefull information from the specific 'String' . Thank again!

0 Kudos
Message 4 of 4
(2,837 Views)