Submitted by harrydev on Fri, 02/06/2015 - 12:42
In previous tutorial, we have seen configuring ReportNG with TestNG testng.xml and Now we will see configuring reportNG with Ant build.xml.
TestNG allows to define different ant testng tasks in build.xml file. The below are the few configuration options that can be used along with testng tasks.
1. Listeners - We can add Comma or space separated list of fully qualified class names that implements TestNG iTestListener or iReported as a listener to testng task.
Submitted by harrydev on Sun, 02/01/2015 - 13:31
We will create a sample project and execute TestNG tests using ANT build.xml. Before creating build.xml file, we will first create a project with some sample testng tests.
Before proceeding, please make sure you have installed ANT in your machine.
In Build.xml we will mainly see the below tags
Submitted by harrydev on Sat, 09/27/2014 - 13:30
Before installing ANT, make sure you have a Java environment installed. And then proceed for ANT installation. Check from command prompt if java is installed already in your machine. Type 'Java -version' to check if the java is installed or not.
Step 1: First please download the latest version of ANT . Click here to download ant
Note: Make sure you download the appropriate formats. As .zip format is recommended format for Windows Operating systems. It looks like apache-ant-versionxyz-bin.zip.