Project

General

Profile

« Previous | Next » 

Revision 0ed08d92

Added by Andreas Kohlbecker over 8 years ago

configuring new pom.xml for selenium tests and starting to adapt the headless-maven-tests.sh script

View differences:

modules/cdm_dataportal/jenkins-ci/headless-maven-tests.sh
1 1
#!/bin/bash -x
2 2
#
3 3
# USAGE:
4
#     bash -ex /usr/lib/selenium/headlessSelenium.sh MODULE_ROOT
5
# whereas MODULE_ROOT points to the cdm_dataportal folder in the jenkins workspace
4
#     bash -ex /usr/lib/selenium/headlessSelenium.sh [WORKSPACE_ROOT]
5
# whereas WORKSPACE_ROOT points to workspace root in the jenkins workspace
6
# which contains the whole project
6 7
#
7
MODULE_ROOT=$1
8
if [ -z "$WORKSPACE_ROOT" ]; then
9
    WORKSPACE_ROOT=$1
10
fi
11

  
8 12
FIREFOX_BIN="/usr/lib/iceweasel/firefox-bin"
9 13

  
10 14
DISPLAY=":99"
......
26 30
fi
27 31
export DISPLAY
28 32

  
29
cd $MODULE_ROOT/test/java/dataportal-selenium-tests/
33
cd $WORKSPACE_ROOT
30 34

  
31 35
if [ -n $2 ]; then
32 36
  CONF_FILE_OPTION="-Ddataportal.test.conf=$2"
modules/cdm_dataportal/test/java/dataportal-selenium-tests/pom.xml
98 98
      selenium 2 webdriver, see
99 99
      http://seleniumhq.org/docs/03_webdriver.html#with-maven
100 100
    -->
101
    <!--
102
    <dependency>
103
      <groupId>org.seleniumhq.selenium</groupId>
104
      <artifactId>selenium-parent</artifactId>
105
      <version>${selenium-version}</version>
106
    </dependency>
107
     -->
108 101
    <dependency>
109 102
      <groupId>org.seleniumhq.selenium</groupId>
110 103
      <artifactId>selenium-firefox-driver</artifactId>
pom.xml
7 7
    <groupId>eu.etaxonomy</groupId>
8 8
    <artifactId>cdm_dataportal</artifactId>
9 9
    <name>CDM Dataportal</name>
10
    <packaging>pom</packaging>
10
    <packaging>jar</packaging>
11 11
    <version>3.9.0</version>
12 12

  
13
    <properties>
14
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15
        <!-- for the latest version see http://docs.seleniumhq.org/download/#client-drivers -->
16
        <selenium-version>2.45.0</selenium-version>
17
    </properties>
18

  
13 19
    <mailingLists>
14 20
        <mailingList>
15 21
            <name>EDIT Platform Developers</name>
......
76 82

  
77 83
    <build>
78 84
        <plugins>
85
            <plugin>
86
                <artifactId>maven-compiler-plugin</artifactId>
87
                <version>3.2</version>
88
                <configuration>
89
                    <source>1.7</source>
90
                    <target>1.7</target>
91
                </configuration>
92
            </plugin>
79 93
            <plugin>
80 94
                <groupId>org.apache.maven.plugins</groupId>
81 95
                <artifactId>maven-deploy-plugin</artifactId>
......
155 169
        </extensions>
156 170
    </build>
157 171

  
172
    <dependencies>
173
        <dependency>
174
            <groupId>junit</groupId>
175
            <artifactId>junit</artifactId>
176
            <version>4.6</version>
177
        </dependency>
178
        <dependency>
179
            <groupId>log4j</groupId>
180
            <artifactId>log4j</artifactId>
181
            <version>1.2.16</version>
182
        </dependency>
183
        <dependency>
184
            <groupId>commons-lang</groupId>
185
            <artifactId>commons-lang</artifactId>
186
            <version>2.2</version>
187
        </dependency>
188
        <!--
189
          selenium 2 webdriver, see
190
          http://seleniumhq.org/docs/03_webdriver.html#with-maven
191
        -->
192
        <dependency>
193
            <groupId>org.seleniumhq.selenium</groupId>
194
            <artifactId>selenium-firefox-driver</artifactId>
195
            <version>${selenium-version}</version>
196
        </dependency>
197
        <dependency>
198
            <groupId>org.seleniumhq.selenium</groupId>
199
            <artifactId>selenium-support</artifactId>
200
            <version>${selenium-version}</version>
201
        </dependency>
202
        <dependency>
203
            <groupId>org.seleniumhq.selenium</groupId>
204
            <artifactId>selenium-api</artifactId>
205
            <version>${selenium-version}</version>
206
        </dependency>
207
        <dependency>
208
            <!-- Selenese emulation -->
209
            <groupId>org.seleniumhq.selenium</groupId>
210
            <artifactId>selenium-java</artifactId>
211
            <version>${selenium-version}</version>
212
        </dependency>
213
        <dependency>
214
            <groupId>org.seleniumhq.selenium</groupId>
215
            <artifactId>selenium-chrome-driver</artifactId>
216
            <version>${selenium-version}</version>
217
        </dependency>
218
        <dependency>
219
            <groupId>org.seleniumhq.selenium</groupId>
220
            <artifactId>selenium-ie-driver</artifactId>
221
            <version>${selenium-version}</version>
222
        </dependency>
223
        <dependency>
224
            <groupId>org.seleniumhq.selenium</groupId>
225
            <artifactId>selenium-htmlunit-driver</artifactId>
226
            <version>${selenium-version}</version>
227
        </dependency>
228
    </dependencies>
229

  
158 230
</project>

Also available in: Unified diff