This repository was archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
91 lines (80 loc) · 3.65 KB
/
build.xml
File metadata and controls
91 lines (80 loc) · 3.65 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="Selenium-Test" name="module.selenium">
<dirname property="module.selenium.basedir" file="${ant.file.module.selenium}"/>
<!-- Initialize Properties -->
<property environment="env"/>
<property name="junit.output.dir" value="../Code42Sample/results"/>
<property name="tests.src.dir" value="../Code42Sample/src"/>
<property name="src" value="../Code42Sample/src"/>
<property name="lib" value="../Code42Sample/lib"/>
<property name="bin" value="../Code42Sample/bin"/>
<property name="proj" value="../Code42Sample"/>
<property name="jars" value="../Code42Sample/lib"/>
<property name="res" value="../Code42Sample/results"/>
<!-- Class path Initialize -->
<path>
<!-- Dirvers -->
<pathelement location="../Code42Sample/lib/Drivers/chromedriver_win32/chromedriver.exe"/>
<pathelement location="../Code42Sample/lib/Drivers/IEDriverServer_Win32_2.43.0/IEDriverServer.exe"/>
<pathelement location="../Code42Sample/lib/Drivers/IEDriverServer_x64_2.43.0/IEDriverServer.exe"/>
<!-- Selenium 2.45.0 -->
<pathelement location="../Code42Sample/lib/selenium-2.45.0/selenium-java-2.45.0.jar"/>
<!-- JUnit 4.12 -->
<pathelement location="../Code42Sample/lib/junit-4.12.jar"/>
<!-- Hamcrest -->
<pathelement location="../Code42Sample/lib/hamcrest-all-1.3.jar"/>
<!-- Selenium Stand Alone 2.45.0 -->
<pathelement location="../Code42Sample/lib/selenium-server-standalone-2.45.0.jar"/>
<!--Sikuli -->
<pathelement location="../Code42Sample/lib/sikuli-api-1.0.2-standalone.jar"/>
<pathelement location="../Code42Sample/lib/pre-request/sikuli-java.jar"/>
<pathelement location="../Code42Sample/lib/pre-request/libs"/>
</path>
<target name="Selenium-Test" depends="__init">
<echo> Init Tests ... </echo>
</target>
<target name="__compile" >
<echo>Compiling</echo>
<mkdir dir="bin"/>
<javac includeantruntime="false" srcdir="${src}" destdir="${bin}" >
<classpath refid="build_jars" />
</javac>
</target>
<path id="build_jars">
<fileset dir="${jars}" includes="**/*.jar"/>
<fileset dir="${jars}" includes="../Code42Sample/lib/pre-request/sikuli-java.jar"/>
<pathelement location="${lib}"/>
</path>
<target name="__init" depends="__compile">
<mkdir dir="results"/>
<junit printsummary="yes" haltonfailure="no">
<classpath>
<pathelement location="${bin}"/>
<pathelement path="../Code42Sample/lib/junit-4.12.jar"/>
<pathelement path="../Code42Sample/lib/selenium-server-standalone-2.45.0.jar"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="yes" todir="${res}">
<fileset dir="${src}">
<include name="**/Navigate.java"/>
<include name="**/CrashPlanSignUp.java"/>
</fileset>
</batchtest>
</junit>
</target>
<!-- clean the bin, browser, and output dirs -->
<target name="clean">
<delete dir="bin"/>
<delete dir="${tests.src.dir}/browser"/>
<delete dir="${junit.output.dir}"/>
</target>
<!--Generate JUnit Report-->
<target name="__junitreport">
<junitreport todir="${junit.output.dir}">
<fileset dir="${junit.output.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.output.dir}"/>
</junitreport>
</target>
</project>