Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Selenium is used for functional and acceptance testing for COmanage Registry.  The instructions below are for creating and running test suites with Selenium IDE plugin for Firefox.  These tests will form the basis of automated tests using Selenium Webdriver (future)Mink to drive the tests - http://mink.behat.org/en/latest/.

Prerequisites

  • Firefox and Selenium IDE Plugin:

  • Four test users must exist with the ability to authenticate; user ids in the tests are

    • cmp-admin

    • co-admin

    • cou-admin

    • co-user

  • Test users use the password “comanage”

  • These tests assume the ability to authenticate using HTTP basic auth.  It is no longer possible to automatically login using the http://user:pass@domain.com pattern in later versions of Firefox (versions 30+).  So, prior to running the tests:

    • Authenticate as the user for the appropriate test suite (e.g. cmp-admin for CmpAdminTestSuite)

    • Then click “logout”

    • You can now run the tests from the start through login.  Because basic auth will stick around, you can emulate the experience of authenticating without having to do it again. (There are better solutions for this when using Webdriver via the API – see Mink.)

    • If authentication is not possible using this method, authenticate and run the test suite from the first test case post-login.

...