Forum Discussion

tlaford's avatar
tlaford
Occasional Contributor
13 years ago

How can a master tell a slave test item to stop without everything stopping

When theTimeoutEvent occurs our handler performs these two steps:

     Call MyCommon.TerminateRemoteApplication("MyApplication.exe")

     Call MyCommon.RebootSlaveHost()



It works fine with one exception: Once in a while (never on the same test item) the Master does not proceed to the next test item, it just sits there on the test item that was running on the slave when my timeout occurs.



However, if I click on the Slave's Indicator's STOP button after the TerminateRemoteApplication() call and before the RebootSlaveHost() call, everything proceeds as expected: when the reboot is complete the Master goes to the next test and the log shows the test was stopped.



Instead of manually clicking on the stop button I want to issue the command in my code.



I tried calling Runner.Stop but that stopped the entire ProjectSuite run as did setting Params.Break = true in the handler.

 

I only want to stop what is on the slave without affecting anything else so the master can quite happily proceed to the next test item when the reboot is complete.



Can anyone offer any enlightenment?

13 Replies