forked from molgenis/molgenis_apps-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xqtl_selenium.xml
51 lines (41 loc) · 1.66 KB
/
xqtl_selenium.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<project name="xqtl_selenium" default="clean_make_test" basedir=".">
<description>
Run a Selenium web test on a freshly build xQTL workbench.
At the moment there are two issues that require attention:
1 - The test must be started as root (e.g. sudo ant -f...) under Unix,
or else creation of the file directory in the application will
likely fail during the test where the database/storage is setup.
2 - The test must be started in the directory of the Ant script.
(e.g. NOT: sudo ant -f molgenis_apps/xqtl_s...) If you start it
from another directory, Selenium cannot find the WebContent
directory (amongst other resources?) and the test fails.
</description>
<!-- Import development script for reuse -->
<import file="xqtl_dev.xml" />
<!-- Import TestNG as an Ant task -->
<taskdef resource="testngtasks" classpath="../molgenis/lib/testng-5.14.10.jar" />
<!--
Wrapper: Complete xQTL Selenium web test.
Clean dirs, make application and run the test.
-->
<target name="clean_make_webtest" description="Make app and start the web test">
<antcall target="clean_make" />
<antcall target="webtest" />
</target>
<!--
Run xQTL selenium test
-->
<target name="webtest" description="Start the Selenium test">
<testng haltOnFailure="true">
<!--xmlfileset dir="${app_build_dir}" includes="**/xqtl_test_selenium.xml" /-->
<classfileset dir="${app_build_dir}" includes="**/XqtlSeleniumTest.class"/>
<classpath>
<path refid="molgenis-libs" />
<path refid="app-libs" />
<path location="${mol_build_dir}" />
<path location="${app_build_dir}" />
</classpath>
</testng>
</target>
</project>