org.jboss.test.selenium
Class SystemProperties

java.lang.Object
  extended by org.jboss.test.selenium.SystemProperties

public final class SystemProperties
extends Object

Exposing of test system properties.

Version:
$Revision$
Author:
Lukas Fryc

Nested Class Summary
static class SystemProperties.SeleniumTimeoutType
          Type of selenium timeout
 
Method Summary
static Browser getBrowser()
          Returns current browser implementation used in tests.
static URL getContextPath()
          Returns context path, the URL for application context incl.
static URL getContextRoot()
          Returns context root, the root URL for server instance.
static File getMavenProjectBuildDirectory()
          Returns current maven project build (target) directory.
static File getMavenResourcesDir()
          Returns current maven resources dir, such as images, XMLs, etc.
static String getSeleniumHost()
          Returns the host of Selenium Server
static int getSeleniumPort()
          Returns the port for Selenium Server
static int getSeleniumSpeed()
          Returns the speed of performing selenium commands
static long getSeleniumTimeout(SystemProperties.SeleniumTimeoutType type)
          Returns the predefined timeout for given type.
static boolean isSeleniumDebug()
          Returns if Selenium test is in debug mode
static boolean isSeleniumMaximize()
          Returns whenever should browser window be maximized after start.
static boolean isSeleniumNetworkTrafficEnabled()
          Returns if the network traffic should be captured during the selenium session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContextRoot

public static URL getContextRoot()
Returns context root, the root URL for server instance.

Returns:
context root, the root URL for server instance.

getContextPath

public static URL getContextPath()
Returns context path, the URL for application context incl. context root (getContextRoot().

Returns:
context path, the URL for application context incl. context root (getContextRoot().

getBrowser

public static Browser getBrowser()
Returns current browser implementation used in tests.

Returns:
current browser implementation used in tests.

getMavenResourcesDir

public static File getMavenResourcesDir()
Returns current maven resources dir, such as images, XMLs, etc.

Returns:
current maven resources dir, such as images, XMLs, etc.

getMavenProjectBuildDirectory

public static File getMavenProjectBuildDirectory()
Returns current maven project build (target) directory.

Returns:
current maven project build (target) directory.

getSeleniumHost

public static String getSeleniumHost()
Returns the host of Selenium Server

Returns:
the host of Selenium Server

getSeleniumPort

public static int getSeleniumPort()
Returns the port for Selenium Server

Returns:
the port for Selenium Server

isSeleniumMaximize

public static boolean isSeleniumMaximize()
Returns whenever should browser window be maximized after start.

Returns:
whenever should browser window be maximized after start

isSeleniumDebug

public static boolean isSeleniumDebug()
Returns if Selenium test is in debug mode

Returns:
if Selenium test is in debug mode

getSeleniumSpeed

public static int getSeleniumSpeed()
Returns the speed of performing selenium commands

Returns:
the speed of performing selenium commands

isSeleniumNetworkTrafficEnabled

public static boolean isSeleniumNetworkTrafficEnabled()
Returns if the network traffic should be captured during the selenium session.

Returns:
if the network traffic should be captured during the selenium session.

getSeleniumTimeout

public static long getSeleniumTimeout(SystemProperties.SeleniumTimeoutType type)
Returns the predefined timeout for given type.

Parameters:
type - the type of timeout (SystemProperties.SeleniumTimeoutType)
Returns:
the predefined timeout for given type.


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.