Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit fd617b4

Browse files
committed
Breaking change! New default: USE_SELENIUM=3
1 parent 171999a commit fd617b4

22 files changed

+11
-443
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ script:
4545
- travis_retry ./test/script_scenario_restart
4646
- travis_retry ./test/script_scenario_node_dies
4747
- travis_retry ./test/script_scenario_make
48-
- travis_retry ./test/script_scenario_compose_1_1
4948
- travis_retry ./test/script_scenario_compose_N_N
5049

5150
# cleanup though doesn't seem to be necessary in Travis infra

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Note image ids also change after scm-source.json has being updated which trigger
1111
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/4af973351e7d418b67e3...master (TBD_DATE)
1212
+ Upgrade Chrome major from 57 to 58.0.3029.81
1313
+ Add node capability: tz=Europe/Berlin / custom value
14+
+ Breaking change! New default: USE_SELENIUM="3"
15+
+ Deprecate Selenium IDE RC tests
1416
+ **Image tag details:**
1517
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
1618
+ Selenium 3: TBD_SELENIUM_3_VERSION (TBD_SELENIUM_3_REVISION)

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ For pull requests or local commits:
55

66
time (./test/bef && ./test/install && ./test/script_start && ./test/script_end)
77
docker exec grid versions && ./test/after_script && travis lint
8-
open ./images/grid2_console.png && open ./images/grid3_console.png && open ./videos/mobile_emulation/*.mp4
9-
git checkout ./images/grid2_console.png && git checkout ./images/grid3_console.png
8+
open ./images/grid3_console.png && open ./videos/mobile_emulation/*.mp4
9+
git checkout ./images/grid3_console.png scm-source.json
1010
git checkout -b tmp-`cat VERSION`
1111
#git add ... git commit ... git push ... open pull request
1212

1313
For repository owners only:
1414

15-
git commit -m "Upgrade Chrome major from 57 to 58.0.3029.81"
15+
git commit -m "Breaking change! New default: USE_SELENIUM=3"
1616
git tag -d latest; git tag -d `cat VERSION`; git push origin :`cat VERSION`; git tag `cat VERSION` && git push --force origin tmp-`cat VERSION` && git push --tags
1717

1818
-- Wait for Travis to pass OK

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ ENV DEFAULT_SELENIUM_HUB_PORT="24444" \
793793
# GA_API_VERSION
794794
# All Google Analytics related, see LICENSE.md & Analytics.md for more info
795795
ENV FIREFOX_VERSION="${FF_VER}" \
796-
USE_SELENIUM="2" \
796+
USE_SELENIUM="3" \
797797
CHROME_FLAVOR="stable" \
798798
PICK_ALL_RANDOM_PORTS="false" \
799799
RANDOM_PORT_FROM="23100" \

capabilities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
{
99
"BROWSER_NAME": "firefox",
10-
"VERSION": "47.0.1",
10+
"VERSION": "52.0.2",
1111
"PLATFORM": "LINUX"
1212
}
1313
]

test/after_script

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
docker exec grid stop || true
55
docker stop grid || true
66
docker rm grid || true
7-
docker rm -vf grid2 || true
8-
docker rm -vf grid3 || true
97
# quick destroy
108
docker rm -vf grid_mock || true

test/script_archive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "#=================="
77
echo "# Archive artifacts"
88
echo "#=================="
99
# pending to upload to S3 bucket
10-
docker cp grid:/test/console.png ./images/grid2_console.png
10+
docker cp grid:/test/console.png ./images/grid3_console.png
1111
ls -la ./images/
1212
mkdir -p ./videos
1313
docker cp grid:/test/videos/chrome ./videos/

test/script_push

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ git_diff_add_commit() {
195195
git status
196196
git add CHANGELOG.md
197197
git add capabilities.json
198-
git add images/grid2_console.png
199198
git add images/grid3_console.png
200199
git commit -m "${TRAVIS_TAG}: Update image id, digest & png [ci skip]"
201200
git --no-pager log -n3
@@ -236,9 +235,6 @@ git_push_tag_push() {
236235
########
237236
# Main #
238237
########
239-
# docker cp grid:/capabilities.json .
240-
# docker cp grid:/capabilities2.json .
241-
# docker cp grid3:/capabilities3.json .
242238
if [ "${TRAVIS_PULL_REQUEST}" == "true" ]; then
243239
echo "This is a pull request so no docker push."
244240
elif [ "${DOCKER_PUSH}" != "true" ]; then

test/script_scenario_basic

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ docker tag selenium:latest elgalu/selenium:latest
1515

1616
# Ensure clean env
1717
docker rm -vf grid || true
18-
docker rm -vf grid2 || true
19-
docker rm -vf grid3 || true
20-
docker rm -vf gridrc || true
2118
# Some dummy log files
2219
rm -rf **/*"conflicted copy"*.log
2320

