Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
97ebfe07
Commit
97ebfe07
authored
May 11, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
May 11, 2018
Browse files
Merge "Bug 1768685: upgrade selenium and chromedriver" into 17.04_STABLE
parents
5a46cdaf
28f99904
Changes
3
Hide whitespace changes
Inline
Side-by-side
external/composer.json
View file @
97ebfe07
{
"require"
:
{
"php"
:
">=5.3.3"
,
"behat/behat"
:
"
v
3.1.0"
,
"behat/mink"
:
"
v
1.7.1"
,
"behat/behat"
:
"
>=
3.1.0"
,
"behat/mink"
:
"
>=
1.7.1"
,
"behat/mink-extension"
:
"
v
2.2"
,
"behat/mink-extension"
:
"
>=
2.2"
,
"behat/mink-goutte-driver"
:
"
v
1.2.1"
,
"behat/mink-selenium2-driver"
:
"
v
1.3.1"
,
"fabpot/goutte"
:
"
v
3.1.2"
,
"guzzlehttp/guzzle"
:
"6.2.1"
,
"behat/mink-goutte-driver"
:
"
>=
1.2.1"
,
"behat/mink-selenium2-driver"
:
"
>=
1.3.1"
,
"fabpot/goutte"
:
"
>=
3.1.2"
,
"guzzlehttp/guzzle"
:
"
>=
6.2.1"
,
"phpunit/phpunit"
:
"3.7.38"
"phpunit/phpunit"
:
"
>=
3.7.38"
},
"autoload"
:
{
...
...
test/behat/chromedriver-2.3
5
-linux64
→
test/behat/chromedriver-2.3
8
-linux64
View file @
97ebfe07
No preview for this file type
test/behat/mahara_behat.sh
View file @
97ebfe07
...
...
@@ -26,7 +26,11 @@ function is_selenium_running {
function
cleanup
{
echo
"Shutdown Selenium"
curl
-o
/dev/null
--silent
http://localhost:
${
SELENIUM_PORT
}
/selenium-server/driver/?cmd
=
shutDownSeleniumServer
# we cant kill it this way anymore as the option has been removed
# curl -o /dev/null --silent http://localhost:${SELENIUM_PORT}/selenium-server/driver/?cmd=shutDownSeleniumServer
# so find the process running on the prot and kill it
lsof
-t
-i
:
${
SELENIUM_PORT
}
| xargs
kill
if
[[
$SERVER
]]
then
...
...
@@ -98,13 +102,13 @@ then
else
echo
"Start Selenium..."
SELENIUM_VERSION_MAJOR
=
2.53
SELENIUM_VERSION_MINOR
=
1
SELENIUM_VERSION_MAJOR
=
3.11
SELENIUM_VERSION_MINOR
=
0
SELENIUM_FILENAME
=
selenium-server-standalone-
$SELENIUM_VERSION_MAJOR
.
$SELENIUM_VERSION_MINOR
.jar
SELENIUM_PATH
=
./test/behat/
$SELENIUM_FILENAME
# @todo make this more flexible, cross-platform?
CHROMEDRIVER_PATH
=
./test/behat/chromedriver-2.3
5
-linux64
CHROMEDRIVER_PATH
=
./test/behat/chromedriver-2.3
8
-linux64
# If no Selenium installed, download it
if
[
!
-f
$SELENIUM_PATH
]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment