[portal-commits] JBoss Portal SVN: r12284 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests.

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Mon Nov 10 12:39:13 EST 2008


Author: vrockai
Date: 2008-11-10 12:39:13 -0500 (Mon, 10 Nov 2008)
New Revision: 12284

Modified:
   branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
Log:
build for windows

Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml	2008-11-10 17:05:06 UTC (rev 12283)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml	2008-11-10 17:39:13 UTC (rev 12284)
@@ -43,7 +43,18 @@
 	</path>
 
 	<taskdef name="testng" classpathref="libraries.cp" classname="org.testng.TestNGAntTask" />
-	
+	<taskdef name="config" classname="org.jboss.ant.taskdefs.server.ConfigManagerTask" uri="http://jboss.org/ns/test/ant/server" loaderref="server.loader">
+		<classpath id="server.taskdef.classpath">
+			<path refid="jboss.test.classpath" />
+		</classpath>
+	</taskdef>
+	<taskdef name="start" classname="org.jboss.ant.taskdefs.server.StartServerTask" uri="http://jboss.org/ns/test/ant/server" loaderref="server.loader">
+		<classpath refid="server.taskdef.classpath" />
+	</taskdef>
+	<taskdef name="stop" classname="org.jboss.ant.taskdefs.server.StopServerTask" uri="http://jboss.org/ns/test/ant/server" loaderref="server.loader">
+		<classpath refid="server.taskdef.classpath" />
+	</taskdef>
+
 <target name="init">
 		<echo message="Browser   : ${browser}" />
 		<echo message="Workspace : ${workspace}" />
@@ -87,12 +98,44 @@
 		<delete dir="${test.build.dir}" />
 	</target>
 
+	<server:config javaHome="${java.home}" jbossHome="${jboss.home}">
+		<server name="${portal.instance}" host="${node0}">
+			<!-- jvmarg value="${jpda.cmdline}" / -->
+			<jvmarg value="-Xmx512m" />
+			<jvmarg value="-XX:MaxPermSize=128m" />
+			<sysproperty key="java.endorsed.dirs" value="${jboss.home}/lib/endorsed" />
+		</server>
+	</server:config>
+
+
 	<target name="cleanup">
 		<echo message="Cleaning up..." />
 		<antcall target="stop-src" />
 
 	</target>
 
+	<target name="run-and-build" depends="init, compile, run-src">
+		<echo message="Starting portal instance : ${portal.instance}" />
+		<server:start name="${portal.instance}" />
+
+		<echo message="Runing TestNG" />
+		<mkdir dir="test-output" />
+		<testng classpathref="test.cp" sourcedir="${test.src.dir}" outputdir="test-output" listeners="org.testng.reporters.JUnitXMLReporter"
+			suitename="SeleniumSuite">
+
+			<xmlfileset dir="." includes="testng.xml" />
+
+			<!--classfileset dir="${test.build.dir}"
+				includes="org/jboss/portal/test/selenium/*Test.class" / -->
+			<sysproperty key="browser" value="${browser}" />
+			<jvmarg value="-ea" />
+
+		</testng>
+		<echo message="Stoping portal instance : ${portal.instance}" />
+		<server:stop name="${portal.instance}" />
+		<antcall target="cleanup" />
+	</target>
+
 	<target name="single-test" depends="init, compile, run-src">
 
 		<testng classpathref="test.cp" sourcedir="${test.src.dir}" outputdir="${testng.output.dir}" suitename="SeleniumTest" testname="org.jboss.portal.test.selenium.SingleTestCase">




More information about the portal-commits mailing list