SST also supports running tests through a Selenium [RC] server, which amongst other things allows for running your tests in the cloud through SauceLabs’ ‘OnDemand’ service. A special command-line script (sst-remote) is provided for this.
To give it a try, register for a free account at http://saucelabs.com and get your API key, then just like above, run the example tests by simply providing the url for SauceLabs’ server on the command line, replacing your username and password on the url below:
$ ./sst-remote -d examples -u http://<your-user>:<your-api-key>@ondemand.saucelabs.com:80/wd/hub
If you want to use a local Selenium RC server instead, get the ‘selenium-server-standalone-<version>.jar’ file from ‘http://code.google.com/p/selenium/downloads/list‘ and fire up a server with:
$ java -jar selenium-server-standalone-<version>.jar
Then in another terminal run ‘sst-remote’ with:
$ ./sst-remote -d examples -u http://127.0.0.1:4444/wd/hub
sst-remote <options> [testname]
| -h, --help | show this help message and exit |
| -d DIR_NAME | directory of test case files |
| -r REPORT_FORMAT | |
| results report format (html, xml, console) | |
| -b BROWSER_TYPE | |
| select webdriver (Firefox, Chrome, InternetExplorer, etc) | |
| -j | disable javascript in browser |
| -m SHARED_MODULES | |
| directory for shared modules | |
| -q | output less debugging info during test run |
| -s | save screenshots on failures |
| --failfast | stop test execution after first failure |
| --debug | drop into debugger on test fail or error |
| -p BROWSER_PLATFORM | |
| desired platform (XP, VISTA, LINUX, etc), when using a remote Selenium RC | |
| -v BROWSER_VERSION | |
| desired browser version, when using a remote Selenium | |
| -n SESSION_NAME | |
| identifier for this test run session, when using a remote Selenium RC | |
| -u WEBDRIVER_REMOTE_URL | |
| url to WebDriver endpoint (eg: http://host:port/wd/hub), when using a remote Selenium RC | |