Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running selenium automation tests on remote teamcity build agent

Recently we started using Teamcity for build management and to run selenium junit tests using ANT scripts. The tests are running successfully and shown as passed on teamcity console. When the tests are running if I login to the build agent machine, I was expecting to be able to see the browser window open and fields getting populated and submitted. I don't see the Firefox browser window open, wondering how my tests are passing. When I run the same test scripts in Eclipse, the Firefox browser window is opened and the web page fields get populated.

Appreciate your comments.

like image 448
usernz Avatar asked Dec 18 '13 02:12

usernz


People also ask

How do I run a Selenium test in TeamCity?

Configuring project in TeamCity Its VCS root should point to the Git repository where the code of the Selenium test cases is stored. Create a new build configuration inside this project. Attach it to the project's VCS root. Add the Maven build step.

How do I run a TeamCity agent?

To run an agent automatically on a Linux machine launch, configure a daemon process with the agent.sh start command to start it and the agent.sh stop command to stop it.


1 Answers

Because TeamCity build agents are run as a Windows service. So you won't be able to see the actual GUI.

If you want to change it, please change your build agent installation.

  • Installing and Configuring the TeamCity Server
  • How can I run a Windows GUI application on as a service?
  • Selenium Tests run in the background when TeamCity CI is run as a Windows service
  • Running Automated GUI tests with TeamCity
like image 96
Yi Zeng Avatar answered Nov 02 '22 05:11

Yi Zeng