http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65422

Revision: 65422
Author:   bhagya
Date:     2010-04-22 11:20:27 +0000 (Thu, 22 Apr 2010)

Log Message:
-----------
File rename done and the old files deleted

Removed Paths:
-------------
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiPreferencesTC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiSearchTC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiCommonTC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarDialogsTC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarNTOC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOtherTC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarTextFormatTC.php
    
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiWatchUnWatchTC.php

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiPreferencesTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiPreferencesTC.php
     2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiPreferencesTC.php
     2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,15 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the user account settings.
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiPreferencesTC extends WikiCommonTC {
-
-    function setup(){
-        parent::setUp();
-    }
-
-}
-?>

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiSearchTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiSearchTC.php
  2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiSearchTC.php
  2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,55 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the search function.
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiAcaiSearchTC extends WikiCommonTC {
-    // Set up the testing environment
-    function setup(){
-        parent::setUp();
-    }
-
-    // Search for a Wiki Page. Search result should be directed to the page 
itself
-    function testSearchPage(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Main page");
-        $this->type("//*...@id='searchInput']", "Hair (musical)");
-        $this->click("//*...@id='searchButton']");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Hair (musical)", 
$this->getText("//*...@id='firstHeading']"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=Main page");
-        $this->waitForPageToLoad("30000");
-        parent::doLogout();
-    }
-
-    // Search for a text. Search result should display links which contain the 
search text
-    function testSearchText(){  
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Main page");
-        $this->waitForPageToLoad("30000");
-        $this->type("//*...@id='searchInput']", "TV");
-        $this->click("searchButton");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Search results", 
$this->getText("firstHeading"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("TV - Search results - Wikipedia, the free 
encyclopedia", $this->getTitle());
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-       parent::doLogout();
-    }
-
-}
-?>

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiCommonTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiCommonTC.php
      2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiCommonTC.php
      2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,74 +0,0 @@
-<?php
-require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
-/**
- * This test case will be handling the common functions on test.
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiCommonTC extends PHPUnit_Extensions_SeleniumTestCase {
-    /** Wiki server environment details.This array should be commented if the 
test
-     * run on local browsers.  
-    
-     public static $browsers = array(
-     array(
-        'name'    => 'Safari',
-        'browser' => '*safari',
-        'host'    => 'raskin.usability.wikimedia.org',
-        'port'    => 4444,
-        'timeout' => 30000,
-          )
-        ); **/
-
-    // Setup the browser URL and local browser
-    function setUp() {
-        // Setting the local browser. this should be disabled if the test run 
in Wiki environment.
-        $this->setBrowser("*firefox");
-        // Main link to be connected
-         $this->setBrowserUrl("http://prototype.wikimedia.org";);
-    }
-
-    // Open the page.
-    function doOpenLink(){
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-    }
-
-    // Login to the application
-    function doLogin() {  
-        if (!$this->isTextPresent("Log out")) {
-            $this->click("link=Log in / create account");
-            $this->waitForPageToLoad("30000");
-            $this->type("wpName1", "bhagya_qa");
-            $this->type("wpPassword1", "test");
-            $this->click("wpLoginAttempt");
-            $this->waitForPageToLoad("30000");
-            try {
-                $this->assertEquals("Bhagya qa", $this->getText("link=Bhagya 
qa"));
-            } catch (PHPUnit_Framework_AssertionFailedError $e) {
-                array_push($this->verificationErrors, $e->toString());
-            }
-        }
-    }
-
-    // Log out from the application
-    function doLogout() {
-        $this->open("/deployment-en/Main_Page");
-         if ($this->isTextPresent("Log out")) {
-            $this->click("link=Log out");
-            $this->waitForPageToLoad("30000");
-            try {
-                $this->assertEquals("Log in / create account", 
$this->getText("link=Log in / create account"));
-            } catch (PHPUnit_Framework_AssertionFailedError $e) {
-                array_push($this->verificationErrors, $e->toString());
-            }
-         }
-    }
-
-    //Expand advance tool bar section if its not
-    function doExpandAdvanceSection() {
-        if (!$this->isTextPresent("Heading")){
-            $this->click("link=Advanced");
-        }
-    }
-}
-?>
\ No newline at end of file

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarDialogsTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarDialogsTC.php
      2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarDialogsTC.php
      2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,473 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the Wiki Tool bar Dialog functions
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiToolBarDialogsTC extends WikiCommonTC {
-    // Set up the testing environment
-    function setup(){
-        parent::setUp();
-    }
-
-    
-    // Add a internal link and verify
-    function testInternalLink(){
- 
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Link");
-        $this->type("wikieditor-toolbar-link-int-target", "Daimler-Chrysler");
-        
$this->assertTrue($this->isElementPresent("wikieditor-toolbar-link-int-target-status-exists"));
-        $this->assertEquals("on", 
$this->getValue("wikieditor-toolbar-link-type-int"));
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Daimler-Chrysler", 
$this->getText("link=Daimler-Chrysler"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=Daimler-Chrysler");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertTrue($this->isTextPresent("Daimler-Chrysler"), 
$this->getText("firstHeading"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-
-    }
-
-    // Add a internal link with different display text and verify
-    function testInternalLinkWithDisplayText(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Link");
-        $this->type("wpTextbox1", "");
-        $this->type("wikieditor-toolbar-link-int-target", "Fashion Island");
-        $this->type("wikieditor-toolbar-link-int-text", "Fashion Island Test");
-        
$this->assertTrue($this->isElementPresent("wikieditor-toolbar-link-int-target-status-exists"));
-        $this->assertEquals("on", 
$this->getValue("wikieditor-toolbar-link-type-int"));
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Fashion Island Test", 
$this->getText("link=Fashion Island Test"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=Fashion Island Test");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertTrue($this->isTextPresent("Fashion Island"), 
$this->getText("firstHeading"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Add a internal link with blank display text and verify
-    function testInternalLinkWithBlankDisplayText(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Link");
-        $this->type("wikieditor-toolbar-link-int-target", "Magical Mystery 
Tour (film)");
-        $this->type("wikieditor-toolbar-link-int-text", "");
-        
$this->assertTrue($this->isElementPresent("wikieditor-toolbar-link-int-target-status-exists"));
-        $this->assertEquals("on", 
$this->getValue("wikieditor-toolbar-link-type-int"));
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Magical Mystery Tour (film)", 
$this->getText("link=Magical Mystery Tour (film)"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=Magical Mystery Tour (film)");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Magical Mystery Tour (film)", 
$this->getText("firstHeading"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        
-        parent::doLogout();
-
-    }
-
-    // Add external link and verify
-    function testExternalLink(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Link");
-        $this->type("wikieditor-toolbar-link-int-target", "www.google.com");
-        try {
-            $this->assertEquals("External link", 
$this->getText("wikieditor-toolbar-link-int-target-status-external"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->assertEquals("on", 
$this->getValue("wikieditor-toolbar-link-type-ext"));
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-         try {
-            $this->assertEquals("www.google.com", 
$this->getText("link=www.google.com"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=www.google.com");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Google", $this->getTitle());
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-    }
-
-    // Add external link with different display text and verify
-    function testExternalLinkWithDisplayText(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Link");
-        $this->type("wikieditor-toolbar-link-int-target", "www.google.com");
-        $this->type("wikieditor-toolbar-link-int-text", "Google");
-        try {
-            $this->assertEquals("External link", 
$this->getText("wikieditor-toolbar-link-int-target-status-external"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->assertEquals("on", 
$this->getValue("wikieditor-toolbar-link-type-ext"));
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Google", $this->getText("link=Google"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=Google");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Google", $this->getTitle());
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        
-        parent::doLogout();
-
-    }
-
-    // Add external link with Blank display text and verify
-    function testExternalLinkWithBlankDisplayText(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Link");
-        $this->type("wikieditor-toolbar-link-int-target", "www.google.com");
-        $this->type("wikieditor-toolbar-link-int-text", "");
-        try {
-            $this->assertEquals("External link", 
$this->getText("wikieditor-toolbar-link-int-target-status-external"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->assertEquals("on", 
$this->getValue("wikieditor-toolbar-link-type-ext"));
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-        $this->assertEquals("[1]", $this->getText("link=[1]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        $this->click("link=[1]");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Google", $this->getTitle());
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Add a table and verify
-    function testCreateTable(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Table");
-        $this->type("wpTextbox1", "");
-        $this->click("wikieditor-toolbar-table-sortable");
-        $this->click("//div[3]/button[1]");
-        $this->click("wikieditor-toolbar-table-sortable");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Header text", 
$this->getText("//tab...@id='sortable_table_id_0']/tbody/tr[1]/th[3]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-    }
-
-    // Add a table and verify only with head row
-    function testCreateTableWithHeadRow(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Table");
-        $this->click("wikieditor-toolbar-table-wikitable");
-        $this->type("wikieditor-toolbar-table-dimensions-rows", "4");
-        $this->type("wikieditor-toolbar-table-dimensions-columns", "4");
-        $this->click("//div[3]/button[1]");
-        $this->click("wikieditor-toolbar-table-wikitable");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Header text", 
$this->getTable("//d...@id='wikiPreview']/table.0.0"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        
-        parent::doLogout();
-    }
-
-    // Add a table and verify only with borders
-    function testCreateTableWithBorders(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Table");
-        $this->click("wikieditor-toolbar-table-dimensions-header");
-        $this->type("wikieditor-toolbar-table-dimensions-columns", "5");
-        $this->click("//div[3]/button[1]");
-        $this->click("wikieditor-toolbar-table-dimensions-header");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Example", 
$this->getTable("//d...@id='wikiPreview']/table.1.3"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-    }
-
-    // Add a table and verify only with sort row
-    function testCreateTableWithSortRow(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Table");
-        $this->click("wikieditor-toolbar-table-dimensions-header");
-        $this->click("wikieditor-toolbar-table-wikitable");
-        $this->click("wikieditor-toolbar-table-sortable");
-        $this->type("wikieditor-toolbar-table-dimensions-rows", "2");
-        $this->type("wikieditor-toolbar-table-dimensions-columns", "5");
-        $this->click("//div[3]/button[1]");
-        $this->click("wikieditor-toolbar-table-dimensions-header");
-        $this->click("wikieditor-toolbar-table-wikitable");
-        $this->click("wikieditor-toolbar-table-sortable");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Example", 
$this->getTable("sortable_table_id_0.0.0"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-    }
-
-      // Add a table without headers,borders and sort rows
-    function testCreateTableWithNoSpecialEffects(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Table");
-        $this->click("wikieditor-toolbar-table-wikitable");
-        $this->click("wikieditor-toolbar-table-dimensions-header");
-        $this->type("wikieditor-toolbar-table-dimensions-rows", "6");
-        $this->type("wikieditor-toolbar-table-dimensions-columns", "2");
-        $this->click("//div[3]/button[1]");
-        $this->click("wikieditor-toolbar-table-dimensions-header");
-        $this->click("wikieditor-toolbar-table-wikitable");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Example", 
$this->getTable("//d...@id='wikiPreview']/table.0.0"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-    }
-       
-    // Verify the replace all function on Search and Replace
-     function testTextSearchReplaceAll(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Search and replace");
-        $this->type("wpTextbox1", "calcey qa\n\ncalcey qa\n\ncalcey qa");
-        $this->type("wikieditor-toolbar-replace-search", "calcey");
-        $this->type("wikieditor-toolbar-replace-search", "calcey qa");
-        $this->type("wikieditor-toolbar-replace-replace", "test team");
-        $this->click("//button[3]");
-        $this->click("//button[4]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("test team", 
$this->getText("//d...@id='wikiPreview']/p[1]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("test team", 
$this->getText("//d...@id='wikiPreview']/p[2]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("test team", 
$this->getText("//d...@id='wikiPreview']/p[3]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Verify the replace next function on Search and Replace
-    function testTextSearchReplaceNext(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Search and replace");
-        $this->type("wpTextbox1", "calcey qa\n\ncalcey qa\n\ncalcey qa");
-        $this->click("link=Search and replace");
-        $this->type("wpTextbox1", "calcey qa\n\ncalcey qa\n\ncalcey qa");
-        $this->type("wikieditor-toolbar-replace-search", "calcey qa");
-        $this->type("wikieditor-toolbar-replace-replace", "test team");
-        $this->click("//div[13]/div[11]/button[2]");
-        $this->click("//div[13]/div[11]/button[2]");
-        $this->click("//button[4]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("test team", 
$this->getText("//d...@id='wikiPreview']/p[1]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("test team", 
$this->getText("//d...@id='wikiPreview']/p[2]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("calcey qa", 
$this->getText("//d...@id='wikiPreview']/p[3]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-
-    }
-
-    /** When user click on find, text highlight on back which is not captured 
in Selenium directly. 
-    function testTextSearchFindNext(){
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Search and replace");
-
-
-
-        parent::doLogout();
-    }*/
-}
-?>

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarNTOC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarNTOC.php
   2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarNTOC.php
   2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,245 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the NTOC related functions.
- * Adding different header levels via tool bar and verify the output
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiToolBarNTOC extends WikiCommonTC {
-    
-    // Set up the testing environment
-    function setup(){
-        parent::setUp();
-    }
-
-    
-    // Add header level 2 and verify Header output
-     function testHeaderLevel2(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Heading");
-        $this->click("link=Level 2");
-        $this->type("wpTextbox1", "==Heading text==");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h2"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Add header level 3 and verify Header output
-    function testHeaderLevel3(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Heading");
-        $this->click("link=Level 3");
-        $this->type("wpTextbox1", "===Heading text===");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h3"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Add header level 4 and verify Header output
-    function testHeaderLevel4(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Heading");
-        $this->click("link=Level 4");
-        $this->type("wpTextbox1", "====Heading text====");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h4"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Add header level 5 and verify Header output
-    function testHeaderLevel5(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Heading");
-        $this->click("link=Level 5");
-        $this->type("wpTextbox1", "=====Heading text=====");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h5"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-    
-     // Add header level 2 & 3 and verify Header output
-    function testHeaderLevel2and3(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Level 2");
-        $this->click("link=Heading");
-        $this->click("link=Level 3");
-        $this->type("wpTextbox1", "==Heading text==\n===Heading text===");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h2"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-         try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h3"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-    }
-
- // Add header level 2 , 3 & 4 and verify Header output
-    function testHeaderLevel23and4(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Level 2");
-        $this->click("link=Heading");
-        $this->click("link=Level 3");
-        $this->click("link=Heading");
-        $this->click("link=Level 4");
-        $this->type("wpTextbox1", "==Heading text==\n===Heading 
text===\n====Heading text====");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h2"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-         try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h3"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h4"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-    }
-
-    // Add header level 2 , 3 , 4 & 5 and verify Header output
-    function testHeaderLevel234and5(){
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->click("link=Heading");
-        $this->click("link=Level 2");
-        $this->click("link=Heading");
-        $this->click("link=Level 3");
-        $this->click("link=Heading");
-        $this->click("link=Level 4");
-        $this->click("link=Heading");
-        $this->click("link=Level 5");
-        $this->type("wpTextbox1", "==Heading text==\n===Heading 
text===\n====Heading text====\n=====Heading text=====");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h2"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-         try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h3"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h4"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Heading text", 
$this->getText("//*...@id='wikiPreview']/h5"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-    }
-}
-?>

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOtherTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOtherTC.php
        2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOtherTC.php
        2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,87 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the general tool bar functions
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiToolBarOtherTC extends WikiCommonTC {
-    // Set up the testing environment
-    function setup(){
-        parent::setUp();
-    }
-
-    // Click on Embedded file function and verify the output
-    function testEmbeddedFile(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Embedded file");
-        $this->type("wpTextbox1", "\" \"");
-        $this->type("wpTextbox1", "[[File:Example.jpg]]");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("", 
$this->getText("//i...@alt='Example.jpg']"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-
-    }
-
-    /** Reference link is not directing to the given link.
-     * For example if I add www.google.com as the reference link,
-     * on preview the link is not directing to google site.
-    function testReference(){
-        parent::doOpenLink();
-        parent::doLogin();
-
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Reference");
-        $this->type("wpTextbox1", "");
-        $this->type("wikieditor-toolbar-reference-text", "www.google.com");
-        $this->click("//div[13]/div[11]/button[1]");
-        $this->click("wpPreview");
-
-        parent::doLogout();
-    }**/
-
-    // Click on Picture Gallery function and verify the output
-    function testPictureGallery(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Picture gallery");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("", 
$this->getText("//d...@id='wikiPreview']/table/tbody/tr/td[1]/div/div[1]/div"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    
-}
-?>

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarTextFormatTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarTextFormatTC.php
   2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarTextFormatTC.php
   2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,286 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the text formatting related functions via 
tool bar
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiToolBarTextFormatTC extends WikiCommonTC {
-     // Set up the testing environment
-     function setup(){
-        parent::setUp();
-    }
-
-    // Mark text Bold and verify output
-     function testMakeTextBold(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Bold");
-        $this->type("wpTextbox1", "'''Bold''' text");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Bold", 
$this->getText("//d...@id='wikiPreview']/p/b"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-     // Mark text Italic and verify output
-    function testMakeTextItalic(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        $this->type("wpTextbox1", "");
-        $this->click("link=Italic");
-        $this->type("wpTextbox1", "''Italian'' text");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        $this->assertEquals("Italian", 
$this->getText("//d...@id='wikiPreview']/p/i"));
-        parent::doLogout();
-
-    }
-
-    // Use Bullet Item function and verify output
-    function testBulletItem(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Bulleted list");
-        $this->click("link=Bulleted list");
-        $this->click("link=Bulleted list");
-        $this->type("wpTextbox1", "* Bulleted list item\n* Bulleted list 
item\n* Bulleted list item");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Bulleted list item", 
$this->getText("//d...@id='wikiPreview']/ul/li[1]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Bulleted list item", 
$this->getText("//d...@id='wikiPreview']/ul/li[2]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Bulleted list item", 
$this->getText("//d...@id='wikiPreview']/ul/li[3]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-    // Use Numbered Item function and verify output
-    function testNumberedItem(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Numbered list");
-        $this->click("link=Numbered list");
-        $this->click("link=Numbered list");
-        $this->type("wpTextbox1", "# Numbered list item\n# Numbered list 
item\n# Numbered list item");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("Numbered list item", 
$this->getText("//d...@id='wikiPreview']/ol/li[1]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Numbered list item", 
$this->getText("//d...@id='wikiPreview']/ol/li[2]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        try {
-            $this->assertEquals("Numbered list item", 
$this->getText("//d...@id='wikiPreview']/ol/li[3]"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-       parent::doLogout();
-
-    }
-
-      // Mark text as Nowiki and verify output
-    function testNoWiki(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->type("wpTextbox1", "<nowiki>==Heading text==</nowiki>");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("==Heading text==", 
$this->getText("//d...@id='wikiPreview']/p"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-         parent::doLogout();
-
-    }
-
-     // Create a line break and verify output
-    function testLineBreak(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->type("wpTextbox1", "this is a test text to check the line\n 
break.");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("this is a test text to check the line\n 
break.", $this->getText("//d...@id='wikiPreview']/p"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-
-    }
-
-     // Mark text as Big and verify output
-    function testTextBig(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Big");
-        $this->type("wpTextbox1", "<big>This</big> text");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("This", 
$this->getText("//d...@id='wikiPreview']/p/big"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-        parent::doLogout();
-
-    }
-
-     // Mark text as Small and verify output
-    function testTextSmall(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Small");
-        $this->type("wpTextbox1", "<small>This</small> text\n");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("This", 
$this->getText("//d...@id='wikiPreview']/p/small"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-         parent::doLogout();
-
-    }
-
-     // Mark text as Super Script and verify output
-     function testTextSuperscript(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Superscript");
-        $this->type("wpTextbox1", "<sup>This</sup> text\n");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("This", 
$this->getText("//d...@id='wikiPreview']/p/sup"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-         parent::doLogout();
-
-    }
-
-     // Mark text as Sub Script and verify output
-     function testTextSubscript(){
-
-        parent::doOpenLink();
-         parent::doLogin();
-        $this->open("/deployment-en/Main_Page");
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $this->click("//l...@id='ca-edit']/a/span");
-        $this->waitForPageToLoad("30000");
-        parent::doExpandAdvanceSection();
-        $this->type("wpTextbox1", "");
-        $this->click("link=Subscript");
-        $this->type("wpTextbox1", "<sub>This</sub> text\n");
-        $this->click("wpPreview");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertEquals("This", 
$this->getText("//d...@id='wikiPreview']/p/sub"));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-
-         parent::doLogout();
-
-    }
-    
-}
-?>

Deleted: 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiWatchUnWatchTC.php
===================================================================
--- 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiWatchUnWatchTC.php
        2010-04-22 09:36:18 UTC (rev 65421)
+++ 
trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiWatchUnWatchTC.php
        2010-04-22 11:20:27 UTC (rev 65422)
@@ -1,69 +0,0 @@
-<?php
-require_once 'WikiCommonTC.php';
-/**
- * This test case will be handling the page watch functions.
- * Date : Apr - 2010
- * @author : BhagyaG - Calcey
- */
-class WikiWatchUnWatchTC  extends WikiCommonTC {
-    // Set up the testing environment
-    function setup(){
-        parent::setUp();
-    }
-
-    // Mark a page as watch and verify the My Watch list
-    function testWatch(){
-
-        parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");      
-        $this->waitForPageToLoad("30000");
-        $randompage = $this->getText("firstHeading");
-        $this->click("link=Watch");
-        $this->click("link=My watchlist");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=View and edit watchlist");
-        $this->waitForPageToLoad("30000");
-        
-        $this->assertTrue($this->isTextPresent($randompage));
-        parent::doLogout();
-
-    }
-
-
-    // Mark a page as watch and mark the same page as unwatch and verify the 
My Watch list
-    function testUnWatch(){
-
-       parent::doOpenLink();
-        parent::doLogin();
-        $this->click("link=Random article");
-        $this->waitForPageToLoad("30000");
-        $randompage = $this->getText("firstHeading");
-        $this->click("link=Watch");
-        $this->click("link=My watchlist");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=View and edit watchlist");
-        $this->waitForPageToLoad("30000");
-        $this->assertTrue($this->isTextPresent($randompage));
-        $this->click("link=" . $randompage);
-        $this->waitForPageToLoad("30000");
-        $this->click("link=Unwatch");
-        $this->click("link=My watchlist");
-        $this->waitForPageToLoad("30000");
-        $this->click("link=View and edit watchlist");
-        $this->waitForPageToLoad("30000");
-        try {
-            $this->assertFalse($this->isTextPresent($randompage));
-        } catch (PHPUnit_Framework_AssertionFailedError $e) {
-            array_push($this->verificationErrors, $e->toString());
-        }
-        parent::doLogout();
-
-    }
-
-   /** function testEditWatch(){
-
-    }**/
-    
-}
-?>



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to