Created
August 8, 2012 11:57
-
-
Save rakeshtembhurne/3294555 to your computer and use it in GitHub Desktop.
Ant build.xml file for Sahi & Jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<project name="bids" default="runfftests"> | |
<property environment="env"/> | |
<property name="sahi.home" value="${env.SAHI_HOME}" location="/home/rakesh/sahi/" /> | |
<property name="user.data" value="${env.SAHI_USERDATA_DIR}" location="/home/rakesh/sahi/userdata" /> | |
<property name="urlbase" value="http://shdlr.local/"/> | |
<taskdef name="sahi" classname="net.sf.sahi.ant.RunSahiTask" classpath="${sahi.home}/lib/ant-sahi.jar"/> | |
<target name="runfftests"> | |
<antcall target="startsahi"/> | |
<sleep seconds="4"/> | |
<sahi suite="${user.data}/scripts/shdlr/shdlr.suite" | |
browserType="firefox-xvfb" | |
baseurl="${urlbase}" | |
sahihost="localhost" | |
sahiport="9999" | |
failureproperty="sahi.failed" | |
haltonfailure="false" | |
browserProcessName="firefox" | |
threads="1"> | |
<report type="junit" logdir="${basedir}/reports/junit/"/> | |
</sahi> | |
<sleep seconds="4"/> | |
<antcall target="stopsahi"/> | |
<sleep seconds="4"/> | |
<antcall target="failsahi"/> | |
</target> | |
<target name="failsahi" if="sahi.failed"> | |
<fail message="Sahi tests failed!"/> | |
</target> | |
<target name="startsahi" description="start sahi proxy"> | |
<java classname="net.sf.sahi.Proxy" fork="true" spawn="true" dir="${sahi.home}"> | |
<!--<env key="MOZ_NO_REMOTE" value="1"/>--> | |
<classpath location="${sahi.home}/lib/sahi.jar"> | |
<fileset dir="${sahi.home}/extlib" includes="**/*.jar"/> | |
</classpath> | |
<arg value="${sahi.home}" id="basePath"/> | |
<arg value="${user.data}" id="userdataPath"/> | |
</java> | |
</target> | |
<target name="stopsahi" description="stop sahi server"> | |
<sahi stop="true" sahihost="localhost" sahiport="9999"/> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment