Revision 122:464d27830931
pom.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0"?> |
2 | 2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 | 4 |
|
5 | 5 |
<modelVersion>4.0.0</modelVersion> |
6 | 6 |
|
7 |
<name>M2U UPass Admin</name> |
|
8 | 7 |
<groupId>net.penril</groupId> |
9 | 8 |
<artifactId>m2u-upass-admin</artifactId> |
10 | 9 |
<version>2.0-SNAPSHOT</version> |
11 | 10 |
<packaging>war</packaging> |
12 |
|
|
11 |
<name>M2U UPass Admin</name> |
|
13 | 12 |
<properties> |
14 | 13 |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
15 | 14 |
<cobertura.version>1.9.4.1</cobertura.version> |
16 |
<config.postfix></config.postfix> |
|
15 |
<config.postfix /> |
|
16 |
<m2u-upass-classifier /> |
|
17 | 17 |
</properties> |
18 | 18 |
<reporting> |
19 | 19 |
<plugins> |
... | ... | |
24 | 24 |
</plugin> |
25 | 25 |
</plugins> |
26 | 26 |
</reporting> |
27 |
|
|
27 |
<distributionManagement> |
|
28 |
<snapshotRepository> |
|
29 |
<id>penril.nexus.repo</id> |
|
30 |
<name>Penril Nexus Repo</name> |
|
31 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url> |
|
32 |
<uniqueVersion>false</uniqueVersion> |
|
33 |
</snapshotRepository> |
|
34 |
</distributionManagement> |
|
28 | 35 |
<build> |
29 |
<sourceDirectory>src</sourceDirectory> |
|
30 |
<resources> |
|
31 |
<resource> |
|
32 |
<directory>resource</directory> |
|
33 |
</resource> |
|
34 |
</resources> |
|
35 |
<testSourceDirectory>test</testSourceDirectory> |
|
36 |
<!-- <outputDirectory>${basedir}/WebContent/WEB-INF/classes</outputDirectory> --> |
|
37 | 36 |
<pluginManagement> |
38 | 37 |
<plugins> |
39 | 38 |
<plugin> |
39 |
<groupId>org.codehaus.mojo</groupId> |
|
40 |
<artifactId>cobertura-maven-plugin</artifactId> |
|
41 |
<version>2.5.1</version> |
|
42 |
</plugin> |
|
43 |
<plugin> |
|
40 | 44 |
<groupId>org.apache.maven.plugins</groupId> |
41 | 45 |
<artifactId>maven-antrun-plugin</artifactId> |
42 | 46 |
<version>1.6</version> |
43 |
</plugin> |
|
47 |
</plugin> |
|
48 |
<plugin> |
|
49 |
<groupId>org.glassfish</groupId> |
|
50 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
|
51 |
<version>3.1.1</version> |
|
52 |
<configuration> |
|
53 |
<goalPrefix>embedded-glassfish</goalPrefix> |
|
54 |
<autoDelete>true</autoDelete> |
|
55 |
<ports> |
|
56 |
<http-listener>9100</http-listener> |
|
57 |
<https-listener>9103</https-listener> |
|
58 |
</ports> |
|
59 |
<contextRoot>${project.artifactId}</contextRoot> |
|
60 |
</configuration> |
|
61 |
</plugin> |
|
44 | 62 |
<plugin> |
45 | 63 |
<groupId>org.apache.maven.plugins</groupId> |
46 | 64 |
<artifactId>maven-compiler-plugin</artifactId> |
... | ... | |
50 | 68 |
<target>1.6</target> |
51 | 69 |
</configuration> |
52 | 70 |
</plugin> |
53 |
<plugin> |
|
54 |
<groupId>org.codehaus.mojo</groupId> |
|
55 |
<artifactId>cobertura-maven-plugin</artifactId> |
|
56 |
<version>2.5.1</version> |
|
57 |
</plugin> |
|
58 |
</plugins> |
|
71 |
</plugins> |
|
59 | 72 |
</pluginManagement> |
73 |
<sourceDirectory>src</sourceDirectory> |
|
74 |
<resources> |
|
75 |
<resource> |
|
76 |
<directory>resource</directory> |
|
77 |
</resource> |
|
78 |
</resources> |
|
79 |
<testSourceDirectory>test</testSourceDirectory> |
|
80 |
<!-- <outputDirectory>${basedir}/WebContent/WEB-INF/classes</outputDirectory> --> |
|
60 | 81 |
<plugins> |
61 | 82 |
<plugin> |
62 | 83 |
<groupId>org.apache.maven.plugins</groupId> |
... | ... | |
67 | 88 |
</configuration> |
68 | 89 |
</plugin> |
69 | 90 |
<plugin> |
70 |
<groupId>org.mortbay.jetty</groupId>
|
|
71 |
<artifactId>maven-jetty-plugin</artifactId>
|
|
72 |
<version>6.1.16</version>
|
|
91 |
<groupId>org.apache.maven.plugins</groupId>
|
|
92 |
<artifactId>maven-compiler-plugin</artifactId>
|
|
93 |
<version>2.3.2</version>
|
|
73 | 94 |
<configuration> |
74 |
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
|
95 |
<source>1.6</source> |
|
96 |
<target>1.6</target> |
|
75 | 97 |
</configuration> |
76 | 98 |
</plugin> |
99 |
<plugin> |
|
100 |
<artifactId>maven-failsafe-plugin</artifactId> |
|
101 |
<version>2.6</version> |
|
102 |
<executions> |
|
103 |
<execution> |
|
104 |
<goals> |
|
105 |
<goal>integration-test</goal> |
|
106 |
<goal>verify</goal> |
|
107 |
</goals> |
|
108 |
</execution> |
|
109 |
</executions> |
|
110 |
<configuration> |
|
111 |
<includes> |
|
112 |
<include>**/FirstTestWithSeleniumBuilder.java</include> |
|
113 |
<include>**/AnotherTestWithSeleniumBuilder.java</include> |
|
114 |
</includes> |
|
115 |
</configuration> |
|
116 |
<dependencies> |
|
117 |
<dependency> |
|
118 |
<groupId>net.sourceforge.cobertura</groupId> |
|
119 |
<artifactId>cobertura-runtime</artifactId> |
|
120 |
<version>${cobertura.version}</version> |
|
121 |
<!-- <scope>provided</scope> --> |
|
122 |
<scope>compile</scope> |
|
123 |
<type>pom</type> |
|
124 |
</dependency> |
|
125 |
</dependencies> |
|
126 |
</plugin> |
|
77 | 127 |
</plugins> |
78 | 128 |
</build> |
129 |
|
|
130 |
|
|
131 |
|
|
79 | 132 |
<profiles> |
80 | 133 |
<profile> |
81 |
<id>env-dev-penril</id>
|
|
134 |
<id>env-staging-ci</id>
|
|
82 | 135 |
<activation> |
83 | 136 |
<property> |
84 | 137 |
<name>env</name> |
85 |
<value>dev-penril</value>
|
|
138 |
<value>staging-ci</value>
|
|
86 | 139 |
</property> |
87 | 140 |
</activation> |
88 |
<distributionManagement> |
|
89 |
<snapshotRepository> |
|
90 |
<id>penril.nexus.repo</id> |
|
91 |
<name>Penril Nexus Repo</name> |
|
92 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url> |
|
93 |
</snapshotRepository> |
|
94 |
</distributionManagement> |
|
95 | 141 |
<properties> |
96 |
<config.postfix>.dev-penril</config.postfix>
|
|
142 |
<config.postfix>.staging-ci</config.postfix>
|
|
97 | 143 |
</properties> |
98 |
</profile> |
|
144 |
<build> |
|
145 |
<plugins> |
|
146 |
<plugin> |
|
147 |
<groupId>org.glassfish</groupId> |
|
148 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
|
149 |
<configuration> |
|
150 |
<app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> |
|
151 |
<!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> --> |
|
152 |
</configuration> |
|
153 |
<executions> |
|
154 |
<execution> |
|
155 |
<id>start-glassfish</id> |
|
156 |
<phase>pre-integration-test</phase> |
|
157 |
<goals> |
|
158 |
<goal>start</goal> |
|
159 |
</goals> |
|
160 |
</execution> |
|
161 |
<execution> |
|
162 |
<id>glassfish-deploy</id> |
|
163 |
<phase>pre-integration-test</phase> |
|
164 |
<goals> |
|
165 |
<goal>deploy</goal> |
|
166 |
</goals> |
|
167 |
</execution> |
|
168 |
</executions> |
|
169 |
<dependencies> |
|
170 |
<dependency> |
|
171 |
<groupId>net.sourceforge.cobertura</groupId> |
|
172 |
<artifactId>cobertura-runtime</artifactId> |
|
173 |
<version>${cobertura.version}</version> |
|
174 |
<!-- <scope>provided</scope> --> |
|
175 |
<scope>compile</scope> |
|
176 |
<type>pom</type> |
|
177 |
</dependency> |
|
178 |
</dependencies> |
|
179 |
</plugin> |
|
180 |
<plugin> |
|
181 |
<artifactId>maven-surefire-plugin</artifactId> |
|
182 |
<configuration> |
|
183 |
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
|
184 |
<forkMode>none</forkMode> |
|
185 |
<skipTests>true</skipTests> |
|
186 |
</configuration> |
|
187 |
</plugin> |
|
188 |
</plugins> |
|
189 |
</build> |
|
190 |
<dependencies> |
|
191 |
<dependency> |
|
192 |
<groupId>axis</groupId> |
|
193 |
<artifactId>axis</artifactId> |
|
194 |
<version>1.4</version> |
|
195 |
<type>jar</type> |
|
196 |
<scope>compile</scope> |
|
197 |
</dependency> |
|
198 |
</dependencies> |
|
199 |
</profile> |
|
99 | 200 |
<profile> |
100 |
<id>env-dev-m2u</id>
|
|
101 |
<activation>
|
|
201 |
<id>env-dev-m2u</id>
|
|
202 |
<activation>
|
|
102 | 203 |
<property> |
103 |
<name>env</name>
|
|
104 |
<value>dev-m2u</value>
|
|
204 |
<name>env</name> |
|
205 |
<value>dev-m2u</value> |
|
105 | 206 |
</property> |
106 |
</activation>
|
|
107 |
<properties>
|
|
207 |
</activation>
|
|
208 |
<properties>
|
|
108 | 209 |
<config.postfix>.dev-m2u</config.postfix> |
109 |
</properties>
|
|
110 |
</profile>
|
|
210 |
</properties>
|
|
211 |
</profile>
|
|
111 | 212 |
<profile> |
112 | 213 |
<id>env-ant</id> |
113 | 214 |
<activation> |
... | ... | |
124 | 225 |
<id>env-config</id> |
125 | 226 |
<phase>process-resources</phase> |
126 | 227 |
<configuration> |
127 |
<target>
|
|
228 |
<target> |
|
128 | 229 |
<delete file="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" /> |
129 |
<copy file="resource/com/ib/hibernate/configuration/hibernate${config.postfix}.cfg.xml" |
|
130 |
tofile="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" /> |
|
131 |
|
|
132 |
<delete> |
|
133 |
<fileset dir="${project.build.outputDirectory}/com/ib/hibernate/configuration" includes="hibernate.*.cfg.xml"/> |
|
134 |
</delete> |
|
135 |
|
|
230 |
<copy file="resource/com/ib/hibernate/configuration/hibernate${config.postfix}.cfg.xml" tofile="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" /> |
|
231 |
|
|
232 |
<delete> |
|
233 |
<fileset dir="${project.build.outputDirectory}/com/ib/hibernate/configuration" includes="hibernate.*.cfg.xml" /> |
|
234 |
</delete> |
|
235 |
|
|
136 | 236 |
<delete file="${project.build.outputDirectory}/UPassClient.cfg" /> |
137 |
<copy file="resource/UPassClient${config.postfix}.cfg" |
|
138 |
tofile="${project.build.outputDirectory}/UPassClient.cfg" /> |
|
139 |
|
|
237 |
<copy file="resource/UPassClient${config.postfix}.cfg" tofile="${project.build.outputDirectory}/UPassClient.cfg" /> |
|
238 |
|
|
140 | 239 |
<delete> |
141 | 240 |
<fileset dir="${project.build.outputDirectory}" includes="UPassClient.*.cfg" /> |
142 | 241 |
</delete> |
143 |
|
|
242 |
|
|
144 | 243 |
<delete file="${project.build.outputDirectory}/AppConfig.properties" /> |
145 |
<copy file="resource/AppConfig${config.postfix}.properties" |
|
146 |
tofile="${project.build.outputDirectory}/AppConfig.properties" /> |
|
147 |
|
|
244 |
<copy file="resource/AppConfig${config.postfix}.properties" tofile="${project.build.outputDirectory}/AppConfig.properties" /> |
|
245 |
|
|
148 | 246 |
<delete> |
149 | 247 |
<fileset dir="${project.build.outputDirectory}" includes="AppConfig.*.properties" /> |
150 |
</delete>
|
|
151 |
|
|
248 |
</delete> |
|
249 |
|
|
152 | 250 |
<delete file="${project.build.outputDirectory}/log4j.xml" /> |
153 |
<copy file="resource/log4j${config.postfix}.xml" |
|
154 |
tofile="${project.build.outputDirectory}/log4j.xml" /> |
|
155 |
|
|
251 |
<copy file="resource/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" /> |
|
252 |
|
|
156 | 253 |
<delete> |
157 | 254 |
<fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" /> |
158 |
</delete>
|
|
159 |
|
|
255 |
</delete> |
|
256 |
|
|
160 | 257 |
</target> |
161 | 258 |
</configuration> |
162 | 259 |
<goals> |
... | ... | |
169 | 266 |
</build> |
170 | 267 |
</profile> |
171 | 268 |
<profile> |
172 |
<id>env-staging-penril</id>
|
|
269 |
<id>env-dev-penril</id>
|
|
173 | 270 |
<activation> |
174 | 271 |
<property> |
175 |
<name>env</name>
|
|
176 |
<value>staging-penril</value>
|
|
272 |
<name>env</name> |
|
273 |
<value>dev-penril</value>
|
|
177 | 274 |
</property> |
178 | 275 |
</activation> |
179 |
<distributionManagement> |
|
180 |
<snapshotRepository> |
|
181 |
<id>penril.nexus.repo</id> |
|
182 |
<name>Penril Nexus Repo</name> |
|
183 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url> |
|
184 |
</snapshotRepository> |
|
185 |
</distributionManagement> |
|
186 | 276 |
<properties> |
187 |
<config.postfix>.staging-penril</config.postfix>
|
|
277 |
<config.postfix>.dev-penril</config.postfix>
|
|
188 | 278 |
</properties> |
189 |
<build> |
|
190 |
<plugins> |
|
191 |
<plugin> |
|
192 |
<artifactId>maven-antrun-plugin</artifactId> |
|
193 |
<configuration> |
|
194 |
<target> |
|
195 |
<copy file="${basedir}/target/${artifactId}-${version}.war" |
|
196 |
tofile="/var/lib/jenkins/was-workspace/{artifactId}/${artifactId}-${version}.war"/> |
|
197 |
</target> |
|
198 |
</configuration> |
|
199 |
<executions> |
|
200 |
<execution> |
|
201 |
<id>was-deployer</id> |
|
202 |
<phase>install</phase> |
|
203 |
<goals> |
|
204 |
<goal>run</goal> |
|
205 |
</goals> |
|
206 |
</execution> |
|
207 |
</executions> |
|
208 |
</plugin> |
|
209 |
|
|
210 |
</plugins> |
|
211 |
</build> |
|
212 | 279 |
</profile> |
213 | 280 |
<profile> |
214 | 281 |
<id>env-maybank-dev</id> |
... | ... | |
221 | 288 |
<properties> |
222 | 289 |
<config.postfix>.maybank-dev</config.postfix> |
223 | 290 |
</properties> |
291 |
<build> |
|
292 |
<plugins> |
|
293 |
<plugin> |
|
294 |
<groupId>org.glassfish</groupId> |
|
295 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
|
296 |
<configuration> |
|
297 |
<app>${project.build.directory}/${project.artifactId}-${project.version}.war</app> |
|
298 |
</configuration> |
|
299 |
</plugin> |
|
300 |
</plugins> |
|
301 |
</build> |
|
224 | 302 |
</profile> |
225 |
</profiles> |
|
303 |
|
|
304 |
|
|
305 |
|
|
306 |
<profile> |
|
307 |
<id>env-staging-penril</id> |
|
308 |
<activation> |
|
309 |
<property> |
|
310 |
<name>env</name> |
|
311 |
<value>staging-penril</value> |
|
312 |
</property> |
|
313 |
</activation> |
|
314 |
<properties> |
|
315 |
<config.postfix>.staging-penril</config.postfix> |
|
316 |
</properties> |
|
317 |
<build> |
|
318 |
<plugins> |
|
319 |
<plugin> |
|
320 |
<artifactId>maven-antrun-plugin</artifactId> |
|
321 |
<configuration> |
|
322 |
<target> |
|
323 |
<copy file="${basedir}/target/${artifactId}-${version}.war" tofile="/var/lib/jenkins/was-workspace/{artifactId}/${artifactId}-${version}.war" /> |
|
324 |
</target> |
|
325 |
</configuration> |
|
326 |
<executions> |
|
327 |
<execution> |
|
328 |
<id>was-deployer</id> |
|
329 |
<phase>install</phase> |
|
330 |
<goals> |
|
331 |
<goal>run</goal> |
|
332 |
</goals> |
|
333 |
</execution> |
|
334 |
</executions> |
|
335 |
</plugin> |
|
336 |
|
|
337 |
</plugins> |
|
338 |
</build> |
|
339 |
</profile> |
|
340 |
|
|
341 |
|
|
342 |
|
|
343 |
<profile> |
|
344 |
<id>cobertura-instrument</id> |
|
345 |
<activation> |
|
346 |
<property> |
|
347 |
<name>cobertura-build</name> |
|
348 |
</property> |
|
349 |
</activation> |
|
350 |
<properties> |
|
351 |
<m2u-upass-classifier>instrumented</m2u-upass-classifier> |
|
352 |
</properties> |
|
353 |
<distributionManagement> |
|
354 |
<snapshotRepository> |
|
355 |
<id>penril.nexus.repo.coverage</id> |
|
356 |
<name>Penril Nexus Repo Coverage</name> |
|
357 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
|
358 |
</snapshotRepository> |
|
359 |
</distributionManagement> |
|
360 |
<build> |
|
361 |
<plugins> |
|
362 |
<plugin> |
|
363 |
<artifactId>maven-war-plugin</artifactId> |
|
364 |
<configuration> |
|
365 |
<classifier>${m2u-upass-classifier}</classifier> |
|
366 |
<packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes> |
|
367 |
</configuration> |
|
368 |
</plugin> |
|
369 |
<plugin> |
|
370 |
<groupId>org.codehaus.mojo</groupId> |
|
371 |
<artifactId>cobertura-maven-plugin</artifactId> |
|
372 |
<configuration> |
|
373 |
<formats> |
|
374 |
<format>html</format> |
|
375 |
<format>xml</format> |
|
376 |
</formats> |
|
377 |
|
|
378 |
<!-- TODO: To be configured... --> |
|
379 |
<instrumentation> |
|
380 |
<ignores> |
|
381 |
<ignore>com.example.boringcode.*</ignore> |
|
382 |
</ignores> |
|
383 |
<excludes> |
|
384 |
<exclude>com/example/dullcode/**/*.class</exclude> |
|
385 |
<exclude>com/example/**/*Test.class</exclude> |
|
386 |
</excludes> |
|
387 |
</instrumentation> |
|
388 |
|
|
389 |
<!-- TODO: To be configured... --> |
|
390 |
<check> |
|
391 |
<branchRate>85</branchRate> |
|
392 |
<lineRate>85</lineRate> |
|
393 |
<haltOnFailure>true</haltOnFailure> |
|
394 |
<totalBranchRate>85</totalBranchRate> |
|
395 |
<totalLineRate>85</totalLineRate> |
|
396 |
<packageLineRate>85</packageLineRate> |
|
397 |
<packageBranchRate>85</packageBranchRate> |
|
398 |
<regexes> |
|
399 |
<regex> |
|
400 |
<pattern>com.example.reallyimportant.*</pattern> |
|
401 |
<branchRate>90</branchRate> |
|
402 |
<lineRate>80</lineRate> |
|
403 |
</regex> |
|
404 |
<regex> |
|
405 |
<pattern>com.example.boringcode.*</pattern> |
|
406 |
<branchRate>40</branchRate> |
|
407 |
<lineRate>30</lineRate> |
|
408 |
</regex> |
|
409 |
</regexes> |
|
410 |
</check> |
|
411 |
</configuration> |
|
412 |
<executions> |
|
413 |
<execution> |
|
414 |
<id>instrument-code</id> |
|
415 |
<phase>process-classes</phase> |
|
416 |
<goals> |
|
417 |
<goal>instrument</goal> |
|
418 |
</goals> |
|
419 |
<configuration> |
|
420 |
<attach>true</attach> |
|
421 |
</configuration> |
|
422 |
</execution> |
|
423 |
</executions> |
|
424 |
</plugin> |
|
425 |
<plugin> |
|
426 |
<artifactId>maven-source-plugin</artifactId> |
|
427 |
<executions> |
|
428 |
<execution> |
|
429 |
<id>attach-sources</id> |
|
430 |
<goals> |
|
431 |
<goal>jar</goal> |
|
432 |
</goals> |
|
433 |
</execution> |
|
434 |
</executions> |
|
435 |
<inherited>true</inherited> |
|
436 |
</plugin> |
|
437 |
</plugins> |
|
438 |
</build> |
|
439 |
<dependencies> |
|
440 |
<dependency> |
|
441 |
<groupId>net.sourceforge.cobertura</groupId> |
|
442 |
<artifactId>cobertura-runtime</artifactId> |
|
443 |
<version>${cobertura.version}</version> |
|
444 |
<!-- <scope>provided</scope> --> |
|
445 |
<scope>compile</scope> |
|
446 |
<type>pom</type> |
|
447 |
</dependency> |
|
448 |
</dependencies> |
|
449 |
</profile> |
|
450 |
</profiles> |
|
451 |
|
|
452 |
|
|
453 |
|
|
226 | 454 |
<dependencies> |
227 | 455 |
<dependency> |
456 |
<groupId>junit</groupId> |
|
457 |
<artifactId>junit</artifactId> |
|
458 |
<version>4.8.2</version> |
|
459 |
<type>jar</type> |
|
460 |
<scope>test</scope> |
|
461 |
</dependency> |
|
462 |
<dependency> |
|
463 |
<groupId>net.penril</groupId> |
|
464 |
<artifactId>m2u-upass-core</artifactId> |
|
465 |
<version>2.0-SNAPSHOT</version> |
|
466 |
<classifier>${m2u-upass-classifier}</classifier> |
|
467 |
</dependency> |
|
468 |
<dependency> |
|
469 |
<groupId>net.penril</groupId> |
|
470 |
<artifactId>m2u-upass-admin-core</artifactId> |
|
471 |
<version>2.0-SNAPSHOT</version> |
|
472 |
<exclusions> |
|
473 |
<exclusion> |
|
474 |
<artifactId>saaj-api</artifactId> |
|
475 |
<groupId>javax.xml.soap</groupId> |
|
476 |
</exclusion> |
|
477 |
<exclusion> |
|
478 |
<artifactId>axis-jaxrpc</artifactId> |
|
479 |
<groupId>org.apache.axis</groupId> |
|
480 |
</exclusion> |
|
481 |
<exclusion> |
|
482 |
<artifactId>axis-saaj</artifactId> |
|
483 |
<groupId>org.apache.axis</groupId> |
|
484 |
</exclusion> |
|
485 |
</exclusions> |
|
486 |
</dependency> |
|
487 |
<dependency> |
|
228 | 488 |
<groupId>net.penril.onlineapps</groupId> |
229 | 489 |
<artifactId>oa-mailbox</artifactId> |
230 | 490 |
<version>0.9-SNAPSHOT</version> |
... | ... | |
237 | 497 |
<type>jar</type> |
238 | 498 |
<scope>system</scope> |
239 | 499 |
<systemPath>${basedir}/WebContent/WEB-INF/lib/aal2wrap.jar</systemPath> |
240 |
</dependency>
|
|
500 |
</dependency> |
|
241 | 501 |
<dependency> |
242 | 502 |
<groupId>com.microsoft</groupId> |
243 | 503 |
<artifactId>mssql-jdbc</artifactId> |
... | ... | |
341 | 601 |
<type>jar</type> |
342 | 602 |
<scope>compile</scope> |
343 | 603 |
</dependency> |
344 |
<dependency>
|
|
604 |
<dependency> |
|
345 | 605 |
<groupId>struts</groupId> |
346 | 606 |
<artifactId>struts-legacy</artifactId> |
347 | 607 |
<version>1.1</version> |
... | ... | |
390 | 650 |
<scope>compile</scope> |
391 | 651 |
</dependency> |
392 | 652 |
<dependency> |
393 |
<groupId>commons-io</groupId>
|
|
394 |
<artifactId>commons-io</artifactId>
|
|
395 |
<version>1.4</version>
|
|
653 |
<groupId>commons-io</groupId>
|
|
654 |
<artifactId>commons-io</artifactId>
|
|
655 |
<version>1.4</version>
|
|
396 | 656 |
</dependency> |
397 | 657 |
<dependency> |
398 | 658 |
<groupId>commons-lang</groupId> |
... | ... | |
416 | 676 |
<scope>compile</scope> |
417 | 677 |
</dependency> |
418 | 678 |
<dependency> |
419 |
<groupId>junit</groupId> |
|
420 |
<artifactId>junit</artifactId> |
|
421 |
<version>4.8.2</version> |
|
422 |
<type>jar</type> |
|
423 |
<scope>test</scope> |
|
424 |
</dependency> |
|
425 |
<dependency> |
|
426 | 679 |
<groupId>javax.sql</groupId> |
427 | 680 |
<artifactId>jdbc-stdext</artifactId> |
428 | 681 |
<version>2.0</version> |
... | ... | |
481 | 734 |
<version>0.2a-20111103</version> |
482 | 735 |
</dependency> |
483 | 736 |
<dependency> |
484 |
<groupId>net.penril</groupId> |
|
485 |
<artifactId>m2u-upass-core</artifactId> |
|
486 |
<version>2.0-SNAPSHOT</version> |
|
487 |
</dependency> |
|
488 |
<dependency> |
|
489 |
<groupId>net.penril</groupId> |
|
490 |
<artifactId>m2u-upass-admin-core</artifactId> |
|
491 |
<version>2.0-SNAPSHOT</version> |
|
492 |
<exclusions> |
|
493 |
<exclusion> |
|
494 |
<artifactId>saaj-api</artifactId> |
|
495 |
<groupId>javax.xml.soap</groupId> |
|
496 |
</exclusion> |
|
497 |
<exclusion> |
|
498 |
<artifactId>axis-jaxrpc</artifactId> |
|
499 |
<groupId>org.apache.axis</groupId> |
|
500 |
</exclusion> |
|
501 |
<exclusion> |
|
502 |
<artifactId>axis-saaj</artifactId> |
|
503 |
<groupId>org.apache.axis</groupId> |
|
504 |
</exclusion> |
|
505 |
</exclusions> |
|
737 |
<groupId>org.seleniumhq.selenium</groupId> |
|
738 |
<artifactId>selenium-server</artifactId> |
|
739 |
<version>2.35.0</version> |
|
740 |
<scope>test</scope> |
|
506 | 741 |
</dependency> |
507 | 742 |
</dependencies> |
508 | 743 |
</project> |
resource/AppConfig.dev-penril.properties | ||
---|---|---|
10 | 10 |
|
11 | 11 |
application.root.admin.id=root |
12 | 12 |
application.root.admin.password=P@ssw0rd |
13 |
migration.period=Y |
|
13 | 14 |
|
14 | 15 |
#Reports directory |
15 | 16 |
#reports.root.dir=/opt/rib_reports |
... | ... | |
20 | 21 |
reports.keys.bib=50,52,54,55,56,58,60,62,63,64,65,66,67,68,70,71 |
21 | 22 |
|
22 | 23 |
#Session Timeout (in minutes) |
23 |
app.session.timeout=10 |
|
24 |
app.session.timeout=10 |
resource/AppConfig.maybank-dev.properties | ||
---|---|---|
16 | 16 |
|
17 | 17 |
application.root.admin.id=root |
18 | 18 |
application.root.admin.password=P@ssw0rd |
19 |
migration.period=Y |
|
19 | 20 |
|
20 | 21 |
#Reports directory |
21 | 22 |
#reports.root.dir=/opt/rib_reports |
... | ... | |
65 | 66 |
#SE01 |
66 | 67 |
#host.date.by.pass.date=021112 |
67 | 68 |
#UE07 |
68 |
host.date.by.pass.date=280613 |
|
69 |
host.date.by.pass.date=280613 |
resource/AppConfig.properties | ||
---|---|---|
16 | 16 |
|
17 | 17 |
application.root.admin.id=root |
18 | 18 |
application.root.admin.password=P@ssw0rd |
19 |
migration.period=Y |
|
19 | 20 |
|
20 | 21 |
#Reports directory |
21 | 22 |
#reports.root.dir=/opt/rib_reports |
... | ... | |
65 | 66 |
#SE01 |
66 | 67 |
#host.date.by.pass.date=021112 |
67 | 68 |
#UE07 |
68 |
host.date.by.pass.date=280613 |
|
69 |
host.date.by.pass.date=280613 |
resource/AppConfig.staging-ci.properties | ||
---|---|---|
1 |
#Admin module related settings in order to work with UPASS |
|
2 |
#Application ID for Admin module |
|
3 |
application.id=1 |
|
4 |
|
|
5 |
#Application Admin ID |
|
6 |
application.admin.group.id=1 |
|
7 |
|
|
8 |
#Application check for maximum days before dormant |
|
9 |
application.max.dormant.day=30 |
|
10 |
|
|
11 |
application.root.admin.id=root |
|
12 |
application.root.admin.password=P@ssw0rd |
|
13 |
migration.period=N |
|
14 |
|
|
15 |
#Reports directory |
|
16 |
#reports.root.dir=/opt/rib_reports |
|
17 |
reports.root.dir=/opt/rib_reports |
|
18 |
#report Id |
|
19 |
reports.keys.ibam=3,4,5,25,26,27,28,29,30,31,32,33,34,35,36,38,39,40,41 |
|
20 |
reports.keys.rib=1,2,6,8,9,10,11,12,13,14,20,21,22,23,24,37,80,81,82,83,84,85,86,87,88,89,90 |
|
21 |
reports.keys.bib=50,52,54,55,56,58,60,62,63,64,65,66,67,68,70,71 |
|
22 |
|
|
23 |
#Session Timeout (in minutes) |
|
24 |
app.session.timeout=10 |
resource/AppConfig.staging-penril.properties | ||
---|---|---|
10 | 10 |
|
11 | 11 |
application.root.admin.id=root |
12 | 12 |
application.root.admin.password=P@ssw0rd |
13 |
migration.period=Y |
|
13 | 14 |
|
14 | 15 |
#Reports directory |
15 | 16 |
#reports.root.dir=/opt/rib_reports |
resource/DESKey.staging-ci.properties | ||
---|---|---|
1 |
# The file is required for the automated build to succeed, |
|
2 |
# but any content would be meaningless for this environment, |
|
3 |
# thus it's empty. |
resource/UPassClient.staging-ci.cfg | ||
---|---|---|
1 |
# UPASS Client Site Configuration File |
|
2 |
# The following defines the web services resources of UPASS services |
|
3 |
# |
|
4 |
NAMESPACE=http://upass.ws.my |
|
5 |
SERVICE=WS_UPassService |
|
6 |
#WSDL=http://219.95.244.227:7001/agro_ws/services/WS_UPass?wsdl |
|
7 |
WSDL=http://staging.penril.net:9080/m2u-upass-ws/services/WS_UPass?wsdl |
|
8 |
#WSDL=http://staging.penril.net:9080/WSUpass.sha256/services/WS_UPass?wsdl |
|
9 |
# |
|
10 |
# location of https SSL key store and password |
|
11 |
# |
|
12 |
TRUSTSTORE=C:\\work\\jboss-4.2.3.GA\\server\\default\\conf\\keystore.jks |
|
13 |
TRUSTPASS=mypassword |
resource/UPassClient.staging-penril.cfg | ||
---|---|---|
4 | 4 |
NAMESPACE=http://upass.ws.my |
5 | 5 |
SERVICE=WS_UPassService |
6 | 6 |
#WSDL=http://219.95.244.227:7001/agro_ws/services/WS_UPass?wsdl |
7 |
WSDL=http://staging.penril.net:9080/agro-upass-phase2/services/WS_UPass?wsdl
|
|
7 |
WSDL=http://staging.penril.net:9080/m2u-upass-ws/services/WS_UPass?wsdl
|
|
8 | 8 |
#WSDL=http://staging.penril.net:9080/WSUpass.sha256/services/WS_UPass?wsdl |
9 | 9 |
# |
10 | 10 |
# location of https SSL key store and password |
resource/com/ib/hibernate/configuration/hibernate.staging-ci.cfg.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
<hibernate-configuration> |
|
5 |
<session-factory> |
|
6 |
<!-- Database connection settings --> |
|
7 |
<!-- <property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> --> |
|
8 |
<property name="connection.url">jdbc:oracle:thin:@192.168.1.126:1521:IBSDEMO</property> |
|
9 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
10 |
<property name="hibernate.connection.password">ci123</property> |
|
11 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
12 |
<!-- SQL dialect --> |
|
13 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
14 |
|
|
15 |
<!-- Use the C3P0 connection pool provider --> |
|
16 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
17 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
18 |
<property name="hibernate.c3p0.min_size">20</property> |
|
19 |
<property name="hibernate.c3p0.max_size">50</property> |
|
20 |
<property name="hibernate.c3p0.timeout">120</property> |
|
21 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
22 |
|
|
23 |
<!-- Enable Hibernate's automatic session context management --> |
|
24 |
<property name="current_session_context_class">thread</property> |
|
25 |
<!-- Disable the second-level cache --> |
|
26 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
27 |
<!-- Echo all executed SQL to stdout --> |
|
28 |
<property name="show_sql">false</property> |
|
29 |
<property name="format_sql">true</property> |
|
30 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
31 |
<!-- Mapping files --> |
|
32 |
<mapping resource="net/penril/ibss/core/hibernate/AdminAction.hbm.xml" /> |
|
33 |
<mapping resource="net/penril/ibss/audit/log/hibernate/AdminAuditLog.hbm.xml" /> |
|
34 |
<mapping resource="net/penril/ibss/core/hibernate/AdminGroup.hbm.xml" /> |
|
35 |
<mapping resource="net/penril/ibss/core/hibernate/AdminNavigation.hbm.xml" /> |
|
36 |
<mapping resource="net/penril/ibss/core/hibernate/AdminNavAction.hbm.xml" /> |
|
37 |
<mapping resource="net/penril/ibss/core/hibernate/AdminNavigationGroup.hbm.xml" /> |
|
38 |
<mapping resource="net/penril/ibss/core/hibernate/AdminPermission.hbm.xml" /> |
|
39 |
<mapping resource="net/penril/ibss/core/hibernate/AdminUserProfile.hbm.xml" /> |
|
40 |
<mapping resource="net/penril/ibss/core/hibernate/AdminUserProfileBackup.hbm.xml" /> |
|
41 |
<mapping resource="net/penril/ibss/core/hibernate/AdminSecurity.hbm.xml" /> |
|
42 |
<mapping resource="net/penril/ibss/core/hibernate/AdminUserSecurityBackup.hbm.xml" /> |
|
43 |
<mapping resource="net/penril/ib/content/hibernate/IbContentCategory.hbm.xml" /> |
|
44 |
<mapping resource="net/penril/ib/content/hibernate/IbContentType.hbm.xml" /> |
|
45 |
<mapping resource="net/penril/ibss/core/hibernate/IbUser.hbm.xml" /> |
|
46 |
<mapping resource="net/penril/ibss/core/hibernate/IbCustProfile.hbm.xml" /> |
|
47 |
<mapping resource="net/penril/ibss/core/hibernate/SmsTable.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmConfigChange.hbm.xml" /> |
|
49 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
58 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
59 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
60 |
|
|
61 |
<mapping resource="net/penril/ib/content/hibernate/IbContentCategoryML.hbm.xml" /> |
|
62 |
|
|
63 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
64 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
65 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
66 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
67 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
68 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
69 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
70 |
|
|
71 |
<!-- |
|
72 |
<mapping resource="net/penril/ibss/core/hibernate/IbUserActivity.hbm.xml" /> |
|
73 |
<mapping resource="net/penril/ibss/core/hibernate/IbUserSecurity.hbm.xml" /> |
|
74 |
<mapping resource="net/penril/ibss/core/hibernate/IbCustAccounts.hbm.xml" /> |
|
75 |
<mapping resource="net/penril/ibss/core/hibernate/IbRole.hbm.xml" /> |
|
76 |
<mapping resource="net/penril/ibss/core/hibernate/IbOrganization.hbm.xml" /> |
|
77 |
<mapping resource="net/penril/ibss/core/hibernate/IbUserTransactionHistory.hbm.xml" /> |
|
78 |
<mapping resource="net/penril/ibss/core/hibernate/IbBillPayment.hbm.xml" /> |
|
79 |
<mapping resource="net/penril/ibss/core/hibernate/IbBlockAtm.hbm.xml" /> |
|
80 |
<mapping resource="net/penril/ibss/core/hibernate/IbInterbankAccounts.hbm.xml" /> |
|
81 |
<mapping resource="net/penril/ibss/core/hibernate/IbInterTransfer.hbm.xml" /> |
|
82 |
<mapping resource="net/penril/ibss/core/hibernate/IbIntrabankAccounts.hbm.xml" /> |
|
83 |
<mapping resource="net/penril/ibss/core/hibernate/IbIntraTransfer.hbm.xml" /> |
|
84 |
<mapping resource="net/penril/ibss/core/hibernate/IbMobileReload.hbm.xml" /> |
|
85 |
<mapping resource="net/penril/ibss/core/hibernate/IbRegisteredPayee.hbm.xml" /> |
|
86 |
<mapping resource="net/penril/ibss/core/hibernate/IbReqStatement.hbm.xml" /> |
|
87 |
<mapping resource="net/penril/ibss/core/hibernate/IbSmsNotification.hbm.xml" /> |
|
88 |
<mapping resource="net/penril/ibss/core/hibernate/IbTcdPlacement.hbm.xml" /> |
|
89 |
<mapping resource="net/penril/ibss/core/hibernate/IbTcdUpliftment.hbm.xml" /> |
|
90 |
<mapping resource="net/penril/ibss/core/hibernate/IbTransferLimit.hbm.xml" /> |
|
91 |
<mapping resource="net/penril/ib/navigation/hibernate/IbGroup.hbm.xml" /> |
|
92 |
<mapping resource="net/penril/ib/navigation/hibernate/IbNavigationGroup.hbm.xml" /> |
|
93 |
<mapping resource="net/penril/ib/navigation/hibernate/IbNavigation.hbm.xml" /> |
|
94 |
<mapping resource="net/penril/ib/content/hibernate/IbCheckDigit.hbm.xml" /> |
|
95 |
<mapping resource="net/penril/ib/content/hibernate/IbBancnetList.hbm.xml" /> |
|
96 |
<mapping resource="net/penril/ib/content/hibernate/IbBancnetListML.hbm.xml" /> |
|
97 |
<mapping resource="net/penril/ib/content/hibernate/IbBankBranch.hbm.xml" /> |
|
98 |
<mapping resource="net/penril/ib/content/hibernate/IbBankBranchML.hbm.xml" /> |
|
99 |
<mapping resource="net/penril/ib/content/hibernate/IbCurrencyCode.hbm.xml" /> |
|
100 |
<mapping resource="net/penril/ib/content/hibernate/IbPayee.hbm.xml" /> |
|
101 |
<mapping resource="net/penril/ib/content/hibernate/IbPayeeML.hbm.xml" /> |
|
102 |
<mapping resource="net/penril/ib/content/hibernate/IbProductType.hbm.xml" /> |
|
103 |
<mapping resource="net/penril/ib/content/hibernate/IbProductTypeML.hbm.xml" /> |
|
104 |
<mapping resource="net/penril/ib/content/hibernate/IbServiceInfo.hbm.xml" /> |
|
105 |
<mapping resource="net/penril/ib/content/hibernate/IbServiceInfoML.hbm.xml"/> |
|
106 |
<mapping resource="net/penril/ib/content/hibernate/IbNoticeInfo.hbm.xml" /> |
|
107 |
<mapping resource="net/penril/ib/content/hibernate/IbNoticeInfoML.hbm.xml" /> |
|
108 |
<mapping resource="net/penril/ib/content/hibernate/IbOccupation.hbm.xml" /> |
|
109 |
<mapping resource="net/penril/ib/content/hibernate/IbOccupationML.hbm.xml" /> |
|
110 |
<mapping resource="net/penril/ib/content/hibernate/IbIncomeRange.hbm.xml" /> |
|
111 |
<mapping resource="net/penril/ib/content/hibernate/IbIncomeRangeML.hbm.xml" /> |
|
112 |
<mapping resource="net/penril/ib/content/hibernate/IbEduLevel.hbm.xml" /> |
|
113 |
<mapping resource="net/penril/ib/content/hibernate/IbEduLevelML.hbm.xml" /> |
|
114 |
<mapping resource="net/penril/ib/content/hibernate/IbServiceList.hbm.xml" /> |
|
115 |
<mapping resource="net/penril/ib/content/hibernate/IbServiceType.hbm.xml" /> |
|
116 |
<mapping resource="net/penril/ib/content/hibernate/IbTdTerm.hbm.xml" /> |
|
117 |
<mapping resource="net/penril/ib/content/hibernate/IbITerm.hbm.xml" /> |
|
118 |
<mapping resource="net/penril/ib/content/hibernate/IbTdInfo.hbm.xml" /> |
|
119 |
<mapping resource="net/penril/ib/content/hibernate/IbAccountType.hbm.xml" /> |
|
120 |
<mapping resource="net/penril/ib/content/hibernate/IbSecQues.hbm.xml" /> |
|
121 |
<mapping resource="net/penril/ib/content/hibernate/IbSecQuesML.hbm.xml" /> |
|
122 |
<mapping resource="net/penril/ibss/core/hibernate/IbRptList.hbm.xml" /> |
|
123 |
<mapping resource="net/penril/ib/content/hibernate/IbZakatType.hbm.xml" /> |
|
124 |
--> |
|
125 |
|
|
126 |
<!-- Mapping files for Admin User Deletion |
|
127 |
<mapping resource="net/penril/ibss/core/hibernate/IbUserBackup.hbm.xml" /> |
|
128 |
--> |
|
129 |
|
|
130 |
<!-- Mapping files for secure mailbox |
|
131 |
<mapping resource="net/penril/onlineapps/securedmailbox/domain/MailBox.hbm.xml" /> |
|
132 |
<mapping resource="net/penril/onlineapps/securedmailbox/domain/MailBoxList.hbm.xml" /> |
|
133 |
<mapping resource="net/penril/onlineapps/securedmailbox/domain/MailBoxRef.hbm.xml" /> |
|
134 |
<mapping resource="net/penril/onlineapps/securedmailbox/domain/MailBoxRecipient.hbm.xml" /> |
|
135 |
<mapping resource="net/penril/onlineapps/securedmailbox/domain/MailSubject.hbm.xml" /> |
|
136 |
<mapping resource="net/penril/onlineapps/securedmailbox/domain/MailSubjectUser.hbm.xml" /> |
|
137 |
<mapping resource="net/penril/onlineapps/subscript/domain/MailCategory.hbm.xml" /> |
|
138 |
<mapping resource="net/penril/onlineapps/subscript/domain/RecipientDetails.hbm.xml" /> |
|
139 |
<mapping resource="net/penril/onlineapps/subscript/domain/RecipientStatus.hbm.xml" /> |
|
140 |
<mapping resource="net/penril/onlineapps/subscript/domain/SubscriptionMessage.hbm.xml" /> |
|
141 |
--> |
|
142 |
|
|
143 |
<!-- Mapping files for bib |
|
144 |
<mapping resource="net/penril/bib/BibCompanyCharges.hbm.xml" /> |
|
145 |
<mapping resource="net/penril/bib/BibCompany.hbm.xml" /> |
|
146 |
<mapping resource="net/penril/bib/BIBCompanyContact.hbm.xml" /> |
|
147 |
<mapping resource="net/penril/bib/BibUser.hbm.xml" /> |
|
148 |
<mapping resource="net/penril/bib/BibUserSecurity.hbm.xml" /> |
|
149 |
<mapping resource="net/penril/bib/BibUserAccount.hbm.xml" /> |
|
150 |
<mapping resource="net/penril/bib/BibApprovalMatrix.hbm.xml" /> |
|
151 |
<mapping resource="net/penril/bib/BibAccount.hbm.xml" /> |
|
152 |
<mapping resource="net/penril/bib/BibCompanyToken.hbm.xml" /> |
|
153 |
<mapping resource="net/penril/bib/BibTransactionHistory.hbm.xml" /> |
|
154 |
<mapping resource="net/penril/bib/BibBillPaymentHistory.hbm.xml" /> |
|
155 |
<mapping resource="net/penril/bib/BibBulkPaymentHistory.hbm.xml" /> |
|
156 |
<mapping resource="net/penril/bib/BibFdPlacementHistory.hbm.xml" /> |
|
157 |
<mapping resource="net/penril/bib/BibFdUpliftmentHistory.hbm.xml" /> |
|
158 |
<mapping resource="net/penril/bib/BibInterTransferHistory.hbm.xml" /> |
|
159 |
<mapping resource="net/penril/bib/BibIntraTransferHistory.hbm.xml" /> |
|
160 |
<mapping resource="net/penril/bib/BibApproverStatus.hbm.xml" /> |
|
161 |
<mapping resource="net/penril/bib/BIBUserActivity.hbm.xml" /> |
|
162 |
<mapping resource="net/penril/bib/BibBulkDirectHistory.hbm.xml" /> |
|
163 |
<mapping resource="net/penril/bib/BibBulkPayrollHistory.hbm.xml" /> |
|
164 |
|
|
165 |
<mapping resource="net/penril/ibss/core/hibernate/IbTierCharges.hbm.xml"/> |
|
166 |
<mapping resource="net/penril/ibss/core/hibernate/IbTierChargesLVL.hbm.xml"/> |
|
167 |
<mapping resource="net/penril/ibss/core/hibernate/MkTrnxMaster.hbm.xml"/> |
|
168 |
--> |
|
169 |
|
|
170 |
</session-factory> |
|
171 |
</hibernate-configuration> |
resource/com/ib/hibernate/configuration/hibernate.staging-penril.cfg.xml | ||
---|---|---|
3 | 3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
4 | 4 |
<hibernate-configuration> |
5 | 5 |
<session-factory> |
6 |
<!-- Database connection settings --> |
|
7 |
<property name="hibernate.connection.datasource">jdbc/AgroIbPhase2Datasource</property> |
|
8 |
<property name="hibernate.jndi.class">com.ibm.websphere.naming.WsnInitialContextFactory</property> |
|
9 |
<!-- <property name="hibernate.jndi.url">corbaloc:iiop:localhost:2810/</property> --> |
|
10 |
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property> |
|
11 |
|
|
6 |
<!-- Database connection settings --> |
|
7 |
<!-- <property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> --> |
|
8 |
<property name="connection.url">jdbc:oracle:thin:@192.168.1.126:1521:IBSDEMO</property> |
|
9 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
10 |
<property name="hibernate.connection.password">ci123</property> |
|
11 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
12 |
<!-- SQL dialect --> |
|
13 |
<property name="dialect">org.hibernate.dialect.OracleDialect</property> |
|
14 |
|
|
15 |
<!-- Use the C3P0 connection pool provider --> |
|
16 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
17 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
18 |
<property name="hibernate.c3p0.min_size">20</property> |
|
19 |
<property name="hibernate.c3p0.max_size">50</property> |
|
20 |
<property name="hibernate.c3p0.timeout">120</property> |
|
21 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
22 |
|
|
12 | 23 |
<!-- Enable Hibernate's automatic session context management --> |
13 | 24 |
<property name="current_session_context_class">thread</property> |
14 | 25 |
<!-- Disable the second-level cache --> |
resource/log4j.staging-ci.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" |
|
3 |
"http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd"> |
|
4 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
|
5 |
<appender name="IBLog" class="org.apache.log4j.DailyRollingFileAppender"> |
|
6 |
<param name="File" value="IBAM_System.log" /> |
|
7 |
<param name="Append" value="true" /> |
|
8 |
<param name="DatePattern" value="@yyyy-MM-dd"/> |
|
9 |
<layout class="org.apache.log4j.PatternLayout"> |
|
10 |
<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss:SSS} %-5p %c{4}: %m%n"/> |
|
11 |
</layout> |
|
12 |
</appender> |
|
13 |
|
|
14 |
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"> |
|
15 |
<layout class="org.apache.log4j.PatternLayout"> |
|
16 |
<param name="ConversionPattern" value="%d{[dd/MM/yyyy] [HH:mm:ss:SSS]} [%4p] [%c{1}]:%L - %m%n"/> |
|
17 |
</layout> |
|
18 |
</appender> |
|
19 |
|
|
20 |
<logger name="org.hibernate"> |
|
21 |
<level value="error" /> |
|
22 |
<appender-ref ref="ConsoleAppender"/> |
|
23 |
</logger> |
|
24 |
<logger name="com.ib"> |
|
25 |
<level value="error" /> |
|
26 |
<appender-ref ref="IBLog"/> |
|
27 |
</logger> |
|
28 |
<logger name="com.mchange"> |
|
29 |
<level value="error"/> |
|
30 |
</logger> |
|
31 |
<logger name="com.mchange.v2.c3p0"> |
|
32 |
<level value="error"/> |
|
33 |
</logger> |
|
34 |
|
|
35 |
<root> |
|
36 |
<priority value="error" /> |
|
37 |
<appender-ref ref="ConsoleAppender"/> |
|
38 |
</root> |
|
39 |
</log4j:configuration> |
selenium-test/another-test-with-selenium-builder.en.txt | ||
---|---|---|
1 |
Start Firefox (like a boss) |
|
2 |
(When you follow these steps, make sure page content is loaded before clicking, etc... Since you're a human, this is probably what you do already) |
|
3 |
|
|
4 |
- Navigate to http://localhost:9100/m2u-upass-admin/common/Login.do |
|
5 |
- Type "administrator" in "//div[2]/div[2]/form/table/tbody/tr[2]/td[3]/input", replacing any text that was already there |
|
6 |
- Type "Mss@dm1n" in "//div[2]/div[2]/form/table/tbody/tr[3]/td[3]/input", replacing any text that was already there |
|
7 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/form/table/tbody/tr[5]/td[5]/input" |
|
8 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[4]/a" |
|
9 |
- Type "test" in "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input", replacing any text that was already there |
|
10 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div[1]/input[1]" |
|
11 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/div[2]/form/input[2]" |
|
12 |
- Select the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/select//option[2]" |
|
13 |
- Select the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[4]/td[3]/select//option[2]" |
|
14 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div[1]/input[1]" |
|
15 |
- If "m2u-test-user-1" is not on the page, scream at the coders |
|
16 |
- If "stock-user-1" is not on the page, scream at the coders |
|
17 |
- If "im2u-test-user-1" is not on the page, scream at the coders |
|
18 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/table[2]/tbody/tr[3]/td[1]/a" |
|
19 |
- If "Customer Enquiry - Details" is not on the page, scream at the coders |
|
20 |
- If "im2u-test-user-1" is not on the page, scream at the coders |
|
21 |
- If "Active" is not on the page, scream at the coders |
|
22 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div/input[1]" |
|
23 |
- If the element(s) on the page found by the css selector "tr.alt:nth-child(3)" is not present, scream at the coders |
|
24 |
- If the element(s) on the page found by the css selector "tr.alt:nth-child(4)" is present, scream at the coders |
|
25 |
|
|
26 |
You're done! Sweet. |
selenium-test/another-test-with-selenium-builder.json | ||
---|---|---|
1 |
{ |
|
2 |
"type": "script", |
|
3 |
"seleniumVersion": "2", |
|
4 |
"formatVersion": 1, |
|
5 |
"steps": [ |
|
6 |
{ |
|
7 |
"type": "get", |
|
8 |
"url": "http://localhost:9100/m2u-upass-admin/common/Login.do" |
|
9 |
}, |
|
10 |
{ |
|
11 |
"type": "switchToFrameByIndex", |
|
12 |
"index": "0" |
|
13 |
}, |
|
14 |
{ |
|
15 |
"type": "setElementText", |
|
16 |
"locator": { |
|
17 |
"type": "xpath", |
|
18 |
"value": "//div[2]/div[2]/form/table/tbody/tr[2]/td[3]/input" |
|
19 |
}, |
|
20 |
"text": "administrator" |
|
21 |
}, |
|
22 |
{ |
|
23 |
"type": "setElementText", |
|
24 |
"locator": { |
|
25 |
"type": "xpath", |
|
26 |
"value": "//div[2]/div[2]/form/table/tbody/tr[3]/td[3]/input" |
|
27 |
}, |
|
28 |
"text": "Mss@dm1n" |
|
29 |
}, |
|
30 |
{ |
|
31 |
"type": "clickElement", |
|
32 |
"locator": { |
|
33 |
"type": "xpath", |
|
34 |
"value": "//div[2]/div[2]/form/table/tbody/tr[5]/td[5]/input" |
|
35 |
} |
|
36 |
}, |
|
37 |
{ |
|
38 |
"type": "clickElement", |
|
39 |
"locator": { |
|
40 |
"type": "xpath", |
|
41 |
"value": "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[4]/a" |
|
42 |
} |
|
43 |
}, |
|
44 |
{ |
|
45 |
"type": "setElementText", |
|
46 |
"locator": { |
|
47 |
"type": "xpath", |
|
48 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input" |
|
49 |
}, |
|
50 |
"text": "test" |
|
51 |
}, |
|
52 |
{ |
|
53 |
"type": "clickElement", |
|
54 |
"locator": { |
|
55 |
"type": "xpath", |
|
56 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div[1]/input[1]" |
|
57 |
} |
|
58 |
}, |
|
59 |
{ |
|
60 |
"type": "clickElement", |
|
61 |
"locator": { |
|
62 |
"type": "xpath", |
|
63 |
"value": "//div[2]/div[2]/div/div[2]/div/div[2]/form/input[2]" |
|
64 |
} |
|
65 |
}, |
|
66 |
{ |
|
67 |
"type": "setElementSelected", |
|
68 |
"locator": { |
|
69 |
"type": "xpath", |
|
70 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/select//option[2]" |
|
71 |
} |
|
72 |
}, |
|
73 |
{ |
|
74 |
"type": "setElementSelected", |
|
75 |
"locator": { |
|
76 |
"type": "xpath", |
|
77 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[4]/td[3]/select//option[2]" |
|
78 |
} |
|
79 |
}, |
|
80 |
{ |
|
81 |
"type": "clickElement", |
|
82 |
"locator": { |
|
83 |
"type": "xpath", |
|
84 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div[1]/input[1]" |
|
85 |
} |
|
86 |
}, |
|
87 |
{ |
|
88 |
"type": "assertTextPresent", |
|
89 |
"text": "m2u-test-user-1" |
|
90 |
}, |
|
91 |
{ |
|
92 |
"type": "assertTextPresent", |
|
93 |
"text": "stock-user-1" |
|
94 |
}, |
|
95 |
{ |
|
96 |
"type": "assertTextPresent", |
|
97 |
"text": "im2u-test-user-1" |
|
98 |
}, |
|
99 |
{ |
|
100 |
"type": "clickElement", |
|
101 |
"locator": { |
|
102 |
"type": "xpath", |
|
103 |
"value": "//div[2]/div[2]/div/div[2]/div/table[2]/tbody/tr[3]/td[1]/a" |
|
104 |
} |
|
105 |
}, |
|
106 |
{ |
|
107 |
"type": "assertTextPresent", |
|
108 |
"text": "Customer Enquiry - Details" |
|
109 |
}, |
|
110 |
{ |
|
111 |
"type": "assertTextPresent", |
|
112 |
"text": "im2u-test-user-1" |
|
113 |
}, |
|
114 |
{ |
|
115 |
"type": "assertTextPresent", |
|
116 |
"text": "Active" |
|
117 |
}, |
|
118 |
{ |
|
119 |
"type": "clickElement", |
|
120 |
"locator": { |
|
121 |
"type": "xpath", |
|
122 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div/input[1]" |
|
123 |
} |
|
124 |
}, |
|
125 |
{ |
|
126 |
"type": "assertElementPresent", |
|
127 |
"locator": { |
|
128 |
"type": "css selector", |
|
129 |
"value": "tr.alt:nth-child(3)" |
|
130 |
} |
|
131 |
}, |
|
132 |
{ |
|
133 |
"type": "assertElementPresent", |
|
134 |
"negated": true, |
|
135 |
"locator": { |
|
136 |
"type": "css selector", |
|
137 |
"value": "tr.alt:nth-child(4)" |
|
138 |
} |
|
139 |
} |
|
140 |
] |
|
141 |
} |
selenium-test/first-test-with-selenium-builder.en.txt | ||
---|---|---|
1 |
Start Firefox (like a boss) |
|
2 |
(When you follow these steps, make sure page content is loaded before clicking, etc... Since you're a human, this is probably what you do already) |
|
3 |
|
|
4 |
- Navigate to http://localhost:9100/m2u-upass-admin/common/Login.do |
|
5 |
- Type "administrator" in "//div[2]/div[2]/form/table/tbody/tr[2]/td[3]/input", replacing any text that was already there |
|
6 |
- Type "Mss@dm1n" in "//div[2]/div[2]/form/table/tbody/tr[3]/td[3]/input", replacing any text that was already there |
|
7 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/form/table/tbody/tr[5]/td[5]/input" |
|
8 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[1]/a" |
|
9 |
- If "No group(s) found" is not on the page, scream at the coders |
|
10 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div[2]/input" |
|
11 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input" |
|
12 |
- Type "Second Group Desc" in "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/textarea", replacing any text that was already there |
|
13 |
- Select the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[6]/td[2]/ul/li/input" |
|
14 |
- Type "Second Group" in "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input", replacing any text that was already there |
|
15 |
- Type "\9" in "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/textarea" |
|
16 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div/input[2]" |
|
17 |
- If "Group Second Group will be created" is not on the page, scream at the coders |
|
18 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div/input[2]" |
|
19 |
- If "Group Second Group has been successfully created" is not on the page, scream at the coders |
|
20 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[1]/a" |
|
21 |
- If "Second Group" is not on the page, scream at the coders |
|
22 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/table[2]/tbody/tr/td[1]/a" |
|
23 |
- If "Second Group Desc" is not on the page, scream at the coders |
|
24 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div/input[5]" |
|
25 |
- If "Group Second Group will be deleted." is not on the page, scream at the coders |
|
26 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[2]/div/form/div/input[2]" |
|
27 |
- If "Group Second Group has been successfully deleted" is not on the page, scream at the coders |
|
28 |
- Click the element(s) on the page identified by the xpath query "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[1]/a" |
|
29 |
- If "No group(s) found" is not on the page, scream at the coders |
|
30 |
- Click the element(s) on the page identified by the xpath query "//div[1]/table/tbody/tr/td[3]/a/img" |
|
31 |
|
|
32 |
You're done! Sweet. |
selenium-test/first-test-with-selenium-builder.json | ||
---|---|---|
1 |
{ |
|
2 |
"type": "script", |
|
3 |
"seleniumVersion": "2", |
|
4 |
"formatVersion": 1, |
|
5 |
"steps": [ |
|
6 |
{ |
|
7 |
"type": "get", |
|
8 |
"url": "http://localhost:9100/m2u-upass-admin/common/Login.do" |
|
9 |
}, |
|
10 |
{ |
|
11 |
"type": "switchToFrameByIndex", |
|
12 |
"index": "0" |
|
13 |
}, |
|
14 |
{ |
|
15 |
"type": "setElementText", |
|
16 |
"locator": { |
|
17 |
"type": "xpath", |
|
18 |
"value": "//div[2]/div[2]/form/table/tbody/tr[2]/td[3]/input" |
|
19 |
}, |
|
20 |
"text": "administrator" |
|
21 |
}, |
|
22 |
{ |
|
23 |
"type": "setElementText", |
|
24 |
"locator": { |
|
25 |
"type": "xpath", |
|
26 |
"value": "//div[2]/div[2]/form/table/tbody/tr[3]/td[3]/input" |
|
27 |
}, |
|
28 |
"text": "Mss@dm1n" |
|
29 |
}, |
|
30 |
{ |
|
31 |
"type": "clickElement", |
|
32 |
"locator": { |
|
33 |
"type": "xpath", |
|
34 |
"value": "//div[2]/div[2]/form/table/tbody/tr[5]/td[5]/input" |
|
35 |
} |
|
36 |
}, |
|
37 |
{ |
|
38 |
"type": "clickElement", |
|
39 |
"locator": { |
|
40 |
"type": "xpath", |
|
41 |
"value": "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[1]/a" |
|
42 |
} |
|
43 |
}, |
|
44 |
{ |
|
45 |
"type": "assertTextPresent", |
|
46 |
"text": "No group(s) found" |
|
47 |
}, |
|
48 |
{ |
|
49 |
"type": "clickElement", |
|
50 |
"locator": { |
|
51 |
"type": "xpath", |
|
52 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div[2]/input" |
|
53 |
} |
|
54 |
}, |
|
55 |
{ |
|
56 |
"type": "clickElement", |
|
57 |
"locator": { |
|
58 |
"type": "xpath", |
|
59 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input" |
|
60 |
} |
|
61 |
}, |
|
62 |
{ |
|
63 |
"type": "setElementText", |
|
64 |
"locator": { |
|
65 |
"type": "xpath", |
|
66 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/textarea" |
|
67 |
}, |
|
68 |
"text": "Second Group Desc" |
|
69 |
}, |
|
70 |
{ |
|
71 |
"type": "setElementSelected", |
|
72 |
"locator": { |
|
73 |
"type": "xpath", |
|
74 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[6]/td[2]/ul/li/input" |
|
75 |
} |
|
76 |
}, |
|
77 |
{ |
|
78 |
"type": "setElementText", |
|
79 |
"locator": { |
|
80 |
"type": "xpath", |
|
81 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[2]/td[3]/input" |
|
82 |
}, |
|
83 |
"text": "Second Group" |
|
84 |
}, |
|
85 |
{ |
|
86 |
"type": "sendKeysToElement", |
|
87 |
"locator": { |
|
88 |
"type": "xpath", |
|
89 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table/tbody/tr[3]/td[3]/textarea" |
|
90 |
}, |
|
91 |
"text": "\\9" |
|
92 |
}, |
|
93 |
{ |
|
94 |
"type": "clickElement", |
|
95 |
"locator": { |
|
96 |
"type": "xpath", |
|
97 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div/input[2]" |
|
98 |
} |
|
99 |
}, |
|
100 |
{ |
|
101 |
"type": "assertTextPresent", |
|
102 |
"text": "Group Second Group will be created" |
|
103 |
}, |
|
104 |
{ |
|
105 |
"type": "clickElement", |
|
106 |
"locator": { |
|
107 |
"type": "xpath", |
|
108 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div/input[2]" |
|
109 |
} |
|
110 |
}, |
|
111 |
{ |
|
112 |
"type": "assertTextPresent", |
|
113 |
"text": "Group Second Group has been successfully created" |
|
114 |
}, |
|
115 |
{ |
|
116 |
"type": "clickElement", |
|
117 |
"locator": { |
|
118 |
"type": "xpath", |
|
119 |
"value": "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[1]/a" |
|
120 |
} |
|
121 |
}, |
|
122 |
{ |
|
123 |
"type": "assertTextPresent", |
|
124 |
"text": "Second Group" |
|
125 |
}, |
|
126 |
{ |
|
127 |
"type": "clickElement", |
|
128 |
"locator": { |
|
129 |
"type": "xpath", |
|
130 |
"value": "//div[2]/div[2]/div/div[2]/div/form/table[2]/tbody/tr/td[1]/a" |
|
131 |
} |
|
132 |
}, |
|
133 |
{ |
|
134 |
"type": "assertTextPresent", |
|
135 |
"text": "Second Group Desc" |
|
136 |
}, |
|
137 |
{ |
|
138 |
"type": "clickElement", |
|
139 |
"locator": { |
|
140 |
"type": "xpath", |
|
141 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div/input[5]" |
|
142 |
} |
|
143 |
}, |
|
144 |
{ |
|
145 |
"type": "assertTextPresent", |
|
146 |
"text": "Group Second Group will be deleted." |
|
147 |
}, |
|
148 |
{ |
|
149 |
"type": "clickElement", |
|
150 |
"locator": { |
|
151 |
"type": "xpath", |
|
152 |
"value": "//div[2]/div[2]/div/div[2]/div/form/div/input[2]" |
|
153 |
} |
|
154 |
}, |
|
155 |
{ |
|
156 |
"type": "assertTextPresent", |
|
157 |
"text": "Group Second Group has been successfully deleted" |
|
158 |
}, |
|
159 |
{ |
|
160 |
"type": "clickElement", |
|
161 |
"locator": { |
|
162 |
"type": "xpath", |
|
163 |
"value": "//div[2]/div[2]/div/div[1]/div/ul/li/ul/li[1]/a" |
|
164 |
} |
|
165 |
}, |
|
166 |
{ |
|
167 |
"type": "assertTextPresent", |
|
168 |
"text": "No group(s) found" |
|
169 |
}, |
|
170 |
{ |
|
171 |
"type": "clickElement", |
|
172 |
"locator": { |
|
173 |
"type": "xpath", |
|
174 |
"value": "//div[1]/table/tbody/tr/td[3]/a/img" |
|
175 |
} |
|
176 |
} |
|
177 |
] |
|
178 |
} |
selenium-test/first-test-with-selenium-ide.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
4 |
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> |
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
6 |
<link rel="selenium.base" href="http://localhost:9100/" /> |
|
7 |
<title>FirstTestCase</title> |
|
8 |
</head> |
|
9 |
<body> |
|
10 |
<table cellpadding="1" cellspacing="1" border="1"> |
|
11 |
<thead> |
|
12 |
<tr><td rowspan="1" colspan="3">FirstTestCase</td></tr> |
|
13 |
</thead><tbody> |
|
14 |
<tr> |
|
15 |
<td>open</td> |
|
16 |
<td>/m2u-upass-admin/common/Login.do</td> |
|
17 |
<td></td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<td>type</td> |
|
21 |
<td>name=userId</td> |
|
22 |
<td>administrator</td> |
|
23 |
</tr> |
|
24 |
<tr> |
|
25 |
<td>type</td> |
|
26 |
<td>name=password</td> |
|
27 |
<td>Mss@dm1n</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<td>clickAndWait</td> |
|
31 |
<td>name=action</td> |
|
32 |
<td></td> |
|
33 |
</tr> |
|
34 |
<tr> |
|
35 |
<td>clickAndWait</td> |
|
36 |
<td>link=Admin Group Maintenance</td> |
|
37 |
<td></td> |
|
38 |
</tr> |
|
39 |
<tr> |
|
40 |
<td>verifyText</td> |
|
41 |
<td>css=table.tabularForm > tbody > tr > td</td> |
|
42 |
<td>No group(s) found</td> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<td>clickAndWait</td> |
|
46 |
<td>name=action</td> |
|
47 |
<td></td> |
|
48 |
</tr> |
|
49 |
<tr> |
|
50 |
<td>type</td> |
|
51 |
<td>name=groupName</td> |
|
52 |
<td>First Group</td> |
|
53 |
</tr> |
|
54 |
<tr> |
|
55 |
<td>type</td> |
|
56 |
<td>name=groupDescription</td> |
|
57 |
<td>First Group Desc</td> |
|
58 |
</tr> |
|
59 |
<tr> |
|
60 |
<td>click</td> |
|
61 |
<td>name=selectedAccesses</td> |
|
62 |
<td></td> |
|
63 |
</tr> |
|
64 |
<tr> |
|
65 |
<td>clickAndWait</td> |
|
66 |
<td>xpath=(//input[@name='action'])[2]</td> |
|
67 |
<td></td> |
|
68 |
</tr> |
|
69 |
<tr> |
|
70 |
<td>clickAndWait</td> |
|
71 |
<td>xpath=(//input[@name='action'])[2]</td> |
|
72 |
<td></td> |
|
73 |
</tr> |
Also available in: Unified diff