thuss / selenium-continuous-integration-runner

A quick start to help you get Selenese Selenium tests running in your continuous integration server

This URL has Read+Write access

100644 33 lines (28 sloc) 0.979 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
<?xml version="1.0" encoding="utf-8"?>
<project name="Run Test" default="run" basedir=".">
  <property name="firefoxPath" value="/usr/lib/firefox-3.0.5/firefox" />
  <property name="outputDir" value="output" />
  <property name="testDir" value="test" />
  <property name="libDir" value="lib" />
 
  <path id="run">
    <fileset dir="lib/">
      <include name="*.jar" />
    </fileset>
  </path>
  
  <taskdef resource="selenium-ant.properties">
    <classpath>
      <pathelement location="lib/selenium-server.jar" />
    </classpath>
  </taskdef>
  
  <target name="run">
    <delete>
      <fileset dir="${outputDir}" includes="**/*.html" />
    </delete>
    <selenese suite="${testDir}/MainSiteTestSuite.html"
              results="${outputDir}/MainSiteTestSuiteResults.html"
              browser="*firefox ${firefoxPath}"
              multiWindow="false"
              timeoutInSeconds="900"
              startURL="http://www.google.com" />
  </target>
</project>