NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Additional results to fail step?

Solved!
Go to solution

So I am getting to use the newest versions of TestStand and I am playing with the Additional Results for a test step.  What I am wondering is; can additional results affect the pass/fail status of a step?  For example, if I have a numeric limit step that also returns a Boolean, can I use an Additional Result to fail the step based on the value of the Boolean?  Or, are additional results just for reporting?

0 Kudos
Message 1 of 6
(3,916 Views)

Hi,

 

I'm really just joining this thread to see what others say. But in general **I think** you'd have to add an expression or function that would combine the step status that resulted from the numeric limit evaluation and your boolean, and then put that back into the step status. Some choices would be post expression, making a custom step type with a poststep substep, or using a poststep engine callback. The TestStand Reference Manual has the order of execution of all these things in Chapter 3. But there may be a simpler way I'm unaware of.

cc

0 Kudos
Message 2 of 6
(3,914 Views)
Solution
Accepted by topic author paulmw

Additional Results only affect the content of the report. If you need a single step relying in regard to its result on two different parameters (e.g. numeric limit and boolean value), you have to create a custom step type.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 6
(3,912 Views)

@Norbert B wrote:

Additional Results only affect the content of the report...


That is what I was learning but I just wanted to make sure.  The way I've done this before is to pass the value to a local and test the local as a <none> adapter type.  For my case it doesn't have to fail the same step but just be evaluated.

Thanks-

0 Kudos
Message 4 of 6
(3,907 Views)

Follow up...

Can someone explain the uses of the "Is Limit" and "Is Measruement" flags that can be checked?  What/how does this affect the step?  How can someone make use of these?

0 Kudos
Message 5 of 6
(3,905 Views)

If you take a look into the report options, you will see that you can filter the content for "include limits" and "include measurement values".

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 6
(3,889 Views)