NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Add variables in Step.Result.Common for test only

Hello everyone,

As mentionned in the title, I use TestStand 2024, I would like to add a string "myID" for each test (Pass/Fail, Numeric, Multiple, String).
For my traceability plugin, I need  to put it in the Step.Result.Common of the test step.

 

Location.png

 

My request here is to know what is the best practice to add and fill this variable? 

0 Kudos
Message 1 of 5
(247 Views)

If it is for testing only, use the post-expression to add whatever you want using the API.

like Step.Result.Common.SetValString()

 

If you need it permanently, I'd recommend defining a custom step type.

Message 2 of 5
(238 Views)

You can add the expression to set the property,

 

santo_13_0-1750768585012.png

santo_13_1-1750768617974.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 3 of 5
(233 Views)

Thanks,

if I want to have something permanently, without writting at each time the same thing , but I want to avoid custom type. 

Is there a solution?

 

A second question : if I create a custom type, how can I prevent another sequence developer from using the original test instead of the new one?

0 Kudos
Message 4 of 5
(164 Views)

@ptitenif wrote:

[....]

 

A second question : if I create a custom type, how can I prevent another sequence developer from using the original test instead of the new one?


Create you own company / department type palette and distribute it to your colleagues.

 

You might find https://youtu.be/xhyH54aQsTo?feature=shared interesting

0 Kudos
Message 5 of 5
(151 Views)