Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 263f252

Browse files
committed
Updated dependencies
JavalibCore to 2.0.3, keywords modified accordingly Replace Travis with Github Actions Release 4.0.0-alpha-4.0
1 parent 8e279a6 commit 263f252

File tree

21 files changed

+322
-460
lines changed

21 files changed

+322
-460
lines changed

.github/workflows/maven.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build_and_test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
11+
java-version: [ 8 ]
12+
browser: ['jbrowser', 'googlechromeheadless', 'firefoxheadless'] # 'htmlunitwithjs' not working with Selenium4
13+
include:
14+
- os: ubuntu-latest
15+
set_display: export DISPLAY=:99; Xvfb :99 -screen 0 1024x768x24 -ac -noreset & sleep 3
16+
install_dependencies: sudo apt-get -y -q install xvfb zip curl
17+
- os: windows-latest
18+
install_dependencies: choco install firefox googlechrome curl zip -y --no-progress
19+
- os: macos-latest
20+
install_dependencies: |
21+
brew cask install firefox
22+
brew cask install google-chrome
23+
brew install zip
24+
brew install curl
25+
26+
runs-on: ${{ matrix.os }}
27+
name: Test on ${{ matrix.os }} with Java ${{ matrix.java-version }} using browser ${{ matrix.browser }}
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Set up JDK ${{ matrix.java-version }}
31+
uses: actions/[email protected]
32+
with:
33+
java-version: ${{ matrix.java-version }}
34+
java-package: jdk+fx # needed for jbrowser
35+
- name: Set up other dependencies
36+
run: |
37+
${{ matrix.install_dependencies }}
38+
${{ matrix.set_display }}
39+
- name: Build with Maven
40+
run: mvn -B verify --file pom.xml -P 'build,${{ matrix.browser }}'
41+
- name: Delete output.xml (on Win)
42+
run: |
43+
Get-ChildItem target/robotframework-reports -Include *output.xml -Recurse | Remove-Item
44+
echo "::set-env name=REPORT_FILE::$(Get-ChildItem target/robotframework-reports -Include *report.html -Recurse -Name)"
45+
if: always() && runner.os == 'Windows'
46+
47+
- name: Delete output.xml (on Unix-like)
48+
run: |
49+
find target/robotframework-reports -type f -name '*output.xml' -exec rm {} +
50+
echo "::set-env name=REPORT_FILE::$(find target/robotframework-reports -type f -name '*report.html' | sed 's#.*/##')"
51+
if: always() && runner.os != 'Windows'
52+
53+
- name: Archive acceptances test results
54+
uses: actions/[email protected]
55+
with:
56+
name: at-results-${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.java-version }}
57+
path: target/robotframework-reports
58+
if: always() && job.status == 'failure'
59+
60+
- name: Upload results
61+
run: |
62+
echo '<html><head><meta http-equiv = "refresh" content =" 0 ; url = /${{ env.REPORT_FILE }}"></head></html>' > target/robotframework-reports/index.html
63+
zip -r -j site.zip target/robotframework-reports > no_output 2>&1
64+
curl -s -H "Content-Type: application/zip" -H "Authorization: Bearer ${{ secrets.NETLIFY_TOKEN }}" --data-binary "@site.zip" https://api.netlify.com/api/v1/sites > response.json
65+
echo "::set-env name=REPORT_URL::$(cat response.json|python -c "import sys, json; print('https://' + json.load(sys.stdin)['subdomain'] + '.netlify.com')")"
66+
echo "::set-env name=JOB_STATUS::$(python -c "print('${{ job.status }}'.lower())")"
67+
if: always() && job.status == 'failure'
68+
69+
- uses: octokit/request-action@57ec46afcc4c58c813af3afe67e57ced1ea9f165
70+
name: Update status with Github Status API
71+
id: update_status
72+
with:
73+
route: POST /repos/:repository/statuses/:sha
74+
repository: ${{ github.repository }}
75+
sha: ${{ github.sha }}
76+
state: "${{env.JOB_STATUS}}"
77+
target_url: "${{env.REPORT_URL}}"
78+
description: "Link to test report."
79+
context: at-results-${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.java-version }}
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
if: always() && job.status == 'failure'
83+
84+
release:
85+
needs: [build_and_test]
86+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/selenium4' || startsWith(github.ref, 'refs/tags/')
87+
runs-on: ubuntu-latest
88+
name: Release package
89+
steps:
90+
- uses: actions/checkout@v2
91+
- name: Set up JDK
92+
uses: actions/[email protected]
93+
with:
94+
java-version: 8
95+
- name: Release Maven package
96+
uses: samuelmeuli/action-maven-publish@1221d1fa792cab948a772c5e7c1f3abe84aec3bf
97+
with:
98+
gpg_private_key: ${{ secrets.gpg_private_key }}
99+
gpg_passphrase: ${{ secrets.gpg_passphrase }}
100+
nexus_username: ${{ secrets.nexus_username }}
101+
nexus_password: ${{ secrets.nexus_password }}
102+
maven_args: -DskipTests

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
# IDEs
12
.project
23
.settings
34
.classpath
5+
.idea
6+
.vscode
7+
*.iml
8+
9+
# App specifics
410
target
511
webdriver
612
/libspecs/

