How to setup TeamCity for run selenium auto tests?

I have .NET web portal builded in TeamCity and have (Java + Selenium + TestNG + Maven) auto tests.

Need some guides:

1. How to setup basic clean teamcity for running selenium tests just using TeamCity without any type of "real" project

2. How to setup teamcity for running selenium ui tests after building and deploying to stage server and AFTER run selenium ui tests.

 

Thanks!

8 comments

Hi Dmitry,

Selenium tools are not started directly, but by build tools like Maven, Ant, NUnit, or Rake.Please vote for the related request: https://youtrack.jetbrains.com/issue/TW-39099. So currently there is no much specific about Selenium in TeamCity. 

Please note that there could be issues with automated GUI and browser testing if TeamCity agent is running as service. Please run agent via command line to avoid this problem.

Some related links that can be helpful:
http://andrew.lansdowne.me/2015/02/11/selenium-automated-testing-using-c-and-teamcity/
http://stackoverflow.com/a/6587722/3820003

0

OK, my Selenium test project is maven project, how I can do the subject?

0

How do you run Selenium test locally? You can run tests from TeamCity the same way as you do it via command line.
So you can login on agent machine, run tests via console (using maven) and then configure TeamCity to run your tests using Maven runner.

0

Hi Dimitry, its very easy to configure your project using maven, i have tutorial, post your e-mail here and i will send to you.

0

Hi Ramon, you can send to me? My e-mail is: diegodelriga@gmail.com. Thanks!

0

Hi Ramon, would you send me the tutorial please? nadia.pietravalle@gmail.com Thank you!

0

Hi Ramon, Can you send me tutorial? My email clkozgee@gmail.com. Thanks!

0

Hi Ramon, Can you send me tutorial please as well? My email tom.madeja@gmail.com. Thanks!

0

Please sign in to leave a comment.