|
|
|
|
|
|
|
|
<exclude name="tests/integration-testscripts/**" /> |
|
|
<exclude name="tests/integration-testscripts/**" /> |
|
|
</fileset> |
|
|
</fileset> |
|
|
|
|
|
|
|
|
|
|
|
<!-- fileset containing tests to retry --> |
|
|
|
|
|
<fileset dir=".." id="html-retry-files-ie6"> |
|
|
|
|
|
<include name="tests/**/ComboBoxLargeIcons.html" /> |
|
|
|
|
|
</fileset> |
|
|
|
|
|
|
|
|
<!-- This target converts HTML tests files to java junit tests. One test file for each browser is created. --> |
|
|
<!-- This target converts HTML tests files to java junit tests. One test file for each browser is created. --> |
|
|
<target name="create-tests" depends="remove-temp-testclasses" if="server.start.succeeded"> |
|
|
<target name="create-tests" depends="remove-temp-testclasses" if="server.start.succeeded"> |
|
|
<fileset id="tests"> |
|
|
|
|
|
<include /> |
|
|
|
|
|
</fileset> |
|
|
|
|
|
<pathconvert pathsep=" " property="testfiles" refid="html-test-files" /> |
|
|
<pathconvert pathsep=" " property="testfiles" refid="html-test-files" /> |
|
|
|
|
|
|
|
|
<java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath"> |
|
|
<java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath"> |
|
|
|
|
|
|
|
|
</java> |
|
|
</java> |
|
|
</target> |
|
|
</target> |
|
|
|
|
|
|
|
|
<target name="create-retry-tests"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<target name="create-retry-tests" if="create.retry.tests"> |
|
|
<antcall target="convert-retry-test"> |
|
|
<antcall target="convert-retry-test"> |
|
|
<param name="browser" value="winxp-ie6" /> |
|
|
<param name="browser" value="winxp-ie6" /> |
|
|
<param name="testfile-name" value="tests/**/ComboBoxLargeIcons.html" /> |
|
|
|
|
|
<param name="retries" value="3" /> |
|
|
|
|
|
|
|
|
<param name="testfile-name" value="html-retry-files-ie6" /> |
|
|
</antcall> |
|
|
</antcall> |
|
|
</target> |
|
|
</target> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Target converts test files so that the whole test can be re run 'retries' times --> |
|
|
<!-- Target converts test files so that the whole test can be re run 'retries' times --> |
|
|
<target name="convert-retry-test"> |
|
|
|
|
|
<fail unless="retries" message="The 'retries' property must be defined." /> |
|
|
|
|
|
<fileset dir=".." id="test-files"> |
|
|
|
|
|
<include name="${testfile-name}" /> |
|
|
|
|
|
</fileset> |
|
|
|
|
|
<pathconvert pathsep=" " property="testfile" refid="test-files" /> |
|
|
|
|
|
|
|
|
<target name="convert-retry-test" if="retries"> |
|
|
|
|
|
<pathconvert pathsep=" " property="testfile" refid="${testfile-name}" /> |
|
|
|
|
|
|
|
|
<java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath"> |
|
|
<java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath"> |
|
|
<sysproperty key="com.vaadin.testbench.test.retries" value="${retries}" /> |
|
|
<sysproperty key="com.vaadin.testbench.test.retries" value="${retries}" /> |
|
|
|
|
|
|
|
|
<target name="test-package" depends="server-start, run-and-clean-up, server-stop"> |
|
|
<target name="test-package" depends="server-start, run-and-clean-up, server-stop"> |
|
|
</target> |
|
|
</target> |
|
|
|
|
|
|
|
|
</project> |
|
|
|
|
|
|
|
|
</project> |