02-14-2012 08:05 PM
Hi All,
I want to creat a summary of report with .txt,and i have disabled the function about report generation in teststand.
i created a complex sequence,it include some sub-sequences,example:the uut is tested on three different temperatures and four different voltages conditon.So i have creat three sub-sequences (diffrent temperatures) include four steps (different voltages),then mainsequence invoke three sub-sequences to excute test.
i only want get the fail-step's summary with,include: fail-step's name,status
how to do?thanks a lot
Solved! Go to Solution.
02-15-2012 12:57 PM
Take a look at the FailureHandlerExample.seq in the TestStand\Examples\Callbacks\PostStepFailureCallback folder. You can add failed step information to a text file inside of SequenceFilePostStepFailure callback.
02-16-2012 01:34 AM
Hi snowpunter,
Thanks for your reply.i tried it with SequenceFilePostStepFailure callback.and when the step failed,i can get the step's name with NameOf(RunState.Caller.RunState.Sequence).
But i want more informations inclue up-level sequence.Because i have used some "sequencecall".So user can easy to know what conditon
bring out the failure.
How to do that?
BR
John
02-17-2012 10:27 AM
You can use Parameters.Step.Name to get the failed step name. You can also use something like Parameters.Step.StepType.Name == "NI_MultipleNumericLimitTest" to filter different types of steps.
As far as finding the entire failure chain...
You can check RunState.CallStackDepth to see how many callers deep you are. Based on that information you can use RunState.Caller.Caller.(continued for however many callers deep you are).RunState.Step.Name or .Sequence.Name
So if the CallStackDepth is 1, you would only need to use one Caller. If it was 2, you would need to recursively use 1 Caller and then 2 Callers and so on.
02-22-2012 12:32 AM
thank you.it is done