Team Foundation Server: TestComplete fails to access GUI objects
Hello everyone,
I'm trying to run TestComplete tests via Team Foundation Server, calling a batch script with command line commands as in https://support.smartbear.com/viewarticle/81120/?q=command+line#_ga=1.247290380.907979927.1438597221
This works fine as long as I call the script on the Server where TC is installed, logged in remotely.
If I call the batch skript as a build step in TFS, the test starts running, performing nun-GUI tasks like logging the first messages. As soon as the test tries to click the first GUI button, the test fails saying "The operation cannot be performed, because the user session is non-interactive".
When I started the same scripts using Windows' task schedule; there was a similar problem that could be solved as explained in https://support.smartbear.com/viewarticle/90018/, but I fail to find an analogue solution for tfs.
Thanks in advance,
Florian
If it's part of the build process, you probably need to start that as an interactive session.
This isn't something I've ever done myself, but this looks like it might be helpful?
https://msdn.microsoft.com/en-us/library/ms181712(vs.110).aspx#interactive