Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
24db051
[jgitflow-maven-plugin] updating poms for 3.0.1-SNAPSHOT development
apegam-pv Sep 30, 2019
41b5fcf
[jgitflow-maven-plugin] updating develop poms to master versions to a…
apegam-pv Sep 30, 2019
01ecb45
[jgitflow-maven-plugin] merging 'master' into 'develop'
apegam-pv Sep 30, 2019
f1b7ff9
[jgitflow-maven-plugin] Updating develop poms back to pre merge state
apegam-pv Sep 30, 2019
efdb447
bump webdrivermanager for integrated projects
apegam-pv Sep 30, 2019
cededf6
move changes to root, add date
apegam-pv Sep 30, 2019
404e632
move changes to Maven default location
apegam-pv Sep 30, 2019
333eee6
refactor: move Galen mocks to Galen module
apegam-pv Oct 7, 2019
3221dc7
refactor: make dependencies explicit and non-transient
apegam-pv Oct 7, 2019
cac305b
fix: use Galenium over Galen API
apegam-pv Oct 7, 2019
23f5b17
fix: remove build helper, complains of null version
apegam-pv Oct 7, 2019
dc9b33c
fix: always do a fresh parse
apegam-pv Oct 7, 2019
44e2739
refactor: rename to avoid name clashes
apegam-pv Oct 7, 2019
97435a1
chore: add pre-commit and message check configs
apegam-pv Oct 7, 2019
d357e28
fix: ignore random bin folders across project
apegam-pv Oct 7, 2019
8dfaf3d
style: lint trailing whitespace and ensure EOL before EOF
apegam-pv Oct 7, 2019
7a76aeb
fix: deploy root because changes.xml lives here now
apegam-pv Oct 7, 2019
e675c5b
feat: replace ExtentReports with Allure
apegam-pv Oct 11, 2019
de9243f
feat: split test base into named and browser stages
apegam-pv Oct 11, 2019
deee675
refactor: move Allure integration to integration module (#15)
apegam-pv Oct 11, 2019
da7aee7
refactor: move Allure to integration
apegam-pv Oct 12, 2019
da990cd
chore: limit body line length in commit messages
apegam-pv Oct 14, 2019
1cd5d81
docs: run javadoc:autofix over plugin and all modules
apegam-pv Oct 15, 2019
c531c37
fix: remove method name from log (#18)
apegam-pv Oct 15, 2019
bd8584e
chore: organize imports in examples and modules (#19)
apegam-pv Oct 15, 2019
996a699
chore: bump dependency and plu versions
apegam-pv Oct 17, 2019
21228de
refactor: move allure to integration
apegam-pv Oct 24, 2019
8cc162a
fix: remove categories as concept (#22)
apegam-pv Oct 24, 2019
2865cbb
fix: use Allure labels (#23)
apegam-pv Oct 24, 2019
e51bd91
feat: improved AEM author interaction
apegam-pv Oct 31, 2019
cad2e82
build: integrate javadoc autofix (#25)
apegam-pv Nov 2, 2019
5cd20b6
feat: introduce Galenium API for Galen interaction
apegam-pv Nov 2, 2019
d6f7874
feat: make spec an interface and hide Galen better
apegam-pv Nov 3, 2019
cc7a02c
fix: fix and clean examples and related functionality
apegam-pv Nov 6, 2019
fd1e109
feat: improve Galen API
apegam-pv Nov 15, 2019
bcfd024
feat: separate example tests by type and add generic tests
apegam-pv Nov 15, 2019
48e02f4
fix: pass cause to thrown exceptions
apegam-pv Nov 18, 2019
9352525
feat: add access to error messages of Galen runs
apegam-pv Nov 19, 2019
d1ddf53
feat: add explicit null tolerance to transforming samplers (#33)
apegam-pv Nov 20, 2019
028b10f
Feature/integration pom (#34)
apegam-pv Nov 20, 2019
87a83a9
feat: add factory methods for webdriver waits (#35)
apegam-pv Nov 21, 2019
c7b2854
feat: add multi webelement sampling, unname verifications
apegam-pv Nov 21, 2019
c5ecdbc
feat: add to and clarify Galen related API
apegam-pv Nov 21, 2019
5972643
feat: add jsoup to standard includes in UI test integration
apegam-pv Nov 26, 2019
2e6a9ed
feat: add setter for connection provider (#39)
apegam-pv Nov 26, 2019
2372ffb
feat: add transforming sampler interface and default constructors (#40)
apegam-pv Nov 27, 2019
9308706
feat: add transforming sampler interface and default constructors
apegam-pv Nov 27, 2019
701f199
feat: improve examples and organize along test type concept
apegam-pv Nov 28, 2019
5482a6d
feat: improve screenshot capabilities
apegam-pv Nov 28, 2019
9b438bf
feat: add full page screenshot and parameters in report
apegam-pv Nov 28, 2019
ff5cfde
fix: remove driver closing and Galen configuration from listener
apegam-pv Nov 29, 2019
2dfc992
refactor: inline and static import close driver method
apegam-pv Nov 29, 2019
67805b5
fix: remove illogical if statement
apegam-pv Nov 29, 2019
86d9041
fix: clean up driver management on device change
apegam-pv Nov 29, 2019
a660c2d
fix: suppress warning because there is no alternative
apegam-pv Nov 29, 2019
5973117
fix: add result updater to context
apegam-pv Nov 29, 2019
48a7b4a
fix: remove screenshot from Allure container handling
apegam-pv Nov 29, 2019
d95b9ae
feat: add regex replacement sampler
apegam-pv Nov 29, 2019
79abc57
docs: add since version
apegam-pv Nov 29, 2019
2d1a9fd
fix: add URL to response debug message
apegam-pv Nov 29, 2019
7372a30
feat: add selector difference
apegam-pv Dec 2, 2019
67e5b0e
fix: fix typo in log message
apegam-pv Dec 2, 2019
701c7e0
fix(archetype): update to new base class
apegam-pv Dec 6, 2019
4122c4a
fix(archetype): clean up JAR plugin configuration to avoid install fail
apegam-pv Dec 6, 2019
f0edca8
fix(core): remove unused logger from context
apegam-pv Dec 9, 2019
4fbba03
feat(sampling): make Jsoup robust against certificate errors
apegam-pv Dec 9, 2019
984872a
build(deps): bump netty-all from 4.1.39.Final to 4.1.42.Final in /parent
dependabot[bot] Dec 9, 2019
5c2528a
fix(sampling): set context type directly instead of default
apegam-pv Dec 9, 2019
69faecd
Merge branch 'develop' of https://github.com/wcm-io-qa/wcm-io-qa-gale…
apegam-pv Dec 9, 2019
d724bf1
feat(providers): add method to check current media query
apegam-pv Dec 16, 2019
85eeacf
fix(deps): exclude commons exec dependency
apegam-pv Dec 17, 2019
5c2e74e
fix(galen): use include tags for parsing and running
apegam-pv Dec 17, 2019
5d63927
docs: add newline
apegam-pv Dec 17, 2019
0dc100e
fix(verification): add check whether verification is failing on timeout
apegam-pv Dec 18, 2019
c216f97
fix(galen): remove persistent tags from spec
apegam-pv Dec 18, 2019
363bc69
docs(integration): skip javadoc by default
apegam-pv Dec 30, 2019
b8c62a0
docs(changes): configure aggregated changes report
apegam-pv Dec 30, 2019
8acd263
feat(reporting): refine Allure integration
apegam-pv Dec 30, 2019
2d8da83
docs(changes): fix changes and javadoc report configuration
apegam-pv Dec 30, 2019
93dcef2
docs(build): switch to UI tests as badge module
apegam-pv Dec 30, 2019
f7f8738
fix(examples): add missing version number to examples root
apegam-pv Dec 30, 2019
417cd8a
docs(sampler): add description to javadoc
apegam-pv Dec 30, 2019
85ce76b
docs(integration): add aggregated javadoc to reports of integration
apegam-pv Dec 30, 2019
69450e1
docs(integration): add URL to integrate with Galenium instead of tooling
apegam-pv Dec 30, 2019
7f6e123
docs(integration): fix module prefix for site
apegam-pv Dec 30, 2019
fbf9a7a
fix(build): declare version in management of parent POM
apegam-pv Dec 30, 2019
7f5fac5
build(deps): bump dependencies to latest release versions
apegam-pv Dec 30, 2019
7f2f20b
docs(specs): skip javadoc on generated code
apegam-pv Dec 30, 2019
f32bf88
docs(changes): prepare changes for release
apegam-pv Dec 30, 2019
1703f1f
refactor(build): unhook examples from module structure
apegam-pv Dec 30, 2019
24d9af7
[jgitflow-maven-plugin] updating poms for 4.0.0 branch with snapshot …
apegam-pv Dec 30, 2019
7f7430b
[jgitflow-maven-plugin] updating poms for branch'release/4.0.0' with …
apegam-pv Dec 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ npm-debug.log
*.swp
example-project/chromedriver.log
*.log
.allure
bin/
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v1.0.0
hooks:
- id: commitlint
stages: [commit-msg]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<img src="https://wcm.io/images/[email protected]"/> Selenium Galen Integration
==========================
[![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)
[![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)

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.

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


[documentation]: https://qa.wcm.io/galenium/

35 changes: 35 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 72],
'body-max-line-length': [2, 'always', 80],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
]
]
}
};
7 changes: 2 additions & 5 deletions examples/baseline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@
<parent>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.integration</artifactId>
<version>3.0.0</version>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../../integration</relativePath>
</parent>

<name>Galenium Example Baseline</name>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.examples.baseline</artifactId>
<packaging>pom</packaging>
<version>3.0.0</version>
<description>Test automation example baseline.</description>

<properties>
Expand All @@ -46,12 +44,11 @@
<dependency>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.examples.samples</artifactId>
<version>3.0.0</version>
<version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>


<build>
<plugins>

Expand Down
27 changes: 27 additions & 0 deletions examples/baseline/src/changes/changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
wcm.io
%%
Copyright (C) 2017 wcm.io
%%
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#L%
-->
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/changes/1.0.0"
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

</body>
</document>
10 changes: 5 additions & 5 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
limitations under the License.
#L%
-->

<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">
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -28,10 +29,9 @@
</parent>

<name>Galenium Examples</name>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.examples</artifactId>
<version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<version>3.0.0</version>
<description>Test automation examples.</description>

<properties>
Expand Down Expand Up @@ -63,5 +63,5 @@
</distributionManagement>
</profile>
</profiles>

</project>
17 changes: 9 additions & 8 deletions examples/samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@
limitations under the License.
#L%
-->
<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">
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.integration</artifactId>
<version>3.0.0</version>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../../integration</relativePath>
</parent>

<name>Galenium Example Samples</name>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.examples.samples</artifactId>
<packaging>jar</packaging>
<version>3.0.0</version>
<version>4.0.0-SNAPSHOT</version>
<description>Test automation example samples.</description>

<properties>
Expand All @@ -43,7 +44,7 @@
<dependency>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.examples.tests</artifactId>
<version>3.0.0</version>
<version>4.0.0-SNAPSHOT</version>
<type>pom</type>
</dependency>

Expand All @@ -64,13 +65,13 @@
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resources>
<resource>
<directory>${galenium.sampling.root}</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
27 changes: 27 additions & 0 deletions examples/samples/src/changes/changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
wcm.io
%%
Copyright (C) 2017 wcm.io
%%
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#L%
-->
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/changes/1.0.0"
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

</body>
</document>
54 changes: 54 additions & 0 deletions examples/scripts/maven-call.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

echo "initializing maven args functions";

function addProfile() {
addArg "-P${1}";
}

function addTests() {
for TEST in $@;
do
addTest "${TEST}";
done
}

function addTest() {
if [ -z "${MRW_TESTS}" ];
then
MRW_TESTS="${1}";
else
MRW_TESTS="${MRW_TESTS},${1}";
fi
}

function addGoal() {
MAVEN_GOALS="${MAVEN_GOALS} ${1}";
}

function addDef() {
addArg "-D${1}";
}

function addArg() {
MRW_MAVEN_ARGS="${MRW_MAVEN_ARGS} ${1}";
}

echo "Checking local settings at: '${LOCAL_SETTINGS}'";
if [ -f "${LOCAL_SETTINGS}" ];
then
echo "using local settings";
source "${LOCAL_SETTINGS}";
else
echo "no local settings found";
fi

MRW_MAVEN_CALL="mvn ${MAVEN_GOALS}";
MRW_MAVEN_CALL="${MRW_MAVEN_CALL} ${MRW_MAVEN_ARGS}";
if [ -n "${MRW_TESTS}" ];
then
MRW_MAVEN_CALL="${MRW_MAVEN_CALL} -Dit.test=${MRW_TESTS} ${@}";
fi

echo "Calling: '${MRW_MAVEN_CALL}'";
${MRW_MAVEN_CALL};
9 changes: 4 additions & 5 deletions examples/specs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@
limitations under the License.
#L%
-->

<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">
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.integration.specs</artifactId>
<version>3.0.0</version>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../../integration/specs</relativePath>
</parent>

<name>Galenium Example Specs</name>
<groupId>io.wcm.qa</groupId>
<artifactId>io.wcm.qa.galenium.examples.specs</artifactId>
<packaging>jar</packaging>
<version>3.0.0</version>
<description>Test automation example Galen specs.</description>

<properties>
Expand Down
27 changes: 27 additions & 0 deletions examples/specs/src/changes/changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
wcm.io
%%
Copyright (C) 2017 wcm.io
%%
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#L%
-->
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/changes/1.0.0"
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

</body>
</document>
1 change: 0 additions & 1 deletion examples/specs/src/main/resources/galen/specs/common.gspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
site-header header.header-site
navigation nav#nav-main
link-* ul.navlist > li > a
link-to-conference li > a[href$="conference.html"]
link-to-homepage li > a[href$="en.html"]
menu-opener a.menu-opener
footer footer.footer-site
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
@on mobile
page.navigation.link-*:
absent
page.navigation.link-to-conference:
absent
page.navigation.link-to-homepage:
absent

Expand Down
4 changes: 1 addition & 3 deletions examples/specs/src/main/resources/galen/specs/homepage.gspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
@on mobile
page.navigation.link-*:
absent
page.navigation.link-to-conference:
absent
page.navigation.link-to-homepage:
absent

Expand All @@ -36,7 +34,7 @@
below page.navigation
below page.site-header
article:
above page.footer
above page.footer
teaserbar:
above page.footer ~ 0px
= Containment =
Expand Down
Loading