03-27-2018 04:36 AM
Hi,
I use the batch-model to test some UUTs, i'd like to connect the listbar icons to the result status of the soket. My listbar-page is connected to the ExecutionViewMgr, currently the icon change to "fail" after report generation, i'd like to indicate at runtime if a step fails. A picture say more than words 🙂 please take a look of the attached picture.
is my intention possible?
04-11-2018 03:10 AM
Hi Sergej,
I'd ask another question: Does it make sense to you to excute test steps if the test result is already known?
I'd rather jump to the cleanup section if a UUT is already failed. In this case you see the red LED much earlier.
The following link explains to to implement my suggestion:
Programmatically Abort Execution upon Step Failure - National Instruments
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LiGSAU
Best,
Melanie
04-11-2018 06:58 AM
Hi Melanie,
unfortunately it does.
Meanwhile i found a workaround:
My testframework/GUI does not use the soket disabled state, so i can send a UIMsg to disable the soket.
I send the UIMsg_ModelState_EnabledStateSet in the ProcessModelPostStepFailure Callback once for the respective execution, the listbarControl realize it and change the icon it show.
To customize the shown icon i just add my custom icon to %teststandpublic%\Components\Icons\NI_UIControls and named it ExecDisabled.ico
It is not the solution i imagined, but it works in my case.
however, thank you for your commitment
Best regards,
Sergej