Jenkins-1-1 (5) (1)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Yes-M Systems –Jenkins User Guide

Jenkins:
Download Jenkins:

Step2:

Step3:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 1


Yes-M Systems –Jenkins User Guide

Step: In Cmd prompt, type java –jar drag and drop the Jenkins.war file

Now drag and drop the Jenkins jar file near to java –jar and hit enter.

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 2


Yes-M Systems –Jenkins User Guide

Step:

Create a project in eclipse and then add selenium server standalone 2.45.1 jar

Step:

Invoke Jenkins by typing “localhost: 8080” in the address bar and hit enter

Step: click on Manage Jenkins >configure system option and set the java path as below:

Step: Create a class file and right click on it and TestNG>convert to TestNG option. Create XML and run
from XML.

Step: Take the path of the project>properties>Location and copy the value.

Place the Lib folder which has all the jar files

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 3


Yes-M Systems –Jenkins User Guide

Step:

Cmd prompt>cd to project home directory:

set classpath=c:\workspace\jenkinsde\bin;c:\workspace\jenkinsde\library\*;

now type:

java org.testng.TestNG testng.xml and hit enter , ur script will run now in cmd prompt

step:

create a new notepad and type :

java –cp bin;library/* org.testng.TestNG testng.xml

save the above file as “dryrun.bat”

Now double click on the “dryrun.bat” so that I will run the script

Step:

Go to Jenkins >New item>New project>free style>ok:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 4


Yes-M Systems –Jenkins User Guide

Step:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 5


Yes-M Systems –Jenkins User Guide

Step:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 6


Yes-M Systems –Jenkins User Guide

Step:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 7


Yes-M Systems –Jenkins User Guide

Step:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 8


Yes-M Systems –Jenkins User Guide

Step:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 9


Yes-M Systems –Jenkins User Guide

Step:

Now click on build now option and scriptwill fail and hence we will get email notification

Step:

Step:

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 10


Yes-M Systems –Jenkins User Guide

Step: 3:43 pm(3+12=15)

Yes-M Systems , http://myyesm.com Jenkins- User Guide Page 11

You might also like