~matsubara/juju-gui/tarmac-test

« back to all changes in this revision

Viewing changes to docs/continuous-integration.rst

  • Committer: Francesco Banconi
  • Date: 2013-05-16 13:51:46 UTC
  • mfrom: (646.3.12 sandbox-selenium)
  • Revision ID: francesco.banconi@canonical.com-20130516135146-b5i104aavgnrl75c
Introduced sandbox tests.

CI machinery now includes a way to change charm options.
A test has been added exercising charm deployment in
sandbox mode.

The web driver is now instantiated for each test case
(rather than once for all the suite). This way a test 
run is slightly slower, but more reliable, especially
when using the Firefox driver.

Fixed a Firefox error introduced by new initial 
placement of deployed services: for some reason
Selenium/Firefox was unable to retrieve the text
content (i.e. the service name) if the service box node
is not visible to the user. Solved zooming out before 
checking for service names: not horrible, since this 
way the newly deployed services can also be seen on 
the Saucelabs videos.

Also added a new JUJU_GUI_TEST_BROWSERS: specifying 
"local", a local Firefox driver is used in place of the 
remote Saucelabs one. This can be useful, e.g. when 
debugging.

R=teknico, gary.poster
CC=
https://codereview.appspot.com/9443043

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
  bin/test-charm
41
41
  JUJU_GUI_TEST_BROWSERS: "chrome firefox ie" {String} The browsers to run the
42
 
  test suite on.
 
42
  test suite on.  Tests are run remotely using Saucelabs by default.  If you
 
43
  want to use a local web driver (Firefox) instead, set JUJU_GUI_TEST_BROWSERS
 
44
  to local, e.g. ``JUJU_GUI_TEST_BROWSERS=local bin/test-charm``.
43
45
  FAIL_FAST: 0 {Integer} Set to 1 to exit when first browser returns a failure
44
46
  rather than completing all of the tests.
45
47