r67653 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67652‎ | r67653 | r67654 >
Date:18:14, 8 June 2010
Author:papyromancer
Status:deferred
Tags:
Comment:
got php selenium lib from MW running StandAlone
Modified paths:
  • /branches/MwEmbedStandAlone/tests/selenium/LocalSeleniumSettings.php.sample (modified) (history)
  • /branches/MwEmbedStandAlone/tests/selenium/NewSeleniumTest.php (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/tests/selenium/NewSeleniumTest.php
@@ -16,16 +16,16 @@
1717 public function runTest()
1818 {
1919 global $wgSeleniumTestsWikiUrl;
20 - $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Selenium&action=edit');
21 - $this->type("wpTextbox1", "This is a basic test");
22 - $this->click("wpPreview");
 20+ $this->open($wgSeleniumTestsWikiUrl.'/tests/mwEmbed_Demo.html');
 21+ // $this->type("wpTextbox1", "This is a basic test");
 22+ // $this->click("wpPreview");
2323 $this->waitForPageToLoad(10000);
2424
2525 // check result
26 - $source = $this->getText("//div[@id='wikiPreview']/p");
27 - $correct = strstr($source, "This is a basic test");
28 - $this->assertEquals($correct, true);
 26+ // $source = $this->getText("//div[@id='wikiPreview']/p");
 27+ //$correct = strstr($source, "This is a basic test");
 28+ //$this->assertEquals($correct, true);
2929
3030 }
3131
32 -}
\ No newline at end of file
 32+}
Index: branches/MwEmbedStandAlone/tests/selenium/LocalSeleniumSettings.php.sample
@@ -17,10 +17,10 @@
1818 #set_include_path( get_include_path() . PATH_SEPARATOR . 'PEAR' );
1919
2020 // Hostname of selenium server
21 -$wgSeleniumTestsSeleniumHost = 'localhost';
 21+$wgSeleniumTestsSeleniumHost = 'grid.tesla.usability.wikimedia.org';
2222
2323 // URL of the wiki to be tested. Consult web server configuration.
24 -$wgSeleniumTestsWikiUrl = 'http://localhost';
 24+$wgSeleniumTestsWikiUrl = 'http://prototype.wikimedia.org/mwe-gadget-testing';
2525
2626 // Port used by selenium server (optional - default is 4444)
2727 $wgSeleniumServerPort = 4444;
@@ -48,4 +48,4 @@
4949 $wgSeleniumTestIncludes = array(
5050 'selenium/SimpleSeleniumTest.php'
5151 );
52 -?>
\ No newline at end of file
 52+?>

Status & tagging log