Selenium script examples using Yeti with Qunit for CrossBrowserTesting.com
Tests are ran using Yeti http://yeti.cx
In this example, the javascript unit testing uses QUnit http://qunitjs.com
Yeti can also run unit testing with Jasmine, Mocha, and YUI
-
Install Yeti with NPM:
npm install -g yeti -
Start a Yeti Server:
yeti --server -
Enable Local Connection with CrossBrowserTesting.com using the cbttunnel.jar to allow CrossBrowserTesting.com to connect to your Yeti Server
java -jar bin/cbttunnel.jar -authkey <API_KEY> -
Pass Capabilities to Yeti:
yeti -wd-url "http://<USERNAME>:<API_KEY>@hub.crossbrowsertesting.com:80/wd/hub" -caps "browser_api_name=IE10;os_api_name=Win7x64-C2;screen_resolution=1024x768;" sample.html
to run multiple browsers in parallel, pass multiple capabilities:
yeti -wd-url "http://<USERNAME>:<API_KEY>@hub.crossbrowsertesting.com:80/wd/hub" -caps "browser_api_name=IE10;os_api_name=Win7x64-C2;screen_resolution=1024x768;" -caps "browser_api_name=Chrome44;os_api_name=Win8.1;screen_resolution=1024x768;" sample.html
There is a known issue with the Yeti server running on an IPv6 address.
The workaround for the issue is in the "fixes" directory