.m2/jvm.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-Dorg.slf4j.simpleLogger.log.com.gargoylesoftware.htmlunit.DefaultCssErrorHandler=error
2+
-Dorg.slf4j.simpleLogger.log.com.gargoylesoftware.htmlunit.html.InputElementFactory=warn
3+
-Dorg.slf4j.simpleLogger.log.com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl=error

.travis.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.travis/deploy.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

.travis/settings.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.travis/setup_xvfb.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ your pom.xml:
2525
</dependency>
2626

2727
If you cannot use the robotframework-maven-plugin you can use the
28-
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/2.53.1.1/robotframework-seleniumlibrary-2.53.1.1-jar-with-dependencies.jar),
28+
[jar-with-dependencies](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/2.53.1.1/robotframework-seleniumlibrary-2.53.1.1-jar-with-dependencies.jar),
2929
which contains all required libraries.
3030

3131
* More information about this library can be found in the
32-
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/2.53.1.1/robotframework-seleniumlibrary-2.53.1.1.html).
32+
[Keyword Documentation](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/2.53.1.1/robotframework-seleniumlibrary-2.53.1.1.html).
3333
* For keyword completion in RIDE you can download this
34-
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/2.53.1.1/robotframework-seleniumlibrary-2.53.1.1.xml)
34+
[Library Specs](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/2.53.1.1/robotframework-seleniumlibrary-2.53.1.1.xml)
3535
and place it in your PYTHONPATH.
3636

3737

@@ -50,13 +50,13 @@ your pom.xml:
5050
</dependency>
5151

5252
If you cannot use the robotframework-maven-plugin you can use the
53-
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653-jar-with-dependencies.jar),
53+
[jar-with-dependencies](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653-jar-with-dependencies.jar),
5454
which contains all required libraries. Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-3.141.59.2653-jar-with-dependencies.jar <test location>`.
5555

5656
* More information about this library can be found in the
57-
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653.html).
57+
[Keyword Documentation](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653.html).
5858
* For keyword completion in RIDE you can download this
59-
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653.xml)
59+
[Library Specs](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653.xml)
6060
and place it in your PYTHONPATH.
6161

6262
Usage, Selenium 4 (WIP)
@@ -67,20 +67,20 @@ use this library by adding the following dependency to
6767
your pom.xml:
6868

6969
<dependency>
70-
<groupId>com.github.hi-fi</groupId>
70+
<groupId>com.github.marketsquare</groupId>
7171
<artifactId>robotframework-seleniumlibrary</artifactId>
72-
<version>4.0.0-alpha-2.0</version>
72+
<version>4.0.0-alpha-2.1</version>
7373
<scope>test</scope>
7474
</dependency>
7575

7676
If you cannot use the robotframework-maven-plugin you can use the
77-
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-2.0/robotframework-seleniumlibrary-4.0.0-alpha-2.0-jar-with-dependencies.jar),
78-
which contains all required libraries except ios/android ones (Appium and Selendroid). Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-4.0.0-alpha-2.0-jar-with-dependencies.jar <test location>`.
77+
[jar-with-dependencies](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.0.0-alpha-2.1/robotframework-seleniumlibrary-4.0.0-alpha-2.1-jar-with-dependencies.jar),
78+
which contains all required libraries except ios/android ones (Appium and Selendroid). Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-4.0.0-alpha-2.1-jar-with-dependencies.jar <test location>`.
7979

8080
* More information about this library can be found in the
81-
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-2.0/robotframework-seleniumlibrary-4.0.0-alpha-2.0.html).
81+
[Keyword Documentation](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.0.0-alpha-2.1/robotframework-seleniumlibrary-4.0.0-alpha-2.1.html).
8282
* For keyword completion in RIDE you can download this
83-
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-2.0/robotframework-seleniumlibrary-4.0.0-alpha-2.0.xml)
83+
[Library Specs](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.0.0-alpha-2.1/robotframework-seleniumlibrary-4.0.0-alpha-2.1.xml)
8484
and place it in your PYTHONPATH.
8585

8686
Testing IOS/Android browsers with library

0 commit comments

Comments
 (0)