Skip to content

nzpost/selenese-runner-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenese Runner Java

This is selenese script interpreter implemented by Java.

It supports test-case and test-suite which are Selenium IDE's native format.

Features

  • 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.

Usage

java -jar selenese-runner.jar <option> ... <test-case|test-suite> ...

 -d,--driver <driver>             firefox (default) | chrome | ie | safari | htmlunit | phantomjs | 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
 -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.
 -t,--timeout <timeout>           set timeout (ms) for waiting. (default: 30000 ms)
 -h,--help                        show this message.

Requirements

  • Java 6 or later.
  • Apache Maven 2.x or later.

Building the Application

  • Install Apache Maven.
  • clone this repository
  • run build script mvn -P package

That will create the selenese-runner.jar file within the 'target' directory.

License

The Apache License, Version 2.0.

see "LICENSE" file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%