NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Attributes of result container

Hi!

 

At design time of the sequence file I want  to add additional information to the result containers to control the reporting of the step result. This additional information

must be possible to attach to every kind of step - even to NI step types. So (using TS2010) I think

attributes are the ideal solution.

 

Unfortunately attributes which I add to the  'Step.Result' property do not show up after executing the step  in 'Locals.ResultList[x].Result' .

With subproperties of the result container this works as expected but not with the container itself.

 

Any ideas?

 

Ciao

 sailor

 

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

The results in Locals.ResultList[] are created by copying the contents of Step.Result, but not Step.Result itself. If you want to attribute the result, you''ll need to put the attribute on the corresponding element of Locals.ResultList.

 

While in a step, this will typically be the last element in the locals.ResultList array. You might also find the Step.LastStepResult and Step.CurrentLoopResult properties useful. Note that steps that loop via loop properties create a result for each loop iteration and a final loop summary result.

 

0 Kudos
Message 2 of 3
(3,065 Views)
You might consider using the Additional Results feature rather than Attributes.

-Doug
0 Kudos
Message 3 of 3
(3,049 Views)