Hi,
Thanks a lot for your reply, Markus.
With your hints, I have made the SimpleSeleniumTestSuite working on my
installation.
In order to have a go on SMW testing, I am interested in two things, mainly:
* Where to have the extension test suites placed and registered for testing?
This is already discussed through the mailing list and I hope there will be a
consensus, soon.
* What functionalities does your testing framework provide? It would be good to
have both a documentation of already implemented functions and planned or
soon-to-come functions. I know that Selenium already has many built-in tests,
but your framework has the potential to provide for simple MW and extension
specific tests that motivates developers (even non-technicians) to develop
system tests.
Let me know if I can help.
Regards
Benedikt
--
Karlsruher Institut für Technologie (KIT)
Institut für Angewandte Informatik und Formale Beschreibungsverfahren (AIFB)
Benedikt Kämpgen
Wissenschaftlicher Mitarbeiter
Kaiserstraße 12
Gebäude 11.40
76131 Karlsruhe
Telefon: +49 721 608-7946
Fax: +49 721 608-6580
E-Mail: benedikt.kaemp...@kit.edu
Web: http://www.kit.edu/
KIT - Universität des Landes Baden-Württemberg und
nationales Forschungszentrum in der Helmholtz-Gemeinschaft
-Original Message-
From: wikitech-l-boun...@lists.wikimedia.org
[mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Markus Glaser
Sent: Tuesday, August 03, 2010 10:53 PM
To: Wikimedia developers
Subject: Re: [Wikitech-l] [Testing] Selenium
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 = ;
$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-boun...@lists.wikimedia.org
[mailto:wikitech-l-boun...@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.kaemp...@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@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l