Class SeleniumTestCase

Description

Provides test case wrapper to a Selenium remote control instance.

Located in /extensions/selenium.php (line 21)

SimpleTestCase
   |
   --UnitTestCase
      |
      --SeleniumTestCase
Variable Summary
 mixed $browser
 mixed $browserUrl
 mixed $host
 mixed $port
 mixed $selenium
 mixed $timeout
Method Summary
 SeleniumTestCase __construct ([ $name = 'Selenium Test Case'])
 void setUp ()
 void tearDown ()
 void verifyText ( $text)
 void verifyTextNotPresent ( $text)
 void verifyTextPresent ( $text)
 void verifyTitle ( $pattern)
 void verifyValue ( $selector,  $value)
 void __call ( $method,  $arguments)
Variables
mixed $browser = '' (line 26)

Selenium instantiation variables

  • access: protected
mixed $browserUrl = '' (line 27)

Selenium instantiation variables

  • access: protected
mixed $host = 'localhost' (line 28)

Selenium instantiation variables

  • access: protected
mixed $newInstanceEachTest = true (line 34)
  • access: protected
mixed $port = '4444' (line 29)

Selenium instantiation variables

  • access: protected
mixed $selenium = null (line 33)
  • access: protected
mixed $timeout = 30000 (line 30)

Selenium instantiation variables

  • access: protected

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$reporter
Methods
Constructor __construct (line 36)
  • access: public
SeleniumTestCase __construct ([ $name = 'Selenium Test Case'])
  • $name

Redefinition of:
UnitTestCase::__construct()
Creates an empty test case. Should be subclassed with test methods for a functional test case.
setUp (line 50)
  • access: public
void setUp ()

Redefinition of:
SimpleTestCase::setUp()
Sets up unit test wide variables at the start of each test method. To be overridden in actual user test cases.
tearDown (line 65)
  • access: public
void tearDown ()

Redefinition of:
SimpleTestCase::tearDown()
Clears the data set in the setUp() method call.
verifyText (line 91)
  • access: public
void verifyText ( $text)
  • $text
verifyTextNotPresent (line 111)
  • access: public
void verifyTextNotPresent ( $text)
  • $text
verifyTextPresent (line 101)
  • access: public
void verifyTextPresent ( $text)
  • $text
verifyTitle (line 132)
  • access: public
void verifyTitle ( $pattern)
  • $pattern
verifyValue (line 121)
  • access: public
void verifyValue ( $selector,  $value)
  • $selector
  • $value
__call (line 74)
  • access: public
void __call ( $method,  $arguments)
  • $method
  • $arguments

Inherited Methods

Inherited From UnitTestCase

 UnitTestCase::__construct()
 UnitTestCase::assertClone()
 UnitTestCase::assertCopy()
 UnitTestCase::assertEqual()
 UnitTestCase::assertFalse()
 UnitTestCase::assertIdentical()
 UnitTestCase::assertIsA()
 UnitTestCase::assertNoPattern()
 UnitTestCase::assertNotA()
 UnitTestCase::assertNotEqual()
 UnitTestCase::assertNotIdentical()
 UnitTestCase::assertNotNull()
 UnitTestCase::assertNull()
 UnitTestCase::assertOutsideMargin()
 UnitTestCase::assertPattern()
 UnitTestCase::assertReference()
 UnitTestCase::assertSame()
 UnitTestCase::assertTrue()
 UnitTestCase::assertWithinMargin()
 UnitTestCase::coerceExpectation()
 UnitTestCase::expectError()
 UnitTestCase::expectException()
 UnitTestCase::ignoreException()

Inherited From SimpleTestCase

 SimpleTestCase::__construct()
 SimpleTestCase::after()
 SimpleTestCase::assert()
 SimpleTestCase::before()
 SimpleTestCase::createInvoker()
 SimpleTestCase::dump()
 SimpleTestCase::error()
 SimpleTestCase::exception()
 SimpleTestCase::fail()
 SimpleTestCase::getAssertionLine()
 SimpleTestCase::getLabel()
 SimpleTestCase::getSize()
 SimpleTestCase::getTests()
 SimpleTestCase::isTest()
 SimpleTestCase::pass()
 SimpleTestCase::run()
 SimpleTestCase::setUp()
 SimpleTestCase::shouldSkip()
 SimpleTestCase::signal()
 SimpleTestCase::skip()
 SimpleTestCase::skipIf()
 SimpleTestCase::skipUnless()
 SimpleTestCase::tearDown()
 SimpleTestCase::tell()

Documentation generated on Sun, 31 Oct 2010 16:32:21 -0500 by phpDocumentor 1.4.3