Does anyone have any experience running automated GUI unit tests under a TeamCity build agent (in particular with FEST)?

We are using TeamCity 4.5.1 with build agents running on Windows XP SP3. We have some automated GUI unit tests using FEST. One particular test fails almost 100% of the time when run under the build agent, although it has succeeded a couple of times in the past. The test fails because it times out waiting for a JOptionPain. When ever we run this test from Eclipse or Ant (from the command line) the test passes 100% of the time, unless the user is clicking on different windows in the UI while the test is running. We think this is a focus problem, for some reason something bad happens to the window focus when running under the build agent, but we cannot imagine what it might be.

Does anyone have any experience running automated GUI unit tests under a TeamCity build agent (in particular with FEST)?

How does TeamCity handle UI focus when running a build configuration using an Ant build runner? Also, please note that the build agent process is not being run as a service, but as a start-up item in user login.

Thanks in advance for any assistance

3 comments
Comment actions Permalink

TeamCity doesn't handle UI.  My guess is you're running a windows build agent as a service.  Windows services have no access to the console though, so this will get you nowhere.  To get around this, on the agents where we want to run GUI tests, we run TeamCity in console mode.  Simply run agent.bat (in the TC bin folder) with the parameter start (or stop to stop the agent).  Of course, you'll have to leave a desktop session open for this to work properly...

good luck.
ray

0
Comment actions Permalink

Hi, I have tried the start command and I saw some stuff in the console, but now in the team city admin site it says that we don't have agents running..... Is that ok? or after execute the start command it should display one agent running....

0
Comment actions Permalink

Nevermind, I saw the agent in the Team City admin site.....

0

Please sign in to leave a comment.