NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass/Fail test

Solved!
Go to solution

Hi 

I am new to TestStand Software. I am writing a sequence where I use action step to get the value from .Net Visual studio. I am trying to write test that check that value and indicate pass or fail in the report.

Basically I want to do is:

get state variable from .net which I am getting, check that variable number suppose get state = 9; Now I want to see if get state = 9 then pass else if not =9 then fail. How do I do that any help is appreciated.

 

Thank you in advance.

0 Kudos
Message 1 of 3
(1,102 Views)
Solution
Accepted by topic author sara67

You should change the step type to a numeric step type.

 

On your existing step go to the properties and under General there is a Type field.  Click the box next to it and go to Tests>>Numeric Limit Test.

 

Now on the Limits tab change the Comparison type to Equal.

Set the Low limit to 9.

 

On the Module tab make your value equal to Step.Result.Numeric by using that as the parameter you want to check.

 

Let me know if you have any questions about this.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(1,054 Views)

I'll try that. Thanks for the help.

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