Currently Browsing

Posts Tagged ‘ Ant ’

Running simple Ant builds via Jenkins

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:

Set up ant in Jenkins in Manage Jenkins -> Configure System. If you use auto install Jenkins will download Ant immediately before the next build.

Create an Ant build for TestNG tests

The goal of this exercise is to run TestNG tests through Apache Ant.

First you have to have a sample TestNg project at your hand.
If you don’t have any, you can create the sample using the instructions below, or you can download it from using the link from the bottom of the post.
Create a simple class

package main;

import org.testng.annotations.Test;

public class ExampleTest {

	public void testA() throws Exception {

		System.out.println("Test finished.");