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 | 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')
--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)
-h,--help show this message.
- Java 6 or later.
- Apache Maven 2.x or later.
- Add --set-spped option. It is same as setSpeed(ms) command first.
- Fix issue #76.
- Update Selenium version to 2.37.1.
- 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.