Skip to content
This repository
Newer
Older
100644 102 lines (88 sloc) 5.406 kb
181bc926 » edwardhieatt
2006-08-16
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <project name="JsUnit Aggregate" default="aggregate_distributed_test" basedir=".">
4
5 <!--
6 The following are the properties used to configure an Aggregate JsUnit Server. You need to provide values for the mandatory properties.
7 See the documentation at http://www.jsunit.net for more information.
8 -->
9
10 <property
11 id="description"
12 name="description"
13 value=""
14 description="description is a human-readable description of a standard or aggregate server. This is not a mandatory property. The default is blank. For example: 'This is our Mac - it's only running Safari right now'"
15 />
16
17 <property
18 id="ignoreUnresponsiveRemoteMachines"
19 name="ignoreUnresponsiveRemoteMachines"
20 value=""
21 description="ignoreUnresponsiveRemoteMachines is a property used only by the JsUnit Aggregate Server and the distributed_test target. Its value is whether to ignore a remote machine that does not respond. If true, test runs will be green even if one or more remote machines fail to respond; if false, an unresponsive remote machine results in a failure. This is not a mandatory property. Its default is false. For example: 'true'"
22 />
23
24 <property
25 id="port"
26 name="port"
27 value=""
28 description="port is the port on which the JsUnitStandardServer runs. This is not a mandatory property. If not specified, 8080 is assumed. For exapmle: '8080'"
29 />
30
31 <property
32 id="remoteMachineURLs"
33 name="remoteMachineURLs"
34 value=""
35 description="remoteMachineURLs is a property used only by the JsUnit Aggregate Server and the distributed_test target. Its value is the list of URLs of remote machines to which a request to run tests will be sent. For example: 'http://machine1.company.com:8080,http://localhost:8080,http://192.168.1.200:9090'"
36 />
37
38 <property
39 id="resourceBase"
40 name="resourceBase"
41 value=""
42 description="resourceBase is the directory that the JsUnitStandardServer considers to be its document root. It can be specified relative to the working directory. This is not a mandatory property. If not specified, the working directory is assumed. For example: 'c:\jsunit'"
43 />
44
45 <property
46 id="timeoutSeconds"
47 name="timeoutSeconds"
48 value=""
49 description="timeoutSeconds is the number of seconds to wait before timing out a browser during a test run. This is not a mandatory property. If not specified, 60 is assumed. For example: '60'"
50 />
51
52 <property
53 id="url"
54 name="url"
55 value=""
56 description="url is the URL (HTTP or file protocol) to open in the browser. For a JsUnit Server, this is a mandatory property for a test run if the server is not passed the 'url' parameter. For example: 'file:///c:/jsunit/testRunner.html?testPage=c:/jsunit/tests/jsUnitTestSuite.html'"
57 />
58
59 <property name="bin" location="java/bin"/>
60 <property name="lib" location="java/lib"/>
c8251db5 » edwardhieatt
2006-09-03
61 <property name="loggingPropertiesFile" location="logging.properties"/>
181bc926 » edwardhieatt
2006-08-16
62
63 <path id="classpath">
64 <fileset dir="${lib}">
65 <include name="*.jar"/>
66 <include name="*/*.jar"/>
67 </fileset>
68 <fileset dir="${bin}">
69 <include name="jsunit.jar"/>
70 </fileset>
71 </path>
72
73 <target name="start_aggregate_server" description="Starts a JsUnit Aggregate Server">
74 <java fork="true" classname="net.jsunit.JsUnitAggregateServer">
75 <classpath refid="classpath"/>
76 <sysproperty key="java.util.logging.config.file" value="${loggingPropertiesFile}"/>
77 <sysproperty key="description" value="${description}"/>
78 <sysproperty key="ignoreUnresponsiveRemoteMachines" value="${ignoreUnresponsiveRemoteMachines}"/>
79 <sysproperty key="port" value="${port}"/>
80 <sysproperty key="remoteMachineURLs" value="${remoteMachineURLs}"/>
81 <sysproperty key="resourceBase" value="${resourceBase}"/>
82 <sysproperty key="url" value="${url}"/>
83 </java>
84 </target>
85
86 <target name="aggregate_distributed_test"
87 description="Runs tests on the remote machines, each of which could be running an aggregate or standard JsUnit server">
88 <junit showoutput="true" haltonerror="true" haltonfailure="true">
89 <formatter type="plain" usefile="false"/>
90 <classpath refid="classpath"/>
91 <sysproperty key="java.util.logging.config.file" value="${loggingPropertiesFile}"/>
92 <sysproperty key="description" value="${description}"/>
93 <sysproperty key="ignoreUnresponsiveRemoteMachines" value="${ignoreUnresponsiveRemoteMachines}"/>
94 <sysproperty key="port" value="${port}"/>
95 <sysproperty key="remoteMachineURLs" value="${remoteMachineURLs}"/>
96 <sysproperty key="resourceBase" value="${resourceBase}"/>
97 <sysproperty key="url" value="${url}"/>
98 <test name="net.jsunit.AggregateDistributedTest"/>
99 </junit>
100 </target>
101
102 </project>
Something went wrong with that request. Please try again.