Skip to content
Commit 043c63aa authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Set "wd_host" using the simulated "selenium.server" variable



The "wd_host" parameter of Selenium2 sessions specify the URL used by
the Selenium driver to connect with the Selenium server. Thus, when the
Selenium server is at a different host or port than the default one (for
example, when run on Drone) the "wd_host" parameter must be set for each
of the Selenium2 sessions defined in "behat.yml".

Before, this was done by the "run-local.sh" script in the acceptance
tests of the server by extending the parameters from the "behat.yml"
file, but this prevented adding custom Selenium2 sessions in the
acceptance tests of apps (as "run-local.sh" had to know about those
sessions). To address that limitation now "run-local.sh" replaces the
simulated %selenium.server% variable by the appropriate value in the
"behat.yml" file used by the acceptance tests before Behat is run, and
thus the "wd_host" parameter must be explicitly included in all
Selenium2 sessions.

Note that the file that is modified is the one inside the Docker
container used to run the acceptance tests, so the original file is not
touched.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent e960150e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment