Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 2a2a2a0

Browse files
authored
Merge pull request #61 from wcm-io-qa/release/4.0.0
Release/4.0.0
2 parents daa6f6d + 7f7430b commit 2a2a2a0

File tree

417 files changed

+13870
-4771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

417 files changed

+13870
-4771
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ npm-debug.log
2828
*.swp
2929
example-project/chromedriver.log
3030
*.log
31+
.allure
32+
bin/

.pre-commit-config.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
10+
rev: v1.0.0
11+
hooks:
12+
- id: commitlint
13+
stages: [commit-msg]

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<img src="https://wcm.io/images/[email protected]"/> Selenium Galen Integration
22
==========================
3-
[![Build Status](https://travis-ci.org/wcm-io-qa/wcm-io-qa-galenium.png?branch=develop)](https://travis-ci.org/wcm-io-qa/wcm-io-qa-galenium)
3+
[![Build Status](https://travis-ci.org/wcm-io-qa/wcm-io-qa-galenium.png?branch=develop)](https://travis-ci.org/wcm-io-qa/wcm-io-qa-galenium)
44

55
This project is an attempt to integrate Galen with Selenium and the other way around in a Maven project. It uses TestNG as a test runner. Galen and ExtentReports provide the reporting.
66

77
To get an idea how it works, take a look at the [documentation].
88

99

1010
[documentation]: https://qa.wcm.io/galenium/
11-

commitlint.config.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
rules: {
3+
'body-leading-blank': [1, 'always'],
4+
'footer-leading-blank': [1, 'always'],
5+
'header-max-length': [2, 'always', 72],
6+
'body-max-line-length': [2, 'always', 80],
7+
'scope-case': [2, 'always', 'lower-case'],
8+
'subject-case': [
9+
2,
10+
'never',
11+
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
12+
],
13+
'subject-empty': [2, 'never'],
14+
'subject-full-stop': [2, 'never', '.'],
15+
'type-case': [2, 'always', 'lower-case'],
16+
'type-empty': [2, 'never'],
17+
'type-enum': [
18+
2,
19+
'always',
20+
[
21+
'build',
22+
'chore',
23+
'ci',
24+
'docs',
25+
'feat',
26+
'fix',
27+
'perf',
28+
'refactor',
29+
'revert',
30+
'style',
31+
'test'
32+
]
33+
]
34+
}
35+
};

examples/baseline/pom.xml

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@
2222
<parent>
2323
<groupId>io.wcm.qa</groupId>
2424
<artifactId>io.wcm.qa.galenium.integration</artifactId>
25-
<version>3.0.0</version>
25+
<version>4.0.0-SNAPSHOT</version>
2626
<relativePath>../../integration</relativePath>
2727
</parent>
2828

2929
<name>Galenium Example Baseline</name>
30-
<groupId>io.wcm.qa</groupId>
3130
<artifactId>io.wcm.qa.galenium.examples.baseline</artifactId>
3231
<packaging>pom</packaging>
33-
<version>3.0.0</version>
3432
<description>Test automation example baseline.</description>
3533

3634
<properties>
@@ -46,12 +44,11 @@
4644
<dependency>
4745
<groupId>io.wcm.qa</groupId>
4846
<artifactId>io.wcm.qa.galenium.examples.samples</artifactId>
49-
<version>3.0.0</version>
47+
<version>4.0.0-SNAPSHOT</version>
5048
</dependency>
5149
</dependencies>
5250
</dependencyManagement>
5351

54-
5552
<build>
5653
<plugins>
5754

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
#%L
4+
wcm.io
5+
%%
6+
Copyright (C) 2017 wcm.io
7+
%%
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
#L%
20+
-->
21+
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xmlns="http://maven.apache.org/changes/1.0.0"
23+
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
24+
<body>
25+
26+
</body>
27+
</document>

examples/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
limitations under the License.
1717
#L%
1818
-->
19-
20-
<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">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2122
<modelVersion>4.0.0</modelVersion>
2223

2324
<parent>
@@ -28,10 +29,9 @@
2829
</parent>
2930

3031
<name>Galenium Examples</name>
31-
<groupId>io.wcm.qa</groupId>
3232
<artifactId>io.wcm.qa.galenium.examples</artifactId>
33+
<version>4.0.0-SNAPSHOT</version>
3334
<packaging>pom</packaging>
34-
<version>3.0.0</version>
3535
<description>Test automation examples.</description>
3636

3737
<properties>
@@ -63,5 +63,5 @@
6363
</distributionManagement>
6464
</profile>
6565
</profiles>
66-
66+
6767
</project>

examples/samples/pom.xml

+9-8
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@
1616
limitations under the License.
1717
#L%
1818
-->
19-
<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">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2022
<modelVersion>4.0.0</modelVersion>
2123

2224
<parent>
2325
<groupId>io.wcm.qa</groupId>
2426
<artifactId>io.wcm.qa.galenium.integration</artifactId>
25-
<version>3.0.0</version>
27+
<version>4.0.0-SNAPSHOT</version>
2628
<relativePath>../../integration</relativePath>
2729
</parent>
2830

2931
<name>Galenium Example Samples</name>
30-
<groupId>io.wcm.qa</groupId>
3132
<artifactId>io.wcm.qa.galenium.examples.samples</artifactId>
3233
<packaging>jar</packaging>
33-
<version>3.0.0</version>
34+
<version>4.0.0-SNAPSHOT</version>
3435
<description>Test automation example samples.</description>
3536

3637
<properties>
@@ -43,7 +44,7 @@
4344
<dependency>
4445
<groupId>io.wcm.qa</groupId>
4546
<artifactId>io.wcm.qa.galenium.examples.tests</artifactId>
46-
<version>3.0.0</version>
47+
<version>4.0.0-SNAPSHOT</version>
4748
<type>pom</type>
4849
</dependency>
4950

@@ -64,13 +65,13 @@
6465
</goals>
6566
<configuration>
6667
<outputDirectory>${basedir}/target/classes</outputDirectory>
67-
<resources>
68+
<resources>
6869
<resource>
6970
<directory>${galenium.sampling.root}</directory>
7071
<filtering>false</filtering>
7172
</resource>
72-
</resources>
73-
</configuration>
73+
</resources>
74+
</configuration>
7475
</execution>
7576
</executions>
7677
</plugin>
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
#%L
4+
wcm.io
5+
%%
6+
Copyright (C) 2017 wcm.io
7+
%%
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
#L%
20+
-->
21+
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xmlns="http://maven.apache.org/changes/1.0.0"
23+
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
24+
<body>
25+
26+
</body>
27+
</document>

examples/scripts/maven-call.sh

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/bin/bash
2+
3+
echo "initializing maven args functions";
4+
5+
function addProfile() {
6+
addArg "-P${1}";
7+
}
8+
9+
function addTests() {
10+
for TEST in $@;
11+
do
12+
addTest "${TEST}";
13+
done
14+
}
15+
16+
function addTest() {
17+
if [ -z "${MRW_TESTS}" ];
18+
then
19+
MRW_TESTS="${1}";
20+
else
21+
MRW_TESTS="${MRW_TESTS},${1}";
22+
fi
23+
}
24+
25+
function addGoal() {
26+
MAVEN_GOALS="${MAVEN_GOALS} ${1}";
27+
}
28+
29+
function addDef() {
30+
addArg "-D${1}";
31+
}
32+
33+
function addArg() {
34+
MRW_MAVEN_ARGS="${MRW_MAVEN_ARGS} ${1}";
35+
}
36+
37+
echo "Checking local settings at: '${LOCAL_SETTINGS}'";
38+
if [ -f "${LOCAL_SETTINGS}" ];
39+
then
40+
echo "using local settings";
41+
source "${LOCAL_SETTINGS}";
42+
else
43+
echo "no local settings found";
44+
fi
45+
46+
MRW_MAVEN_CALL="mvn ${MAVEN_GOALS}";
47+
MRW_MAVEN_CALL="${MRW_MAVEN_CALL} ${MRW_MAVEN_ARGS}";
48+
if [ -n "${MRW_TESTS}" ];
49+
then
50+
MRW_MAVEN_CALL="${MRW_MAVEN_CALL} -Dit.test=${MRW_TESTS} ${@}";
51+
fi
52+
53+
echo "Calling: '${MRW_MAVEN_CALL}'";
54+
${MRW_MAVEN_CALL};

examples/specs/pom.xml

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,21 @@
1616
limitations under the License.
1717
#L%
1818
-->
19-
20-
<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">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2122
<modelVersion>4.0.0</modelVersion>
2223

2324
<parent>
2425
<groupId>io.wcm.qa</groupId>
2526
<artifactId>io.wcm.qa.galenium.integration.specs</artifactId>
26-
<version>3.0.0</version>
27+
<version>4.0.0-SNAPSHOT</version>
2728
<relativePath>../../integration/specs</relativePath>
2829
</parent>
2930

3031
<name>Galenium Example Specs</name>
31-
<groupId>io.wcm.qa</groupId>
3232
<artifactId>io.wcm.qa.galenium.examples.specs</artifactId>
3333
<packaging>jar</packaging>
34-
<version>3.0.0</version>
3534
<description>Test automation example Galen specs.</description>
3635

3736
<properties>
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
#%L
4+
wcm.io
5+
%%
6+
Copyright (C) 2017 wcm.io
7+
%%
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
#L%
20+
-->
21+
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xmlns="http://maven.apache.org/changes/1.0.0"
23+
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
24+
<body>
25+
26+
</body>
27+
</document>

examples/specs/src/main/resources/galen/specs/common.gspec

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
site-header header.header-site
44
navigation nav#nav-main
55
link-* ul.navlist > li > a
6-
link-to-conference li > a[href$="conference.html"]
76
link-to-homepage li > a[href$="en.html"]
87
menu-opener a.menu-opener
98
footer footer.footer-site

examples/specs/src/main/resources/galen/specs/conference.gspec

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
@on mobile
99
page.navigation.link-*:
1010
absent
11-
page.navigation.link-to-conference:
12-
absent
1311
page.navigation.link-to-homepage:
1412
absent
1513

examples/specs/src/main/resources/galen/specs/homepage.gspec

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
@on mobile
1818
page.navigation.link-*:
1919
absent
20-
page.navigation.link-to-conference:
21-
absent
2220
page.navigation.link-to-homepage:
2321
absent
2422

@@ -36,7 +34,7 @@
3634
below page.navigation
3735
below page.site-header
3836
article:
39-
above page.footer
37+
above page.footer
4038
teaserbar:
4139
above page.footer ~ 0px
4240
= Containment =

0 commit comments

Comments
 (0)