-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build robotframework * Build firefox geckodriver * robot framework run test inside docker network
- Loading branch information
1 parent
9e8ba1c
commit 1cec69d
Showing
20 changed files
with
400 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest) | ||
os=$(uname -s) | ||
arch=$(uname -m) | ||
if [ $os = "Linux" ] ; then | ||
case "$arch" in | ||
i386 | i486 | i786 | x86) | ||
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux32"))') | ||
;; | ||
x86_64 | x86-64 | x64 | amd64) | ||
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64"))') | ||
;; | ||
xscale | arm | armv61 | armv71 | armv81 | aarch64) | ||
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("arm7hf"))') | ||
;; | ||
*) | ||
echo Architecture not supported: $arch | ||
exit 1 | ||
;; | ||
esac | ||
elif [ $os = "Darwin" ] ; then | ||
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("macos"))') | ||
fi | ||
|
||
if [ -z $url ] ; then | ||
echo OS not supported: $os | ||
exit 1 | ||
fi | ||
|
||
echo $url | ||
|
||
curl -s -L "$url" | tar -xz | ||
chmod +x geckodriver | ||
mv geckodriver /usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pwd | ||
yarn --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
 | ||
  | ||
|
||
# sample play scala | ||
# Get started | ||
``` | ||
./help.sh up | ||
``` | ||
|
||
# Cucumber | ||
- Generate json report | ||
``` | ||
yarn cucumber -f json:report/report.json --publish | ||
yarn cucumber --tags="@friday" -f json:report/friday.json | ||
yarn cucumber --tags="@puppeteer" -f json:report/puppeteer.json | ||
``` | ||
- Share report | ||
``` | ||
yarn cucumber -f json:report/report.json --publish | ||
``` | ||
|
||
# Puppeteer | ||
``` | ||
yarn cucumber --tags="@puppeteer" -f json:report/puppeteer.json | ||
``` | ||
|
||
# Robotframework | ||
``` | ||
python3 robotframework/login/server.py | ||
pip3 install -r requirements.txt | ||
robot robotframework/login_tests | ||
``` | ||
|
||
# Reference | ||
https://github.com/buildkite/docker-puppeteer | ||
https://github.com/mlampedx/cucumber-puppeteer-example | ||
https://hub.docker.com/repository/docker/lecaoquochung/scala/builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.