NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

counting failures

I am trying to modify my text report generator to also display the number of steps that failed. I noticed that in the report gen seq file that the total count is displayed by a parameter named "StepCount" and thought I could sort of follow suit by declaring a parameter named "FailCount". I set up a pre-condition on the incrementation of the "FailCount" parameter by looking at the step result status. If it is set to "Failed" then the FailCount would be incremented by 1. But I get an error when this expression is evaluated that it got a container and expect a string.
Any ideas on how to fix this or possibly a completely different path to get this done?
Thanks,
Mark
0 Kudos
Message 1 of 2
(3,009 Views)
Hi Mark,

In PutOneResultInResult, you could do a string comparsion on Parameters.Result.Status.

eg (StrComp(Parameters.Result.Status,"Failed") == 0) ? Parameters.FailCount++ : 0

Hope this helps
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,009 Views)