MediaWiki  REL1_20
SeleniumWebSettings.php File Reference

Dynamically change configuration variables based on the test suite name and a cookie value. More...

Go to the source code of this file.

Functions

 getTestResourceNameFromTestSuiteName ($testSuiteName)
 getTestSuiteNameFromCookie ($cookieName)
 getTestUploadPathFromResourceName ($testResourceName)
 setupTestResources ($testResourceName, $testSqlFile, $testImageZip)
 switchToTestResources ($testResourceName, $switchDB=true)
 teardownTestResources ($testResourceName)

Variables

 $cookieName = $cookiePrefix . 'Selenium'
 $cookiePrefix = $wgSitename . '-'
 $fname = 'SeleniumWebSettings.php'
 $testImageZip = false
 $testSqlFile = false
 if (!defined( 'MEDIAWIKI'))

Detailed Description

Dynamically change configuration variables based on the test suite name and a cookie value.

For details on how to configure a wiki for a Selenium test, see: http://www.mediawiki.org/wiki/SeleniumFramework#Test_Wiki_configuration

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file SeleniumWebSettings.php.


Function Documentation

Definition at line 145 of file SeleniumWebSettings.php.

getTestSuiteNameFromCookie ( cookieName)

Definition at line 137 of file SeleniumWebSettings.php.

References $cookieName.

getTestUploadPathFromResourceName ( testResourceName)

Definition at line 153 of file SeleniumWebSettings.php.

References $IP.

Referenced by setupTestResources(), switchToTestResources(), and teardownTestResources().

setupTestResources ( testResourceName,
testSqlFile,
testImageZip 
)
switchToTestResources ( testResourceName,
switchDB = true 
)

Definition at line 209 of file SeleniumWebSettings.php.

References getTestUploadPathFromResourceName().

teardownTestResources ( testResourceName)

Variable Documentation

$cookieName = $cookiePrefix . 'Selenium'

Definition at line 36 of file SeleniumWebSettings.php.

Referenced by getTestSuiteNameFromCookie().

$cookiePrefix = $wgSitename . '-'

Definition at line 35 of file SeleniumWebSettings.php.

$fname = 'SeleniumWebSettings.php'

Definition at line 32 of file SeleniumWebSettings.php.

Referenced by Skin\__call(), DummyLinker\__call(), ImportStreamSource\__construct(), StubObject\_unstub(), TextPassDumperTest\checkpointHelper(), Profiler\collateData(), DatabaseIbm_db2\delete(), DatabaseMysql\deleteJoin(), DatabaseMysql\duplicateTableStructure(), DatabasePostgres\duplicateTableStructure(), DatabaseMssql\estimateRowCount(), DatabaseMysql\estimateRowCount(), DatabasePostgres\estimateRowCount(), Profiler\getCallTreeLine(), Profiler\getFunctionReport(), HistoryBlobStub\getText(), DatabaseMssql\indexInfo(), DatabaseMysql\indexInfo(), DatabasePostgres\indexInfo(), DatabaseIbm_db2\indexInfo(), DatabasePostgres\indexUnique(), DatabaseIbm_db2\indexUnique(), DatabaseMssql\insert(), DatabaseOracle\insert(), DatabasePostgres\insert(), DatabaseMssql\insertSelect(), DatabasePostgres\insertSelect(), DatabaseMysql\listTables(), DatabasePostgres\listTables(), DatabaseMysql\masterPosWait(), moveToExternal(), DatabaseOracle\queryIgnore(), DatabasePostgres\queryIgnore(), DatabaseMysql\replace(), DatabasePostgres\reportQueryError(), DatabaseOracle\reportQueryError(), resolveStub(), resolveStubs(), XmlTypeCheck\run(), RefreshLinksJob\runForTitleInternal(), DatabaseMssql\select(), DatabaseIbm_db2\select(), RandomPage\selectRandomPageFromDB(), DatabaseOracle\selectRow(), DatabaseMssql\selectSQLText(), TextPassDumperTest\setUpStub(), splitFilename(), StreamFile\stream(), BackupDumperPageTest\testCurrentStubGzip(), BackupDumperPageTest\testCurrentStubPlain(), BackupDumperPageTest\testFullStubPlain(), BackupDumperPageTest\testFullTextPlain(), BaseDumpTest\testPageMissAtEnd(), BackupDumperLoggerTest\testPlain(), BaseDumpTest\testRevisionMissAtEnd(), BaseDumpTest\testSequential(), BaseDumpTest\testSynchronizePageMiss(), BaseDumpTest\testSynchronizePageMissAtStart(), BaseDumpTest\testSynchronizeRevisionMissAtStart(), BaseDumpTest\testSynchronizeRevisionMissToPage(), BaseDumpTest\testSynchronizeRevisionMissToRevision(), BackupDumperLoggerTest\testXmlDumpsBackupUseCaseLogging(), ExportDemoTest\validateXmlFileAgainstXsd(), and wfStreamFile().

$testImageZip = false

Definition at line 40 of file SeleniumWebSettings.php.

Referenced by setupTestResources().

$testSqlFile = false

Definition at line 39 of file SeleniumWebSettings.php.

Referenced by setupTestResources().

if(!defined( 'MEDIAWIKI'))

Definition at line 26 of file SeleniumWebSettings.php.