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

java.lang.Object
  extended by org.aludratest.service.gui.web.selenium.SeleniumWrapperConfiguration

public final class SeleniumWrapperConfiguration
extends Object

Configuration object for Selenium 1 and 2 services. Note that some properties are for Selenium 2 only.

Author:
Marcel Malitz, Joerg Langnickel, Volker Bergmann, falbrech

Constructor Summary
SeleniumWrapperConfiguration(Preferences configuration)
          Creates a new typed configuration object for the given Preferences object
 
Method Summary
 String getBrowser()
          Browser which will be used for testing.
 String[] getBrowserArguments()
          Returns the (possibly empty) list of additional arguments to pass to the Browser.
 String getBrowserLogLevel()
          Returns the browser log level.
 boolean getCloseTestappAfterExecution()
          Indicates if the application under test shall be closed after test execution.
 String getDriverName()
          Returns the web driver name for Selenium 2, and throws a ConfigurationException if it is not set.
 boolean getHighlightCommands()
          Indicates if commands shall be highlighted in GUI before performing them.
 String getIdentificationPrefix()
          This value specifies the default prefix of an ID locator.
 String getIdentificationSuffix()
          It is nearly the same as getIdentificationPrefix() with the difference that it is a suffix.
 int getMinProxyPort()
          This property is only used for Selenium 2, and only has effect if the local proxy flag is set to true.
 String getPageSourceAttachmentExtension()
           
 int getPauseBetweenRetries()
          If execution of a action fails the program has to pause until it retries to execute this action again.
 String getScreenshotAttachmentExtension()
           
 String getSpeed()
          Speed in milliseconds.
 int getTaskCompletionTimeout()
          Returns the maximum time the framework waits for an activity to finish.
 int getTaskPollingInterval()
          Returns the polling interval for tasks, in milliseconds.
 int getTaskStartTimeout()
          Returns the time the framework waits for an activity to start.
 int getTimeout()
          Timeout in milliseconds after which a test step stops retrying doing a action.
 String getUrlOfAut()
          URL of the application under test.
 URL getUrlOfAutAsUrl()
           
 boolean isUsingLocalProxy()
          Returns, for Selenium 2, if a local proxy server shall be used.
 boolean isUsingRemoteDriver()
          Returns, for Selenium 2, if a remote driver shall be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeleniumWrapperConfiguration

public SeleniumWrapperConfiguration(Preferences configuration)
Creates a new typed configuration object for the given Preferences object

Parameters:
configuration - Preferences object containing required configuration.
Method Detail

getBrowser

public String getBrowser()
Browser which will be used for testing.

Returns:
Browser which will be used for testing.

getUrlOfAut

public String getUrlOfAut()
URL of the application under test.

Returns:
URL of the application under test.

getTimeout

public int getTimeout()
Timeout in milliseconds after which a test step stops retrying doing a action.

Returns:
Timeout in milliseconds after which a test step stops retrying doing a action.

getSpeed

public String getSpeed()
Speed in milliseconds. What means that between each Selenium command Selenium waits x milliseconds where x is the speed.

Returns:
Speed in milliseconds.

getCloseTestappAfterExecution

public boolean getCloseTestappAfterExecution()
Indicates if the application under test shall be closed after test execution.

Returns:
true if the application under test shall be closed after test execution.

getBrowserLogLevel

public String getBrowserLogLevel()
Returns the browser log level.

Returns:
The browser log level.

getHighlightCommands

public boolean getHighlightCommands()
Indicates if commands shall be highlighted in GUI before performing them.

Returns:
true if commands shall be highlighted in GUI before performing them.

getPauseBetweenRetries

public int getPauseBetweenRetries()
If execution of a action fails the program has to pause until it retries to execute this action again. This value specifies how long the program will pause in milliseconds.

Returns:
How long program will pause between retries, in milliseconds.

getIdentificationPrefix

public String getIdentificationPrefix()
This value specifies the default prefix of an ID locator. With the help of this prefix Selenium can be influenced how it locates elements. Selenium provides several mechanisms for that like regular expressions etc.

Returns:
The default prefix of an ID locator.

getIdentificationSuffix

public String getIdentificationSuffix()
It is nearly the same as getIdentificationPrefix() with the difference that it is a suffix.

Returns:
The default suffix of an ID locator.

getScreenshotAttachmentExtension

public String getScreenshotAttachmentExtension()

getPageSourceAttachmentExtension

public String getPageSourceAttachmentExtension()

getTaskStartTimeout

public int getTaskStartTimeout()
Returns the time the framework waits for an activity to start.

Returns:
the time the framework waits for an activity to start.

getTaskCompletionTimeout

public int getTaskCompletionTimeout()
Returns the maximum time the framework waits for an activity to finish.

Returns:
the maximum time the framework waits for an activity to finish.

getTaskPollingInterval

public int getTaskPollingInterval()
Returns the polling interval for tasks, in milliseconds.

Returns:
The polling interval for tasks, in milliseconds.

getUrlOfAutAsUrl

public URL getUrlOfAutAsUrl()
Returns:
the URL of the application under test as URL object.

isUsingLocalProxy

public boolean isUsingLocalProxy()
Returns, for Selenium 2, if a local proxy server shall be used.

Returns:
if a local proxy server shall be used, enabling additional HTTP features, false otherwise.

getMinProxyPort

public int getMinProxyPort()
This property is only used for Selenium 2, and only has effect if the local proxy flag is set to true.

Returns:
the lowest port number to use for the authenticating proxy as defined in the 'proxy.port.min' setting of the configuration file, or a default of 19600 if undefined.

getDriverName

public String getDriverName()
Returns the web driver name for Selenium 2, and throws a ConfigurationException if it is not set. This is why this method should not be called from Selenium 1.

Returns:
The web driver name for Selenium 2.

getBrowserArguments

public String[] getBrowserArguments()
Returns the (possibly empty) list of additional arguments to pass to the Browser. Only used for Selenium 2, and only supported by CHROME driver.

Returns:
(possibly empty) list of additional arguments to pass to the Browser.

isUsingRemoteDriver

public boolean isUsingRemoteDriver()
Returns, for Selenium 2, if a remote driver shall be used.

Returns:
true if a remote driver shall be used, false otherwise.


Copyright © 2015 aludratest.org. All rights reserved.