File tree Expand file tree Collapse file tree 3 files changed +90
-7
lines changed
test-utils/src/main/resources Expand file tree Collapse file tree 3 files changed +90
-7
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,22 @@ There are 5 available container profiles:
72
72
</basicRegistry >
73
73
```
74
74
75
+ * ``weblogic-remote-arquillian``
76
+
77
+ This profile requires you to start up a WebLogic server outside of the build. Each sample will then
78
+ reuse this instance to run the tests. NOTE: this has been tested on WebLogic 12.1.3, which is a Java EE 6 implementation,
79
+ but it has some Java EE 7 features which can be optionally activated.
80
+
81
+ This profile requires you to set the location where WebLogic is installed via the ``weblogicRemoteArquillian_wlHome``
82
+ system property. E.g.
83
+
84
+ ``-DweblogicRemoteArquillian_wlHome=/opt/wls12130``
85
+
86
+ The default username/password are assumed to be "admin" and "admin007" respectively. This can be changed using the
87
+ ``weblogicRemoteArquillian_adminUserName`` and ``weblogicRemoteArquillian_adminPassword`` system properties. E.g.
88
+
89
+ ``-DweblogicRemoteArquillian_adminUserName=myuser``
90
+ ``-DweblogicRemoteArquillian_adminPassword=mypassword``
75
91
76
92
Some of the containers allow you to override the version used
77
93
Original file line number Diff line number Diff line change 890
890
</build >
891
891
</profile >
892
892
893
+ <profile >
894
+ <id >weblogic-remote-arquillian</id >
895
+
896
+ <properties >
897
+ <!-- Default username/password that instructions in README.md ask to use
898
+ when starting up WebLogic for the first time. Note that WebLogic does not
899
+ have any default username/password of its own. -->
900
+ <weblogicRemoteArquillian_adminUserName >admin</weblogicRemoteArquillian_adminUserName >
901
+ <weblogicRemoteArquillian_adminPassword >admin007</weblogicRemoteArquillian_adminPassword >
902
+
903
+ <!-- Default host and port when running WLS locally -->
904
+ <weblogicRemoteArquillian_adminUrl >t3://localhost:7001</weblogicRemoteArquillian_adminUrl >
905
+
906
+ <!-- Default target after having installed developer zip distribution for
907
+ WebLogic -->
908
+ <weblogicRemoteArquillian_target >myserver</weblogicRemoteArquillian_target >
909
+ </properties >
910
+
911
+ <dependencies >
912
+ <dependency >
913
+ <groupId >org.jboss.arquillian.container</groupId >
914
+ <artifactId >arquillian-wls-remote-12.1.2</artifactId >
915
+ <version >1.0.0.Alpha3</version >
916
+ <scope >test</scope >
917
+ </dependency >
918
+ </dependencies >
919
+
920
+ <build >
921
+ <plugins >
922
+ <plugin >
923
+ <artifactId >maven-surefire-plugin</artifactId >
924
+ <configuration >
925
+ <systemPropertyVariables >
926
+ <arquillian .launch>weblogic-remote-arquillian</arquillian .launch>
927
+ <wlHome >${weblogicRemoteArquillian_wlHome} </wlHome >
928
+ <adminUrl >${weblogicRemoteArquillian_adminUrl} </adminUrl >
929
+ <adminUserName >${weblogicRemoteArquillian_adminUserName} </adminUserName >
930
+ <adminPassword >${weblogicRemoteArquillian_adminPassword} </adminPassword >
931
+ <target >${weblogicRemoteArquillian_target} </target >
932
+ </systemPropertyVariables >
933
+ </configuration >
934
+ </plugin >
935
+ </plugins >
936
+ </build >
937
+ </profile >
938
+
893
939
894
940
<!-- Browser profiles. Used for UI testing -->
895
941
<profile >
Original file line number Diff line number Diff line change 15
15
</configuration >
16
16
</container >
17
17
18
- <container qualifier =" liberty-managed-arquillian" >
19
- <configuration >
20
- <!-- Has to be "xml", otherwise user registry in server.xml won't be processed -->
21
- <property name =" deployType" >xml</property >
22
- <property name =" wlpHome" >${libertyManagedArquillian_wlpHome}</property >
23
- </configuration >
24
- </container >
18
+ <container qualifier =" liberty-managed-arquillian" >
19
+ <configuration >
20
+ <!-- Has to be "xml", otherwise user registry in server.xml won't be processed -->
21
+ <property name =" deployType" >xml</property >
22
+ <property name =" wlpHome" >${libertyManagedArquillian_wlpHome}</property >
23
+ </configuration >
24
+ </container >
25
+
26
+ <container qualifier =" weblogic-remote-arquillian" >
27
+ <configuration >
28
+ <property name =" adminUrl" >${adminUrl}</property >
29
+ <property name =" adminUserName" >${adminUserName}</property >
30
+ <property name =" adminPassword" >${adminPassword}</property >
31
+ <property name =" target" >${target}</property >
32
+
33
+ <property name =" wlHome" >${wlHome}</property >
34
+
35
+ <!-- weblogicJarPath should be deduced automatically, but current WLS
36
+ container uses following pattern: wlHome + server/lib/weblogic.jar, which
37
+ misses "wlserver". -->
38
+ <property name =" weblogicJarPath" >${wlHome}/wlserver/server/lib/weblogic.jar</property >
39
+
40
+ <!-- jmxClientJarPath should be deduced automatically, but current WLS
41
+ container uses following pattern: wlHome + server/lib/wljmxclient.jar, which
42
+ misses "wlserver". -->
43
+ <property name =" jmxClientJarPath" >${wlHome}/wlserver/server/lib/wljmxclient.jar</property >
44
+ </configuration >
45
+ </container >
25
46
26
47
</arquillian >
You can’t perform that action at this time.
0 commit comments