MediaWiki
REL1_19
|
Public Member Functions | |
__call ($method, $args) | |
assertSeleniumAttributeEquals ($attribute, $value) | |
assertSeleniumHTMLContains ($element, $text) | |
clearWikiEditor () | |
clickEditLink () | |
clickSavePageBtn () | |
clickShowPreviewBtn () | |
createNewTestPage ($pagePrefix, $watchThis=false) | |
Create a test page using date as part of the name so that it is unique. | |
createTestPageIfMissing ($pageName=null) | |
Create a test fixture page if one does not exist. | |
getExistingPage () | |
getNewPage ($pageName) | |
loadWikiEditor () | |
setUp () | |
tearDown () | |
Protected Attributes | |
$selenium |
Definition at line 4 of file SeleniumTestCase.php.
SeleniumTestCase::__call | ( | $ | method, |
$ | args | ||
) |
Definition at line 16 of file SeleniumTestCase.php.
SeleniumTestCase::assertSeleniumAttributeEquals | ( | $ | attribute, |
$ | value | ||
) |
Definition at line 20 of file SeleniumTestCase.php.
SeleniumTestCase::assertSeleniumHTMLContains | ( | $ | element, |
$ | text | ||
) |
Definition at line 25 of file SeleniumTestCase.php.
Referenced by MediawikiCoreSmokeTestCase\testImageUpload().
Definition at line 107 of file SeleniumTestCase.php.
Referenced by AddContentToNewPageTestCase\testAddBoldText(), AddContentToNewPageTestCase\testAddExternalLink(), AddContentToNewPageTestCase\testAddInternalLinkNewPage(), AddContentToNewPageTestCase\testAddItalicText(), AddContentToNewPageTestCase\testAddLevel2HeadLine(), AddContentToNewPageTestCase\testAddNoWikiFormat(), AddContentToNewPageTestCase\testAddUserSignature(), and AddContentToNewPageTestCase\testHorizontalLine().
Definition at line 122 of file SeleniumTestCase.php.
Referenced by AddContentToNewPageTestCase\testAddBoldText(), AddContentToNewPageTestCase\testAddExternalLink(), AddContentToNewPageTestCase\testAddInternalLinkNewPage(), AddContentToNewPageTestCase\testAddItalicText(), AddContentToNewPageTestCase\testAddLevel2HeadLine(), AddContentToNewPageTestCase\testAddNoWikiFormat(), AddContentToNewPageTestCase\testAddUserSignature(), and AddContentToNewPageTestCase\testHorizontalLine().
Definition at line 117 of file SeleniumTestCase.php.
Definition at line 112 of file SeleniumTestCase.php.
Referenced by AddContentToNewPageTestCase\testAddBoldText(), AddContentToNewPageTestCase\testAddExternalLink(), AddContentToNewPageTestCase\testAddInternalLinkNewPage(), AddContentToNewPageTestCase\testAddItalicText(), AddContentToNewPageTestCase\testAddLevel2HeadLine(), AddContentToNewPageTestCase\testAddNoWikiFormat(), AddContentToNewPageTestCase\testAddUserSignature(), and AddContentToNewPageTestCase\testHorizontalLine().
SeleniumTestCase::createNewTestPage | ( | $ | pagePrefix, |
$ | watchThis = false |
||
) |
Create a test page using date as part of the name so that it is unique.
$pagePrefix | The prefix to use for the page name. The current date will be appended to this to make it unique |
$watchThis | Whether to add the page to my watchlist. Defaults to false. |
Definition at line 60 of file SeleniumTestCase.php.
References SeleniumTestConstants\BUTTON_SAVE, SeleniumTestConstants\BUTTON_SEARCH, SeleniumTestConstants\INPUT_SEARCH_BOX, SeleniumTestConstants\LINK_START, SeleniumTestConstants\TEXT_EDITOR, SeleniumTestConstants\TEXT_PAGE_HEADING, and SeleniumTestConstants\WIKI_TEST_WAIT_TIME.
Referenced by MyWatchListTestCase\testMyWatchlist(), and MyContributionsTestCase\testRecentChangesAvailability().
SeleniumTestCase::createTestPageIfMissing | ( | $ | pageName = null | ) |
Create a test fixture page if one does not exist.
$pageName | The fixture page name. If none is supplied, it uses SeleniumTestConstants::WIKI_INTERNAL_LINK |
Definition at line 36 of file SeleniumTestCase.php.
References SeleniumTestConstants\BUTTON_SAVE, SeleniumTestConstants\BUTTON_SEARCH, SeleniumTestConstants\INPUT_SEARCH_BOX, SeleniumTestConstants\LINK_START, SeleniumTestConstants\TEXT_EDITOR, SeleniumTestConstants\TEXT_PAGE_HEADING, SeleniumTestConstants\WIKI_INTERNAL_LINK, and SeleniumTestConstants\WIKI_TEST_WAIT_TIME.
Definition at line 80 of file SeleniumTestCase.php.
Referenced by AddContentToNewPageTestCase\testAddBoldText(), AddContentToNewPageTestCase\testAddExternalLink(), AddContentToNewPageTestCase\testAddInternalLinkNewPage(), AddContentToNewPageTestCase\testAddItalicText(), AddContentToNewPageTestCase\testAddLevel2HeadLine(), AddContentToNewPageTestCase\testAddNoWikiFormat(), AddContentToNewPageTestCase\testAddUserSignature(), and AddContentToNewPageTestCase\testHorizontalLine().
SeleniumTestCase::getNewPage | ( | $ | pageName | ) |
Definition at line 88 of file SeleniumTestCase.php.
Referenced by PreviewPageTestCase\testPreviewPage(), and SavePageTestCase\testSavePage().
Definition at line 101 of file SeleniumTestCase.php.
Referenced by AddContentToNewPageTestCase\testAddBoldText(), AddContentToNewPageTestCase\testAddExternalLink(), AddContentToNewPageTestCase\testAddInternalLinkNewPage(), AddContentToNewPageTestCase\testAddItalicText(), AddContentToNewPageTestCase\testAddLevel2HeadLine(), AddContentToNewPageTestCase\testAddNoWikiFormat(), AddContentToNewPageTestCase\testAddUserSignature(), and AddContentToNewPageTestCase\testHorizontalLine().
Definition at line 7 of file SeleniumTestCase.php.
References Selenium\getInstance().
Definition at line 12 of file SeleniumTestCase.php.
SeleniumTestCase::$selenium [protected] |
Definition at line 5 of file SeleniumTestCase.php.