04-21-2017 08:13 AM
Requirement 1 - Is there any parameter in Teststand ,where I can disable all the step type not to log the result at one shot .
Requirement 2 - I need to log the result only when the step type fail.
Please let me know for the above 2 how to perform .
Regards,
Prithviraj
04-21-2017 08:22 AM
You can perform both with a customized PostResultListEntry callback.
04-21-2017 08:26 AM
Hi Prithviraj,
You could use the Sequence File Callback "SequenceFilePostResultListEntry" and check for the step type you want to exclude, using the following statement:
Parameters.DiscardResult = (Parameters.Step.StepType.Name == "YourStepTypeToExclude")
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
04-21-2017 09:11 AM
Hi Prithviraj,
You can filter the steps so only fails are logged by using the following expression:
Parameters.DiscardResult = (Parameters.Step.StepType.Name == "YourStepTypeToExclude") || (Parameters.Step.Result.Status != "Failed")
Regards,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
04-24-2017 01:28 AM - edited 04-24-2017 01:29 AM
Hi Prithviraj
First Requirement can be implemented by Edit-Sequence Properties-Disable Result Recording for all steps