Selenium + Github + Jenkins

Pradeep K
Testvox
Published in
2 min readFeb 20, 2020

This is all about how to execute the Selenium scripts through Jenkins and Github

If we are doing Maven project then we have to add the dependancy with respect to the project , the dependencies are added to pom.xml . The common dependencies are

testvox.com
  1. This is for the supporting of selenium . Group id and version is mentioned here

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-java</artifactId>

<version>3.141.59</version>

</dependency>

2. TestNG dependency

<! — https://mvnrepository.com/artifact/org.testng/testng

<dependency>

<groupId>org.testng</groupId>

<artifactId>testng</artifactId>

<version>6.8</version>

<scope>test</scope>

</dependency>

3. Chrome driver dependency

<! — https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-chrome-driver

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-chrome-driver</artifactId>

<version>4</version>

</dependency>

4. Github dependency

<groupId>io.github.bonigarcia</groupId>

<artifactId>webdrivermanager</artifactId>

<version>3.8.1</version>

<scope>test</scope>

</dependency>

5.Logger dependency

<! — https://mvnrepository.com/artifact/log4j/log4j

<dependency>

<groupId>log4j</groupId>

<artifactId>log4j</artifactId>

<version>1.2.17</version>

</dependency>

The below image shows the installation process of Jenkins

After the installation of Jenkins the next is to configure that . In Jenkins there is an icon for manage Jenkins , from there we have to go for configure systems , configure credentials and manage plugins .The below figure shows the configuration of Jenkins .

testvox.com

We need to give the commands for run the Jenkins in Configure icon .

After that the whole commands are apply and save then click on build and then we will get the console output and hence we know whether the test is fail or pass .

--

--

Pradeep K
Testvox
Editor for

Founder and Chief Testing Officer at Testvox