08-22-2018 03:00 PM
Hi,
I am writing an Test sequence where-in, I want to automatically clear the Message Popup from display upon occurrence of an event notification, so that the execution does not stop and please do note - I don't want to use the Timeout option available for the Message popup.
Scenario:
I have two threads running in parallel, where-in on one thread logic processing takes place and on the other thread Message popup along with other processing is in place.
I want to automatically clear the first Message pop upon notification of Button 1 pressed and display another Message pop up - Press Button 2. So that the execution does not stop and it completes without any manual intervention.
Note: Create, Wait step of the Notification is taken care.
Please suggest.
Thread 1 Thread 2
Logic processing
Trigger Thread 2 .........
....... Display Message popup - Press Button 1
....... Display Message popup - Press Button 2
Set Notification Button 1 pressed ..........
....... ..........
.......
Set Notification Button 2 pressed
Thanks in advance for your suggestions.
08-23-2018 08:48 AM
I'm pretty sure you can't do that with the out-of-the box message popup in TestStand. Once it enters the post-step substep (which is what displays the dialog) you are pretty much set with your step properties and how the message box behaves.
A couple options:
1- create your own message dialog in whichever language you choose. Have it poll a variable and set the variable from the other thread.
2- edit the message popup code. You have the source code. <TestStand>\Components\StepTypes\MsgBox
Regards,
08-23-2018 11:28 AM
If you wanted to, you could put the message box step in a sub-sequence that you invoke in a new execution. You could then use the execution reference to terminate the execution and message box at will.