Class SeleneseTestCase

Description

SeleneseTestCase

Integrate selenese html test suite support (can be generated by selenium-IDE)

Located in /extensions/selenese_tester.php (line 32)

SimpleTestCase
   |
   --UnitTestCase
      |
      --SeleneseTestCase
Variable Summary
 mixed $html
 mixed $logMessages
 mixed $selenium
 mixed $testFile
 mixed $_commandMap
Method Summary
 SeleneseTestCase __construct (string $browser, string $url)
 void assertFunction (string $function, string $param1, string $param2)
 void launch ([ $html = ""], string $testFile, string $filename)
 void launchFile (string $testFile)
 void launchPhpFile (string $file)
 void parse ()
 void tidy ()
Variables
mixed $html (line 34)
mixed $logMessages (line 37)
mixed $parsed_table (line 36)
mixed $selenium (line 33)
mixed $testFile (line 35)
mixed $_commandMap = array("verify",
"verifyErrorOnNext",
"verifyNotErrorOnNext",
"verifyFailureOnNext",
"verifyNotFailureOnNext",
"verifySelected",
"verifyNotSelected",
"verifyAlert",
"verifyNotAlert",
"verifyAllButtons",
"verifyNotAllButtons",
"verifyAllFields",
"verifyNotAllFields",
"verifyAllLinks",
"verifyNotAllLinks",
"verifyAllWindowIds",
"verifyNotAllWindowIds",
"verifyAllWindowNames",
"verifyNotAllWindowNames",
"verifyAllWindowTitles",
"verifyNotAllWindowTitles",
"verifyAttribute",
"verifyNotAttribute",
"verifyAttributeFromAllWindows",
"verifyNotAttributeFromAllWindows",
"verifyBodyText",
"verifyNotBodyText",
"verifyConfirmation",
"verifyNotConfirmation",
"verifyCookie",
"verifyNotCookie",
"verifyCursorPosition",
"verifyNotCursorPosition",
"verifyElementHeight",
"verifyNotElementHeight",
"verifyElementIndex",
"verifyNotElementIndex",
"verifyElementPositionLeft",
"verifyNotElementPositionLeft",
"verifyElementPositionTop",
"verifyNotElementPositionTop",
"verifyElementWidth",
"verifyNotElementWidth",
"verifyEval",
"verifyNotEval",
"verifyExpression",
"verifyNotExpression",
"verifyHtmlSource",
"verifyNotHtmlSource",
"verifyLocation",
"verifyNotLocation",
"verifyLogMessages",
"verifyNotLogMessages",
"verifyMouseSpeed",
"verifyNotMouseSpeed",
"verifyPrompt",
"verifyNotPrompt",
"verifySelectedId",
"verifyNotSelectedId",
"verifySelectedIds",
"verifyNotSelectedIds",
"verifySelectedIndex",
"verifyNotSelectedIndex",
"verifySelectedIndexes",
"verifyNotSelectedIndexes",
"verifySelectedLabel",
"verifyNotSelectedLabel",
"verifySelectedLabels",
"verifyNotSelectedLabels",
"verifySelectedValue",
"verifyNotSelectedValue",
"verifySelectedValues",
"verifyNotSelectedValues",
"verifySelectOptions",
"verifyNotSelectOptions",
"verifyTable",
"verifyNotTable",
"verifyText",
"verifyNotText",
"verifyTitle",
"verifyNotTitle",
"verifyValue",
"verifyNotValue",
"verifyWhetherThisFrameMatchFrameExpression",
"verifyNotWhetherThisFrameMatchFrameExpression",
"verifyWhetherThisWindowMatchWindowExpression",
"verifyNotWhetherThisWindowMatchWindowExpression",
"verifyAlertPresent",
"verifyAlertNotPresent",
"verifyChecked",
"verifyNotChecked",
"verifyConfirmationPresent",
"verifyConfirmationNotPresent",
"verifyEditable",
"verifyNotEditable",
"verifyElementPresent",
"verifyElementNotPresent",
"verifyOrdered",
"verifyNotOrdered",
"verifyPromptPresent",
"verifyPromptNotPresent",
"verifySomethingSelected",
"verifyNotSomethingSelected",
"verifyTextPresent",
"verifyTextNotPresent",
"verifyVisible",
"verifyNotVisible",
"assert",
"assertErrorOnNext",
"assertNotErrorOnNext",
"assertFailureOnNext",
"assertNotFailureOnNext",
"assertSelected",
"assertNotSelected",
"assertAlert",
"assertNotAlert",
"assertAllButtons",
"assertNotAllButtons",
"assertAllFields",
"assertNotAllFields",
"assertAllLinks",
"assertNotAllLinks",
"assertAllWindowIds",
"assertNotAllWindowIds",
"assertAllWindowNames",
"assertNotAllWindowNames",
"assertAllWindowTitles",
"assertNotAllWindowTitles",
"assertAttribute",
"assertNotAttribute",
"assertAttributeFromAllWindows",
"assertNotAttributeFromAllWindows",
"assertBodyText",
"assertNotBodyText",
"assertConfirmation",
"assertNotConfirmation",
"assertCookie",
"assertNotCookie",
"assertCursorPosition",
"assertNotCursorPosition",
"assertElementHeight",
"assertNotElementHeight",
"assertElementIndex",
"assertNotElementIndex",
"assertElementPositionLeft",
"assertNotElementPositionLeft",
"assertElementPositionTop",
"assertNotElementPositionTop",
"assertElementWidth",
"assertNotElementWidth",
"assertEval",
"assertNotEval",
"assertExpression",
"assertNotExpression",
"assertHtmlSource",
"assertNotHtmlSource",
"assertLocation",
"assertNotLocation",
"assertLogMessages",
"assertNotLogMessages",
"assertMouseSpeed",
"assertNotMouseSpeed",
"assertPrompt",
"assertNotPrompt",
"assertSelectedId",
"assertNotSelectedId",
"assertSelectedIds",
"assertNotSelectedIds",
"assertSelectedIndex",
"assertNotSelectedIndex",
"assertSelectedIndexes",
"assertNotSelectedIndexes",
"assertSelectedLabel",
"assertNotSelectedLabel",
"assertSelectedLabels",
"assertNotSelectedLabels",
"assertSelectedValue",
"assertNotSelectedValue",
"assertSelectedValues",
"assertNotSelectedValues",
"assertSelectOptions",
"assertNotSelectOptions",
"assertTable",
"assertNotTable",
"assertText",
"assertNotText",
"assertTitle",
"assertNotTitle",
"assertValue",
"assertNotValue",
"assertWhetherThisFrameMatchFrameExpression",
"assertNotWhetherThisFrameMatchFrameExpression",
"assertWhetherThisWindowMatchWindowExpression",
"assertNotWhetherThisWindowMatchWindowExpression",
"assertAlertPresent",
"assertAlertNotPresent",
"assertChecked",
"assertNotChecked",
"assertConfirmationPresent",
"assertConfirmationNotPresent",
"assertEditable",
"assertNotEditable",
"assertElementPresent",
"assertElementNotPresent",
"assertOrdered",
"assertNotOrdered",
"assertPromptPresent",
"assertPromptNotPresent",
"assertSomethingSelected",
"assertNotSomethingSelected",
"assertTextPresent",
"assertTextNotPresent",
"assertVisible",
"assertNotVisible")
(line 38)

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$reporter
Methods
Constructor __construct (line 261)

constructor

Construct the object with the specified browser and url

SeleneseTestCase __construct (string $browser, string $url)
  • string $browser
  • string $url

Redefinition of:
UnitTestCase::__construct()
Creates an empty test case. Should be subclassed with test methods for a functional test case.
assertFunction (line 314)

assertFunction

Integrate selenium fonctions in simpletest

void assertFunction (string $function, string $param1, string $param2)
  • string $function
  • string $param1
  • string $param2
launch (line 343)

launch

Launch the html test suite from a PHP variable on the url declared wihle constructing the object. The filename is used to localize the error.

void launch ([ $html = ""], string $testFile, string $filename)
  • string $testFile
  • string $filename
  • $html
launchFile (line 386)

launchFile

Launch the html test suite file on the url declared wihle constructing the object

void launchFile (string $testFile)
  • string $testFile
launchPhpFile (line 367)

launchPhpFile

Parse the PHP file then launch the computed test suite

void launchPhpFile (string $file)
  • string $file
parse (line 285)

parse

Extract the called selenium fonction from the html suite

void parse ()
tidy (line 271)

tidy

Reformat the selenium-IDE html test suites

void tidy ()

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:20 -0500 by phpDocumentor 1.4.3