04-18-2002 08:30 AM
04-18-2002 12:02 PM
04-19-2002 12:59 AM
04-19-2002 04:14 PM
04-19-2002 12:05 PM
11-24-2010 05:05 PM
Good afternoon Steps fan.
I'm digging out this post because i would like to know if Test stand has made any progress concerning the result log capability.
I'm trying to find a way to change on the fly the way the result is recorded.
What i basicly would like to do is recording a result only if it fails. I would like to find a way to "Check" on the fly the record result checkbox in the run option properties depending on the result of the step. By playing with the condition it might be possible to get the same result but i do not know how.
My second idea would idea would be to have a dummy VI that is executed only if the previous step failed and will log the data.
Any ideas ?
11-25-2010 01:14 AM
Hi,
Why dont you use the SequenceFilePostResultList callback. With this callback you can discard the result if it doesn't match your requirement.
11-29-2010 03:43 PM
Can you developp a bit. I'm new to Test Satnd and try to evaluate what i can do, and not do. With it ?
Thank you
Jc
03-22-2011 11:08 PM
Hi Ray - I have been able to get more familliar with TS, doing simple sequence to test and calibrate some analog equipements. I also get familliar with the callback principle by changing on the fly the name of some steps in such a way that they make sense when i read the report.
Here is a quick reminder of what i'm trying to do.
Execute a Test
If test Fail -> It will show in the report
Else -> Not in the report
I'm still trying to accomplish what i described earlier but running into issues. I tried the different approach:
1-The only way i managed to do it so far is the next one
setting up the test and manually unchecking the Record Result checkbox
And uf a if() in Test on the PreviousStep object, if the previous step has failed, i redo the test (fortunatly they are very short ) but setup with the RecordResult check box. This approach is working but is not very classy.
2-Then i tried to test Step.result.status in the post-Expression field. But according to the reference manual, this expression is evaluated before the Status expression. Dead end
3-The i figured i could try to play with the Post Action field by putting Step.RecordResult = (Step.Result.Status == "Failed") as a custom condition.
Once more i get some random result, The prpoerty is set, but since the step has already been executed, it looks like it has already been taken in consideration by the report generator.
4-I tried to use a call to the TS engine to change the property of the previous step but i get the same result as 3
5-I tried to use SequenceFilePostResultListEntry and then set the property of the step but once more without sucess.
What i'm looking for is either a callback that i can overload that is supose to happen after the result of the test has been evaluated but before we notify the engine to log the result. Do you have any other idea ?