r68794 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68793‎ | r68794 | r68795 >
Date:21:44, 30 June 2010
Author:papyromancer
Status:deferred
Tags:
Comment:
* updating sample Local Selenium Settings
Modified paths:
  • /branches/MwEmbedStandAlone/tests/selenium_framework/LocalSeleniumSettings.php (deleted) (history)
  • /branches/MwEmbedStandAlone/tests/selenium_framework/LocalSeleniumSettings.php.sample (modified) (history)
  • /branches/MwEmbedStandAlone/tests/selenium_framework/SeleniumTestSuite.php (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/tests/selenium_framework/LocalSeleniumSettings.php
@@ -1,51 +0,0 @@
2 -<?php
3 -// This template file contains variables that should be localized.
4 -// The line (specifying the location of the PHP/PEAR libraries) must be
5 -// first. Moving it to a position later in the file will almost certainly
6 -// cause an error.
7 -
8 -// In order to use this file, first copy it to LocalSeleniumSettings.php.
9 -// Then edit the information to conform to the local environment. You
10 -// will almost certainly have to uncomment the line set_include_path ... and
11 -// change the string 'PEAR' to the path to your PEAR library, e.g.,
12 -// '/usr/share/php/PEAR' for a Debian based Linux system.
13 -// The edited file must appear in the same directory as does RunSeleniumTests.php.
14 -
15 -// include path. Set 'PEAR" to '/path/to/PEAR/library'
16 -
17 -// URL: http://localhost/tests/RunSeleniumTests.php
18 -#set_include_path( get_include_path() . PATH_SEPARATOR . 'PEAR' );
19 -
20 -// Hostname of selenium server
21 -$wgSeleniumTestsSeleniumHost = 'grid.tesla.usability.wikimedia.org';
22 -
23 -// URL of the wiki to be tested. Consult web server configuration.
24 -$wgSeleniumTestsWikiUrl = 'http://prototype.wikimedia.org/mwe-gadget-testing';
25 -
26 -// Port used by selenium server (optional - default is 4444)
27 -$wgSeleniumServerPort = 4444;
28 -
29 -// Wiki login. Used by Selenium to log onto the wiki
30 -$wgSeleniumTestsWikiUser = 'Wikisysop';
31 -$wgSeleniumTestsWikiPassword = 'password';
32 -
33 -// Common browsers on Windows platform. Modify for other platforms or
34 -// other Windows browsers
35 -// Use the *chrome handler in order to be able to test file uploads
36 -// further solution suggestions: http://www.brokenbuild.com/blog/2007/06/07/testing-file-uploads-with-selenium-rc-and-firefoxor-reducing-javascript-security-in-firefox-for-fun-and-profit/
37 -// $wgSeleniumTestsBrowsers['firefox'] = '*firefox c:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe';
38 -$wgSeleniumTestsBrowsers['firefox'] = '*firefox /usr/bin/firefox';
39 -$wgSeleniumTestsBrowsers['iexplorer'] = '*iexploreproxy';
40 -$wgSeleniumTestsBrowsers['opera'] = '*chrome /usr/bin/opera';
41 -
42 -// Actually, use this browser
43 -$wgSeleniumTestsUseBrowser = 'firefox';
44 -
45 -// Set command line mode
46 -$wgSeleniumTestsRunMode = 'cli';
47 -
48 -// List of tests to be included by default
49 -$wgSeleniumTestIncludes = array(
50 - 'selenium_tests/EmbedPlayerLoadsTest.php'
51 -);
52 -?>
Index: branches/MwEmbedStandAlone/tests/selenium_framework/SeleniumTestSuite.php
@@ -15,7 +15,7 @@
1616 public function setUp() {
1717 $this->selenium = Selenium::getInstance();
1818 $this->selenium->start();
19 - $this->login();
 19+ //$this->login();
2020 // $this->loadPage( 'Testpage', 'edit' );
2121 }
2222
Index: branches/MwEmbedStandAlone/tests/selenium_framework/LocalSeleniumSettings.php.sample
@@ -34,7 +34,7 @@
3535 // Use the *chrome handler in order to be able to test file uploads
3636 // further solution suggestions: http://www.brokenbuild.com/blog/2007/06/07/testing-file-uploads-with-selenium-rc-and-firefoxor-reducing-javascript-security-in-firefox-for-fun-and-profit/
3737 // $wgSeleniumTestsBrowsers['firefox'] = '*firefox c:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe';
38 -$wgSeleniumTestsBrowsers['firefox'] = '*firefox /usr/bin/firefox';
 38+$wgSeleniumTestsBrowsers['firefox'] = 'Firefox on OS X Snow Leopard';
3939 $wgSeleniumTestsBrowsers['iexplorer'] = '*iexploreproxy';
4040 $wgSeleniumTestsBrowsers['opera'] = '*chrome /usr/bin/opera';
4141
@@ -46,6 +46,6 @@
4747
4848 // List of tests to be included by default
4949 $wgSeleniumTestIncludes = array(
50 - 'selenium/SimpleSeleniumTest.php'
 50+ 'selenium_tests/EmbedPlayerLoadsTest.php'
5151 );
5252 ?>

Status & tagging log