Forum Discussion

tlaford's avatar
tlaford
Occasional Contributor
14 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


  • Hi All,



    I just wanted to add that the link provided by Thomas is temporary and if anyone needs the patch, he or she should contact us via the Contact Support form to get it.







  • etran's avatar
    etran
    Occasional Contributor
    Hi,



    I have TestComplete 9.1 and am still seeing this problem. I had TestComplete 8.6 before with the patch and if a timeout occured, the run would still continue. My Timeout handler will find the task, stop it, terminate my remote application and reboot the slave computer.



    Is the patch already included in TestComplete 9.1 or will I still need it?



    Thanks,

    ET

  • Hi Elizabeth,


     


    There were a lot of changes in the Network Suite functionality since version 8.60. I would appreciate it if you installed the latest version of the tool which is TestComplete 9.20 and checked how it works for you. If you still face the issue, please describe it in detail. It would be even better if you can contact us directly using our Contact Support form.