Configurable cross browser functional / acceptance test launcher (using Webdriver)
kommando is a configurable cross browser functional / acceptance test launcher (using Webdriver).
For each test launch you can configure a test-runner that should be used to execute tests (currently jasmine-node, mocha) or cucumber and you can tell which Webdriver JS lib should be used to create a Webdriver client session (e.g. selenium-webdriver, leadfoot, wd or cabbie) per browser. The configured Webdriver client session then gets injected into the test runner execution context and can then be used there.
>= 1.7if you want to use iOS-Driver)
npm install appium -g)
npm install kommando -g
Kommando provides a REPL runner which you can use to play with an individual Webdriver library.
# REPL with selenium-webdriver library and phantomjskommando --runner repl# REPL with selenium-webdriver library and chromekommando --runner repl --browser chrome# REPL with leadfootkommando --runner repl --browser chrome --client leadfoot# REPL with cabbiekommando --runner repl --browser chrome --client cabbie# REPL with wdkommando --runner repl --browser chrome --client wd# REPL with wd-promisekommando --runner repl --browser chrome --client wd-promise
// mytest.js (using jasmine syntax);
You can invoke kommando either via command-line:
# this will execute your test using PhantomJS (default)kommando mytest.js
or via Node.js:
// also executing tests using PhantomJSvar kommando = ;;
Executing test in Chrome, Firefox and PhantomJS using CLI:
kommando -b chrome -b firefox -b phantomjs mytest.js
or via Node.js:
var kommando = ;;