Skip to content

testedquality/selenese-runner-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

649 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.
  • Generate JUnit XML result.
  • Generate HTML result.

Usage

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.

Requirements

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

Relase Note

1.3.6

  • Remove default logging command line option for phantomjs from GhostDriver because it depends on user.dir system property.

1.3.5

  • Fix issue #96.

1.3.4

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

1.3.3

1.3.2

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

1.3.1

  • Fix issue #75.

1.3.0

  • Revive test-suites in test-suites.
  • Update HTML result generator for the above feature.

1.2.0

  • Add HTML result generator.
  • Too many internal changes.

1.0.0 - 1.1.5

  • Sorry, I was not recording changes...

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

 
 
 

Contributors