org.aludratest.service.gui.web.selenium
Class AbstractSeleniumService

java.lang.Object
  extended by org.aludratest.service.AbstractAludraService
      extended by org.aludratest.service.AbstractConfigurableAludraService
          extended by org.aludratest.service.gui.web.selenium.AbstractSeleniumService
All Implemented Interfaces:
Closeable, Configurable, AludraCloseable, AludraService, AludraGUI, AludraWebGUI
Direct Known Subclasses:
AludraSelenium1, AludraSelenium2

public abstract class AbstractSeleniumService
extends AbstractConfigurableAludraService
implements AludraWebGUI

Common base class for Selenium based implementations of the AludraWebGUI interface.

Author:
falbrech

Field Summary
protected  SeleniumWrapperConfiguration configuration
           
 
Fields inherited from class org.aludratest.service.AbstractAludraService
aludraServiceContext
 
Constructor Summary
AbstractSeleniumService()
           
 
Method Summary
 void configure(Preferences preferences)
          Called by the framework to let a configurable object configure itself according to the passed Preferences object.
 GUIComponentFactory getComponentFactory()
          Returns a factory which can be used to create GUI components for this service.
 String getPropertiesBaseName()
          Returns the base name for properties files for this configurable, e.g.
 
Methods inherited from class org.aludratest.service.AbstractConfigurableAludraService
fillDefaults, getDefaultsResourceName
 
Methods inherited from class org.aludratest.service.AbstractAludraService
getInstanceName, init, initService, setSystemConnector, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.aludratest.service.gui.web.AludraWebGUI
check, perform, verify
 
Methods inherited from interface org.aludratest.service.AludraService
getDescription, getInstanceName, init, setSystemConnector
 
Methods inherited from interface org.aludratest.service.AludraCloseable
close
 

Field Detail

configuration

protected SeleniumWrapperConfiguration configuration
Constructor Detail

AbstractSeleniumService

public AbstractSeleniumService()
Method Detail

getPropertiesBaseName

public final String getPropertiesBaseName()
Description copied from interface: Configurable
Returns the base name for properties files for this configurable, e.g. "aludratest" if the properties files are named "aludratest.properties", or "fileService" for "fileService.properties".

Specified by:
getPropertiesBaseName in interface Configurable
Returns:
The base name for properties files for this configurable, never null.

configure

public final void configure(Preferences preferences)
Description copied from interface: Configurable
Called by the framework to let a configurable object configure itself according to the passed Preferences object. The object is allowed to store the passed Preferences reference and query it for configuration parameters when needed. It is also OK to extract all required parameters in this method.
In any case, this method should check the configuration for validness and throw an AutomationException when the configuration is invalid.

Specified by:
configure in interface Configurable
Parameters:
preferences - Configuration object for this configurable.

getComponentFactory

public GUIComponentFactory getComponentFactory()
Description copied from interface: AludraGUI
Returns a factory which can be used to create GUI components for this service.

Specified by:
getComponentFactory in interface AludraGUI
Returns:
A factory which can be used to create GUI components for this service, never null.


Copyright © 2015 aludratest.org. All rights reserved.