PHPUnit
PHPUnit TYPO3 extension
 All Classes Namespaces Functions
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Tx_Phpunit_Selenium_TestCase Class Reference
Inheritance diagram for Tx_Phpunit_Selenium_TestCase:

Public Member Functions

 __construct ($name=NULL, array $data=array(), $dataName= '', Tx_Phpunit_Interface_ExtensionSettingsService $extensionSettingsService=NULL)
 

Public Attributes

const DEFAULT_SELENIUM_HOST = 'localhost'
 
const DEFAULT_SELENIUM_PORT = 4444
 
const DEFAULT_SELENIUM_BROWSER = '*chrome'
 
const DEFAULT_SELENIUM_BROWSER_URL = '/'
 

Protected Member Functions

 runTest ()
 
 isSeleniumServerRunning ()
 
 getSeleniumHost ()
 
 getSeleniumPort ()
 
 getSeleniumBrowser ()
 
 getSeleniumBrowserUrl ()
 

Protected Attributes

 $extensionSettingsService = NULL
 

Constructor & Destructor Documentation

Tx_Phpunit_Selenium_TestCase::__construct (   $name = NULL,
array  $data = array(),
  $dataName = '',
Tx_Phpunit_Interface_ExtensionSettingsService  $extensionSettingsService = NULL 
)

The constructor.

Parameters
string$name
array$data
string$dataName
Tx_Phpunit_Interface_ExtensionSettingsService$extensionSettingsServicethe extension settings service to use

Member Function Documentation

Tx_Phpunit_Selenium_TestCase::getSeleniumBrowser ( )
protected

Returns the configured browser that should run the Selenium tests.

This functions returns Firefox in chrome mode if no browser is configured.

Returns
string Selenium RC browser, will not be empty
Tx_Phpunit_Selenium_TestCase::getSeleniumBrowserUrl ( )
protected

Returns the configured Selenium RC browser starting URL.

This functions returns the TYPO3_SITE_URL if no URL is configured.

Returns
string Selenium RC Browser URL, will not be empty
Tx_Phpunit_Selenium_TestCase::getSeleniumHost ( )
protected

Returns the configured host name of the Selenium RC server.

This function returns "localhost" if no host is configured.

Returns
string host of the Selenium RC server, will not be empty
Tx_Phpunit_Selenium_TestCase::getSeleniumPort ( )
protected

Returns the configured port number of the Selenium RC server.

This functions returns 4444 (the standard Selenium RC port) if no port is is configured

Returns
integer the Selenium RC server port, will be > 0
Tx_Phpunit_Selenium_TestCase::isSeleniumServerRunning ( )
protected

Tests if the Selenium RC server is running.

Returns
boolean TRUE if the server is reachable by opening a socket, FALSE otherwise
Tx_Phpunit_Selenium_TestCase::runTest ( )
protected

Runs the test if the Selenium RC Server is reachable.

If the server is not reachable, the tests will be marked as skipped, and a message will be displayed giving a hint on which host/port the client was looking for the Selenium server.

See Also
PHPUnit_Extensions_SeleniumTestCase::runTest()
Returns
void

The documentation for this class was generated from the following file: