Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. <?xml version="1.0"?>
  2. <project name="Test sampler deployment" basedir="." default="integration-test-all">
  3. <!-- Target deploying demo.war -->
  4. <fail unless="test.integration.server" message="test.integration.server must be set for integration tests to run"/>
  5. <fail unless="test.integration.user" message="test.integration.user must be set for integration tests to run"/>
  6. <fail unless="test.integration.antfile" message="test.integration.antfile must be set for integration tests to run"/>
  7. <!-- Test with these browsers -->
  8. <property name="test_browsers" value="winxp-firefox36" />
  9. <!-- Path to key file. Default value -->
  10. <property name="sshkey.file" value="id_dsa" />
  11. <!-- path and name for demo.war to be deployed -->
  12. <property name="demo.war" value="demo.war"/>
  13. <!-- Host running Testbench RC or Testbench Hub. Default value -->
  14. <property name="com.vaadin.testbench.tester.host" value="127.0.0.1" />
  15. <!-- Base url where the testable application is deployed -->
  16. <property name="deployment.url" value="http://${test.integration.server}:8080" />
  17. <!-- ssh host values -->
  18. <property name="ant.hub" value="${test.integration.antfile}" />
  19. <property name="user" value="${test.integration.user}" />
  20. <property name="passphrase" value="" />
  21. <!-- add ant contrib -->
  22. <taskdef resource="net/sf/antcontrib/antcontrib.properties">
  23. <classpath>
  24. <pathelement location="../build/lib/ant-contrib-1.0b3.jar"/>
  25. </classpath>
  26. </taskdef>
  27. <!-- Upload war to deploy to ssh host -->
  28. <target name="integration-test-upload-demo">
  29. <scp file="${demo.war}" todir="${user}@${test.integration.server}:integration-tests/servers/demo.war" keyfile="${sshkey.file}" passphrase="${passphrase}" />
  30. </target>
  31. <!-- Run sampler deployment test -->
  32. <target name="integration-test-sampler">
  33. <fileset dir="integration-testscripts" id="html-test-files" includes="integration-test-${server-name}-sampler.html" />
  34. <pathconvert pathsep=" " property="testfiles" refid="html-test-files" />
  35. <subant target="run-tests" failonerror="false" antfile="test.xml">
  36. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  37. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  38. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  39. <property name="server.start.succeeded" value="1" />
  40. <property name="browsers" value="${test_browsers}" />
  41. <property name="testfiles" value="${testfiles}" />
  42. <property name="test-output-dir" value="../build/integration-test-output" />
  43. <property name="retries" value="0" />
  44. <fileset dir="." includes="test.xml" />
  45. </subant>
  46. </target>
  47. <!-- Start and stop methods for servers -->
  48. <target name="integration-test-start-tomcat-4">
  49. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-tomcat-4.1.40" />
  50. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-tomcat-4.1.40-sampler.html" overwrite="true" />
  51. </target>
  52. <target name="integration-test-stop-tomcat-4">
  53. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-tomcat-4.1.40" />
  54. </target>
  55. <target name="integration-test-start-tomcat-5">
  56. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-tomcat-5.5.28" />
  57. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-tomcat-5.5.28-sampler.html" overwrite="true" />
  58. </target>
  59. <target name="integration-test-stop-tomcat-5">
  60. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-tomcat-5.5.28" />
  61. </target>
  62. <target name="integration-test-start-tomcat-6">
  63. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-tomcat-6.0.20" />
  64. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-tomcat-6.0.20-sampler.html" overwrite="true" />
  65. </target>
  66. <target name="integration-test-stop-tomcat-6">
  67. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-tomcat-6.0.20" />
  68. </target>
  69. <target name="integration-test-start-jetty-5">
  70. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jetty-5.1.15" />
  71. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jetty-5.1.15-sampler.html" overwrite="true" />
  72. </target>
  73. <target name="integration-test-stop-jetty-5">
  74. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jetty-5.1.15" />
  75. </target>
  76. <target name="integration-test-start-jetty-6">
  77. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jetty-6.1.22" />
  78. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jetty-6.1.22-sampler.html" overwrite="true" />
  79. </target>
  80. <target name="integration-test-stop-jetty-6">
  81. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jetty-6.1.22" />
  82. </target>
  83. <target name="integration-test-start-jetty-7">
  84. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jetty-7.0.0" />
  85. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jetty-7.0.0-sampler.html" overwrite="true" />
  86. </target>
  87. <target name="integration-test-stop-jetty-7">
  88. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jetty-7.0.0" />
  89. </target>
  90. <target name="integration-test-start-jboss-3">
  91. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jboss-3.2.8" />
  92. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jboss-3.2.8-sampler.html" overwrite="true" />
  93. </target>
  94. <target name="integration-test-stop-jboss-3">
  95. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jboss-3.2.8" />
  96. </target>
  97. <target name="integration-test-start-jboss-4">
  98. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jboss-4.2.3" />
  99. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jboss-4.2.3-sampler.html" overwrite="true" />
  100. </target>
  101. <target name="integration-test-stop-jboss-4">
  102. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jboss-4.2.3" />
  103. </target>
  104. <target name="integration-test-start-jboss-5">
  105. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-jboss-5.0.1" />
  106. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-jboss-5.0.1-sampler.html" overwrite="true" />
  107. </target>
  108. <target name="integration-test-stop-jboss-5">
  109. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-jboss-5.0.1" />
  110. </target>
  111. <target name="integration-test-start-glassfish2">
  112. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-glassfish-2.1.1" />
  113. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-glassfish-2.1.1-sampler.html" overwrite="true" />
  114. </target>
  115. <target name="integration-test-stop-glassfish2">
  116. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-glassfish-2.1.1" />
  117. </target>
  118. <target name="integration-test-start-glassfish3">
  119. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-glassfish-3" />
  120. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-glassfish-3-sampler.html" overwrite="true" />
  121. </target>
  122. <target name="integration-test-stop-glassfish3">
  123. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-glassfish-3" />
  124. </target>
  125. <!-- Test liferay sampler -->
  126. <target name="integration-test-test-liferay-5">
  127. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/integration-test-liferay-5.2.3-sampler.html" />
  128. <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
  129. <subant target="run-tests" failonerror="false" antfile="test.xml">
  130. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  131. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  132. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  133. <property name="server.start.succeeded" value="1" />
  134. <property name="browsers" value="${test_browsers}" />
  135. <property name="testfiles" value="${test-liferay}" />
  136. <property name="test-output-dir" value="../build/integration-test-output" />
  137. <fileset dir="." includes="test.xml" />
  138. </subant>
  139. </target>
  140. <!-- "deploy" sampler to liferay -->
  141. <target name="integration-test-init-liferay-5">
  142. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/Add_Sampler_to_Liferay.html" />
  143. <pathconvert pathsep=" " property="init-liferay" refid="html-test-files" />
  144. <subant target="run-tests" failonerror="false" antfile="test.xml">
  145. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  146. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  147. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  148. <property name="server.start.succeeded" value="1" />
  149. <property name="browsers" value="winxp-firefox36" />
  150. <property name="testfiles" value="${init-liferay}" />
  151. <property name="test-output-dir" value="../build/integration-test-output" />
  152. <fileset dir="." includes="test.xml" />
  153. </subant>
  154. </target>
  155. <target name="integration-test-liferay-5-portlet2">
  156. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-5/integration-test-liferay-5.2.3-portlet2.html" />
  157. <pathconvert pathsep=" " property="init-liferay" refid="html-test-files" />
  158. <subant target="run-tests" failonerror="false" antfile="test.xml">
  159. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  160. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  161. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  162. <property name="server.start.succeeded" value="1" />
  163. <property name="browsers" value="winxp-firefox36" />
  164. <property name="testfiles" value="${init-liferay}" />
  165. <property name="test-output-dir" value="../build/integration-test-output" />
  166. <fileset dir="." includes="test.xml" />
  167. </subant>
  168. </target>
  169. <target name="integration-test-liferay-6">
  170. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6/integration-test-liferay-6.0.5.html" />
  171. <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
  172. <subant target="run-tests" failonerror="false" antfile="test.xml">
  173. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  174. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  175. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  176. <property name="server.start.succeeded" value="1" />
  177. <property name="browsers" value="winxp-firefox36" />
  178. <property name="testfiles" value="${test-liferay}" />
  179. <property name="test-output-dir" value="../build/integration-test-output" />
  180. <fileset dir="." includes="test.xml" />
  181. </subant>
  182. </target>
  183. <target name="test-theme-liferay-6">
  184. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6/Liferay6-theme.html" />
  185. <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
  186. <subant target="run-tests" failonerror="false" antfile="test.xml">
  187. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  188. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  189. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  190. <property name="server.start.succeeded" value="1" />
  191. <property name="testfiles" value="${test-liferay}" />
  192. <property name="test-output-dir" value="../build/integration-test-output" />
  193. <fileset dir="." includes="test.xml" />
  194. </subant>
  195. </target>
  196. <target name="integration-test-liferay-6ee">
  197. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6EE/integration-test-liferay-6ee.html" />
  198. <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
  199. <subant target="run-tests" failonerror="false" antfile="test.xml">
  200. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  201. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  202. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  203. <property name="server.start.succeeded" value="1" />
  204. <property name="browsers" value="winxp-firefox36" />
  205. <property name="testfiles" value="${test-liferay}" />
  206. <property name="test-output-dir" value="../build/integration-test-output" />
  207. <fileset dir="." includes="test.xml" />
  208. </subant>
  209. </target>
  210. <target name="test-theme-liferay-6ee">
  211. <fileset dir="integration-testscripts" id="html-test-files" includes="Liferay-6EE/Liferay6EE-theme.html" />
  212. <pathconvert pathsep=" " property="test-liferay" refid="html-test-files" />
  213. <subant target="run-tests" failonerror="false" antfile="test.xml">
  214. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  215. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  216. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  217. <property name="server.start.succeeded" value="1" />
  218. <property name="testfiles" value="${test-liferay}" />
  219. <property name="test-output-dir" value="../build/integration-test-output" />
  220. <fileset dir="." includes="test.xml" />
  221. </subant>
  222. </target>
  223. <target name="integration-test-gatein-3">
  224. <fileset dir="integration-testscripts" id="html-test-files" includes="GateIn-3/integration-test-GateIn-3.1.0-sampler.html" />
  225. <pathconvert pathsep=" " property="test-gatein" refid="html-test-files" />
  226. <subant target="run-tests" failonerror="false" antfile="test.xml">
  227. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  228. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  229. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  230. <property name="server.start.succeeded" value="1" />
  231. <property name="browsers" value="winxp-firefox36" />
  232. <property name="testfiles" value="${test-gatein}" />
  233. <property name="test-output-dir" value="../build/integration-test-output" />
  234. <fileset dir="." includes="test.xml" />
  235. </subant>
  236. </target>
  237. <target name="integration-test-eXo-3">
  238. <fileset dir="integration-testscripts" id="html-test-files" includes="eXo-3/integration-test-eXo-3.0.3-addressbook.html" />
  239. <pathconvert pathsep=" " property="test-exo" refid="html-test-files" />
  240. <subant target="run-tests" failonerror="false" antfile="test.xml">
  241. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  242. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  243. <property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />
  244. <property name="server.start.succeeded" value="1" />
  245. <property name="browsers" value="winxp-firefox36" />
  246. <property name="testfiles" value="${test-exo}" />
  247. <property name="test-output-dir" value="../build/integration-test-output" />
  248. <fileset dir="." includes="test.xml" />
  249. </subant>
  250. </target>
  251. <target name="integration-test-weblogic-portal">
  252. <fileset dir="integration-testscripts" id="html-test-files" includes="weblogic-portal/integration-test-WebLogic-Portal-10.3.2-addressbook.html" />
  253. <pathconvert pathsep=" " property="test-weblogic" refid="html-test-files" />
  254. <subant target="run-tests" failonerror="false" antfile="test.xml">
  255. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  256. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  257. <property name="com.vaadin.testbench.deployment.url" value="http://${test.integration.server}:7001" />
  258. <property name="server.start.succeeded" value="1" />
  259. <property name="browsers" value="winxp-firefox36" />
  260. <property name="testfiles" value="${test-weblogic}" />
  261. <property name="test-output-dir" value="../build/integration-test-output" />
  262. <fileset dir="." includes="test.xml" />
  263. </subant>
  264. </target>
  265. <target name="integration-test-start-liferay-5">
  266. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-liferay-5.2.3" />
  267. </target>
  268. <target name="integration-test-stop-liferay-5">
  269. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-liferay-5.2.3" />
  270. </target>
  271. <target name="integration-test-start-liferay-6">
  272. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-liferay-6.0.5" />
  273. </target>
  274. <target name="integration-test-stop-liferay-6">
  275. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-liferay-6.0.5" />
  276. </target>
  277. <target name="integration-test-start-liferay-6ee">
  278. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-liferay-6.0-ee" />
  279. </target>
  280. <target name="integration-test-stop-liferay-6ee">
  281. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-liferay-6.0-ee" />
  282. </target>
  283. <target name="integration-test-start-gatein-3">
  284. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-gatein-3.1.0" />
  285. </target>
  286. <target name="integration-test-stop-gatein-3">
  287. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-gatein-3.1.0" />
  288. </target>
  289. <target name="integration-test-start-eXo-3">
  290. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-eXo-3.0.3" />
  291. </target>
  292. <target name="integration-test-stop-eXo-3">
  293. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-eXo-3.0.3" />
  294. </target>
  295. <!-- Run sampler deployment test for WebLogic server -->
  296. <target name="integration-test-test-weblogic">
  297. <fileset dir="integration-testscripts" id="html-test-files" includes="integration-test-${server-name}-sampler.html" />
  298. <pathconvert pathsep=" " property="test-weblogic" refid="html-test-files" />
  299. <subant target="run-tests" failonerror="false" antfile="test.xml">
  300. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  301. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  302. <property name="com.vaadin.testbench.deployment.url" value="http://${test.integration.server}:7001" />
  303. <property name="server.start.succeeded" value="1" />
  304. <property name="browsers" value="${test_browsers}" />
  305. <property name="testfiles" value="${test-weblogic}" />
  306. <property name="test-output-dir" value="../build/integration-test-output" />
  307. <fileset dir="." includes="test.xml" />
  308. </subant>
  309. </target>
  310. <target name="integration-test-start-weblogic9">
  311. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-9.2" />
  312. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-weblogic-9.2-sampler.html" overwrite="true" />
  313. </target>
  314. <target name="integration-test-stop-weblogic9">
  315. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-9.2" />
  316. </target>
  317. <target name="integration-test-start-weblogic10">
  318. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-10.3" />
  319. <copy file="integration-testscripts/common/sampler_deployment.tpl" tofile="integration-testscripts/integration-test-weblogic-10.3-sampler.html" overwrite="true" />
  320. </target>
  321. <target name="integration-test-stop-weblogic10">
  322. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-10.3" />
  323. </target>
  324. <target name="integration-test-start-weblogic-portal">
  325. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-portal" />
  326. </target>
  327. <target name="integration-test-stop-weblogic-portal">
  328. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-portal" />
  329. </target>
  330. <!-- Run sampler deployment test on GAE -->
  331. <target name="integration-test-test-GAE">
  332. <fileset dir="integration-testscripts" id="html-test-files" includes="GoogleAppEngine/integration-test-GAE-sampler.html" />
  333. <pathconvert pathsep=" " property="test-GAE" refid="html-test-files" />
  334. <subant target="run-tests" failonerror="false" antfile="test.xml">
  335. <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />
  336. <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />
  337. <property name="com.vaadin.testbench.deployment.url" value="http://vaadin-integration-test.appspot.com/" />
  338. <property name="server.start.succeeded" value="1" />
  339. <property name="browsers" value="${test_browsers}" />
  340. <property name="testfiles" value="${test-GAE}" />
  341. <property name="test-output-dir" value="../build/integration-test-output" />
  342. <fileset dir="." includes="test.xml" />
  343. </subant>
  344. </target>
  345. <target name="integration-test-deploy-to-GAE">
  346. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} deploy-to-GAE" />
  347. </target>
  348. <!-- Server setup, test and teardown targets. -->
  349. <target name="integration-test-tomcat4">
  350. <antcall target="integration-test-start-tomcat-4"/>
  351. <antcall target="integration-test-sampler">
  352. <param name="server-name" value="tomcat-4.1.40" />
  353. </antcall>
  354. <antcall target="integration-test-stop-tomcat-4"/>
  355. </target>
  356. <target name="integration-test-tomcat5">
  357. <antcall target="integration-test-start-tomcat-5"/>
  358. <antcall target="integration-test-sampler">
  359. <param name="server-name" value="tomcat-5.5.28" />
  360. </antcall>
  361. <antcall target="integration-test-stop-tomcat-5"/>
  362. </target>
  363. <target name="integration-test-tomcat6">
  364. <antcall target="integration-test-start-tomcat-6"/>
  365. <antcall target="integration-test-sampler">
  366. <param name="server-name" value="tomcat-6.0.20" />
  367. </antcall>
  368. <antcall target="integration-test-stop-tomcat-6"/>
  369. </target>
  370. <target name="integration-test-jetty5">
  371. <antcall target="integration-test-start-jetty-5"/>
  372. <antcall target="integration-test-sampler">
  373. <param name="server-name" value="jetty-5.1.15" />
  374. </antcall>
  375. <antcall target="integration-test-stop-jetty-5"/>
  376. </target>
  377. <target name="integration-test-jetty6">
  378. <antcall target="integration-test-start-jetty-6"/>
  379. <antcall target="integration-test-sampler">
  380. <param name="server-name" value="jetty-6.1.22" />
  381. </antcall>
  382. <antcall target="integration-test-stop-jetty-6"/>
  383. </target>
  384. <target name="integration-test-jetty7">
  385. <antcall target="integration-test-start-jetty-7"/>
  386. <antcall target="integration-test-sampler">
  387. <param name="server-name" value="jetty-7.0.0" />
  388. </antcall>
  389. <antcall target="integration-test-stop-jetty-7"/>
  390. </target>
  391. <target name="integration-test-jboss3">
  392. <antcall target="integration-test-start-jboss-3"/>
  393. <antcall target="integration-test-sampler">
  394. <param name="server-name" value="jboss-3.2.8" />
  395. </antcall>
  396. <antcall target="integration-test-stop-jboss-3"/>
  397. </target>
  398. <target name="integration-test-jboss4">
  399. <antcall target="integration-test-start-jboss-4"/>
  400. <antcall target="integration-test-sampler">
  401. <param name="server-name" value="jboss-4.2.3" />
  402. </antcall>
  403. <antcall target="integration-test-stop-jboss-4"/>
  404. </target>
  405. <target name="integration-test-jboss5">
  406. <antcall target="integration-test-start-jboss-5"/>
  407. <antcall target="integration-test-sampler">
  408. <param name="server-name" value="jboss-5.0.1" />
  409. </antcall>
  410. <antcall target="integration-test-stop-jboss-5"/>
  411. </target>
  412. <target name="integration-test-glassfish2">
  413. <antcall target="integration-test-start-glassfish2"/>
  414. <antcall target="integration-test-sampler">
  415. <param name="server-name" value="glassfish-2.1.1" />
  416. </antcall>
  417. <antcall target="integration-test-stop-glassfish2"/>
  418. </target>
  419. <target name="integration-test-glassfish3">
  420. <antcall target="integration-test-start-glassfish3"/>
  421. <antcall target="integration-test-sampler">
  422. <param name="server-name" value="glassfish-3" />
  423. </antcall>
  424. <antcall target="integration-test-stop-glassfish3"/>
  425. </target>
  426. <target name="integration-test-liferay">
  427. <antcall target="integration-test-start-liferay-5" />
  428. <trycatch property="tried">
  429. <try>
  430. <antcall target="integration-test-init-liferay-5" />
  431. <antcall target="integration-test-test-liferay-5" />
  432. </try>
  433. <catch>
  434. <echo message="Liferay sampler test failed. ${tried}" />
  435. </catch>
  436. </trycatch>
  437. <antcall target="integration-test-liferay-5-portlet2" />
  438. <antcall target="integration-test-stop-liferay-5" />
  439. </target>
  440. <target name="integration-test-liferay6">
  441. <antcall target="integration-test-start-liferay-6" />
  442. <antcall target="integration-test-liferay-6" />
  443. <antcall target="test-theme-liferay-6" />
  444. <antcall target="integration-test-stop-liferay-6" />
  445. </target>
  446. <target name="integration-test-liferay6ee">
  447. <antcall target="integration-test-start-liferay-6ee" />
  448. <antcall target="integration-test-liferay-6ee" />
  449. <antcall target="test-theme-liferay-6ee" />
  450. <antcall target="integration-test-stop-liferay-6ee" />
  451. </target>
  452. <target name="integration-test-gatein3">
  453. <antcall target="integration-test-start-gatein-3" />
  454. <antcall target="integration-test-gatein-3" />
  455. <antcall target="integration-test-stop-gatein-3" />
  456. </target>
  457. <target name="integration-test-eXo3">
  458. <antcall target="integration-test-start-eXo-3" />
  459. <antcall target="integration-test-eXo-3" />
  460. <antcall target="integration-test-stop-eXo-3" />
  461. </target>
  462. <target name="integration-test-weblogic9">
  463. <antcall target="integration-test-start-weblogic9"/>
  464. <antcall target="integration-test-test-weblogic">
  465. <param name="server-name" value="weblogic-9.2" />
  466. </antcall>
  467. <antcall target="integration-test-stop-weblogic9"/>
  468. </target>
  469. <target name="integration-test-weblogic10">
  470. <antcall target="integration-test-start-weblogic10"/>
  471. <antcall target="integration-test-test-weblogic">
  472. <param name="server-name" value="weblogic-10.3" />
  473. </antcall>
  474. <antcall target="integration-test-stop-weblogic10"/>
  475. </target>
  476. <target name="integration-test-weblogicPortal">
  477. <antcall target="integration-test-start-weblogic-portal"/>
  478. <antcall target="integration-test-weblogic-portal"/>
  479. <antcall target="integration-test-stop-weblogic-portal"/>
  480. </target>
  481. <target name="integration-test-GAE">
  482. <antcall target="integration-test-deploy-to-GAE"/>
  483. <antcall target="integration-test-test-GAE" />
  484. </target>
  485. <!-- Upload demo, clean error screenshots and test deployment on all servers -->
  486. <target name="integration-test-all">
  487. <echo message="Getting lock" />
  488. <antcall target="integration-test-get-lock" />
  489. <echo message="Got lock" />
  490. <trycatch property="tried">
  491. <try>
  492. <antcall target="integration-test-upload-demo" />
  493. <parallel>
  494. <sequential>
  495. <antcall target="run-integration-test">
  496. <param name="target-server" value="tomcat4"/>
  497. </antcall>
  498. <antcall target="run-integration-test">
  499. <param name="target-server" value="tomcat5"/>
  500. </antcall>
  501. <antcall target="run-integration-test">
  502. <param name="target-server" value="tomcat6"/>
  503. </antcall>
  504. <antcall target="run-integration-test">
  505. <param name="target-server" value="jetty5"/>
  506. </antcall>
  507. <antcall target="run-integration-test">
  508. <param name="target-server" value="jetty6"/>
  509. </antcall>
  510. <antcall target="run-integration-test">
  511. <param name="target-server" value="jetty7"/>
  512. </antcall>
  513. <antcall target="run-integration-test">
  514. <param name="target-server" value="jboss3"/>
  515. </antcall>
  516. <antcall target="run-integration-test">
  517. <param name="target-server" value="jboss4"/>
  518. </antcall>
  519. <antcall target="run-integration-test">
  520. <param name="target-server" value="jboss5"/>
  521. </antcall>
  522. <antcall target="run-integration-test">
  523. <param name="target-server" value="glassfish2"/>
  524. </antcall>
  525. <antcall target="run-integration-test">
  526. <param name="target-server" value="glassfish3"/>
  527. </antcall>
  528. <antcall target="run-integration-test">
  529. <param name="target-server" value="liferay"/>
  530. </antcall>
  531. <antcall target="run-integration-test">
  532. <param name="target-server" value="liferay6"/>
  533. </antcall>
  534. <antcall target="run-integration-test">
  535. <param name="target-server" value="liferay6ee"/>
  536. </antcall>
  537. <antcall target="run-integration-test">
  538. <param name="target-server" value="gatein3"/>
  539. </antcall>
  540. <antcall target="run-integration-test">
  541. <param name="target-server" value="eXo3"/>
  542. </antcall>
  543. <antcall target="run-integration-test">
  544. <param name="target-server" value="weblogic9"/>
  545. </antcall>
  546. <antcall target="run-integration-test">
  547. <param name="target-server" value="weblogic10"/>
  548. </antcall>
  549. <antcall target="run-integration-test">
  550. <param name="target-server" value="weblogicPortal"/>
  551. </antcall>
  552. </sequential>
  553. <antcall target="run-integration-test">
  554. <param name="target-server" value="GAE"/>
  555. </antcall>
  556. </parallel>
  557. </try>
  558. <catch>
  559. <echo message="Uploading of demo.war failed. ${tried}" />
  560. </catch>
  561. </trycatch>
  562. <antcall target="integration-test-clean" />
  563. <echo message="Getting lock" />
  564. <antcall target="integration-test-release-lock" />
  565. <echo message="Lock released" />
  566. </target>
  567. <target name="run-integration-test">
  568. <concat>##teamcity[testStarted name='${target-server}' flowId='${target-server}']</concat>
  569. <trycatch property="tried">
  570. <try>
  571. <antcall target="integration-test-${target-server}" />
  572. </try>
  573. <catch>
  574. <concat>##teamcity[testFailed name='${target-server}' flowId='${target-server}' message='Integration test for ${target-server} failed.' details='${tried}']"</concat>
  575. </catch>
  576. </trycatch>
  577. <concat>##teamcity[testFinished name='${target-server}' flowId='${target-server}']"</concat>
  578. </target>
  579. <target name="integration-test-get-lock">
  580. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} get-lock" />
  581. </target>
  582. <target name="integration-test-release-lock">
  583. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} release-lock" />
  584. </target>
  585. <!-- Remove demo.war -->
  586. <target name="integration-test-clean">
  587. <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} clean" />
  588. </target>
  589. </project>