@@ -82,79 +79,6 @@ if ! docker exec -t grid run_test; then
8279
fi
8380

8481
docker exec grid errors || true
85-
86-
echo "#==================================================================="
87-
echo "# Scenario 1c [basic]: Test Selenium 3"
88-
echo "#==================================================================="
89-
90-
docker run --name=grid3 -d -e VIDEO=true \
91-
-e MOCK_SERVER_HOST="d.host.loc.dev" \
92-
-e MOCK_SERVER_PORT \
93-
-e USE_SELENIUM="3" \
94-
-e CI \
95-
-e VIDEO_CONVERSION_MAX_WAIT="40s" \
96-
--shm-size=1g \
97-
selenium
98-
99-
sleep ${ADDED_TEST_SLEEP} && docker logs grid3
100-
docker exec grid3 wait_all_done 70s
101-
docker exec grid3 versions
102-
docker exec grid3 errors || true
103-
docker logs grid3
104-
docker exec -t grid3 run_test
105-
docker exec grid3 errors || true
106-
docker cp grid3:/test/console.png ./images/grid3_console.png
107-
108-
# Separate capabilities2.json from capabilities3.json
82+
docker cp grid:/test/console.png ./images/grid3_console.png
10983
docker cp grid:/capabilities.json .
110-
docker cp grid:/capabilities2.json .
111-
docker cp grid3:/capabilities3.json .
112-
113-
# cleanup (not yet because we need to extract the capabilities)
114-
# docker stop grid3 || true
115-
# docker rm grid3 || true
116-
117-
echo "#==================================================================="
118-
echo "# Scenario 1d [basic]: Selenium IDE RC and mount videos"
119-
echo "#==================================================================="
120-
121-
rm -rf ./videos/mounted
122-
mkdir -p ./videos/mounted
123-
docker run --name=gridrc -d -e VIDEO=true \
124-
-e MOCK_SERVER_HOST="d.host.loc.dev" \
125-
-e MOCK_SERVER_PORT \
126-
-e CI \
127-
-e VIDEO_CONVERSION_MAX_WAIT="40s" \
128-
-e USE_SELENIUM="2" \
129-
-e CHROME=true -e FIREFOX=true \
130-
-e RC_CHROME=true -e RC_FIREFOX=true \
131-
-e VIDEO_FILE_NAME=sele_ide \
132-
-e HOST_GID=$(id -g) -e HOST_UID=$(id -u) \
133-
--shm-size=1g \
134-
-p 4444:24444 \
135-
-v ${PWD}/videos/mounted:/home/seluser/videos \
136-
selenium
137-
138-
sleep ${ADDED_TEST_SLEEP} && docker logs gridrc
139-
docker exec gridrc wait_all_done 70s
140-
docker exec gridrc versions
141-
docker exec gridrc errors || true
142-
docker logs gridrc
143-
144-
# Run tests
145-
cd test/seleIDE
146-
gem install bundler -v=1.13.2
147-
bundle install
148-
RUBYOPT=W0 bundle exec ./seleIDE *.rb
149-
150-
docker exec gridrc stop-video
151-
docker exec gridrc errors || true
152-
cd ../..
153-
mkdir -p ./videos/rc
154-
docker cp gridrc:/videos/sele_ide.mp4 ./videos/rc/
155-
ls -la ./videos/rc/sele_ide.mp4
156-
ls -la ./videos/mounted/sele_ide.mp4
157-
158-
# cleanup
159-
docker stop gridrc || true
160-
docker rm gridrc || true
84+
docker cp grid:/capabilities3.json .

test/script_scenario_compose_1_1

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

0 commit comments

Comments
 (0)