Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHudsonbuild.xml
More file actions
Latest commit
40 lines (28 loc) · 1.17 KB
/
Copy pathHudsonbuild.xml
File metadata and controls
40 lines (28 loc) · 1.17 KB
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
<?xml version="1.0"?>
<projectname="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> -->
<pathid="classpath"description="Set the class path for the required jar">
<filesetdir="lib"includes="**/*.jar"></fileset>
<pathelementlocation="bin" />
</path>
<taskdefname="TestNG-Ant"classpathref="classpath"classname="org.testng.TestNGAntTask"></taskdef>
<targetname="Compile">
<javacclasspathref="classpath"includeantruntime="true"srcdir="src"destdir="bin"includes="**/*.java" >
</javac>
</target>
<targetname="Run-Test"depends="Compile">
<TestNG-Antoutputdir="test-output"haltonfailure="false"verbose="2"classpathref="classpath">
<xmlfilesetdir="."includes="testng.xml"/>
</TestNG-Ant>
</target>
<targetname="Generate-Report"depends="Run-Test"description="Generate the Xlsx report using the testng-result.xml">
<javaclasspathref="classpath"classname="reports.ExcelReportGenerator" >
<argvalue="test-output"/>
</java>
</target>
</project>