-
Notifications
You must be signed in to change notification settings - Fork 2
/
Databuild.xml
41 lines (31 loc) · 1.47 KB
/
Databuild.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<project name="TestNG" default="Generate-Report" basedir=".">
<target name="Clean">
<delete failonerror="false" dir="test-output" />
</target>
<target name="Create" depends="Clean">
<mkdir dir="test-output" />
</target>
<path id="classpath" description="Set the class path for the required jar">
<fileset dir="G:/Selenium Jars/poi-3.10-FINAL" includes="**/*.jar"></fileset>
<pathelement location="C:/Junit/testng-6.8.jar" />
<pathelement location="C:/Junit/selenium-server-standalone-2.44.0.jar" />
<pathelement location="C:/Junit/log4j-1.2.15.jar" />
<pathelement location="C:/Junit/commons-dbcp-1.4.jar" />
<pathelement location="C:/Junit/commons-pool-1.4.jar" />
<pathelement location="bin" />
</path>
<taskdef name="TestNG-Ant" classpathref="classpath" classname="org.testng.TestNGAntTask"></taskdef>
<target name="Compile" depends="Create" >
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java" verbose="true">
</javac>
</target>
<target name="Run-Test" depends="Compile">
<TestNG-Ant outputdir="test-output" haltonfailure="false" verbose="2" classpathref="classpath">
<xmlfileset dir="." includes="testng.xml"/>
</TestNG-Ant>
</target>
<target name="Generate-Report" depends="Run-Test" description="Generate the Xlsx report using the testng-result.xml">
<java classpathref="classpath" classname="reports.ExcelReportGenerator" ></java>
</target>
</project>