NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I Insert a Fileglobals Variable into a Step Name

Solved!
Go to solution

Greetings Everyone,

 

     I'm curious, whether or not it's possible to insert a FileGlobals variable into a Step Name, whether it be an Action, Pass/Fail, Numeric Limit Test, or what have you.  An example would be "Paragraph 1.0 execution # {variable} running" were variable would be an incremental count, whether it be a for loop or any other type of senario.  Thank you in advance for any information that you may offer.

 

Regards,

 

Scott

0 Kudos
Message 1 of 3
(3,702 Views)

You can do this dynamically in the Pre-Expression of the Step by using the TestStand API.

 

Step.Name = "Paragraph 1.0 Execution #" + FileGlobals.VariableName + " Running"

 

Something like that.  During run time your step name will change to that.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(3,696 Views)
Solution
Accepted by topic author Scott754

Hi jigg,

 

     Thank for the reply.

 

     I tried it and Thank you.  It does exactly what I was hoping to do.  Many thanks.

 

Regards,

 

Scott

0 Kudos
Message 3 of 3
(3,668 Views)