123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706 |
- <?xml version="1.0"?>
-
- <project name="Test sampler deployment" basedir="." default="integration-test-all">
-
- <!-- Target deploying demo.war -->
- <fail unless="test.integration.server" message="test.integration.server must be set for integration tests to run"/>
-
- <fail unless="test.integration.user" message="test.integration.user must be set for integration tests to run"/>
- <fail unless="test.integration.antfile" message="test.integration.antfile must be set for integration tests to run"/>
-
- <!-- Test with these browsers -->
- <property name="test_browsers" value="winxp-firefox36" />
-
- <!-- Path to key file. Default value -->
- <property name="sshkey.file" value="id_dsa" />
-
- <!-- path and name for demo.war to be deployed -->
- <property name="demo.war" value="demo.war"/>
-
- <!-- Host running Testbench RC or Testbench Hub. Default value -->
- <property name="com.vaadin.testbench.tester.host" value="127.0.0.1" />
-
- <!-- Base url where the testable application is deployed -->
- <property name="deployment.url" value="http://${test.integration.server}:8080" />
-
- <!-- ssh host values -->
- <property name="ant.hub" value="${test.integration.antfile}" />
- <property name="user" value="${test.integration.user}" />
- <property name="passphrase" value="" />
-
- <!-- add ant contrib -->
- <taskdef resource="net/sf/antcontrib/antcontrib.properties">
- <classpath>
- <pathelement location="../build/lib/ant-contrib-1.0b3.jar"/>
- </classpath>
- </taskdef>
-
- <!-- Upload war to deploy to ssh host -->
- <target name="integration-test-upload-demo">
- <scp file="${demo.war}" todir="${user}@${test.integration.server}:integration-tests/servers/demo.war" keyfile="${sshkey.file}" passphrase="${passphrase}" />
- </target>
-
- <!-- Run sampler deployment test -->
- <target name="integration-test-sampler">
- <fileset dir="integration-testscripts" id="html-test-files" includes="integration-test-${server-name}-sampler.html" />
- <pathconvert pathsep=" " property="testfiles" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${testfiles}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
- <property name="retries" value="0" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <!-- Start and stop methods for servers -->
- <target name="integration-test-start-tomcat-4">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-tomcat-4.1.40" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-tomcat-4.1.40-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-tomcat-4">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-tomcat-4.1.40" />
- </target>
-
- <target name="integration-test-start-tomcat-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-tomcat-5.5.28" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-tomcat-5.5.28-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-tomcat-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-tomcat-5.5.28" />
- </target>
-
- <target name="integration-test-start-tomcat-6">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-tomcat-6.0.20" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-tomcat-6.0.20-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-tomcat-6">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-tomcat-6.0.20" />
- </target>
-
- <target name="integration-test-start-jetty-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jetty-5.1.15" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jetty-5.1.15-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-jetty-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jetty-5.1.15" />
- </target>
-
- <target name="integration-test-start-jetty-6">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jetty-6.1.22" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jetty-6.1.22-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-jetty-6">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jetty-6.1.22" />
- </target>
-
- <target name="integration-test-start-jetty-7">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jetty-7.0.0" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jetty-7.0.0-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-jetty-7">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jetty-7.0.0" />
- </target>
-
- <target name="integration-test-start-jboss-3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jboss-3.2.8" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jboss-3.2.8-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-jboss-3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jboss-3.2.8" />
- </target>
-
- <target name="integration-test-start-jboss-4">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jboss-4.2.3" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jboss-4.2.3-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-jboss-4">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jboss-4.2.3" />
- </target>
-
- <target name="integration-test-start-jboss-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jboss-5.0.1" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jboss-5.0.1-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-jboss-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jboss-5.0.1" />
- </target>
-
- <target name="integration-test-start-glassfish2">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-glassfish-2.1.1" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-glassfish-2.1.1-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-glassfish2">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-glassfish-2.1.1" />
- </target>
-
- <target name="integration-test-start-glassfish3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-glassfish-3" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-glassfish-3-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-glassfish3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-glassfish-3" />
- </target>
-
- <!-- Test liferay sampler -->
- <target name="integration-test-test-liferay-5">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/integration-test-liferay-5.2.3-sampler.html" />
- <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${test-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <!-- "deploy" sampler to liferay -->
- <target name="integration-test-init-liferay-5">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/Add_Sampler_to_Liferay.html" />
- <pathconvert pathsep=" " property="init-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${init-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-liferay-5-portlet2">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/integration-test-liferay-5.2.3-portlet2.html" />
- <pathconvert pathsep=" " property="init-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${init-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-liferay-6">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6/integration-test-liferay-6.0.5.html" />
- <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${test-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="test-theme-liferay-6">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6/Liferay6-theme.html" />
- <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="testfiles" value="${test-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-liferay-6ee">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6EE/integration-test-liferay-6ee.html" />
- <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${test-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="test-theme-liferay-6ee">
- <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6EE/Liferay6EE-theme.html" />
- <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="testfiles" value="${test-liferay}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-gatein-3">
- <fileset dir="integration-testscripts" id="html-test-files" includes="GateIn-3/integration-test-GateIn-3.1.0-sampler.html" />
- <pathconvert pathsep=" " property="test-gatein" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${test-gatein}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-eXo-3">
- <fileset dir="integration-testscripts" id="html-test-files" includes="eXo-3/integration-test-eXo-3.0.3-addressbook.html" />
- <pathconvert pathsep=" " property="test-exo" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${test-exo}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-weblogic-portal">
- <fileset dir="integration-testscripts" id="html-test-files" includes="weblogic-portal/integration-test-WebLogic-Portal-10.3.2-addressbook.html" />
- <pathconvert pathsep=" " property="test-weblogic" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="http://${test.integration.server}:7001" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="winxp-firefox36" />
- <property name="testfiles" value="${test-weblogic}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-start-liferay-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-liferay-5.2.3" />
- </target>
-
- <target name="integration-test-stop-liferay-5">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-liferay-5.2.3" />
- </target>
-
- <target name="integration-test-start-liferay-6">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-liferay-6.0.5" />
- </target>
-
- <target name="integration-test-stop-liferay-6">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-liferay-6.0.5" />
- </target>
-
- <target name="integration-test-start-liferay-6ee">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-liferay-6.0-ee" />
- </target>
-
- <target name="integration-test-stop-liferay-6ee">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-liferay-6.0-ee" />
- </target>
-
- <target name="integration-test-start-gatein-3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-gatein-3.1.0" />
- </target>
-
- <target name="integration-test-stop-gatein-3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-gatein-3.1.0" />
- </target>
-
- <target name="integration-test-start-eXo-3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-eXo-3.0.3" />
- </target>
-
- <target name="integration-test-stop-eXo-3">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-eXo-3.0.3" />
- </target>
-
- <!-- Run sampler deployment test for WebLogic server -->
- <target name="integration-test-test-weblogic">
- <fileset dir="integration-testscripts" id="html-test-files" includes="integration-test-${server-name}-sampler.html" />
- <pathconvert pathsep=" " property="test-weblogic" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="http://${test.integration.server}:7001" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${test-weblogic}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-start-weblogic9">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-9.2" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-weblogic-9.2-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-weblogic9">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-9.2" />
- </target>
-
- <target name="integration-test-start-weblogic10">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-10.3" />
- <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-weblogic-10.3-sampler.html" overwrite="true" />
- </target>
-
- <target name="integration-test-stop-weblogic10">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-10.3" />
- </target>
-
- <target name="integration-test-start-weblogic-portal">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-portal" />
- </target>
-
- <target name="integration-test-stop-weblogic-portal">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-portal" />
- </target>
-
- <!-- Run sampler deployment test on GAE -->
- <target name="integration-test-test-GAE">
- <fileset dir="integration-testscripts" id="html-test-files" includes="GoogleAppEngine/integration-test-GAE-sampler.html" />
- <pathconvert pathsep=" " property="test-GAE" refid="html-test-files" />
-
- <subant target="run-tests" failonerror="false" antfile="test.xml">
- <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
- <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
- <property name="com.vaadin.testbench.deployment.url" value="http://vaadin-integration-test.appspot.com/" />
- <property name="server.start.succeeded" value="1" />
- <property name="browsers" value="${test_browsers}" />
- <property name="testfiles" value="${test-GAE}" />
- <property name="test-output-dir" value="../build/integration-test-output" />
-
- <fileset dir="." includes="test.xml" />
- </subant>
- </target>
-
- <target name="integration-test-deploy-to-GAE">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} deploy-to-GAE" />
- </target>
-
- <!-- Server setup, test and teardown targets. -->
- <target name="integration-test-tomcat4">
- <antcall target="integration-test-start-tomcat-4"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="tomcat-4.1.40" />
- </antcall>
- <antcall target="integration-test-stop-tomcat-4"/>
- </target>
-
- <target name="integration-test-tomcat5">
- <antcall target="integration-test-start-tomcat-5"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="tomcat-5.5.28" />
- </antcall>
- <antcall target="integration-test-stop-tomcat-5"/>
- </target>
-
- <target name="integration-test-tomcat6">
- <antcall target="integration-test-start-tomcat-6"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="tomcat-6.0.20" />
- </antcall>
- <antcall target="integration-test-stop-tomcat-6"/>
- </target>
-
- <target name="integration-test-jetty5">
- <antcall target="integration-test-start-jetty-5"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="jetty-5.1.15" />
- </antcall>
- <antcall target="integration-test-stop-jetty-5"/>
- </target>
-
- <target name="integration-test-jetty6">
- <antcall target="integration-test-start-jetty-6"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="jetty-6.1.22" />
- </antcall>
- <antcall target="integration-test-stop-jetty-6"/>
- </target>
-
- <target name="integration-test-jetty7">
- <antcall target="integration-test-start-jetty-7"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="jetty-7.0.0" />
- </antcall>
- <antcall target="integration-test-stop-jetty-7"/>
- </target>
-
- <target name="integration-test-jboss3">
- <antcall target="integration-test-start-jboss-3"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="jboss-3.2.8" />
- </antcall>
- <antcall target="integration-test-stop-jboss-3"/>
- </target>
-
- <target name="integration-test-jboss4">
- <antcall target="integration-test-start-jboss-4"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="jboss-4.2.3" />
- </antcall>
- <antcall target="integration-test-stop-jboss-4"/>
- </target>
-
- <target name="integration-test-jboss5">
- <antcall target="integration-test-start-jboss-5"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="jboss-5.0.1" />
- </antcall>
- <antcall target="integration-test-stop-jboss-5"/>
- </target>
-
- <target name="integration-test-glassfish2">
- <antcall target="integration-test-start-glassfish2"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="glassfish-2.1.1" />
- </antcall>
- <antcall target="integration-test-stop-glassfish2"/>
- </target>
-
- <target name="integration-test-glassfish3">
- <antcall target="integration-test-start-glassfish3"/>
- <antcall target="integration-test-sampler">
- <param name="server-name" value="glassfish-3" />
- </antcall>
- <antcall target="integration-test-stop-glassfish3"/>
- </target>
-
- <target name="integration-test-liferay">
- <antcall target="integration-test-start-liferay-5" />
- <trycatch property="tried">
- <try>
- <antcall target="integration-test-init-liferay-5" />
- <antcall target="integration-test-test-liferay-5" />
- </try>
- <catch>
- <echo message="Liferay sampler test failed. ${tried}" />
- </catch>
- </trycatch>
- <antcall target="integration-test-liferay-5-portlet2" />
- <antcall target="integration-test-stop-liferay-5" />
- </target>
-
- <target name="integration-test-liferay6">
- <antcall target="integration-test-start-liferay-6" />
- <antcall target="integration-test-liferay-6" />
- <antcall target="test-theme-liferay-6" />
- <antcall target="integration-test-stop-liferay-6" />
- </target>
-
- <target name="integration-test-liferay6ee">
- <antcall target="integration-test-start-liferay-6ee" />
- <antcall target="integration-test-liferay-6ee" />
- <antcall target="test-theme-liferay-6ee" />
- <antcall target="integration-test-stop-liferay-6ee" />
- </target>
-
- <target name="integration-test-gatein3">
- <antcall target="integration-test-start-gatein-3" />
- <antcall target="integration-test-gatein-3" />
- <antcall target="integration-test-stop-gatein-3" />
- </target>
-
- <target name="integration-test-eXo3">
- <antcall target="integration-test-start-eXo-3" />
- <antcall target="integration-test-eXo-3" />
- <antcall target="integration-test-stop-eXo-3" />
- </target>
-
- <target name="integration-test-weblogic9">
- <antcall target="integration-test-start-weblogic9"/>
- <antcall target="integration-test-test-weblogic">
- <param name="server-name" value="weblogic-9.2" />
- </antcall>
- <antcall target="integration-test-stop-weblogic9"/>
- </target>
-
- <target name="integration-test-weblogic10">
- <antcall target="integration-test-start-weblogic10"/>
- <antcall target="integration-test-test-weblogic">
- <param name="server-name" value="weblogic-10.3" />
- </antcall>
- <antcall target="integration-test-stop-weblogic10"/>
- </target>
-
- <target name="integration-test-weblogicPortal">
- <antcall target="integration-test-start-weblogic-portal"/>
- <antcall target="integration-test-weblogic-portal"/>
- <antcall target="integration-test-stop-weblogic-portal"/>
- </target>
-
- <target name="integration-test-GAE">
- <antcall target="integration-test-deploy-to-GAE"/>
- <antcall target="integration-test-test-GAE" />
- </target>
-
- <!-- Upload demo, clean error screenshots and test deployment on all servers -->
- <target name="integration-test-all">
- <echo message="Getting lock" />
- <antcall target="integration-test-get-lock" />
- <echo message="Got lock" />
-
- <trycatch property="tried">
- <try>
- <antcall target="integration-test-upload-demo" />
-
- <parallel>
- <sequential>
- <antcall target="run-integration-test">
- <param name="target-server" value="tomcat4"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="tomcat5"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="tomcat6"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="jetty5"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="jetty6"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="jetty7"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="jboss3"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="jboss4"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="jboss5"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="glassfish2"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="glassfish3"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="liferay"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="liferay6"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="liferay6ee"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="gatein3"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="eXo3"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="weblogic9"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="weblogic10"/>
- </antcall>
- <antcall target="run-integration-test">
- <param name="target-server" value="weblogicPortal"/>
- </antcall>
- </sequential>
- <antcall target="run-integration-test">
- <param name="target-server" value="GAE"/>
- </antcall>
- </parallel>
- </try>
- <catch>
- <echo message="Uploading of demo.war failed. ${tried}" />
- </catch>
- </trycatch>
-
- <antcall target="integration-test-clean" />
- <echo message="Getting lock" />
- <antcall target="integration-test-release-lock" />
- <echo message="Lock released" />
- </target>
-
- <target name="run-integration-test">
- <concat>##teamcity[testStarted name='${target-server}' flowId='${target-server}']</concat>
- <trycatch property="tried">
- <try>
- <antcall target="integration-test-${target-server}" />
- </try>
- <catch>
- <concat>##teamcity[testFailed name='${target-server}' flowId='${target-server}' message='Integration test for ${target-server} failed.' details='${tried}']"</concat>
- </catch>
- </trycatch>
- <concat>##teamcity[testFinished name='${target-server}' flowId='${target-server}']"</concat>
- </target>
-
- <target name="integration-test-get-lock">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} get-lock" />
- </target>
-
- <target name="integration-test-release-lock">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} release-lock" />
- </target>
-
- <!-- Remove demo.war -->
- <target name="integration-test-clean">
- <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} clean" />
- </target>
- </project>
|