Showing posts with label Jenkins. Show all posts
Showing posts with label Jenkins. Show all posts

October 8, 2015

Selenium Integration With Jenkins

October 08, 2015 4
In this post i am going to explain how to integrate with continuous integration tool Jenkins..

Prerequisites:
Here i am trying to run Maven project scripts so

  1. Maven Project with TestNG (you can go through this post  create-sample-maven-project.html)
  2. and few webdriver scripts
  3. Downlaod Maven Project from Here....
Download Jenkins:

1. Navigate ti http://jenkins-ci.org/
2. Download .war file

3. Save the jenkins.war file in any of the location, you need to run this Jenkins.war file.


Set Up Jenkins:

1. Navigate to folder where you kept your jenkis.war
2. type command java -jar jenkins.war and press Enter

3. Will take some time to extract Jenkins, then you will get a success message.
4. By default Jenkins will start in port number 8080
5. For Jenkins UI use this URL in browser http://localhost:8080/



Configure Jenkins:

Before creating any Jenkins job we need to perform some configuration steps.
1. Click on Manage Jenkins link on the left side of the page
2. Click on Configure System.
3. Navigate to JDK section and Click on Add JDK button
4. Uncheck Install automatically check box so Jenkins will only take java which we have mention above
5. Give the name as JAVA_HOME and Specify the JDK path


6. Add Maven. IF you already not downloaded maven, get it from here Download Maven


6. Click on Save button.


Create Jenkins Job:
1. Click on create new Jobs.
2. Enter Job description and select Maven Project
3. Go to Build section and Enter path of POM.xml in ROOT POM text box.
4. Click apply and Save,



Run Job:
Navigate to Home page of Jenkins, there you can see new Job is created. Click on Build now symbol

Maven will build the project. It will then have TestNG execute the test cases
Once the build process is completed, in Jenkins Dashboard click on the Job1 project






August 13, 2015

Introduction To Jenkins (Continuous Integration Tool)

August 13, 2015 1
In this post i would like to give some information what ever i know about Jenkins.

Frequently asked questions :

What is Jenkins?
What is Continuous Integration?
How to set up Jenkins?
Jenkins is it only for Developers or can testers also use it?
I am a Automation tester how can i use Jenkins?
What benefits / advantages i will get after using Jenkins?

In this article i am going to answer all the above questions...

What is Jenkins?

A simple answer every body gives to this questions is .... Jenkins is a Continuous Integration tool.

Jenkins is an open source tool to perform continuous integration. The basic functionality of Jenkins is to execute a predefined list of steps based on a certain trigger.

You can get more information about Jenkins here ...

About Jenkins

What is Continuous Integration? (CI)
CI is nothing but running your tests (unit tests /automation tests) automatically every time someone pushes new code into the source repository.

Ex:
If you are an automation tester and when you push some code to your source repository (SVN, GIT etc..) then your automation test cases will run automatically (if you configure like that) and will give you results. It gives you fast feed back about your test suite.

The fast feedback is important so you always know right after you broke the build . What you did that failed and how to revert it.

What benefits / advantages i will get after using Jenkins?
There are many advantages
1. When it is run automatically on every push then it is always pretty obvious what and who introduced the problem
2. Solves problems quickly
3. Automation of deployment.
4. Automated testing and Code control
5. Enables better project Visibility

Jenkins is it only for Developers or can testers also use it?

Jenkins is not only for developer even automation tester also can use Jenkins to test their automation scripts after each commit made by a team member or they can schedule their automation jobs to run daily at specific time.

How to set up Jenkins?

Here is the link to Create Jenkins:

Selenium-integration-with-jenkins.html

I am a Automation tester how can i use Jenkins?

Coming soon...