Author: jharting
Date: 2009-02-10 07:36:40 -0500 (Tue, 10 Feb 2009)
New Revision: 10030
Modified:
trunk/src/test/ftest/examples/build.xml
Log:
JBSEAM-3690 fixed waiting for example to deploy
Modified: trunk/src/test/ftest/examples/build.xml
===================================================================
--- trunk/src/test/ftest/examples/build.xml 2009-02-10 12:19:03 UTC (rev 10029)
+++ trunk/src/test/ftest/examples/build.xml 2009-02-10 12:36:40 UTC (rev 10030)
@@ -159,16 +159,17 @@
<attribute name="target" />
<attribute name="wait.url" />
<attribute name="wait.time" />
+ <attribute name="absolute.wait.url"
default="${selenium.browser.url}/(a){wait.url}"/>
<sequential>
<echo>Deploying ${example.name} example to ${container}</echo>
<ant antfile="${seam.dir}/examples/${example.name}/build.xml"
target="@{target}" inheritall="false"
dir="${seam.dir}/examples/${example.name}" />
<!-- wait for the application to be active -->
<!-- TODO is there a better way? -->
- <echo>Going to wait @{wait.time} seconds for @{wait.url}</echo>
+ <echo>Waiting @{wait.time} seconds for @{absolute.wait.url}</echo>
<waitfor maxwait="(a){wait.time}" maxwaitunit="second">
<and>
<!-- wait for the application to not throw 404 -->
- <http url="${selenium.browser.url}/${wait.url}"
errorsBeginAt="404" />
+ <http url="(a){absolute.wait.url}" errorsBeginAt="404" />
</and>
</waitfor>
</sequential>
Show replies by date