Confirmed users
3,727
edits
| Line 415: | Line 415: | ||
* The automation tests can be found in the following directory: | * The automation tests can be found in the following directory: | ||
** browserid/automation-tests/scripts | ** browserid/automation-tests/scripts | ||
* The main script will start up a local instance of FireFox (or whatever browser is chosen) to run the client-based automated tests. | |||
* Basic instructions | * Basic instructions | ||
| Line 423: | Line 424: | ||
java -jar selenium-server-standalone-2.31.0.jar | java -jar selenium-server-standalone-2.31.0.jar | ||
** Open another terminal to run the automated tests | ** Open another terminal to run the automated tests | ||
cd browserid/automation-tests/scripts | |||
./run-all.js --help | |||
will give you the current list of all automation commands | |||
./run-all.js --list-platforms | |||
will give you the current list of all supported platforms | |||
(this list can be manually updated to match the supported OS/browser combinations you want to test) | |||
Edit the following file to change/update this list: | |||
browserid/automation-tests/config/sauce-platforms.js | |||
By default, the automation tests only run against the FireFox browser (any current version on any current OS) without the use of a special browser driver. | |||
See the following site for more information on downloading drivers to support other browsers: | |||
http://docs.seleniumhq.org/download/ | |||
./run-all.js --list-tests | |||
will give you the current list of all automated tests than can be run singly or together | |||
* Examples | |||
One test, one browser, locally: | |||
./run-all.js --local --platform=osx_firefox_14 --tests change-password-test | |||
./run-all.js --local --platform=linux_firefox_16 --tests change-password-test | |||
./run-all.js --local --platform=linux_firefox_16 --tests change-password-test | |||
All tests, one browser, locally: | |||
./run-all.js --local --platform=osx_firefox_14 --tests sign-in-test | |||
* Notes: | |||
** The tests will create a significant amount of information that can be seen in the STDOUT/STDERR of the stand-alone server. Therefore, it might be helpful to redirect both to a log file. | |||
* For more information, see the following links: | * For more information, see the following links: | ||