Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
411 views
by The go-to Tester (473 points)
retagged by
How to use jenkins to start and stop our selenium script automatically after each successfull build?
by The go-to Tester (181 points)
Is that a Java project? Are you using Ant or Maven?
by The go-to Tester (232 points)
I also concern about it. Could u @mayur explain more about it?
by The go-to Tester (473 points)
Yes , it is a java project. And yet i didnt use ant or maven. But wanted to know how to do this.
Uptill now , i wrote hybrid framework in java + selenium webdriver + POI. And it is working nicely if we run manually. Now i wanted to run it automatically using jenkins

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
edited by

At first you can convert your project to Ant or Maven. 

Link:  how to convert a existing code into maven?

Once your code is convered to Maven, you can download and setup Jenkins.

Once your Jenkins setup is ready, you can go to http://localhost:8080 on your webbrowser to access the Jenkins dashboard.

Configure Jenkins:

1.Go to Manage Jenkins->Configure System

2.Configure JDK

-Give the JDK name

-JAVA_HOME : C:\Program Files\Java\jdk1.7.0_45

3.Maven configuration

-Give a maven name

-MAVEN_HOME : C:\apache-maven-3.2.5\apache-maven-3.2.5-bin\apache-maven-3.2.5

4.Global Maven_OPTS

–Xmx512m

–XX:MaxPermSize=128m

5.Save once done

In Jenkins you can create new Job -> Select Maven project, enter project name -> click Ok

On the Job configuration page, enter SCM details and click on "SAVE" button.

Hope that helps!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...