Newer
Older
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

Joze RIHTARSIC
committed
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eu.europa.ec.edelivery</groupId>
<artifactId>smp-modules</artifactId>
<relativePath>../pom.xml</relativePath>

Joze RIHTARSIC
committed
</parent>
<artifactId>smp-soapui-tests</artifactId>
<packaging>jar</packaging>
<name>smp-soapui-tests</name>
<description>Interaction tests suit for SMP</description>

Joze RIHTARSIC
committed

Joze RIHTARSIC
committed
<properties>
<!-- Only selected modules are deployed -->
<maven.deploy.skip>false</maven.deploy.skip>

Joze RIHTARSIC
committed
<url>http://localhost:8080/smp</url>
<SMPAdminUser />
<SMPAdminPassword />
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- the soap ui specific dependencies -->
<com.smartbear.soapui.version>5.1.2</com.smartbear.soapui.version>
<org.codehaus.groovy.version>2.9.2-01</org.codehaus.groovy.version>
<org.codehaus.groovy.eclipse-batch.version>2.5.13-01</org.codehaus.groovy.eclipse-batch.version>
<http-builder.version>0.7.1</http-builder.version>
<reflection.version>0.9.11</reflection.version>
<httpcore.version>4.4.3</httpcore.version>
<apache.http4.client.version>4.5.14</apache.http4.client.version>

Joze RIHTARSIC
committed
</properties>
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>https://www.soapui.org/repository/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>https://www.eviware.com/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>SmartBearPluginRepository</id>
<url>https://www.soapui.org/repository/maven2/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<!-- for development purposes only. The soapui
has its own groovy library -->
<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui</artifactId>
<version>${com.smartbear.soapui.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>${org.codehaus.groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>${org.codehaus.groovy.eclipse-batch.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>${org.codehaus.groovy.version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<profiles>
<!-- soap ui -->
<profile>
<id>run-soapui</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-pro-maven-plugin</artifactId>
<version>${com.smartbear.soapui.version}</version>
<outputFolder>${project.build.directory}/soapui-reports/</outputFolder>
<junitReport>true</junitReport>
<printReport>true</printReport>
<settingsFile>${basedir}/soapui/soapui-settings.xml</settingsFile>
<soapuiProperties>
<property>
<name>soapui.scripting.library</name>
<value>${basedir}/src/main/java</value>
</property>
<property>
<name>soapui.logroot</name>
<value>${project.build.directory}/soapui/logs/</value>
</property>
<property>
<name>http.nonProxyHosts</name>
<value>localhost|127.*|[::1]</value>
</property>
</soapuiProperties>
<testFailIgnore>true</testFailIgnore>
<projectFile>${basedir}/soapui/SMP4.0-Generic-soapui-project.xml
</projectFile>
<testSuite>PASSING_AUTO_BAMBOO</testSuite>
<!--If you want to execute single test case -->
<!-- testCase>SMP001-Create ServiceGroup-Basic Flow-Admin Service Group specified</testCase -->
<!-- testCase>SMP063-EDELIVERY-364 slash encoding-Tomcat</testCase -->
<!-- testCase>SMP022-Create ServiceMetadata-Basic Flow</testCase -->
<projectProperties>
<value>url=${url}</value>
<value>SMPAdminUser=${SMPAdminUser}</value>
<value>SMPAdminPassword=${SMPAdminPassword}</value>
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
</projectProperties>
</configuration>
<dependencies>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>${reflection.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy.modules.http-builder</groupId>
<artifactId>http-builder</artifactId>
<version>${http-builder.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>${httpcore.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${apache.http4.client.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- extract classes so that JACOCO plugin can find the classes
to generate a report (use this option to get Code coverage report for SOAPUI project)
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<groupId>${project.groupId}</groupId>
<artifactId>smp-server-library</artifactId>
<version>${project.version}</version>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>smp</artifactId>
<version>${project.version}</version>
<type>war</type>
</artifactItem>
</artifactItems>
<includes>eu/europa/ec/edelivery/smp/**/*.class</includes>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- soap ui -->
<profile>
<id>dump-code-coverage</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<!-- dump jacoco report from remote agent and generate report -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<classDumpDir>${project.build.outputDirectory}</classDumpDir>
<executions>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>dump</goal>
<!-- dataFile>${project.build.directory}/jacoco.exec</dataFile -->
<address>${sonar.jacoco.remoteAddress}</address>
<port>${sonar.jacoco.remotePort}</port>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>