Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ There are 5 available container profiles:
</basicRegistry>
```

* ``weblogic-remote-arquillian``

This profile requires you to start up a WebLogic server outside of the build. Each sample will then
reuse this instance to run the tests. NOTE: this has been tested on WebLogic 12.1.3, which is a Java EE 6 implementation,
but it has some Java EE 7 features which can be optionally activated.

This profile requires you to set the location where WebLogic is installed via the ``weblogicRemoteArquillian_wlHome``
system property. E.g.

``-DweblogicRemoteArquillian_wlHome=/opt/wls12130``

The default username/password are assumed to be "admin" and "admin007" respectively. This can be changed using the
``weblogicRemoteArquillian_adminUserName`` and ``weblogicRemoteArquillian_adminPassword`` system properties. E.g.

``-DweblogicRemoteArquillian_adminUserName=myuser``
``-DweblogicRemoteArquillian_adminPassword=mypassword``

Some of the containers allow you to override the version used

Expand Down
46 changes: 46 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,52 @@
</build>
</profile>

<profile>
<id>weblogic-remote-arquillian</id>

<properties>
<!-- Default username/password that instructions in README.md ask to use
when starting up WebLogic for the first time. Note that WebLogic does not
have any default username/password of its own. -->
<weblogicRemoteArquillian_adminUserName>admin</weblogicRemoteArquillian_adminUserName>
<weblogicRemoteArquillian_adminPassword>admin007</weblogicRemoteArquillian_adminPassword>

<!-- Default host and port when running WLS locally -->
<weblogicRemoteArquillian_adminUrl>t3://localhost:7001</weblogicRemoteArquillian_adminUrl>

<!-- Default target after having installed developer zip distribution for
WebLogic -->
<weblogicRemoteArquillian_target>myserver</weblogicRemoteArquillian_target>
</properties>

<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-wls-remote-12.1.2</artifactId>
<version>1.0.0.Alpha3</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<arquillian.launch>weblogic-remote-arquillian</arquillian.launch>
<wlHome>${weblogicRemoteArquillian_wlHome}</wlHome>
<adminUrl>${weblogicRemoteArquillian_adminUrl}</adminUrl>
<adminUserName>${weblogicRemoteArquillian_adminUserName}</adminUserName>
<adminPassword>${weblogicRemoteArquillian_adminPassword}</adminPassword>
<target>${weblogicRemoteArquillian_target}</target>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>


<!-- Browser profiles. Used for UI testing -->
<profile>
Expand Down
35 changes: 28 additions & 7 deletions test-utils/src/main/resources/arquillian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,33 @@
</configuration>
</container>

<container qualifier="liberty-managed-arquillian">
<configuration>
<!-- Has to be "xml", otherwise user registry in server.xml won't be processed -->
<property name="deployType">xml</property>
<property name="wlpHome">${libertyManagedArquillian_wlpHome}</property>
</configuration>
</container>
<container qualifier="liberty-managed-arquillian">
<configuration>
<!-- Has to be "xml", otherwise user registry in server.xml won't be processed -->
<property name="deployType">xml</property>
<property name="wlpHome">${libertyManagedArquillian_wlpHome}</property>
</configuration>
</container>

<container qualifier="weblogic-remote-arquillian">
<configuration>
<property name="adminUrl">${adminUrl}</property>
<property name="adminUserName">${adminUserName}</property>
<property name="adminPassword">${adminPassword}</property>
<property name="target">${target}</property>

<property name="wlHome">${wlHome}</property>

<!-- weblogicJarPath should be deduced automatically, but current WLS
container uses following pattern: wlHome + server/lib/weblogic.jar, which
misses "wlserver". -->
<property name="weblogicJarPath">${wlHome}/wlserver/server/lib/weblogic.jar</property>

<!-- jmxClientJarPath should be deduced automatically, but current WLS
container uses following pattern: wlHome + server/lib/wljmxclient.jar, which
misses "wlserver". -->
<property name="jmxClientJarPath">${wlHome}/wlserver/server/lib/wljmxclient.jar</property>
</configuration>
</container>

</arquillian>