NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to alter the UUT status evaluation criteria

Hi,
 
What I want to do : My test cases return pass, fail, NA and invalid as a result. Based on this i set the status for eah step. I also want to set UUT status based on the individual step status.
 
What I do : I gather the test result from labivew as a number in teststand. Based on the number,using the expressions tab, I set the step status as on of the four described above. I built a custom test type for doing this.
 
I want to know how to program the UUT result based on my step status?
 
Regards
Gopal
 
 
0 Kudos
Message 1 of 7
(3,763 Views)
What do you mean with program your UUT?
0 Kudos
Message 2 of 7
(3,749 Views)

Got it, you can pass your step result status as a parameter to the PostUUT callback in the process model and use that status instead...

Hope it helps

0 Kudos
Message 3 of 7
(3,749 Views)

Hi,

Can you please explain me with a little more detail of how to do it?

For example, I have 5 steps and 2 have passed and 3 are NA. I want to evaluate the final result using these individual steps. I will not consider the NA for evaluating the result.

How can i do it?

Regards
Gopal

0 Kudos
Message 4 of 7
(3,742 Views)
Hi Gops,

I believe what << - N - >> was getting at was overriding the PostUUT callback to calculate your custom UUT status based on the result list in: RunState.Root.Locals.ResultList[n].TS.SequenceCall.ResultList

This variable will contain all the results from the steps in your main sequence. Once you loop over these step results and compute your custom UUT status, you can then set:
RunState.Root.Locals.ResultList[n].Status

This variable is what actually displays on the report for each UUT. As you probably know, by default it will resolve to "Failed" if any step in your sequence fails.

Regards,
0 Kudos
Message 5 of 7
(3,710 Views)
Hola Gops,
 
Here is the example....
 
Hope it helps
Download All
0 Kudos
Message 6 of 7
(3,703 Views)
Forgot to disable 'StepFailureCausesSequenceFailure' in the calls to the VIs
0 Kudos
Message 7 of 7
(3,698 Views)