summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-07-20 17:37:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-29 09:53:32 +0100
commit05f82e8f127c52a261218d8f88db5e0bdac3b248 (patch)
treed2551fbc2ffe8c26e5c6b56cbc266b4f4afcefdf /bitbake/lib/toaster/tests
parent2a849e7e9be6040bd76b76c24263f63f8f693753 (diff)
downloadpoky-05f82e8f127c52a261218d8f88db5e0bdac3b248.tar.gz
bitbake: toaster-tests: define capabilities for latest Firefox driver
For the latest Firefox versions, WebDriver requires a download of a separate binary and an additional capability to be defined on it. Modify our tests so that when "marionette" is set as the browser, this capability is defined on the Firefox driver. Also add a note to the README about the additional installation steps required. (Bitbake rev: f6011d986f9a573a39e7b98af0aefe6cc88461ad) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests')
-rw-r--r--bitbake/lib/toaster/tests/browser/README19
1 files changed, 17 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/tests/browser/README b/bitbake/lib/toaster/tests/browser/README
index f57154eda9..969f06cfc2 100644
--- a/bitbake/lib/toaster/tests/browser/README
+++ b/bitbake/lib/toaster/tests/browser/README
@@ -24,15 +24,30 @@ To run tests against PhantomJS (headless):
24* On *nix systems, put phantomjs on PATH 24* On *nix systems, put phantomjs on PATH
25* Not tested on Windows 25* Not tested on Windows
26 26
27Firefox should work without requiring additional software to be installed. 27To run tests against Firefox, you may need to install the Marionette driver,
28depending on how new your version of Firefox is. One clue that you need to do
29this is if you see an exception like:
28 30
29The test case will instantiate a Selenium driver set by the 31 selenium.common.exceptions.WebDriverException: Message: The browser
32 appears to have exited before we could connect. If you specified
33 a log_file in the FirefoxBinary constructor, check it for details.
34
35See https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
36for installation instructions. Ensure that the Marionette executable (renamed
37as wires on Linux or wires.exe on Windows) is on your PATH; and use "marionette"
38as the browser string passed via TOASTER_TESTS_BROWSER (see below).
39
40(Note: The Toaster tests have been checked against Firefox 47 with the
41Marionette driver.)
42
43The test cases will instantiate a Selenium driver set by the
30TOASTER_TESTS_BROWSER environment variable, or Chrome if this is not specified. 44TOASTER_TESTS_BROWSER environment variable, or Chrome if this is not specified.
31 45
32Available drivers: 46Available drivers:
33 47
34* chrome (default) 48* chrome (default)
35* firefox 49* firefox
50* marionette (for newer Firefoxes)
36* ie 51* ie
37* phantomjs 52* phantomjs
38 53