NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Local Variable to Test Name

I am trying to append a Local Variable to make it to the test name. I get the results to go into a CSV file, how would I be able to change a local variable to set it as a test name?

0 Kudos
Message 1 of 4
(3,203 Views)

Are assigning the value of the Local Variable to the test name or do you want to create a local variable with the name of the test? 

 

BTW- what is Test Name in your context and where does it come from?  It can mean a bunch of different things in TestStand.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(3,161 Views)

I am trying to assign a local variable to become a test name

0 Kudos
Message 3 of 4
(3,129 Views)

Again, not sure where you are getting test name from and what it even means in your context.  That is such a loose term and can mean a myriad of things.  Are you talking about a step name?  or the name of your sequence file?  In TestStand terms what is test name?

 

Assigning a local variable in TestStand is as easy as:

Locals.MyVariable = "Test Name" in any expression.

 

If you want the name of a step: Locals.StepName = NameOf(Step)

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 4
(3,101 Views)