NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I see StepType_Label steps in runtime results?

I do custom data storage using hooks in the VB User Interface code and a callback from the Sequential Model in the PostUUT section; one of the pieces of data I store is the step number within the main sequence.  I access each of the step types in the sequence using myPropObj.GetValString("RunState.Caller.Locals.ResultList[0].TS.SequenceCall.ResultList[" & CStr(stepnum) & "].TS.StepType.Value", 0) where stepnum is a variable that increments through the number of steps in the sequence.  The problem is that TestStand doesn't store a result for a StepType_Label.  I have looked everywhere I can think of in the data structure but can't find any other way to see if a step is a label.  The reason it's important is without that step being in the results list, the step numbering in our database is off by one for each label in the sequence.

Any ideas?
0 Kudos
Message 1 of 6
(4,046 Views)
jtc,

You will want to check the "Record Results" box in the Run Options of the step (going to properties of the step). By default, this is unchecked. See attached image for more details.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 2 of 6
(4,029 Views)
Thanks Brandon, I never thought to look there, obviously.  I would have figured every step type would default to 'record', but apparently not, thanks again.

Jim
0 Kudos
Message 3 of 6
(4,024 Views)
Jim,

There are a few steps that do not have Record Results checked. This are usually the steps that do not actually do anything.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 4 of 6
(4,009 Views)
Is there any way to make labels default to record result?  We use this type of step often in our testing, and it makes it monumentally easier to understand the results when these labels are recorded.  Right now we have to remember to record them in each sequence.
0 Kudos
Message 5 of 6
(3,763 Views)
The best way to do this would be to create a copy of the label Step Type and change that copied data type to automatically record results. To do this, go to the Types Window (Ctrl+T), then go to NI_Types.ini. From here, copy the label Step Type (just right click and copy). Now go to MyTypes.ini (in the same Types Window) and paste the step twice (the first paste just copies a reference, to create a new one you'll want to paste the second time). You can delete the first one (don't delete the EditSubstep) and now you have your second one to work with.

Name it whatever you like (can't be the same name as Label) and then Right-Click, go to Properties. Now go to the Default Run Options tab and check the Record Results box. Also, you can change the menu item to be named something different (like Label with Record Results or something). Now you can even hide the other label step by right-clicking the insertion palette and going to customize and then hiding the Label step type. If you need the step type on multiple machines, just copy the MyTypes.ini file to <TESTSTAND>\Components\User\TypePalettes where <TESTSTAND> is your installed TestStand directory (this is also where it is located on your machine). Doing all of this should give you everything you need and from now on you'll just use your new custom step type instead of the old NI one.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 6 of 6
(3,758 Views)