This is selenese script interpreter implemented by Java.
It supports test-case and test-suite which are Selenium IDE's native format.
- Run test-case and test-suite generated by Selenium IDE from command line.
- Support commands of Selenium IDE: Flow Control. https://github.com/davehunt/selenium-ide-flowcontrol
- Log URL/title/Cookies at all commands.
- Take screenshots at all commands. (optional)
- Override base URL.
- Override directory of screenshot path.
- Generate JUnit XML result.
- Generate HTML result.
java -jar selenese-runner.jar <option> ... <test-case|test-suite> ...
-d,--driver <driver> firefox (default) | chrome | ie | safari | htmlunit | phantomjs | remote | appium | FQCN-of-WebDriverFactory
-p,--profile <name> profile name (Firefox only)
-P,--profile-dir <dir> profile directory (Firefox only)
--proxy <proxy> proxy host and port (HOST:PORT) (excepting IE)
--proxy-user <user> proxy username (HtmlUnit only *)
--proxy-password <password> proxy password (HtmlUnit only *)
--no-proxy <no-proxy> no-proxy hosts
--remote-url <url> Remote test runner URL (Remote only)
--remote-platform <platform> Desired remote platform (Remote only)
--remote-browser <browser> Desired remote browser (Remote only)
--remote-version <browser-version> Desired remote browser version (Remote only)
-H,--highlight highlight locator always.
-s,--screenshot-dir <dir> override captureEntirePageScreenshot directory.
-S,--screenshot-all <dir> take screenshot at all commands to specified directory.
--screenshot-on-fail <dir> take screenshot on fail commands to specified directory.
--ignore-screenshot-command ignore captureEntirePageScreenshot command.
-b,--baseurl <baseURL> override base URL set in selenese.
--chromedriver <path> path to 'chromedriver' binary. (implies '--driver chrome')
--iedriver <path> path to 'IEDriverServer' binary. (implies '--driver ie')
--phantomjs <path> path to 'phantomjs' binary. (implies '--driver phantomjs')
--xml-result <dir> output XML JUnit results to specified directory.
--html-result <dir> output HTML results to specified directory.
-t,--timeout <timeout> set timeout (ms) for waiting. (default: 30000 ms)
--set-speed <speed> same as executing setSpeed(ms) command first.
--height <height> browser height (only phantomjs)
--width <width> browser width (only phantomjs)
-D,--define <key=value> define parameters for capabilities. (multiple)
-h,--help show this message.
- Java 6 or later.
- Apache Maven 2.x or later.
- Remove default logging command line option for phantomjs from GhostDriver because it depends on user.dir system property.
- Fix issue #96.
- The option '-D/--define' accepts not only 'key=value' bu 'key+=value'.
- PrintStream object for logging is changed to the instance variable of Runner from static variable.
- Fix issues #92, #93, #94.
- Add ${KEY_*} variables. (see: http://blog.reallysimplethoughts.com/2013/09/25/using-special-keys-in-selenium-ide-part-2/ )
- Add new option '-D/--define' for setting capabilities of WebDriver.
- Fix issues #87, #90, #91.
- Update Selenium version to 2.39.0.
- Update dependency versions.
- Add --set-spped option. It is same as setSpeed(ms) command first.
- Add Appium support. (by yec)
- Fix issues #76, #77, #78, #82, #85.
- Update Selenium version to 2.38.0.
- Fix issue #75.
- Revive test-suites in test-suites.
- Update HTML result generator for the above feature.
- Add HTML result generator.
- Too many internal changes.
- Sorry, I was not recording changes...
- Install Apache Maven.
- clone this repository
- run build script
mvn -P package
That will create the selenese-runner.jar file within the 'target' directory.
The Apache License, Version 2.0.
see "LICENSE" file.