Followup r78775, svn:eol-style native SET UP YOUR AUTOPROPS
authorSam Reed <reedy@users.mediawiki.org>
Wed, 22 Dec 2010 11:16:24 +0000 (11:16 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 22 Dec 2010 11:16:24 +0000 (11:16 +0000)
13 files changed:
tests/installer/MediaWikiButtonsAvailabilityTestCase.php
tests/installer/MediaWikiDifferentDatabaseAccountTestCase.php
tests/installer/MediaWikiDifferntDatabasePrefixTestCase.php
tests/installer/MediaWikiErrorsConnectToDatabasePageTestCase.php
tests/installer/MediaWikiErrorsNamepageTestCase.php
tests/installer/MediaWikiHelpFieldHintTestCase.php
tests/installer/MediaWikiMySQLDataBaseTestCase.php
tests/installer/MediaWikiMySQLiteDataBaseTestCase.php
tests/installer/MediaWikiOnAlreadyInstalledTestCase.php
tests/installer/MediaWikiRestartInstallationTestCase.php
tests/installer/MediaWikiRightFrameworkLinksTestCase.php
tests/installer/MediaWikiUpgradeExistingDatabaseTestCase.php
tests/installer/MediaWikiUserInterfaceTestCase.php

index a682812..398d950 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiButtonsAvailabilityTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 30 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name :'Back' and 'Continue' button availability\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiButtonsAvailabilityTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp() {\r
-        parent::setUp();\r
-    }\r
-\r
-\r
-    // Verify only 'Continue' button available on 'Language' page\r
-    public function testOnlyContinueButtonAvailability() {\r
-\r
-        parent::navigateLanguagePage();\r
-\r
-        // Verify only 'Continue' button avaialble\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-\r
-        // 'Back' button is not avaialble\r
-        $this->assertElementNotPresent( "submit-back" );\r
-    }\r
-\r
-\r
-    // Verify 'Continue' and 'Back' buttons availability\r
-    public function testBothButtonsAvailability() {\r
-\r
-        // Verify buttons availability on 'Welcome to MediaWiki' page\r
-        parent::navigateWelcometoMediaWikiPage();\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-        parent::restartInstallation();\r
-\r
-        // Verify buttons availability on 'Connect to Database' page\r
-        parent::navigateConnetToDatabasePage();\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-        parent::restartInstallation();\r
-\r
-        // Verify buttons availability on 'Database settings' page\r
-        $databaseName = DB_NAME_PREFIX."_db_settings";\r
-        parent::navigateDatabaseSettingsPage( $databaseName );\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-        parent::restartInstallation();\r
-\r
-        // Verify buttons availability on 'Name' page\r
-        $databaseName = DB_NAME_PREFIX."_name";\r
-        parent::navigateNamePage( $databaseName );\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-        parent::restartInstallation();\r
-\r
-        // Verify buttons availability on 'Options' page\r
-        $databaseName = DB_NAME_PREFIX."_options";\r
-        parent::navigateOptionsPage( $databaseName );\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-        parent::restartInstallation();\r
-\r
-        // Verify buttons availability on 'Install' page\r
-        $databaseName = DB_NAME_PREFIX."_install";\r
-        parent::navigateInstallPage($databaseName);\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-continue" ));\r
-    }\r
-\r
-\r
-    // Verify only 'Back' button available on 'Complete' page\r
-    public function testOnlyBackButtonAvailability() {\r
-\r
-        // Verify only 'Back' button available\r
-        $databaseName = DB_NAME_PREFIX."_back";\r
-        parent::navigateCompletePage( $databaseName );\r
-\r
-        // Only 'Back' button available\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-\r
-        // 'Continue' button is not available\r
-        $this->assertElementNotPresent( "submit-continue" );\r
-        parent::restartInstallation();\r
-    }\r
-}\r
-\r
+<?php
+
+/**
+ * MediaWikiButtonsAvailabilityTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 30 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name :'Back' and 'Continue' button availability
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiButtonsAvailabilityTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp() {
+        parent::setUp();
+    }
+
+
+    // Verify only 'Continue' button available on 'Language' page
+    public function testOnlyContinueButtonAvailability() {
+
+        parent::navigateLanguagePage();
+
+        // Verify only 'Continue' button avaialble
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+
+        // 'Back' button is not avaialble
+        $this->assertElementNotPresent( "submit-back" );
+    }
+
+
+    // Verify 'Continue' and 'Back' buttons availability
+    public function testBothButtonsAvailability() {
+
+        // Verify buttons availability on 'Welcome to MediaWiki' page
+        parent::navigateWelcometoMediaWikiPage();
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+        parent::restartInstallation();
+
+        // Verify buttons availability on 'Connect to Database' page
+        parent::navigateConnetToDatabasePage();
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+        parent::restartInstallation();
+
+        // Verify buttons availability on 'Database settings' page
+        $databaseName = DB_NAME_PREFIX."_db_settings";
+        parent::navigateDatabaseSettingsPage( $databaseName );
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+        parent::restartInstallation();
+
+        // Verify buttons availability on 'Name' page
+        $databaseName = DB_NAME_PREFIX."_name";
+        parent::navigateNamePage( $databaseName );
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+        parent::restartInstallation();
+
+        // Verify buttons availability on 'Options' page
+        $databaseName = DB_NAME_PREFIX."_options";
+        parent::navigateOptionsPage( $databaseName );
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+        parent::restartInstallation();
+
+        // Verify buttons availability on 'Install' page
+        $databaseName = DB_NAME_PREFIX."_install";
+        parent::navigateInstallPage($databaseName);
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        $this->assertTrue( $this->isElementPresent( "submit-continue" ));
+    }
+
+
+    // Verify only 'Back' button available on 'Complete' page
+    public function testOnlyBackButtonAvailability() {
+
+        // Verify only 'Back' button available
+        $databaseName = DB_NAME_PREFIX."_back";
+        parent::navigateCompletePage( $databaseName );
+
+        // Only 'Back' button available
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+
+        // 'Continue' button is not available
+        $this->assertElementNotPresent( "submit-continue" );
+        parent::restartInstallation();
+    }
+}
+
index bb6ab1c..9a9e49b 100644 (file)
@@ -1,84 +1,84 @@
-<?php\r
-\r
-/**\r
- * MediaWikiDifferentDatabaseAccountTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 04 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install MediaWiki with different Database accounts for web access.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiDifferentDatabaseAccountTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-\r
-    // Install Mediawiki using 'MySQL' database type.\r
-    public function testDifferentDatabaseAccount(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_dif_accounts";\r
-\r
-        // Navigate to the 'Database settings' page\r
-        parent::navigateDatabaseSettingsPage( $databaseName );\r
-\r
-        // Click on the 'Use the same account as for installation' check box\r
-        $this->click( "mysql__SameAccount" );\r
-\r
-        // Change the 'Database username'\r
-        $this->type( "mysql_wgDBuser", DB_WEB_USER );\r
-\r
-        // Enter 'Database password:'\r
-        $this->type( "mysql_wgDBpassword", DB_WEB_USER_PASSWORD );\r
-\r
-        // Select 'Create the account if it does not already exist' check box\r
-        $this->click( "mysql__CreateDBAccount" );\r
-        parent::clickContinueButton();\r
-\r
-        // 'Name' page\r
-        parent::completeNamePage();\r
-\r
-        // 'Options' page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Install' page\r
-        $this->assertEquals( "Creating database user... done",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[2]" ));\r
-        parent::clickContinueButton();\r
-\r
-        // 'Complete' page\r
-        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-        $this->assertEquals( "Congratulations!",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));\r
-        $this->chooseCancelOnNextConfirmation();\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiDifferentDatabaseAccountTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 04 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install MediaWiki with different Database accounts for web access.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiDifferentDatabaseAccountTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp(){
+        parent::setUp();
+    }
+
+
+    // Install Mediawiki using 'MySQL' database type.
+    public function testDifferentDatabaseAccount(){
+
+        $databaseName = DB_NAME_PREFIX."_dif_accounts";
+
+        // Navigate to the 'Database settings' page
+        parent::navigateDatabaseSettingsPage( $databaseName );
+
+        // Click on the 'Use the same account as for installation' check box
+        $this->click( "mysql__SameAccount" );
+
+        // Change the 'Database username'
+        $this->type( "mysql_wgDBuser", DB_WEB_USER );
+
+        // Enter 'Database password:'
+        $this->type( "mysql_wgDBpassword", DB_WEB_USER_PASSWORD );
+
+        // Select 'Create the account if it does not already exist' check box
+        $this->click( "mysql__CreateDBAccount" );
+        parent::clickContinueButton();
+
+        // 'Name' page
+        parent::completeNamePage();
+
+        // 'Options' page
+        parent::clickContinueButton();
+
+        // 'Install' page
+        $this->assertEquals( "Creating database user... done",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[2]" ));
+        parent::clickContinueButton();
+
+        // 'Complete' page
+        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+        $this->assertEquals( "Congratulations!",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));
+        $this->chooseCancelOnNextConfirmation();
+    }
+}
index 1f6c051..51fb1bb 100644 (file)
@@ -1,93 +1,93 @@
-<?php\r
-\r
-/**\r
- * MediaWikiDifferntDatabasePrefixTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 02 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install MediaWiki with the same database and the different\r
- *                  database prefixes(Share one database between multiple wikis).\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiDifferntDatabasePrefixTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-    // Install Mediawiki using 'MySQL' database type.\r
-    public function testDifferentDatabasePrefix(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_db_prefix";\r
-        parent::navigateInstallPage( $databaseName );\r
-        \r
-        // To 'Options' page\r
-        parent::clickBackButton();\r
-\r
-        // To 'Name' page\r
-        parent::clickBackButton();\r
-\r
-        // To 'Database settings' page\r
-        parent::clickBackButton();\r
-\r
-        // To 'Connect to database' page\r
-        parent::clickBackButton();\r
-\r
-        // From 'Connect to database' page without database prefix\r
-        parent::clickContinueButton();\r
-\r
-        // Verify upgrade existing message\r
-        $this->assertEquals( "Upgrade existing installation",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // To 'Connect to database' page\r
-        parent::clickBackButton();\r
-\r
-        // Input the database prefix\r
-        $this->type( "mysql_wgDBprefix", DATABASE_PREFIX );\r
-\r
-        // From 'Connect to database' page with database prefix\r
-        parent::clickContinueButton();\r
-\r
-        // To 'Complete' page\r
-        parent::clickContinueButton();\r
-        parent::completeNamePage();\r
-        parent::clickContinueButton();\r
-\r
-        // Verify already installed warning message\r
-        $this->assertEquals( "Install",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]" ));\r
-        parent::clickContinueButton();\r
-        $this->chooseCancelOnNextConfirmation();\r
-        parent::restartInstallation();\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiDifferntDatabasePrefixTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 02 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install MediaWiki with the same database and the different
+ *                  database prefixes(Share one database between multiple wikis).
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiDifferntDatabasePrefixTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp(){
+        parent::setUp();
+    }
+
+    // Install Mediawiki using 'MySQL' database type.
+    public function testDifferentDatabasePrefix(){
+
+        $databaseName = DB_NAME_PREFIX."_db_prefix";
+        parent::navigateInstallPage( $databaseName );
+        
+        // To 'Options' page
+        parent::clickBackButton();
+
+        // To 'Name' page
+        parent::clickBackButton();
+
+        // To 'Database settings' page
+        parent::clickBackButton();
+
+        // To 'Connect to database' page
+        parent::clickBackButton();
+
+        // From 'Connect to database' page without database prefix
+        parent::clickContinueButton();
+
+        // Verify upgrade existing message
+        $this->assertEquals( "Upgrade existing installation",
+                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // To 'Connect to database' page
+        parent::clickBackButton();
+
+        // Input the database prefix
+        $this->type( "mysql_wgDBprefix", DATABASE_PREFIX );
+
+        // From 'Connect to database' page with database prefix
+        parent::clickContinueButton();
+
+        // To 'Complete' page
+        parent::clickContinueButton();
+        parent::completeNamePage();
+        parent::clickContinueButton();
+
+        // Verify already installed warning message
+        $this->assertEquals( "Install",
+                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]" ));
+        parent::clickContinueButton();
+        $this->chooseCancelOnNextConfirmation();
+        parent::restartInstallation();
+    }
+}
index 388fd51..5d2b4ab 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiErrorsConnectToDatabasePageTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 09 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Invalid/ blank values for fields in 'Connect to database' page.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiErrorsConnectToDatabasePageTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-    // Verify warning messages for the 'Connet to database' page\r
-    public function testErrorsConnectToDatabasePage(){\r
-\r
-        parent::navigateConnetToDatabasePage();\r
-\r
-        // Verify warning mesage for invalid database host\r
-        $this->type( "mysql_wgDBserver", INVALID_DB_HOST );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "DB connection error: php_network_getaddresses: getaddrinfo failed: No such host is known. (".INVALID_DB_HOST.").Check the host, username and password below and try again.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Verify warning message for the blank database host\r
-        $this->type( "mysql_wgDBserver", "" );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "MySQL 4.0.14 or later is required, you have .",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Valid Database Host\r
-        $this->type( "mysql_wgDBserver", VALID_DB_HOST );\r
-\r
-        // Verify warning message for the invalid database name\r
-        $this->type( "mysql_wgDBname", INVALID_DB_NAME );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Invalid database name \"".INVALID_DB_NAME."\".Use only ASCII letters (a-z, A-Z), numbers (0-9) and underscores (_).",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Verify warning message for the blank database name\r
-        $this->type( "mysql_wgDBname", "");\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "You must enter a value for \"Database name\"",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // valid Database name\r
-        $this->type( "mysql_wgDBname", VALID_DB_NAME);\r
-\r
-        // Verify warning message for the invalid databaase prefix\r
-        $this->type( "mysql_wgDBprefix", INVALID_DB_PREFIX );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Invalid database prefix \"".INVALID_DB_PREFIX."\".Use only ASCII letters (a-z, A-Z), numbers (0-9) and underscores (_).",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Valid Database prefix\r
-        $this->type( "mysql_wgDBprefix", VALID_DB_PREFIX );\r
-\r
-        // Verify warning message for the invalid database user name\r
-        $this->type( "mysql__InstallUser", INVALID_DB_USER_NAME );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "DB connection error: Access denied for user '".INVALID_DB_USER_NAME."'@'localhost' (using password: NO) (localhost).Check the host, username and password below and try again.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-\r
-        // Verify warning message for the invalid database user name\r
-        $this->type( "mysql__InstallUser", "" );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "DB connection error: Access denied for user 'SYSTEM'@'localhost' (using password: NO) (localhost).Check the host, username and password below and try again.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Valid Database username\r
-        $this->type( "mysql__InstallUser",  VALID_DB_USER_NAME );\r
-\r
-        // Verify warning message for the invalid password\r
-        $this->type( "mysql__InstallPassword", INVALID_DB_PASSWORD );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "DB connection error: Access denied for user 'root'@'localhost' (using password: YES) (localhost).Check the host, username and password below and try again.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Verify warning message for the invalid username and password\r
-        $this->type( "mysql__InstallUser", INVALID_DB_USER_NAME );\r
-        $this->type( "mysql__InstallPassword", INVALID_DB_PASSWORD );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "DB connection error: Access denied for user '".INVALID_DB_USER_NAME."'@'localhost' (using password: YES) (localhost).Check the host, username and password below and try again.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Valid username and valid password\r
-        $this->type( "mysql__InstallUser", VALID_DB_USER_NAME );\r
-        $this->type( "mysql__InstallPassword", "" );\r
-        parent::clickContinueButton();\r
-\r
-        // successfully completes the 'Connect to database' page\r
-        $this->assertEquals( "Database settings",\r
-                $this->getText("//div[@id='bodyContent']/div/div/h2" ));\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiErrorsConnectToDatabasePageTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 09 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Invalid/ blank values for fields in 'Connect to database' page.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiErrorsConnectToDatabasePageTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp(){
+        parent::setUp();
+    }
+
+    // Verify warning messages for the 'Connet to database' page
+    public function testErrorsConnectToDatabasePage(){
+
+        parent::navigateConnetToDatabasePage();
+
+        // Verify warning mesage for invalid database host
+        $this->type( "mysql_wgDBserver", INVALID_DB_HOST );
+        parent::clickContinueButton();
+        $this->assertEquals( "DB connection error: php_network_getaddresses: getaddrinfo failed: No such host is known. (".INVALID_DB_HOST.").Check the host, username and password below and try again.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Verify warning message for the blank database host
+        $this->type( "mysql_wgDBserver", "" );
+        parent::clickContinueButton();
+        $this->assertEquals( "MySQL 4.0.14 or later is required, you have .",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Valid Database Host
+        $this->type( "mysql_wgDBserver", VALID_DB_HOST );
+
+        // Verify warning message for the invalid database name
+        $this->type( "mysql_wgDBname", INVALID_DB_NAME );
+        parent::clickContinueButton();
+        $this->assertEquals( "Invalid database name \"".INVALID_DB_NAME."\".Use only ASCII letters (a-z, A-Z), numbers (0-9) and underscores (_).",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Verify warning message for the blank database name
+        $this->type( "mysql_wgDBname", "");
+        parent::clickContinueButton();
+        $this->assertEquals( "You must enter a value for \"Database name\"",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // valid Database name
+        $this->type( "mysql_wgDBname", VALID_DB_NAME);
+
+        // Verify warning message for the invalid databaase prefix
+        $this->type( "mysql_wgDBprefix", INVALID_DB_PREFIX );
+        parent::clickContinueButton();
+        $this->assertEquals( "Invalid database prefix \"".INVALID_DB_PREFIX."\".Use only ASCII letters (a-z, A-Z), numbers (0-9) and underscores (_).",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Valid Database prefix
+        $this->type( "mysql_wgDBprefix", VALID_DB_PREFIX );
+
+        // Verify warning message for the invalid database user name
+        $this->type( "mysql__InstallUser", INVALID_DB_USER_NAME );
+        parent::clickContinueButton();
+        $this->assertEquals( "DB connection error: Access denied for user '".INVALID_DB_USER_NAME."'@'localhost' (using password: NO) (localhost).Check the host, username and password below and try again.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+
+        // Verify warning message for the invalid database user name
+        $this->type( "mysql__InstallUser", "" );
+        parent::clickContinueButton();
+        $this->assertEquals( "DB connection error: Access denied for user 'SYSTEM'@'localhost' (using password: NO) (localhost).Check the host, username and password below and try again.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Valid Database username
+        $this->type( "mysql__InstallUser",  VALID_DB_USER_NAME );
+
+        // Verify warning message for the invalid password
+        $this->type( "mysql__InstallPassword", INVALID_DB_PASSWORD );
+        parent::clickContinueButton();
+        $this->assertEquals( "DB connection error: Access denied for user 'root'@'localhost' (using password: YES) (localhost).Check the host, username and password below and try again.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Verify warning message for the invalid username and password
+        $this->type( "mysql__InstallUser", INVALID_DB_USER_NAME );
+        $this->type( "mysql__InstallPassword", INVALID_DB_PASSWORD );
+        parent::clickContinueButton();
+        $this->assertEquals( "DB connection error: Access denied for user '".INVALID_DB_USER_NAME."'@'localhost' (using password: YES) (localhost).Check the host, username and password below and try again.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Valid username and valid password
+        $this->type( "mysql__InstallUser", VALID_DB_USER_NAME );
+        $this->type( "mysql__InstallPassword", "" );
+        parent::clickContinueButton();
+
+        // successfully completes the 'Connect to database' page
+        $this->assertEquals( "Database settings",
+                $this->getText("//div[@id='bodyContent']/div/div/h2" ));
+    }
+}
index b3de820..2537d9e 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiErrorsNamepageTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-/*\r
- * Test Case ID   : 10 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Invalid/ blank values for fields in 'Name' page.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-class MediaWikiErrorsNamepageTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp() {\r
-        parent::setUp();\r
-    }\r
-\r
-    // Verify warning message for the 'Name' page\r
-    public function testErrorsNamePage(){\r
-\r
-        $databaseName  = DB_NAME_PREFIX."_error_name";\r
-\r
-        parent::navigateNamePage( $databaseName );\r
-\r
-        // Verify warning message for all blank fields\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Enter a site name.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-        $this->assertEquals( "Enter an administrator username.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[3]/div[2]" ));\r
-        $this->assertEquals( "Enter a password for the administrator account.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[4]/div[2]" ));\r
-\r
-        // Verify warning message for the blank 'Site name'\r
-        $this->type( "config__AdminName", VALID_YOUR_NAME );\r
-        $this->type( "config__AdminPassword", VALID_PASSWORD );\r
-        $this->type( "config__AdminPassword2", VALID_PASSWORD_AGAIN );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Enter a site name.",\r
-                $this->getText(" //div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-        // Input valid 'Site name'\r
-        $this->type( "config_wgSitename", VALID_WIKI_NAME );\r
-\r
-\r
-        // Verify warning message for the invalid "Project namespace'\r
-        $this->click( "config__NamespaceType_other" );\r
-        $this->type( "config_wgMetaNamespace", INVALID_NAMESPACE );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "The specified namespace \"\" is invalid.Specify a different project namespace.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-\r
-        // Verify warning message for the blank 'Project namespace'\r
-        $this->type( "config_wgSitename",  VALID_WIKI_NAME );\r
-        $this->click( "config__NamespaceType_other" );\r
-        $this->type( "config_wgMetaNamespace" , "" );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "The specified namespace \"\" is invalid.Specify a different project namespace.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-\r
-        // Valid 'Project namespace'\r
-        $this->click( "config__NamespaceType_other" );\r
-        $this->type( "config_wgMetaNamespace", VALID_NAMESPACE );\r
-        parent::clickContinueButton();\r
-\r
-\r
-        // Valid 'Site name'\r
-        $this->click( "config__NamespaceType_site-name" );\r
-        $this->type( "config_wgSitename", VALID_WIKI_NAME );\r
-\r
-\r
-        // Verify warning message for blank 'Your name'\r
-        $this->type( "config__AdminName", " " );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Enter an administrator username.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-\r
-        // Verify warning message for blank 'Password'\r
-        $this->type( "config__AdminName", VALID_YOUR_NAME );\r
-        $this->type( "config__AdminPassword", " " );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Enter a password for the administrator account.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-\r
-        // Verify warning message for the blank 'Password again'\r
-        $this->type( "config_wgSitename", VALID_WIKI_NAME );\r
-        $this->type( "config__AdminPassword", VALID_PASSWORD );\r
-        $this->type( "config__AdminPassword2", " " );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "The two passwords you entered do not match.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-\r
-\r
-        // Verify warning message for the different'Password' and 'Password again'\r
-        $this->type( "config_wgSitename", VALID_WIKI_NAME );\r
-        $this->type( "config__AdminPassword", VALID_PASSWORD );\r
-        $this->type( "config__AdminPassword2", INVALID_PASSWORD_AGAIN );\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "The two passwords you entered do not match.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiErrorsNamepageTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+/*
+ * Test Case ID   : 10 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Invalid/ blank values for fields in 'Name' page.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+class MediaWikiErrorsNamepageTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp() {
+        parent::setUp();
+    }
+
+    // Verify warning message for the 'Name' page
+    public function testErrorsNamePage(){
+
+        $databaseName  = DB_NAME_PREFIX."_error_name";
+
+        parent::navigateNamePage( $databaseName );
+
+        // Verify warning message for all blank fields
+        parent::clickContinueButton();
+        $this->assertEquals( "Enter a site name.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+        $this->assertEquals( "Enter an administrator username.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[3]/div[2]" ));
+        $this->assertEquals( "Enter a password for the administrator account.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[4]/div[2]" ));
+
+        // Verify warning message for the blank 'Site name'
+        $this->type( "config__AdminName", VALID_YOUR_NAME );
+        $this->type( "config__AdminPassword", VALID_PASSWORD );
+        $this->type( "config__AdminPassword2", VALID_PASSWORD_AGAIN );
+        parent::clickContinueButton();
+        $this->assertEquals( "Enter a site name.",
+                $this->getText(" //div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+        // Input valid 'Site name'
+        $this->type( "config_wgSitename", VALID_WIKI_NAME );
+
+
+        // Verify warning message for the invalid "Project namespace'
+        $this->click( "config__NamespaceType_other" );
+        $this->type( "config_wgMetaNamespace", INVALID_NAMESPACE );
+        parent::clickContinueButton();
+        $this->assertEquals( "The specified namespace \"\" is invalid.Specify a different project namespace.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+
+        // Verify warning message for the blank 'Project namespace'
+        $this->type( "config_wgSitename",  VALID_WIKI_NAME );
+        $this->click( "config__NamespaceType_other" );
+        $this->type( "config_wgMetaNamespace" , "" );
+        parent::clickContinueButton();
+        $this->assertEquals( "The specified namespace \"\" is invalid.Specify a different project namespace.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+
+        // Valid 'Project namespace'
+        $this->click( "config__NamespaceType_other" );
+        $this->type( "config_wgMetaNamespace", VALID_NAMESPACE );
+        parent::clickContinueButton();
+
+
+        // Valid 'Site name'
+        $this->click( "config__NamespaceType_site-name" );
+        $this->type( "config_wgSitename", VALID_WIKI_NAME );
+
+
+        // Verify warning message for blank 'Your name'
+        $this->type( "config__AdminName", " " );
+        parent::clickContinueButton();
+        $this->assertEquals( "Enter an administrator username.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+
+        // Verify warning message for blank 'Password'
+        $this->type( "config__AdminName", VALID_YOUR_NAME );
+        $this->type( "config__AdminPassword", " " );
+        parent::clickContinueButton();
+        $this->assertEquals( "Enter a password for the administrator account.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+
+        // Verify warning message for the blank 'Password again'
+        $this->type( "config_wgSitename", VALID_WIKI_NAME );
+        $this->type( "config__AdminPassword", VALID_PASSWORD );
+        $this->type( "config__AdminPassword2", " " );
+        parent::clickContinueButton();
+        $this->assertEquals( "The two passwords you entered do not match.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+
+
+        // Verify warning message for the different'Password' and 'Password again'
+        $this->type( "config_wgSitename", VALID_WIKI_NAME );
+        $this->type( "config__AdminPassword", VALID_PASSWORD );
+        $this->type( "config__AdminPassword2", INVALID_PASSWORD_AGAIN );
+        parent::clickContinueButton();
+        $this->assertEquals( "The two passwords you entered do not match.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/div[2]" ));
+    }
+}
index eab2f44..fcc0fff 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiHelpFieldHintTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-/*\r
- * Test Case ID   : 29 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Help field hint availability for the fields.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-class MediaWikiHelpFieldHintTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-\r
-    // Verify help field availability for the fields\r
-    public function testMySQLConnectToDatabaseFieldHint(){\r
-\r
-        parent::navigateConnetToDatabasePage();\r
-\r
-        // Verify help field for 'Database host'\r
-        $this->click( "//div[@id='DB_wrapper_mysql']/div/div[1]/div/span[1]" );\r
-        $this->assertEquals( MYSQL_DATABASE_HOST_HELP,\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/div/div[1]/div/span[2]" ) );\r
-\r
-        // Verify help field for 'Database name'\r
-        $this->click( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/div/span[1]" );\r
-        $this->assertEquals( MYSQL_DATABASE_NAME_HELP,\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/div/span[2]" ));\r
-\r
-\r
-        // Verify help field for 'Database table prefix'\r
-        $this->click("//div[@id='DB_wrapper_mysql']/fieldset[1]/div[2]/div[1]/div/span[1]" );\r
-        $this->assertEquals(MYSQL_DATABASE_TABLE_PREFIX_HELP,\r
-                $this->getText("//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/div/span[2]/p[1]" ));\r
-\r
-        // Verify help field for 'Database username'\r
-        $this->click( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[1]/div[1]/div/span[1]" );\r
-        $this->assertEquals( MYSQL_DATBASE_USERNAME_HELP,\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[1]/div[1]/div/span[2]" ));\r
-\r
-        // Verify help field for 'Database password'\r
-        $this->click( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[2]/div[1]/div/span[1]" );\r
-        $this->assertEquals( MYSQL_DATABASE_PASSWORD_HELP,\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[2]/div[1]/div/span[2]/p" ));\r
-    }\r
-\r
-\r
-    public function testSQLiteConnectToDatabaseFieldHint(){\r
-\r
-        parent::navigateConnetToDatabasePage();\r
-        $this->click( "DBType_sqlite" );\r
-\r
-        //  Verify help field for 'SQLite data directory'\r
-        $this->click( "//div[@id='DB_wrapper_sqlite']/div[1]/div[1]/div/span[1]" );\r
-        $this->assertEquals( SQLITE_DATA_DIRECTORY_HELP,\r
-                $this->getText( "//div[@id='DB_wrapper_sqlite']/div[1]/div[1]/div/span[2]" ));\r
-\r
-        // Verify help field for 'Database name'\r
-        $this->click( "//div[@id='DB_wrapper_sqlite']/div[2]/div[1]/div/span[1]" );\r
-        $this->assertEquals( SQLITE_DATABASE_NAME_HELP , $this->getText( "//div[@id='DB_wrapper_sqlite']/div[2]/div[1]/div/span[2]/p" ));\r
-    }\r
-\r
-\r
-    public function testDatabaseSettingsFieldHint(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_db_field";\r
-        parent::navigateDatabaseSettingsPage($databaseName);\r
-\r
-        // Verify help field for 'Search engine'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/span[1]" );\r
-        $this->assertEquals( SEARCH_ENGINE_HELP,\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/span[2]" ));\r
-\r
-        // Verify help field for 'Database character set'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[4]/span[1]" );\r
-        $this->assertEquals( DATABASE_CHARACTER_SET_HELP,\r
-                $this->getText("//div[@id='bodyContent']/div/div/div[2]/form/div[4]/span[2]"));\r
-        parent::restartInstallation();\r
-    }\r
-\r
-\r
-    public function testNameFieldHint(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_name_field";\r
-        parent::navigateNamePage( $databaseName );\r
-\r
-        // Verify help field for 'Name of Wiki'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/div/span[1]" );\r
-        $this->assertEquals( NAME_OF_WIKI_HELP,\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/div/span[2]/p" ));\r
-\r
-        // Verify help field for 'Project namespace'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/div/span[1]" );\r
-        $this->assertEquals( PROJECT_NAMESPACE_HELP,\r
-                $this->getText("//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/div/span[2]/p"));\r
-\r
-        // Verify help field for 'Your Name'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/div[1]/div/span[1]" );\r
-        $this->assertEquals( USER_NAME_HELP,\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/div[1]/div/span[2]/p" ));\r
-\r
-        // Verify help field for 'E mail address'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[4]/div[1]/div/span[1]" );\r
-        $this->assertEquals( EMAIL_ADDRESS_HELP,\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[4]/div[1]/div/span[2]/p" ));\r
-\r
-        // Verify help field for 'Subscribe to the release announcements mailing list'\r
-        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[5]/div/span[1]" );\r
-        $this->assertEquals( SUBSCRIBE_MAILING_LIST_HELP,\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[5]/div/span[2]/p" ));\r
-        parent::restartInstallation();\r
-    }\r
-}\r
-\r
+<?php
+
+/**
+ * MediaWikiHelpFieldHintTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+/*
+ * Test Case ID   : 29 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Help field hint availability for the fields.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+class MediaWikiHelpFieldHintTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp(){
+        parent::setUp();
+    }
+
+
+    // Verify help field availability for the fields
+    public function testMySQLConnectToDatabaseFieldHint(){
+
+        parent::navigateConnetToDatabasePage();
+
+        // Verify help field for 'Database host'
+        $this->click( "//div[@id='DB_wrapper_mysql']/div/div[1]/div/span[1]" );
+        $this->assertEquals( MYSQL_DATABASE_HOST_HELP,
+                $this->getText( "//div[@id='DB_wrapper_mysql']/div/div[1]/div/span[2]" ) );
+
+        // Verify help field for 'Database name'
+        $this->click( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/div/span[1]" );
+        $this->assertEquals( MYSQL_DATABASE_NAME_HELP,
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/div/span[2]" ));
+
+
+        // Verify help field for 'Database table prefix'
+        $this->click("//div[@id='DB_wrapper_mysql']/fieldset[1]/div[2]/div[1]/div/span[1]" );
+        $this->assertEquals(MYSQL_DATABASE_TABLE_PREFIX_HELP,
+                $this->getText("//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/div/span[2]/p[1]" ));
+
+        // Verify help field for 'Database username'
+        $this->click( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[1]/div[1]/div/span[1]" );
+        $this->assertEquals( MYSQL_DATBASE_USERNAME_HELP,
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[1]/div[1]/div/span[2]" ));
+
+        // Verify help field for 'Database password'
+        $this->click( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[2]/div[1]/div/span[1]" );
+        $this->assertEquals( MYSQL_DATABASE_PASSWORD_HELP,
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[2]/div[1]/div/span[2]/p" ));
+    }
+
+
+    public function testSQLiteConnectToDatabaseFieldHint(){
+
+        parent::navigateConnetToDatabasePage();
+        $this->click( "DBType_sqlite" );
+
+        //  Verify help field for 'SQLite data directory'
+        $this->click( "//div[@id='DB_wrapper_sqlite']/div[1]/div[1]/div/span[1]" );
+        $this->assertEquals( SQLITE_DATA_DIRECTORY_HELP,
+                $this->getText( "//div[@id='DB_wrapper_sqlite']/div[1]/div[1]/div/span[2]" ));
+
+        // Verify help field for 'Database name'
+        $this->click( "//div[@id='DB_wrapper_sqlite']/div[2]/div[1]/div/span[1]" );
+        $this->assertEquals( SQLITE_DATABASE_NAME_HELP , $this->getText( "//div[@id='DB_wrapper_sqlite']/div[2]/div[1]/div/span[2]/p" ));
+    }
+
+
+    public function testDatabaseSettingsFieldHint(){
+
+        $databaseName = DB_NAME_PREFIX."_db_field";
+        parent::navigateDatabaseSettingsPage($databaseName);
+
+        // Verify help field for 'Search engine'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/span[1]" );
+        $this->assertEquals( SEARCH_ENGINE_HELP,
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/span[2]" ));
+
+        // Verify help field for 'Database character set'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[4]/span[1]" );
+        $this->assertEquals( DATABASE_CHARACTER_SET_HELP,
+                $this->getText("//div[@id='bodyContent']/div/div/div[2]/form/div[4]/span[2]"));
+        parent::restartInstallation();
+    }
+
+
+    public function testNameFieldHint(){
+
+        $databaseName = DB_NAME_PREFIX."_name_field";
+        parent::navigateNamePage( $databaseName );
+
+        // Verify help field for 'Name of Wiki'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/div/span[1]" );
+        $this->assertEquals( NAME_OF_WIKI_HELP,
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/div/span[2]/p" ));
+
+        // Verify help field for 'Project namespace'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/div/span[1]" );
+        $this->assertEquals( PROJECT_NAMESPACE_HELP,
+                $this->getText("//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/div/span[2]/p"));
+
+        // Verify help field for 'Your Name'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/div[1]/div/span[1]" );
+        $this->assertEquals( USER_NAME_HELP,
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/div[1]/div/span[2]/p" ));
+
+        // Verify help field for 'E mail address'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[4]/div[1]/div/span[1]" );
+        $this->assertEquals( EMAIL_ADDRESS_HELP,
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[4]/div[1]/div/span[2]/p" ));
+
+        // Verify help field for 'Subscribe to the release announcements mailing list'
+        $this->click( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[5]/div/span[1]" );
+        $this->assertEquals( SUBSCRIBE_MAILING_LIST_HELP,
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[5]/div/span[2]/p" ));
+        parent::restartInstallation();
+    }
+}
+
index 1d82545..91d22a4 100644 (file)
@@ -1,83 +1,83 @@
-<?php\r
-\r
-/**\r
- * MediaWikiOnAlreadyInstalledTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 01 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install Mediawiki using 'MySQL' database type successfully\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiMySQLDataBaseTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-    // Verify  MediaWiki installation using 'MySQL' database type\r
-    public function testMySQLDatabaseSuccess(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_sql_db";\r
-\r
-        parent::navigateConnetToDatabasePage();\r
-\r
-        // Verify 'MySQL" is selected as the default database type\r
-        $this->assertEquals( "MySQL settings", $this->getText( "//div[@id='DB_wrapper_mysql']/h3" ));\r
-\r
-        // Change 'Database name'\r
-        $defaultDbName = $this->getText( "mysql_wgDBname" );\r
-        $this->type( "mysql_wgDBname", " ");\r
-        $this->type( "mysql_wgDBname", $databaseName );\r
-        $this->assertNotEquals( $defaultDbName, $databaseName );\r
-\r
-        // 'Database settings' page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Name' page\r
-        parent::clickContinueButton();\r
-        parent::completeNamePage();\r
-\r
-        // 'Options page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Install' page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Complete' page\r
-        $this->assertEquals( "Complete!",\r
-                $this->getText("//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Congratulations!' text should be available in the 'Complete!' page.\r
-        $this->assertEquals( "Congratulations!",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));\r
-        parent::restartInstallation();\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiOnAlreadyInstalledTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 01 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install Mediawiki using 'MySQL' database type successfully
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiMySQLDataBaseTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp(){
+        parent::setUp();
+    }
+
+    // Verify  MediaWiki installation using 'MySQL' database type
+    public function testMySQLDatabaseSuccess(){
+
+        $databaseName = DB_NAME_PREFIX."_sql_db";
+
+        parent::navigateConnetToDatabasePage();
+
+        // Verify 'MySQL" is selected as the default database type
+        $this->assertEquals( "MySQL settings", $this->getText( "//div[@id='DB_wrapper_mysql']/h3" ));
+
+        // Change 'Database name'
+        $defaultDbName = $this->getText( "mysql_wgDBname" );
+        $this->type( "mysql_wgDBname", " ");
+        $this->type( "mysql_wgDBname", $databaseName );
+        $this->assertNotEquals( $defaultDbName, $databaseName );
+
+        // 'Database settings' page
+        parent::clickContinueButton();
+
+        // 'Name' page
+        parent::clickContinueButton();
+        parent::completeNamePage();
+
+        // 'Options page
+        parent::clickContinueButton();
+
+        // 'Install' page
+        parent::clickContinueButton();
+
+        // 'Complete' page
+        $this->assertEquals( "Complete!",
+                $this->getText("//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Congratulations!' text should be available in the 'Complete!' page.
+        $this->assertEquals( "Congratulations!",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));
+        parent::restartInstallation();
+    }
+}
index 6e7f0ad..9a0f272 100644 (file)
@@ -1,84 +1,84 @@
-<?php\r
-\r
-/**\r
- * MediaWikiMySQLiteataBaseTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 06 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install Mediawiki using 'MySQL' database type successfully\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiMySQLiteDataBaseTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp() {\r
-        parent::setUp();\r
-    }\r
-\r
-    // Verify  MediaWiki installation using 'MySQL' database type\r
-    public function testMySQLDatabaseSuccess() {\r
-\r
-        $databaseName = DB_NAME_PREFIX."_sqlite_db";\r
-\r
-        parent::navigateConnetToDatabasePage();\r
-        $this->click( "DBType_sqlite" );\r
-\r
-        // Select 'SQLite' database type\r
-        $this->assertEquals( "SQLite settings", $this->getText( "//div[@id='DB_wrapper_sqlite']/h3" ));\r
-        \r
-        // Change database name\r
-        $defaultDbName = $this->getText( "sqlite_wgDBname" );\r
-        $this->type( "sqlite_wgDBname", " ");\r
-        $this->type( "sqlite_wgDBname", $databaseName );\r
-        $this->assertNotEquals( $defaultDbName, $databaseName );\r
-\r
-        // 'Database settings' page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Name' page\r
-        parent::clickContinueButton();\r
-        parent::completeNamePage();\r
-\r
-        // 'Options page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Install' page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Complete' page\r
-        $this->assertEquals( "Complete!",\r
-                $this->getText("//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Congratulations!' text should be available in the 'Complete!' page.\r
-        $this->assertEquals( "Congratulations!",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));\r
-        parent::restartInstallation();\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiMySQLiteataBaseTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 06 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install Mediawiki using 'MySQL' database type successfully
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiMySQLiteDataBaseTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp() {
+        parent::setUp();
+    }
+
+    // Verify  MediaWiki installation using 'MySQL' database type
+    public function testMySQLDatabaseSuccess() {
+
+        $databaseName = DB_NAME_PREFIX."_sqlite_db";
+
+        parent::navigateConnetToDatabasePage();
+        $this->click( "DBType_sqlite" );
+
+        // Select 'SQLite' database type
+        $this->assertEquals( "SQLite settings", $this->getText( "//div[@id='DB_wrapper_sqlite']/h3" ));
+        
+        // Change database name
+        $defaultDbName = $this->getText( "sqlite_wgDBname" );
+        $this->type( "sqlite_wgDBname", " ");
+        $this->type( "sqlite_wgDBname", $databaseName );
+        $this->assertNotEquals( $defaultDbName, $databaseName );
+
+        // 'Database settings' page
+        parent::clickContinueButton();
+
+        // 'Name' page
+        parent::clickContinueButton();
+        parent::completeNamePage();
+
+        // 'Options page
+        parent::clickContinueButton();
+
+        // 'Install' page
+        parent::clickContinueButton();
+
+        // 'Complete' page
+        $this->assertEquals( "Complete!",
+                $this->getText("//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Congratulations!' text should be available in the 'Complete!' page.
+        $this->assertEquals( "Congratulations!",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));
+        parent::restartInstallation();
+    }
+}
index b380788..d657264 100644 (file)
@@ -1,74 +1,74 @@
-<?php\r
-\r
-/**\r
- * Selenium server manager\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-\r
-/*\r
- * Test Case ID   : 03 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install mediawiki on a already installed Mediawiki.]\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiOnAlreadyInstalledTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp() {\r
-        parent::setUp();\r
-    }\r
-\r
-    // Install Mediawiki using 'MySQL' database type.\r
-    public function testInstallOnAlreadyInstalled() {\r
-\r
-        $databaseName = DB_NAME_PREFIX."_already_installed";\r
-        parent::navigateInstallPage( $databaseName );\r
-\r
-        // 'Options' page\r
-        parent::clickBackButton();\r
-\r
-        // Install page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Install' page should display after the 'Option' page\r
-        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // Verify warning text displayed\r
-        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));\r
-\r
-        // Complete page\r
-        parent::clickContinueButton();\r
-\r
-        // Clicking in the 'Continue' button should display the 'Complete' page with 'Congratulations!' text.\r
-        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-        $this->assertEquals( "Congratulations!", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));\r
-        $this->chooseCancelOnNextConfirmation();\r
-        parent::restartInstallation();\r
-    }\r
-}\r
+<?php
+
+/**
+ * Selenium server manager
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+
+/*
+ * Test Case ID   : 03 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install mediawiki on a already installed Mediawiki.]
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiOnAlreadyInstalledTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp() {
+        parent::setUp();
+    }
+
+    // Install Mediawiki using 'MySQL' database type.
+    public function testInstallOnAlreadyInstalled() {
+
+        $databaseName = DB_NAME_PREFIX."_already_installed";
+        parent::navigateInstallPage( $databaseName );
+
+        // 'Options' page
+        parent::clickBackButton();
+
+        // Install page
+        parent::clickContinueButton();
+
+        // 'Install' page should display after the 'Option' page
+        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // Verify warning text displayed
+        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));
+
+        // Complete page
+        parent::clickContinueButton();
+
+        // Clicking in the 'Continue' button should display the 'Complete' page with 'Congratulations!' text.
+        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+        $this->assertEquals( "Congratulations!", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));
+        $this->chooseCancelOnNextConfirmation();
+        parent::restartInstallation();
+    }
+}
index 3d7e385..5102307 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiRestartInstallationTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 11, 12 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install mediawiki on a already installed Mediawiki.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-class MediaWikiRestartInstallationTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp() {\r
-        parent::setUp();\r
-    }\r
-\r
-    // Verify restarting the installation\r
-    public function testSuccessRestartInstallation() {\r
-\r
-        $dbNameBeforeRestart  = DB_NAME_PREFIX."_db_before";\r
-        parent::navigateDatabaseSettingsPage( $dbNameBeforeRestart );\r
-\r
-        // Verify 'Restart installation' link available\r
-        $this->assertTrue($this->isElementPresent( "link=Restart installation" ));\r
-\r
-        // Click 'Restart installation'\r
-        $this->click( "link=Restart installation ");\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-\r
-        // 'Restart Installation' page displayed\r
-        $this->assertEquals( "Restart installation", $this->getText("//div[@id='bodyContent']/div/div/h2"));\r
-\r
-        // Restart warning message displayed\r
-        $this->assertTrue($this->isTextPresent( "exact:Do you want to clear all saved data that you have entered and restart the installation process?" ));\r
-\r
-        // Click on the 'Yes, restart' button\r
-        $this->click( "submit-restart" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-\r
-        // Navigate to the initial installation page(Language).\r
-        $this->assertEquals(  "Language", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Welcome to MediaWiki!' page\r
-        parent::clickContinueButton();\r
-\r
-        // 'Connect to database' page\r
-        parent::clickContinueButton();\r
-\r
-        // saved data should be deleted\r
-        $dbNameAfterRestart = $this->getValue("mysql_wgDBname");\r
-        $this->assertNotEquals($dbNameBeforeRestart, $dbNameAfterRestart);\r
-    }\r
-\r
-\r
-    // Verify cancelling restart\r
-    public function testCancelRestartInstallation(){\r
-\r
-        $dbNameBeforeRestart  = DB_NAME_PREFIX."_cancel_restart";\r
-\r
-        parent::navigateDatabaseSettingsPage( $dbNameBeforeRestart);\r
-        // Verify 'Restart installation' link available\r
-        $this->assertTrue($this->isElementPresent( "link=Restart installation" ));\r
-\r
-        $this->click( "link=Restart installation" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-\r
-        // 'Restart Installation' page displayed\r
-        $this->assertEquals( "Restart installation", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // Restart warning message displayed\r
-        $this->assertTrue( $this->isTextPresent( "Do you want to clear all saved data that you have entered and restart the installation process?"));\r
-\r
-        // Click on the 'Back' button\r
-        parent::clickBackButton();\r
-\r
-        // Navigates to the previous page\r
-        $this->assertEquals( "Database settings", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));;\r
-\r
-        // 'Connect to database' page\r
-        parent::clickBackButton();\r
-\r
-        // Saved data remain on the page.\r
-        $dbNameAfterRestart = $this->getValue( "mysql_wgDBname" );\r
-        $this->assertEquals( $dbNameBeforeRestart, $dbNameAfterRestart );\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiRestartInstallationTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 11, 12 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install mediawiki on a already installed Mediawiki.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+class MediaWikiRestartInstallationTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp() {
+        parent::setUp();
+    }
+
+    // Verify restarting the installation
+    public function testSuccessRestartInstallation() {
+
+        $dbNameBeforeRestart  = DB_NAME_PREFIX."_db_before";
+        parent::navigateDatabaseSettingsPage( $dbNameBeforeRestart );
+
+        // Verify 'Restart installation' link available
+        $this->assertTrue($this->isElementPresent( "link=Restart installation" ));
+
+        // Click 'Restart installation'
+        $this->click( "link=Restart installation ");
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+
+        // 'Restart Installation' page displayed
+        $this->assertEquals( "Restart installation", $this->getText("//div[@id='bodyContent']/div/div/h2"));
+
+        // Restart warning message displayed
+        $this->assertTrue($this->isTextPresent( "exact:Do you want to clear all saved data that you have entered and restart the installation process?" ));
+
+        // Click on the 'Yes, restart' button
+        $this->click( "submit-restart" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+
+        // Navigate to the initial installation page(Language).
+        $this->assertEquals(  "Language", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Welcome to MediaWiki!' page
+        parent::clickContinueButton();
+
+        // 'Connect to database' page
+        parent::clickContinueButton();
+
+        // saved data should be deleted
+        $dbNameAfterRestart = $this->getValue("mysql_wgDBname");
+        $this->assertNotEquals($dbNameBeforeRestart, $dbNameAfterRestart);
+    }
+
+
+    // Verify cancelling restart
+    public function testCancelRestartInstallation(){
+
+        $dbNameBeforeRestart  = DB_NAME_PREFIX."_cancel_restart";
+
+        parent::navigateDatabaseSettingsPage( $dbNameBeforeRestart);
+        // Verify 'Restart installation' link available
+        $this->assertTrue($this->isElementPresent( "link=Restart installation" ));
+
+        $this->click( "link=Restart installation" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+
+        // 'Restart Installation' page displayed
+        $this->assertEquals( "Restart installation", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // Restart warning message displayed
+        $this->assertTrue( $this->isTextPresent( "Do you want to clear all saved data that you have entered and restart the installation process?"));
+
+        // Click on the 'Back' button
+        parent::clickBackButton();
+
+        // Navigates to the previous page
+        $this->assertEquals( "Database settings", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));;
+
+        // 'Connect to database' page
+        parent::clickBackButton();
+
+        // Saved data remain on the page.
+        $dbNameAfterRestart = $this->getValue( "mysql_wgDBname" );
+        $this->assertEquals( $dbNameBeforeRestart, $dbNameAfterRestart );
+    }
+}
index a491405..6357685 100644 (file)
@@ -1,93 +1,93 @@
-<?php\r
-\r
-/**\r
- * MediaWikiRightFrameworkLinksTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 14, 15, 16, 17 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : User selects 'Read me' link.\r
- *                  User selects 'Release notes' link.\r
- *                  User selects 'Copying' link.\r
- *                  User selects 'Upgrading' link.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-\r
-class MediaWikiRightFrameworkLinksTestCase extends MediaWikiInstallationCommonFunction{\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-    public function testLinksAvailability(){\r
-        \r
-        $this->open( "http://localhost:".PORT."/".DIRECTORY_NAME."/config/index.php" );\r
-\r
-        // Verify 'Read me' link availability\r
-        $this->assertTrue($this->isElementPresent( "link=Read me" ));\r
-\r
-        // Verify 'Release notes' link availability\r
-        $this->assertTrue($this->isElementPresent( "link=Release notes" ));\r
-\r
-        //  Verify 'Copying' link availability\r
-        $this->assertTrue($this->isElementPresent( "link=Copying" ));\r
-    }\r
-\r
-    public function testPageNavigation(){\r
-\r
-        $this->open( "http://localhost:".PORT."/".DIRECTORY_NAME."/config/index.php" );\r
-\r
-        // Navigate to the 'Read me' page\r
-        $this->click( "link=Read me" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-        $this->assertEquals( "Read me", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));\r
-        $this->assertTrue($this->isElementPresent( "submit-back" ));\r
-        parent::clickBackButton();\r
-\r
-        // Navigate to the 'Release notes' page\r
-        $this->click( "link=Release notes" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME);\r
-        $this->assertEquals( "Release notes", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));\r
-        $this->assertTrue( $this->isElementPresent( "submit-back" ));\r
-        parent::clickBackButton();\r
-\r
-        // Navigate to the 'Copying' page\r
-        $this->click( "link=Copying" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-        $this->assertEquals( "Copying", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));\r
-        $this->assertTrue($this->isElementPresent( "submit-back" ));\r
-        parent::clickBackButton();\r
-\r
-        // Navigate to the 'Upgrading' page\r
-        $this->click( "link=Upgrading" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-        $this->assertEquals( "Upgrading", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiRightFrameworkLinksTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 14, 15, 16, 17 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : User selects 'Read me' link.
+ *                  User selects 'Release notes' link.
+ *                  User selects 'Copying' link.
+ *                  User selects 'Upgrading' link.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+
+class MediaWikiRightFrameworkLinksTestCase extends MediaWikiInstallationCommonFunction{
+
+    function setUp(){
+        parent::setUp();
+    }
+
+    public function testLinksAvailability(){
+        
+        $this->open( "http://localhost:".PORT."/".DIRECTORY_NAME."/config/index.php" );
+
+        // Verify 'Read me' link availability
+        $this->assertTrue($this->isElementPresent( "link=Read me" ));
+
+        // Verify 'Release notes' link availability
+        $this->assertTrue($this->isElementPresent( "link=Release notes" ));
+
+        //  Verify 'Copying' link availability
+        $this->assertTrue($this->isElementPresent( "link=Copying" ));
+    }
+
+    public function testPageNavigation(){
+
+        $this->open( "http://localhost:".PORT."/".DIRECTORY_NAME."/config/index.php" );
+
+        // Navigate to the 'Read me' page
+        $this->click( "link=Read me" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+        $this->assertEquals( "Read me", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));
+        $this->assertTrue($this->isElementPresent( "submit-back" ));
+        parent::clickBackButton();
+
+        // Navigate to the 'Release notes' page
+        $this->click( "link=Release notes" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME);
+        $this->assertEquals( "Release notes", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));
+        $this->assertTrue( $this->isElementPresent( "submit-back" ));
+        parent::clickBackButton();
+
+        // Navigate to the 'Copying' page
+        $this->click( "link=Copying" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+        $this->assertEquals( "Copying", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));
+        $this->assertTrue($this->isElementPresent( "submit-back" ));
+        parent::clickBackButton();
+
+        // Navigate to the 'Upgrading' page
+        $this->click( "link=Upgrading" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+        $this->assertEquals( "Upgrading", $this->getText( "//div[@id='bodyContent']/div/div/h2[1]" ));
+    }
+}
index 5e9e97d..13214d6 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiUpgradeExistingDatabaseTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 05 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : Install Mediawiki by updating the existing database.\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-\r
-class MediaWikiUpgradeExistingDatabaseTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp(){\r
-        parent::setUp();\r
-    }\r
-\r
-    // Install Mediawiki using 'MySQL' database type.\r
-    public function testUpgradeExistingDatabase(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_upgrade_existing";\r
-        parent::navigateInstallPage( $databaseName );\r
-\r
-        $this->open( "http://localhost:".PORT."/".DIRECTORY_NAME."/config/index.php" );\r
-        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));\r
-\r
-        // 'Optionis' page\r
-        parent::clickBackButton();\r
-\r
-        // 'Name' page\r
-        parent::clickBackButton();\r
-\r
-        // 'Database settings' page\r
-        parent::clickBackButton();\r
-\r
-        // 'Connect to database' page\r
-        parent::clickBackButton();\r
-        $this->type( "mysql_wgDBname", $databaseName );\r
-        parent::clickContinueButton();\r
-\r
-        // 'Upgrade existing installation' page  displayed next to the 'Connect to database' page.\r
-        $this->assertEquals( "Upgrade existing installation", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // Warning message displayed.\r
-        $this->assertEquals( "There are MediaWiki tables in this database.To upgrade them to MediaWiki 1.18alpha, click Continue.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));\r
-\r
-        parent::clickContinueButton();\r
-        $this->assertEquals( "Upgrade existing installation",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Upgrade complete.' text display\r
-        $this->assertEquals( "Upgrade complete.You can now start using your wiki. \nIf you want to regenerate your LocalSettings.php file, click the button below. This is not recommended unless you are having problems with your wiki.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[4]/form/div[1]/div[2]"));\r
-\r
-        $this->assertTrue($this->isElementPresent( "submit-regenerate" ));\r
-        $this->click( "submit-regenerate" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-        $this->assertEquals( "Database settings",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Database settings' page\r
-        parent::clickContinueButton();\r
-\r
-        // Name page\r
-        parent::completeNamePage();\r
-\r
-        // Options page\r
-        parent::clickContinueButton();\r
-\r
-        // Install page\r
-        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));\r
-        parent::clickContinueButton();\r
-\r
-        // complete\r
-        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-        $this->assertEquals( "Congratulations!",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));\r
-        $this->chooseCancelOnNextConfirmation();\r
-        parent::restartInstallation();\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiUpgradeExistingDatabaseTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 05 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : Install Mediawiki by updating the existing database.
+ * Version        : MediaWiki 1.18alpha
+*/
+
+
+class MediaWikiUpgradeExistingDatabaseTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp(){
+        parent::setUp();
+    }
+
+    // Install Mediawiki using 'MySQL' database type.
+    public function testUpgradeExistingDatabase(){
+
+        $databaseName = DB_NAME_PREFIX."_upgrade_existing";
+        parent::navigateInstallPage( $databaseName );
+
+        $this->open( "http://localhost:".PORT."/".DIRECTORY_NAME."/config/index.php" );
+        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));
+
+        // 'Optionis' page
+        parent::clickBackButton();
+
+        // 'Name' page
+        parent::clickBackButton();
+
+        // 'Database settings' page
+        parent::clickBackButton();
+
+        // 'Connect to database' page
+        parent::clickBackButton();
+        $this->type( "mysql_wgDBname", $databaseName );
+        parent::clickContinueButton();
+
+        // 'Upgrade existing installation' page  displayed next to the 'Connect to database' page.
+        $this->assertEquals( "Upgrade existing installation", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // Warning message displayed.
+        $this->assertEquals( "There are MediaWiki tables in this database.To upgrade them to MediaWiki 1.18alpha, click Continue.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));
+
+        parent::clickContinueButton();
+        $this->assertEquals( "Upgrade existing installation",
+                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Upgrade complete.' text display
+        $this->assertEquals( "Upgrade complete.You can now start using your wiki. \nIf you want to regenerate your LocalSettings.php file, click the button below. This is not recommended unless you are having problems with your wiki.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[4]/form/div[1]/div[2]"));
+
+        $this->assertTrue($this->isElementPresent( "submit-regenerate" ));
+        $this->click( "submit-regenerate" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+        $this->assertEquals( "Database settings",
+                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Database settings' page
+        parent::clickContinueButton();
+
+        // Name page
+        parent::completeNamePage();
+
+        // Options page
+        parent::clickContinueButton();
+
+        // Install page
+        $this->assertEquals( "Warning: You seem to have already installed MediaWiki and are trying to install it again.Please proceed to the next page.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));
+        parent::clickContinueButton();
+
+        // complete
+        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+        $this->assertEquals( "Congratulations!",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));
+        $this->chooseCancelOnNextConfirmation();
+        parent::restartInstallation();
+    }
+}
index bd718c5..9cf2fca 100644 (file)
-<?php\r
-\r
-/**\r
- * MediaWikiUserInterfaceTestCase\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-require_once 'MediaWikiInstallationCommonFunction.php';\r
-\r
-/*\r
- * Test Case ID   : 18 - 27 (http://www.mediawiki.org/wiki/New_installer/Test_plan)\r
- * Test Case Name : UI of MediaWiki initial/ Language/ Welcome to MediaWiki!/ Connect to database/\r
- * Database settings/ Name/ Options/ Install/ Complete/ Restart Inslation pages\r
- * Version        : MediaWiki 1.18alpha\r
-*/\r
-\r
-\r
-class MediaWikiUserInterfaceTestCase extends MediaWikiInstallationCommonFunction {\r
-\r
-    function setUp() {\r
-        $this->setBrowser("*chrome");\r
-        $this->setBrowserUrl("http://localhost:".PORT."/".DIRECTORY_NAME."/");\r
-    }\r
-\r
\r
-    public function testInitialPageUI(){\r
-\r
-        parent::navigateInitialpage();\r
-\r
-        // MediaWiki logo available\r
-        $this->assertTrue( $this->isElementPresent( "//img[@alt='The MediaWiki logo']" ));\r
-\r
-        // 'MediaWiki 1.18alpha' text available\r
-        $this->assertEquals( "MediaWiki 1.18alpha", $this->getText( "//h1" ));\r
-\r
-        // 'LocalSettings.php not found.' text available\r
-        $this->assertEquals( "LocalSettings.php not found.", $this->getText( "//p[1]" ));\r
-\r
-        // 'Please set up the wiki first' text available\r
-        $this->assertEquals( "Please set up the wiki first.", $this->getText( "//p[2]" ));\r
-\r
-        // 'set up the wiki' link available\r
-        $this->assertTrue($this->isElementPresent( "link=set up the wiki" ));\r
-    }\r
-\r
-\r
-    public function testlanguagePageUI(){\r
-\r
-        parent::navigateLanguagePage();\r
-\r
-        // Verify 'Language' heading\r
-        $this->assertEquals( "Language", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Your language' label available\r
-        $this->assertEquals( "Your language:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/label" ));\r
-\r
-        // 'Your language' dropdown available\r
-        $this->assertTrue( $this->isElementPresent( "UserLang" ));\r
-\r
-        // 'Wiki language' label available\r
-        $this->assertEquals( "Wiki language:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/label" ));\r
-\r
-        // 'Wiki language' dropdown available\r
-        $this->assertTrue($this->isElementPresent( "ContLang" ));\r
-    }\r
-\r
-\r
-    public function testWelcometoMediaWikiUI(){\r
-\r
-        parent::navigateWelcometoMediaWikiPage();\r
-\r
-        // Verify 'Welcome to MediaWiki!' heading\r
-        $this->assertEquals( "Welcome to MediaWiki!",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // Verify environment ok text displayed.\r
-        $this->assertEquals( "The environment has been checked.You can install MediaWiki.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[7]/span" ));\r
-    }\r
-\r
-\r
-    public function testConnectToDatabaseUI(){\r
-\r
-        parent::navigateConnetToDatabasePage();\r
-\r
-        //  'MYSQL radio button available\r
-        $this->assertEquals( "MySQL",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[1]/label" ));\r
-        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[1]" ));\r
-\r
-        // 'SQLite' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[2]" ));\r
-        $this->assertEquals( "SQLite", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[2]/label "));\r
-\r
-        // 'Database host' label available\r
-        $this->assertEquals( "Database host:", $this->getText( "//div[@id='DB_wrapper_mysql']/div/div[1]/label" ));\r
-\r
-        // 'Database host' text box default to 'localhost'\r
-        $this->assertEquals( "localhost", $this->getValue( "mysql_wgDBserver" ));\r
-\r
-        // 'Identify this wiki' section available\r
-        $this->assertTrue( $this->isElementPresent( "//div[@id='DB_wrapper_mysql']/fieldset[1]/legend" ));\r
-\r
-        // 'Identify this wiki' label available\r
-        $this->assertEquals( "Identify this wiki", $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/legend" ));\r
-\r
-        // 'Database name' lable available\r
-        $this->assertEquals( "Database name:",\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/label" ));\r
-\r
-        // Verify 'Database name:' text box is default to 'my_wiki'\r
-        $this->assertEquals( "my_wiki", $this->getValue( "mysql_wgDBname" ));\r
-\r
-        // Verify 'Database table prefix:' label available\r
-        $this->assertEquals( "Database table prefix:",\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[2]/div[1]/label" ));\r
-\r
-        // 'User account for installation' section available\r
-        $this->assertTrue( $this->isElementPresent( "//div[@id='DB_wrapper_mysql']/fieldset[2]/legend" ));\r
-\r
-        // 'User account for installation' label available\r
-        $this->assertEquals( "User account for installation", $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/legend" ));\r
-\r
-        // 'Database username' label available\r
-        $this->assertEquals( "Database username:",\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[1]/div[1]/label" ));\r
-\r
-        // 'Database username' text box defaults to 'root'\r
-        $this->assertEquals("root", $this->getValue( "mysql__InstallUser" ));\r
-\r
-        // 'Database password' label available\r
-        $this->assertEquals( "Database password:",\r
-                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[2]/div[1]/label" ));\r
-    }\r
-\r
-\r
-\r
-    public function testDatabaseSettingsUI(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_db_settings_UI";\r
-        parent::navigateDatabaseSettingsPage( $databaseName );\r
-\r
-        // 'Database settings' text available.\r
-        $this->assertEquals( "Database settings", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        // 'Database account for web access' section available\r
-        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset" ));\r
-\r
-        // 'Database account for web access' label available\r
-        $this->assertEquals( "Database account for web access", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/legend" ));\r
-\r
-        // 'Use the same account as for installation' check box available\r
-        $this->assertEquals( "Use the same account as for installation", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/label" ));\r
-\r
-        // 'Use the same account as for installation' check box is selected by default\r
-        $this->assertEquals( "on", $this->getValue( "mysql__SameAccount" ));\r
-\r
-        // 'Use the same account as for installation' check box deselected\r
-        $this->click( "mysql__SameAccount" );\r
-\r
-        // verify 'Use the same account as for installation' check box is not selected\r
-        $this->assertEquals( "off", $this->getValue( "mysql__SameAccount" ));\r
-\r
-        // 'Database username' label available\r
-        $this->assertEquals( "Database username:", $this->getText( "//div[@id='dbOtherAccount']/div[1]/div[1]/label" ));\r
-\r
-        // 'Database username' text box is default to the 'wikiuser'\r
-        $this->assertEquals( "wikiuser", $this->getValue( "mysql_wgDBuser" ));\r
-\r
-        // 'Database password' label available\r
-        $this->assertEquals( "Database password:", $this->getText( "//div[@id='dbOtherAccount']/div[2]/div[1]/label" ));\r
-\r
-        // 'Create the account if it does not already exist' label available\r
-        $this->assertEquals( "Create the account if it does not already exist", $this->getText( "//div[@id='dbOtherAccount']/div[4]/label" ));\r
-\r
-        // 'Create the account if it does not already exist' check box is not selected by default\r
-        $this->assertEquals( "off" , $this->getValue( "mysql__CreateDBAccount" ));\r
-\r
-        //  'Create the account if it does not already exist' check box selected\r
-        $this->click( "mysql__CreateDBAccount" );\r
-\r
-        // Verify  'Create the account if it does not already exist' check box is selected\r
-        $this->assertEquals( "on" , $this->getValue( "mysql__CreateDBAccount" ));\r
-        $this->click( "mysql__SameAccount" );\r
-        $this->assertEquals( "on", $this->getValue( "mysql__SameAccount" ));\r
-\r
-        // 'Storage engine' label available\r
-        $this->assertEquals( "Storage engine:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/label"));\r
-\r
-        // 'InnoDB' label available\r
-        $this->assertEquals( "InnoDB",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/ul/li[1]/label" ));\r
-\r
-        // 'InnoDB' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "mysql__MysqlEngine_InnoDB" ));\r
-\r
-        // 'MyISAM' label available\r
-        $this->assertEquals( "MyISAM", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/ul/li[2]/label" ));\r
-\r
-        // 'MyISAM' radio button available\r
-        $this->assertTrue($this->isElementPresent( "mysql__MysqlEngine_MyISAM" ));\r
-\r
-        // 'Database character set' label available\r
-        $this->assertEquals( "Database character set:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[3]/div[1]/label" ));\r
-\r
-        // 'Binary' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "mysql__MysqlCharset_binary" ));\r
-\r
-        // 'Binary' radio button available\r
-        $this->assertEquals( "Binary", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[3]/div[2]/ul/li[1]/label" ));\r
-\r
-        // 'UTF-8' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "mysql__MysqlCharset_utf8" ));\r
-\r
-        // 'UTF-8' label available\r
-        $this->assertEquals( "UTF-8", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[3]/div[2]/ul/li[2]/label" ));\r
-\r
-        // 'Binary' radio button is selected\r
-        $this->assertEquals( "on", $this->getValue( "mysql__MysqlCharset_binary" ));\r
-    }\r
-\r
-    public function testNamePageUI(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_name_UI";\r
-        parent::navigateNamePage($databaseName);\r
-\r
-        // 'Name of wiki' text box available\r
-        $this->assertEquals( "Name of wiki:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/label" ));\r
-\r
-        $this->assertTrue( $this->isElementPresent( "config_wgSitename" ));\r
-\r
-        // 'Project namespace' label available\r
-        $this->assertEquals( "Project namespace:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/label" ));\r
-\r
-        // 'Same as the wiki name' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "config__NamespaceType_site-name" ));\r
-\r
-        // 'Project' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "config__NamespaceType_generic" ));\r
-\r
-        // 'Project' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "config__NamespaceType_other" ));\r
-\r
-        // 'Same as the wiki name' label available\r
-        $this->assertEquals( "Same as the wiki name:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[1]/label" ));\r
-\r
-        // 'Project' label available\r
-        $this->assertEquals("Project",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[2]/label" ));\r
-\r
-        // 'Project' label available\r
-        $this->assertEquals( "Other (specify)",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[3]/label" ));\r
-\r
-        //  'Same as the wiki name' radio button selected by default\r
-        $this->assertEquals( "on", $this->getValue( "config__NamespaceType_site-name" ));\r
-\r
-        // 'Administrator account' section available\r
-        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset" ));\r
-\r
-        // 'Administrator account' label available\r
-        $this->assertEquals( "Administrator account",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/legend" ));\r
-\r
-        // 'Your Name' label available\r
-        $this->assertEquals( "Your name:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/div[1]/label" ));\r
-\r
-        // 'Your Name' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config__AdminName" ));\r
-\r
-        // 'Password' label available\r
-        $this->assertEquals( "Password:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[2]/div[1]/label" ));\r
-\r
-        // 'Password' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config__AdminPassword" ));\r
-\r
-        // 'Password again' label available\r
-        $this->assertEquals( "Password again:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[3]/div[1]/label" ));\r
-\r
-        // 'Password again' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config__AdminPassword2" ));\r
-\r
-        // 'Email address' label avaialble\r
-        $this->assertEquals( "E-mail address:",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[4]/div[1]/label" ));\r
-\r
-        // 'Email address' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config__AdminEmail" ));\r
-\r
-        // 'Subscribe to the release announcements mailing list. ' check box available\r
-        $this->assertTrue( $this->isElementPresent( "config__Subscribe" ));\r
-\r
-        // 'Subscribe to the release announcements mailing list. ' label avaialble\r
-        $this->assertEquals( "Subscribe to the release announcements mailing list.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[5]/label" ));\r
-\r
-        // 'release announcements mailing list' link available\r
-        $this->assertTrue( $this->isElementPresent( "link=release announcements mailing list" ));\r
-\r
-        // Message displayed\r
-        $this->assertEquals( "You are almost done!You can now skip the remaining configuration and install the wiki right now.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[4]/div[2]" ));\r
-\r
-        // 'Ask me more questions.' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "config__SkipOptional_continue" ));\r
-\r
-        // 'Ask me more questions.' label available\r
-        $this->assertEquals( "Ask me more questions.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[5]/div[2]/ul/li[1]/label" ));\r
-\r
-        // 'I'm bored already, just install the wiki' radio button is avaiable\r
-        $this->assertTrue( $this->isElementPresent( "config__SkipOptional_skip" ));\r
-\r
-        // 'I'm bored already, just install the wiki' label available\r
-        $this->assertEquals( "I'm bored already, just install the wiki.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[5]/div[2]/ul/li[2]/label" ));\r
-\r
-        //  'Ask me more questions.' radio button is default selected\r
-        $this->assertEquals( "on", $this->getValue( "config__SkipOptional_continue" ));\r
-    }\r
-\r
-\r
-    \r
-    public function testOptionPageUI(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_options_UI";\r
-        parent::navigateOptionsPage($databaseName);\r
-\r
-        // 'Options' label available\r
-        $this->assertEquals( "Options", $this->getText("//div[@id='bodyContent']/div/div/h2"));\r
-\r
-        // 'Return e-mail address' label available\r
-        $this->assertEquals( "Return e-mail address:", $this->getText( "//div[@id='emailwrapper']/div[1]/div[1]/label" ));\r
-\r
-        //    'Return e-mail address' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config_wgPasswordSender" ));\r
-\r
-        // Text 'apache@localhost' is default value of the 'Return e-mail address' text box\r
-        $this->assertEquals( "apache@localhost", $this->getValue( "config_wgPasswordSender" ));\r
-\r
-        // 'Logo URL' label available\r
-        $this->assertEquals( "Logo URL:", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset[2]/div[3]/div[1]/label" ));\r
-\r
-        // 'Logo URL' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config_wgLogo" ));\r
-\r
-        // Correct path available in the 'Logo URL' text box\r
-        $this->assertEquals( "/wiki/skins/common/images/wiki.png", $this->getValue( "config_wgLogo" ));\r
-\r
-        // 'Enable file uploads' radio button available\r
-        $this->assertTrue( $this->isElementPresent( "config_wgEnableUploads" ));\r
-\r
-        // 'Enable file uploads' label available\r
-        $this->assertEquals( "Enable file uploads",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset[2]/div[1]/label" ));\r
-\r
-        // 'Enable file uploads' check box is not selected\r
-        $this->assertEquals( "off", $this->getValue( "config_wgEnableUploads" ));\r
-\r
-        $this->click( "config_wgEnableUploads" );\r
-\r
-        // 'Directory for deleted files' label available\r
-        $this->assertEquals( "Directory for deleted files:",\r
-                $this->getText( "//div[@id='uploadwrapper']/div/div[1]/label" ));\r
-\r
-        // 'Directory for deleted files' text box available\r
-        $this->assertTrue( $this->isElementPresent( "config_wgDeletedDirectory" ));\r
-\r
-        // Correct path available in the 'Directory for deleted files' text box\r
-        $this->assertEquals( "C:\\wamp\\www\\".DIRECTORY_NAME."/images/deleted",\r
-                $this->getValue( "config_wgDeletedDirectory" ));\r
-    }\r
-\r
-\r
-\r
-    public function testInstallPageUI(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_install_UI";\r
-        parent::navigateInstallPage( $databaseName );\r
-\r
-        // Verify installation done messages display\r
-        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-        $this->assertEquals( "Setting up database... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[1]" ));\r
-        $this->assertEquals( "Creating database user... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[2]" ));\r
-        $this->assertEquals( "Creating tables... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[3]" ));\r
-        $this->assertEquals( "Populating default interwiki table... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[4]" ));\r
-        $this->assertEquals( "Generating secret key... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[5]" ));\r
-        $this->assertEquals( "Generating default upgrade key... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[6]" ));\r
-        $this->assertEquals( "Creating administrator user account... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[7]" ));\r
-        $this->assertEquals( "Creating main page with default content... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[8]" ));\r
-    }\r
-\r
-\r
-\r
-    public function testCompletePageUI(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_complete_UI";\r
-        parent::navigateCompletePage( $databaseName );\r
-\r
-        // 'Congratulations!' text display\r
-        $this->assertEquals( "Congratulations!",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));\r
-\r
-        // 'LocalSettings.php' generated message display\r
-        $this->assertEquals( "The installer has generated a LocalSettings.php file. It contains all your configuration.",\r
-                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/p[2]" ));\r
-\r
-        // 'Download LocalSettings.php'' link available\r
-        $this->assertTrue( $this->isElementPresent( "link=Download LocalSettings.php" ));\r
-\r
-        // 'enter your wiki' link available\r
-        $this->assertTrue( $this->isElementPresent( "link=enter your wiki" ));\r
-    }\r
-\r
-\r
-\r
-    public function testRestartInstallation(){\r
-        \r
-        parent::navigateConnetToDatabasePage();\r
-        $this->click( "link=Restart installation" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-        \r
-        // Restart installation' label should be available.\r
-        $this->assertEquals( "Restart installation", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));\r
-\r
-        //'Do you want to clear all saved data that you have entered and restart the installation process?' label available\r
-        $this->assertEquals( "Do you want to clear all saved data that you have entered and restart the installation process?",\r
-                $this->getText( "//*[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));\r
-        // 'Back' button available\r
-        $this->assertTrue($this->isElementPresent( "submit-back" ));\r
-\r
-        // 'Restart' button available\r
-        $this->assertTrue($this->isElementPresent( "submit-restart" ));\r
-    }\r
-\r
-\r
-\r
-    public function testMediaWikiLogoAvailability(){\r
-\r
-        $databaseName = DB_NAME_PREFIX."_mediawiki_logo";\r
-        parent::navigateInitialpage();\r
-        parent::mediaWikiLogoPresentInitialScreen();\r
-        $this->click( "link=set up the wiki" );\r
-        $this->waitForPageToLoad( PAGE_LOAD_TIME );\r
-\r
-        // 'Language' page\r
-        parent::mediaWikiLogoPresent();\r
-        parent::clickContinueButton();\r
-\r
-        // 'Welcome to MediaWiki' page\r
-        parent::mediaWikiLogoPresent();\r
-        parent::clickContinueButton();\r
-\r
-        // 'Connet to database' page\r
-        parent::mediaWikiLogoPresent();\r
-        $this->type("mysql_wgDBname", $databaseName );\r
-        parent::clickContinueButton();\r
-\r
-        // 'Database setting' page\r
-        parent::mediaWikiLogoPresent();\r
-        parent::clickContinueButton();\r
-\r
-        // 'Name' page\r
-        parent::mediaWikiLogoPresent();\r
-        parent::completeNamePage();\r
-        parent::clickContinueButton();\r
-\r
-        // 'Options' page\r
-        parent::mediaWikiLogoPresent();\r
-        parent::clickContinueButton();\r
-\r
-        // 'Install' page\r
-        parent::mediaWikiLogoPresent();\r
-    }\r
-\r
-\r
-    public function testRightFramework(){\r
-\r
-        parent::navigateLanguagePage();\r
-        $this->assertEquals( "Language", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[1]/span" ));\r
-        $this->assertEquals( "Welcome to MediaWiki!", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[2]/span" ));\r
-        $this->assertEquals( "Connect to database", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[3]/span" ));\r
-        $this->assertEquals( "Upgrade existing installation", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[4]" ));\r
-        $this->assertEquals( "Database settings", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[5]/span" ));\r
-        $this->assertEquals( "Name", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[6]/span" ));\r
-        $this->assertEquals( "Options", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[7]/span" ));\r
-        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[8]/span" ));\r
-        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[9]/span" ));\r
-    }\r
-}\r
+<?php
+
+/**
+ * MediaWikiUserInterfaceTestCase
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * 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.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+require_once 'MediaWikiInstallationCommonFunction.php';
+
+/*
+ * Test Case ID   : 18 - 27 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
+ * Test Case Name : UI of MediaWiki initial/ Language/ Welcome to MediaWiki!/ Connect to database/
+ * Database settings/ Name/ Options/ Install/ Complete/ Restart Inslation pages
+ * Version        : MediaWiki 1.18alpha
+*/
+
+
+class MediaWikiUserInterfaceTestCase extends MediaWikiInstallationCommonFunction {
+
+    function setUp() {
+        $this->setBrowser("*chrome");
+        $this->setBrowserUrl("http://localhost:".PORT."/".DIRECTORY_NAME."/");
+    }
+
+    public function testInitialPageUI(){
+
+        parent::navigateInitialpage();
+
+        // MediaWiki logo available
+        $this->assertTrue( $this->isElementPresent( "//img[@alt='The MediaWiki logo']" ));
+
+        // 'MediaWiki 1.18alpha' text available
+        $this->assertEquals( "MediaWiki 1.18alpha", $this->getText( "//h1" ));
+
+        // 'LocalSettings.php not found.' text available
+        $this->assertEquals( "LocalSettings.php not found.", $this->getText( "//p[1]" ));
+
+        // 'Please set up the wiki first' text available
+        $this->assertEquals( "Please set up the wiki first.", $this->getText( "//p[2]" ));
+
+        // 'set up the wiki' link available
+        $this->assertTrue($this->isElementPresent( "link=set up the wiki" ));
+    }
+
+
+    public function testlanguagePageUI(){
+
+        parent::navigateLanguagePage();
+
+        // Verify 'Language' heading
+        $this->assertEquals( "Language", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Your language' label available
+        $this->assertEquals( "Your language:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/label" ));
+
+        // 'Your language' dropdown available
+        $this->assertTrue( $this->isElementPresent( "UserLang" ));
+
+        // 'Wiki language' label available
+        $this->assertEquals( "Wiki language:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/label" ));
+
+        // 'Wiki language' dropdown available
+        $this->assertTrue($this->isElementPresent( "ContLang" ));
+    }
+
+
+    public function testWelcometoMediaWikiUI(){
+
+        parent::navigateWelcometoMediaWikiPage();
+
+        // Verify 'Welcome to MediaWiki!' heading
+        $this->assertEquals( "Welcome to MediaWiki!",
+                $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // Verify environment ok text displayed.
+        $this->assertEquals( "The environment has been checked.You can install MediaWiki.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[7]/span" ));
+    }
+
+
+    public function testConnectToDatabaseUI(){
+
+        parent::navigateConnetToDatabasePage();
+
+        //  'MYSQL radio button available
+        $this->assertEquals( "MySQL",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[1]/label" ));
+        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[1]" ));
+
+        // 'SQLite' radio button available
+        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[2]" ));
+        $this->assertEquals( "SQLite", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[2]/label "));
+
+        // 'Database host' label available
+        $this->assertEquals( "Database host:", $this->getText( "//div[@id='DB_wrapper_mysql']/div/div[1]/label" ));
+
+        // 'Database host' text box default to 'localhost'
+        $this->assertEquals( "localhost", $this->getValue( "mysql_wgDBserver" ));
+
+        // 'Identify this wiki' section available
+        $this->assertTrue( $this->isElementPresent( "//div[@id='DB_wrapper_mysql']/fieldset[1]/legend" ));
+
+        // 'Identify this wiki' label available
+        $this->assertEquals( "Identify this wiki", $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/legend" ));
+
+        // 'Database name' lable available
+        $this->assertEquals( "Database name:",
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[1]/div[1]/label" ));
+
+        // Verify 'Database name:' text box is default to 'my_wiki'
+        $this->assertEquals( "my_wiki", $this->getValue( "mysql_wgDBname" ));
+
+        // Verify 'Database table prefix:' label available
+        $this->assertEquals( "Database table prefix:",
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[1]/div[2]/div[1]/label" ));
+
+        // 'User account for installation' section available
+        $this->assertTrue( $this->isElementPresent( "//div[@id='DB_wrapper_mysql']/fieldset[2]/legend" ));
+
+        // 'User account for installation' label available
+        $this->assertEquals( "User account for installation", $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/legend" ));
+
+        // 'Database username' label available
+        $this->assertEquals( "Database username:",
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[1]/div[1]/label" ));
+
+        // 'Database username' text box defaults to 'root'
+        $this->assertEquals("root", $this->getValue( "mysql__InstallUser" ));
+
+        // 'Database password' label available
+        $this->assertEquals( "Database password:",
+                $this->getText( "//div[@id='DB_wrapper_mysql']/fieldset[2]/div[2]/div[1]/label" ));
+    }
+
+
+
+    public function testDatabaseSettingsUI(){
+
+        $databaseName = DB_NAME_PREFIX."_db_settings_UI";
+        parent::navigateDatabaseSettingsPage( $databaseName );
+
+        // 'Database settings' text available.
+        $this->assertEquals( "Database settings", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        // 'Database account for web access' section available
+        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset" ));
+
+        // 'Database account for web access' label available
+        $this->assertEquals( "Database account for web access", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/legend" ));
+
+        // 'Use the same account as for installation' check box available
+        $this->assertEquals( "Use the same account as for installation", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/label" ));
+
+        // 'Use the same account as for installation' check box is selected by default
+        $this->assertEquals( "on", $this->getValue( "mysql__SameAccount" ));
+
+        // 'Use the same account as for installation' check box deselected
+        $this->click( "mysql__SameAccount" );
+
+        // verify 'Use the same account as for installation' check box is not selected
+        $this->assertEquals( "off", $this->getValue( "mysql__SameAccount" ));
+
+        // 'Database username' label available
+        $this->assertEquals( "Database username:", $this->getText( "//div[@id='dbOtherAccount']/div[1]/div[1]/label" ));
+
+        // 'Database username' text box is default to the 'wikiuser'
+        $this->assertEquals( "wikiuser", $this->getValue( "mysql_wgDBuser" ));
+
+        // 'Database password' label available
+        $this->assertEquals( "Database password:", $this->getText( "//div[@id='dbOtherAccount']/div[2]/div[1]/label" ));
+
+        // 'Create the account if it does not already exist' label available
+        $this->assertEquals( "Create the account if it does not already exist", $this->getText( "//div[@id='dbOtherAccount']/div[4]/label" ));
+
+        // 'Create the account if it does not already exist' check box is not selected by default
+        $this->assertEquals( "off" , $this->getValue( "mysql__CreateDBAccount" ));
+
+        //  'Create the account if it does not already exist' check box selected
+        $this->click( "mysql__CreateDBAccount" );
+
+        // Verify  'Create the account if it does not already exist' check box is selected
+        $this->assertEquals( "on" , $this->getValue( "mysql__CreateDBAccount" ));
+        $this->click( "mysql__SameAccount" );
+        $this->assertEquals( "on", $this->getValue( "mysql__SameAccount" ));
+
+        // 'Storage engine' label available
+        $this->assertEquals( "Storage engine:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/label"));
+
+        // 'InnoDB' label available
+        $this->assertEquals( "InnoDB",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/ul/li[1]/label" ));
+
+        // 'InnoDB' radio button available
+        $this->assertTrue( $this->isElementPresent( "mysql__MysqlEngine_InnoDB" ));
+
+        // 'MyISAM' label available
+        $this->assertEquals( "MyISAM", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/ul/li[2]/label" ));
+
+        // 'MyISAM' radio button available
+        $this->assertTrue($this->isElementPresent( "mysql__MysqlEngine_MyISAM" ));
+
+        // 'Database character set' label available
+        $this->assertEquals( "Database character set:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[3]/div[1]/label" ));
+
+        // 'Binary' radio button available
+        $this->assertTrue( $this->isElementPresent( "mysql__MysqlCharset_binary" ));
+
+        // 'Binary' radio button available
+        $this->assertEquals( "Binary", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[3]/div[2]/ul/li[1]/label" ));
+
+        // 'UTF-8' radio button available
+        $this->assertTrue( $this->isElementPresent( "mysql__MysqlCharset_utf8" ));
+
+        // 'UTF-8' label available
+        $this->assertEquals( "UTF-8", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[3]/div[2]/ul/li[2]/label" ));
+
+        // 'Binary' radio button is selected
+        $this->assertEquals( "on", $this->getValue( "mysql__MysqlCharset_binary" ));
+    }
+
+    public function testNamePageUI(){
+
+        $databaseName = DB_NAME_PREFIX."_name_UI";
+        parent::navigateNamePage($databaseName);
+
+        // 'Name of wiki' text box available
+        $this->assertEquals( "Name of wiki:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[1]/label" ));
+
+        $this->assertTrue( $this->isElementPresent( "config_wgSitename" ));
+
+        // 'Project namespace' label available
+        $this->assertEquals( "Project namespace:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[1]/label" ));
+
+        // 'Same as the wiki name' radio button available
+        $this->assertTrue( $this->isElementPresent( "config__NamespaceType_site-name" ));
+
+        // 'Project' radio button available
+        $this->assertTrue( $this->isElementPresent( "config__NamespaceType_generic" ));
+
+        // 'Project' radio button available
+        $this->assertTrue( $this->isElementPresent( "config__NamespaceType_other" ));
+
+        // 'Same as the wiki name' label available
+        $this->assertEquals( "Same as the wiki name:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[1]/label" ));
+
+        // 'Project' label available
+        $this->assertEquals("Project",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[2]/label" ));
+
+        // 'Project' label available
+        $this->assertEquals( "Other (specify)",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[2]/div[2]/ul/li[3]/label" ));
+
+        //  'Same as the wiki name' radio button selected by default
+        $this->assertEquals( "on", $this->getValue( "config__NamespaceType_site-name" ));
+
+        // 'Administrator account' section available
+        $this->assertTrue( $this->isElementPresent( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset" ));
+
+        // 'Administrator account' label available
+        $this->assertEquals( "Administrator account",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/legend" ));
+
+        // 'Your Name' label available
+        $this->assertEquals( "Your name:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[1]/div[1]/label" ));
+
+        // 'Your Name' text box available
+        $this->assertTrue( $this->isElementPresent( "config__AdminName" ));
+
+        // 'Password' label available
+        $this->assertEquals( "Password:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[2]/div[1]/label" ));
+
+        // 'Password' text box available
+        $this->assertTrue( $this->isElementPresent( "config__AdminPassword" ));
+
+        // 'Password again' label available
+        $this->assertEquals( "Password again:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[3]/div[1]/label" ));
+
+        // 'Password again' text box available
+        $this->assertTrue( $this->isElementPresent( "config__AdminPassword2" ));
+
+        // 'Email address' label avaialble
+        $this->assertEquals( "E-mail address:",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[4]/div[1]/label" ));
+
+        // 'Email address' text box available
+        $this->assertTrue( $this->isElementPresent( "config__AdminEmail" ));
+
+        // 'Subscribe to the release announcements mailing list. ' check box available
+        $this->assertTrue( $this->isElementPresent( "config__Subscribe" ));
+
+        // 'Subscribe to the release announcements mailing list. ' label avaialble
+        $this->assertEquals( "Subscribe to the release announcements mailing list.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset/div[5]/label" ));
+
+        // 'release announcements mailing list' link available
+        $this->assertTrue( $this->isElementPresent( "link=release announcements mailing list" ));
+
+        // Message displayed
+        $this->assertEquals( "You are almost done!You can now skip the remaining configuration and install the wiki right now.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[4]/div[2]" ));
+
+        // 'Ask me more questions.' radio button available
+        $this->assertTrue( $this->isElementPresent( "config__SkipOptional_continue" ));
+
+        // 'Ask me more questions.' label available
+        $this->assertEquals( "Ask me more questions.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[5]/div[2]/ul/li[1]/label" ));
+
+        // 'I'm bored already, just install the wiki' radio button is avaiable
+        $this->assertTrue( $this->isElementPresent( "config__SkipOptional_skip" ));
+
+        // 'I'm bored already, just install the wiki' label available
+        $this->assertEquals( "I'm bored already, just install the wiki.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[5]/div[2]/ul/li[2]/label" ));
+
+        //  'Ask me more questions.' radio button is default selected
+        $this->assertEquals( "on", $this->getValue( "config__SkipOptional_continue" ));
+    }
+
+
+    
+    public function testOptionPageUI(){
+
+        $databaseName = DB_NAME_PREFIX."_options_UI";
+        parent::navigateOptionsPage($databaseName);
+
+        // 'Options' label available
+        $this->assertEquals( "Options", $this->getText("//div[@id='bodyContent']/div/div/h2"));
+
+        // 'Return e-mail address' label available
+        $this->assertEquals( "Return e-mail address:", $this->getText( "//div[@id='emailwrapper']/div[1]/div[1]/label" ));
+
+        //    'Return e-mail address' text box available
+        $this->assertTrue( $this->isElementPresent( "config_wgPasswordSender" ));
+
+        // Text 'apache@localhost' is default value of the 'Return e-mail address' text box
+        $this->assertEquals( "apache@localhost", $this->getValue( "config_wgPasswordSender" ));
+
+        // 'Logo URL' label available
+        $this->assertEquals( "Logo URL:", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset[2]/div[3]/div[1]/label" ));
+
+        // 'Logo URL' text box available
+        $this->assertTrue( $this->isElementPresent( "config_wgLogo" ));
+
+        // Correct path available in the 'Logo URL' text box
+        $this->assertEquals( "/wiki/skins/common/images/wiki.png", $this->getValue( "config_wgLogo" ));
+
+        // 'Enable file uploads' radio button available
+        $this->assertTrue( $this->isElementPresent( "config_wgEnableUploads" ));
+
+        // 'Enable file uploads' label available
+        $this->assertEquals( "Enable file uploads",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/fieldset[2]/div[1]/label" ));
+
+        // 'Enable file uploads' check box is not selected
+        $this->assertEquals( "off", $this->getValue( "config_wgEnableUploads" ));
+
+        $this->click( "config_wgEnableUploads" );
+
+        // 'Directory for deleted files' label available
+        $this->assertEquals( "Directory for deleted files:",
+                $this->getText( "//div[@id='uploadwrapper']/div/div[1]/label" ));
+
+        // 'Directory for deleted files' text box available
+        $this->assertTrue( $this->isElementPresent( "config_wgDeletedDirectory" ));
+
+        // Correct path available in the 'Directory for deleted files' text box
+        $this->assertEquals( "C:\\wamp\\www\\".DIRECTORY_NAME."/images/deleted",
+                $this->getValue( "config_wgDeletedDirectory" ));
+    }
+
+
+
+    public function testInstallPageUI(){
+
+        $databaseName = DB_NAME_PREFIX."_install_UI";
+        parent::navigateInstallPage( $databaseName );
+
+        // Verify installation done messages display
+        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+        $this->assertEquals( "Setting up database... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[1]" ));
+        $this->assertEquals( "Creating database user... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[2]" ));
+        $this->assertEquals( "Creating tables... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[3]" ));
+        $this->assertEquals( "Populating default interwiki table... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[4]" ));
+        $this->assertEquals( "Generating secret key... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[5]" ));
+        $this->assertEquals( "Generating default upgrade key... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[6]" ));
+        $this->assertEquals( "Creating administrator user account... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[7]" ));
+        $this->assertEquals( "Creating main page with default content... done", $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/ul/li[8]" ));
+    }
+
+
+
+    public function testCompletePageUI(){
+
+        $databaseName = DB_NAME_PREFIX."_complete_UI";
+        parent::navigateCompletePage( $databaseName );
+
+        // 'Congratulations!' text display
+        $this->assertEquals( "Congratulations!",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/b" ));
+
+        // 'LocalSettings.php' generated message display
+        $this->assertEquals( "The installer has generated a LocalSettings.php file. It contains all your configuration.",
+                $this->getText( "//div[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]/p[2]" ));
+
+        // 'Download LocalSettings.php'' link available
+        $this->assertTrue( $this->isElementPresent( "link=Download LocalSettings.php" ));
+
+        // 'enter your wiki' link available
+        $this->assertTrue( $this->isElementPresent( "link=enter your wiki" ));
+    }
+
+
+
+    public function testRestartInstallation(){
+        
+        parent::navigateConnetToDatabasePage();
+        $this->click( "link=Restart installation" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+        
+        // Restart installation' label should be available.
+        $this->assertEquals( "Restart installation", $this->getText( "//div[@id='bodyContent']/div/div/h2" ));
+
+        //'Do you want to clear all saved data that you have entered and restart the installation process?' label available
+        $this->assertEquals( "Do you want to clear all saved data that you have entered and restart the installation process?",
+                $this->getText( "//*[@id='bodyContent']/div/div/div[2]/form/div[1]/div[2]" ));
+        // 'Back' button available
+        $this->assertTrue($this->isElementPresent( "submit-back" ));
+
+        // 'Restart' button available
+        $this->assertTrue($this->isElementPresent( "submit-restart" ));
+    }
+
+
+
+    public function testMediaWikiLogoAvailability(){
+
+        $databaseName = DB_NAME_PREFIX."_mediawiki_logo";
+        parent::navigateInitialpage();
+        parent::mediaWikiLogoPresentInitialScreen();
+        $this->click( "link=set up the wiki" );
+        $this->waitForPageToLoad( PAGE_LOAD_TIME );
+
+        // 'Language' page
+        parent::mediaWikiLogoPresent();
+        parent::clickContinueButton();
+
+        // 'Welcome to MediaWiki' page
+        parent::mediaWikiLogoPresent();
+        parent::clickContinueButton();
+
+        // 'Connet to database' page
+        parent::mediaWikiLogoPresent();
+        $this->type("mysql_wgDBname", $databaseName );
+        parent::clickContinueButton();
+
+        // 'Database setting' page
+        parent::mediaWikiLogoPresent();
+        parent::clickContinueButton();
+
+        // 'Name' page
+        parent::mediaWikiLogoPresent();
+        parent::completeNamePage();
+        parent::clickContinueButton();
+
+        // 'Options' page
+        parent::mediaWikiLogoPresent();
+        parent::clickContinueButton();
+
+        // 'Install' page
+        parent::mediaWikiLogoPresent();
+    }
+
+
+    public function testRightFramework(){
+
+        parent::navigateLanguagePage();
+        $this->assertEquals( "Language", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[1]/span" ));
+        $this->assertEquals( "Welcome to MediaWiki!", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[2]/span" ));
+        $this->assertEquals( "Connect to database", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[3]/span" ));
+        $this->assertEquals( "Upgrade existing installation", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[4]" ));
+        $this->assertEquals( "Database settings", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[5]/span" ));
+        $this->assertEquals( "Name", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[6]/span" ));
+        $this->assertEquals( "Options", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[7]/span" ));
+        $this->assertEquals( "Install", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[8]/span" ));
+        $this->assertEquals( "Complete!", $this->getText( "//div[@id='bodyContent']/div/div/div[1]/ul[1]/li[9]/span" ));
+    }
+}