12-17-2018 05:05 AM
Hi all,
I'm trying to customise the PostUUT callback so that the dialog that is displayed includes additional failure information and I can't find much by the way of help or examples.
I know I need to create a custom PostUUT in my custom sequential process model and replace the DisplayFailBanner step with my own - the problem is that I can't seem to find any variables/data regarding the execution in the DoPostUUT sub-sequence to be able to include it in the custom dialog.
All you get as parameters are the Result string and error status and looking through RunState/ThisContext everything seems to be empty - I can't find the details of the test execution.
Ideally I want a list of all steps that failed, but I'd settle for the failure chain as shown in the TestStand report.
Any ideas/suggestions?
Thanks in advance!
12-17-2018
10:41 AM
- last edited on
01-10-2025
06:28 PM
by
Content Cleaner
I would consider overriding the callbacks as opposed to editing the process model unless you feel modifying the process model is the right way to go. https://www.ni.com/en/support/documentation/supplemental/07/using-callbacks-in-ni-teststand.html
Anyhow, the properties won't be populated at edit time. Put a breakpoint in there and then look at the variables and what they are populated with when it pauses. Note: you can right click on the variables and copy them and then paste the path for later.
If you do something like RunState.Root.Locals.ResultList you can then drill down and get all of the information about your test.