public class

RunStyleSelenium

extends RunStyle
java.lang.Object
   ↳ com.google.gwt.junit.RunStyle
     ↳ com.google.gwt.junit.RunStyleSelenium

Class Overview

Runs via browsers managed by Selenium.

Summary

Nested Classes
interface RunStyleSelenium.SeleniumWrapper Wraps a Selenium instance. 
[Expand]
Inherited Fields
From class com.google.gwt.junit.RunStyle
Public Constructors
RunStyleSelenium(JUnitShell shell)
Public Methods
String[] getInterruptedHosts()
Tests whether the test was interrupted.
int initialize(String args)
Initialize the runstyle with any supplied arguments, and return the number of clients this runstyle controls.
void launchModule(String moduleName)
Requests initial launch of the browser.
Protected Methods
RunStyleSelenium.SeleniumWrapper createSeleniumWrapper(String seleniumSpecifier)
void start()
Create the keep-alive thread.
[Expand]
Inherited Methods
From class com.google.gwt.junit.RunStyle
From class java.lang.Object

Public Constructors

public RunStyleSelenium (JUnitShell shell)

Public Methods

public String[] getInterruptedHosts ()

Tests whether the test was interrupted.

Returns
  • the interrupted hosts, or null if not interrupted

public int initialize (String args)

Initialize the runstyle with any supplied arguments, and return the number of clients this runstyle controls.

Parameters
args arguments passed in -runStyle option, null if none supplied
Returns
  • the number of clients, or -1 if initialization was unsuccessful

public void launchModule (String moduleName)

Requests initial launch of the browser. This should only be called once per instance of RunStyle.

Parameters
moduleName the module to run
Throws
UnableToCompleteException

Protected Methods

protected RunStyleSelenium.SeleniumWrapper createSeleniumWrapper (String seleniumSpecifier)

Parameters
seleniumSpecifier Specifies the Selenium instance to create
Returns

protected void start ()

Create the keep-alive thread.