NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a Custom Result at Runtime - but they are stacking up!

I have a test sequence that reads in an INI file.  I want to log the entries in the INI as results in the report (strings are fine).

 

So I pull the pairs into arrays and step through them.  I call CustomResults.Insert() and this works.

 

HOWEVER!  The result is PERSISTENT in the sequence file step, and the result remains on the next UUT, and then the next, etc.

AND the original sequence file is edited, not just the runtime report.  So if I have 3 entries in the INI and run 10 UUTs, the last UUT has 30 entries!

 

RunState.Caller.Step.AdditionalResults.CustomResults.Insert("\"" + Locals.Keys[Locals.index] +"\"" ,"\"" +Locals.Values[Locals.index]+"\"" ,"",PropFlags_IncludeInReport,-1)

 

What am I doing wrong that this isn't just adding the result to the runtime step and not the actual sequence?

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

I'm having the same issue.  Any workarounds?

Steven Dusing
CLA, CTA
0 Kudos
Message 2 of 3
(1,118 Views)

Well, I don't even recall making this post.  But I am still calling the function, but I'm not seeing that same behavior.

 

I just took a look, and I don't see anything that would change the behavior.  Huh.

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