schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00474
Experimental Selenium testing machinery
Hey guys,
If you're anxious to try out the Selenium tests, check out
https://code.launchpad.net/~justas-pov/schooltool/selenium
There's only one test, schooltool/app/browser/stests/app.txt, it's a
proof-of concept with a lot of rough edges.
To set up your testrunner, you'll need to modify buildout.cfg
depending on browser you want to test with:
Firefox (Ubuntu)
-------------------------
buildout.cfg, add to [test]:
selenium.default = firefox
selenium.firefox = default
run tests
Iceweasel (Debian)
-------------------------
buildout.cfg, add to [test]:
selenium.default = iceweasel
selenium.iceweasel.web_driver = firefox
selenium.iceweasel.binary = "/usr/bin/iceweasel"
OR
selenium.default = firefox
selenium.firefox.binary = "/usr/bin/iceweasel"
run tests
HTML unit (non-browser)
--------------------------------------
Download selenium-server-standalone-2.6.0.jar
http://code.google.com/p/selenium/downloads/list
buildout.cfg, add to [test]:
selenium.default = html_unit
selenium.html_unit.web_driver = remote
selenium.html_unit.capabilities = HTMLUNITWITHJS
Manually run your server:
$ java -jar selenium-server-standalone-2.6.0.jar
run tests
Chromium (Linux)
----------------------------
Download chromedriver for linux from
http://code.google.com/p/chromium/downloads/list and put the binary
somewhere (mine is /usr/bin/chromedriver)
buildout.cfg, add to [test]:
selenium.default = linux_chrome
selenium.linux_chrome.binary = "/path/to/chromedriver"
selenium.linux_chrome.capabilities.chrome.binary =
"/usr/lib/chromium-browser/chromium-browser"
run tests
Cheers,
Justas
Follow ups