We have automated tests setup for our WPF application. Our application has a self updating process that closes itself, replaces its exe with an updated exe and then restarts itself. We have implemented a way to test this procedure by using a mock application at startup and then feeding in our actual application as mentioned in your KB (http://docs.telerik.com/teststudio/advanced-topics/coded-samples/wpf/connect-to-running-app). We use the Manager.ActiveApplication.Detach(false) function to free the exe from the testing framework, we then update it and then reattach to the application when it restarts using the same method used when we feed in our actual application at startup.
This process works perfectly when running it via a Test List in the Telerik Test Studio IDE Runner. Unfortunately, this process only works on a single run through when we run the very same code on the ArtOfTestRunner.exe on our CI server. It will then refuse to work again until we restart the server. When we run the Manager.ActiveApplication.Detach(false) function, the ArtOfTestRunner.exe will immediately begin the next test in the Test List, instead of running the next step in the currently executing test (which is to hook back into the application after it restarts).
Do you have any insight as to why this is happening? Why would it work the first time, but continue to fail there after until the server has been restarted?
Hope to hear back soon