How to get selenium tests running in Jenkins

19 views
Skip to first unread message

Sven Person

unread,
Nov 8, 2016, 4:27:31 AM11/8/16
to Jenkins Users
Hi,

i build my first selenium test project. i build it as maven project using selenium 2.53.1 in intellij. the test is opening a website, grabbing links there and opens them in a new window to check if the site the links redirect to is a 200, 404 or 505 page. as  browser i use firefox. 
its running fine when i start the test in selenium.

i use the standart notation with  @BeforeClass  @ Test and @AfterClass

now i want to get the test running in jenkins. i put the source code on bitbucket (using it for version controlling too) and then but the bitbucket source into jenkins. 

when i build the project it seems to run fine, but no tests get executed.

attached you will find the pom.xml file.

i hope someone can give me a hint what i need to do to get my test project running in jenkins.
pom.xml

thomas....@teamaol.com

unread,
Nov 8, 2016, 4:46:31 AM11/8/16
to Jenkins Users
Either you have a central selenium environment or ...
... have a look here: https://github.com/elgalu/docker-selenium
You can do a ci/cd pipeline that spawns a Docker container when needed.
Reply all
Reply to author
Forward
0 new messages