I assume that a Jenkins is already installed and running on your system.
the first step is to open Jenkins in your web browser a If you didn’t changed the default settings you can reach Jenkins on http://localhost:8080/

After you login to Jenkins the following screen should appear:
2015-10-13_1724[1]

Set up ant in Jenkins in Manage Jenkins -> Configure System. If you use auto install Jenkins will download Ant immediately before the next build.
2015-10-13_1745[1]

Go to new item
Name your project and choose Freestyle project.
2015-10-13_1725[1]

Click Add Build Step and choose invoke Ant
2015-10-13_1747[1]

Go the the job folder which is C:\Program Files (x86)\Jenkins\jobs\test Project and create a folder with the name workspace, and copy you projects source code into the folder
2015-10-13_1750[1]

Now build the project
2015-10-13_1750[1]

If everything goes well the output should look like this
2015-10-13_1753[1]

That’s all. From here you can set up scheduled test runs, email reports, or try out one of the plugins you can install.

The test project used can be downloaded from this link:
https://www.dropbox.com/s/1jorkbdt6c8ae5v/TestNGExample.zip?dl=0

Posted By Tihomir Turzai

Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>