Hi Benedikt,
the framework was reworked several times the last few weeks, so I am afraid the
documentation is slightly out of date. I will update it the next few days. As of now, you
have to add your test classes to the autoloader and then adapt these settings and put it
in your LocalSettings.php:
$wgEnableSelenium = true;
$wgGroupPermissions['sysop']['selenium'] = true;
$wgSeleniumTestSuites = array(
'SimpleSeleniumTestSuite',
);
// use no protocol here
$wgSeleniumTestsSeleniumHost = 'localhost';
// use of protocol is mandatory! also, selenium requests a trailing slash
$wgSeleniumTestsWikiUrl = 'http://localhost/phase3/';
$wgSeleniumServerPort = 4444;
$wgSeleniumTestsWikiUser = 'WikiSysop';
$wgSeleniumTestsWikiPassword = 'password';
$wgSeleniumTestsBrowsers = array(
'firefox' => '*chrome d:\\Firefox35\\firefox.exe',
'iexplorer' => '*iexploreproxy',
'opera' => '*chrome /usr/bin/opera',
);
$wgSeleniumTestsUseBrowser = 'firefox';
You can find a sample test in the maintenance/tests/selenium folder, which consists of a
test case and a test suite. It's the test suite you have to add to the autoloader. For
the sample test, this has already been done in the trunk.
Cheers,
Markus
-----Ursprüngliche Nachricht-----
Von: wikitech-l-bounces(a)lists.wikimedia.org
[mailto:wikitech-l-bounces@lists.wikimedia.org] Im Auftrag von Benedikt Kaempgen
Gesendet: Dienstag, 3. August 2010 17:38
An: Wikimedia developers
Betreff: [Wikitech-l] [Testing] Selenium
Hello,
In order to test SMW, I would like to try out your Selenium testing framework, as
described here [1].
Two things are not that clear to me:
- "As of now, you have to manually add the test file to
maintenance/tests/RunSeleniumTests.php. This will be replaced by a command line argument
in the future." What exactly is one supposed to do here?
- Also, in section "Architecture" some files are mentioned, that I cannot find
in /trunk/phase3, e.g., selenium/SimpleSeleniumTest oder
selenium/LocalSeleniumSettings.php.sample. Why is this not the case?
Regards,
Benedikt
[1]
http://www.mediawiki.org/wiki/SeleniumFramework
--
Karlsruhe Institute of Technology (KIT)
Institute of Applied Informatics and Formal Description Methods (AIFB)
Benedikt Kämpgen
Research Associate
Kaiserstraße 12
Building 11.40
76131 Karlsruhe, Germany
Phone: +49 721 608-7946
Fax: +49 721 608-6580
Email: benedikt.kaempgen(a)kit.edu
Web:
http://www.kit.edu/
KIT - University of the State of Baden-Wuerttemberg and National Research Center of the
Helmholtz Association
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l