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 @@ |
16 | 16 | public function setUp() { |
17 | 17 | $this->selenium = Selenium::getInstance(); |
18 | 18 | $this->selenium->start(); |
19 | | - $this->login(); |
| 19 | + //$this->login(); |
20 | 20 | // $this->loadPage( 'Testpage', 'edit' ); |
21 | 21 | } |
22 | 22 | |
Index: branches/MwEmbedStandAlone/tests/selenium_framework/LocalSeleniumSettings.php.sample |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | // Use the *chrome handler in order to be able to test file uploads |
36 | 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 | 37 | // $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'; |
39 | 39 | $wgSeleniumTestsBrowsers['iexplorer'] = '*iexploreproxy'; |
40 | 40 | $wgSeleniumTestsBrowsers['opera'] = '*chrome /usr/bin/opera'; |
41 | 41 | |
— | — | @@ -46,6 +46,6 @@ |
47 | 47 | |
48 | 48 | // List of tests to be included by default |
49 | 49 | $wgSeleniumTestIncludes = array( |
50 | | - 'selenium/SimpleSeleniumTest.php' |
| 50 | + 'selenium_tests/EmbedPlayerLoadsTest.php' |
51 | 51 | ); |
52 | 52 | ?> |