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::$_label
SimpleTestCase::$_observers
SimpleTestCase::$_reporter
SimpleTestCase::$_should_skip
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
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::UnitTestCase()
 UnitTestCase::assertClone()
 UnitTestCase::assertCopy()
 UnitTestCase::assertEqual()
 UnitTestCase::assertError()
 UnitTestCase::assertErrorPattern()
 UnitTestCase::assertFalse()
 UnitTestCase::assertIdentical()
 UnitTestCase::assertIsA()
 UnitTestCase::assertNoErrors()
 UnitTestCase::assertNoPattern()
 UnitTestCase::assertNotA()
 UnitTestCase::assertNotEqual()
 UnitTestCase::assertNotIdentical()
 UnitTestCase::assertNotNull()
 UnitTestCase::assertNoUnwantedPattern()
 UnitTestCase::assertNull()
 UnitTestCase::assertOutsideMargin()
 UnitTestCase::assertPattern()
 UnitTestCase::assertReference()
 UnitTestCase::assertTrue()
 UnitTestCase::assertWantedPattern()
 UnitTestCase::assertWithinMargin()
 UnitTestCase::expectError()
 UnitTestCase::expectException()
 UnitTestCase::swallowErrors()

Inherited From SimpleTestCase

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

Documentation generated on Sun, 04 May 2008 09:22:05 -0500 by phpDocumentor 1.3.0