NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

record result only if step fails

Solved!
Go to solution

Hello,

Is it possible to specify that a step should only appear in the results if the status is FAILED, and not when it PASSED the test?

It looks like you can only enable or disable the result logging for a step!

Thanks!

John.

0 Kudos
Message 1 of 10
(5,887 Views)

John,

 

maybe this article helps you to solve your request.

 

hope this helps,

Norbert 

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

Have you gone to the Report Options page and just changed the default result filtering expression? Click on the little down arrow and one of the built-in options is 'Exclude Passed/Done/Skipped'. You can enter your own expression or modify the ones that are there. This expression applies to all steps so it works great if you want to report all step failures as opposed to just some of the steps.

0 Kudos
Message 3 of 10
(5,875 Views)
Solution
Accepted by topic author has00536

Hi,

 

If the anwser from Dennis will full-fill your needs then ignore this.

If you want to match a only special step then i would add after this a statement

step which deletes the last Step.ResultList-element on  PreCondition Pass to this step.

 

 

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 4 of 10
(5,862 Views)

Thanks all!

I only want to do this for certain steps, and the solution that Juergen offers will work for me!

Thanks again for all your help!

0 Kudos
Message 5 of 10
(5,856 Views)

Hello,

 

Could you elaborate on the solution for this issue?  I did not understand the solution; a code snippet would be most appreciated!

 

Thanks,

Daniel

0 Kudos
Message 6 of 10
(5,556 Views)

Hi Daniel,

 

Try this example for elaborate

 

Hope this helps

 

juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 7 of 10
(5,529 Views)

Thanks so much for the help.  I was a little unclear at first - couldn't figure out why there were two RemoveElement expressions; but I then realized that the Post-Expression is the same thing as the main Expression in this case.

 

Thanks again,

Daniel

 

0 Kudos
Message 8 of 10
(5,515 Views)

This article addressed my problem.  I now know how to remove skipped steps from my report file.  Thanks.

0 Kudos
Message 9 of 10
(4,836 Views)

Hi TonyJ,

 

If you like to remove only a special step,

just take a look to the attached example, where Passed is replaced by Skipped.

 

If you like to remove all skipped steps, follow Denis's answer.

 

Regards

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 10 of 10
(4,816 Views)