Re: [Wikitech-l] [GSoC 2011] Introduction + About some ideas
Hi Sagie, Thanks for your interest in "Inline Editing extension for MW/SMW". I'd say the status is a set of great but independent efforts dealing with parts of the actual goal we have in mind: 1) Inline editing of text in MediaWiki (MW) 2) Inline editing of markup, from simple bold text and links up to categories and templates, in MW 3) Inline editing of properties-value-pairs (and other SMW related markup), in Semantic MediaWiki (SMW) 4) Inline editing of results of Inline Queries, in SMW Some work is being done for 1) and 2) in [1]. It looks pretty good, but seems to be a research project, mainly; I am not sure about this project's ambition to have a productive extension, eventually. For 3) there is a demo by Vulcan Inc. [2]. For 4) there has been work done by Ontoprise (for a demo login to [3] and put in [4]). Also, there is AlohaEditor [5], which I have not fully tried, yet, but also seems to provide good opportunities for Inline Editing. They even have a semantic plugin, that allows to automatically create property-value-pairs for a given text (great opportunities, there, also). I think, GSoC 2011 could be a great opportunity to consolidate these efforts, resulting in a working and published extension. This could make MediaWiki/SMW even more broadly-used among non-technicians. Best, Benedikt [1] http://www.mediawiki.org/wiki/User:JanPaul123/Sentence-level_editing [2] http://wiking.vulcan.com/dev_sandbox/index.php?title=Main_Page&action=wiedit [3] http://dailywikibuilds.ontoprise.com/smwhalo/index.php/Sandbox [4] -- {{#ask: [[Category:Athlete]] | ?TestProp = | format=tabularform | link=all | enable add=true | enable delete=true | order=ascending | queryname=Test | merge=false |}} -- [5] http://www.aloha-editor.org/ -- AIFB, Karlsruhe Institute of Technology (KIT) Phone: +49 721 608-47946 Email: benedikt.kaemp...@kit.edu Web: http://www.aifb.kit.edu/web/Hauptseite/en -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Sagie Maoz Sent: Friday, March 25, 2011 10:37 AM To: wikitech-l@lists.wikimedia.org Subject: [Wikitech-l] [GSoC 2011] Introduction + About some ideas Hi guys, My name is Sagie, I'm a first-year CS and linguistics student at Tel-Aviv University. I'm applying for GSoC this summer and wanted to introduce myself. I actually talked with some of you on #mediawiki last night, under the handle "n0nick". I've been a professional web developer for 6 years, mostly done PHP work. I'm fairly familiar with web & wiki frameworks in general, and have had some (short) experience with MediaWiki. I'd like to read your thoughts on the following projects I had my eyes on: * Inline Editing extension for MW/SMW Sounds like a very interesting and useful project to work on, and seems to me it fits the timeframe. I saw that there's been a lot of work done already for this task by user janpaul123, and was wondering what's the status of this project and how I can help with making this a possible GSoC project. * Sidebar/toolbar customization GUI I understand there's overhaul work being done on element skin systems, but I talked with Dantman about the sidebar customization and from what I understand, it's possible to take this project as long as my work is abstract (and good) enough. Anyone has other thoughts on this? Should I perhaps avoid working on something that might interfere with current developers work? * Email notifications Again, I see in the wiki page that some work has been done on this, and testing and bugfixing is required. Do you think it could be a suitable summer project? Would love to hear your thoughts. Thanks, -- Your friend in time, Sagie Maoz sa...@maoz.info // +1 (347) 556.5044 // +972 (52) 834-3339 http://sagie.maoz.info/ http://n0nick.net/ /* simba says roar! */ ___ 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
Re: [Wikitech-l] [Selenium] Structured description of tests?
Hi Markus, That sounds good. I have added some common tasks/assertions. How do you think one could use those in test plans/descriptions? If you are interested in how we plan/do use WMF Selenium framework, I have updated SMW Selenium tests documentation [1]. Best, Benedikt [1] http://www.semantic-mediawiki.org/wiki/SMW_System_Testing_with_Selenium -- AIFB, Karlsruhe Institute of Technology (KIT) Phone: +49 721 608-47946 Email: benedikt.kaemp...@kit.edu Web: http://www.aifb.kit.edu/web/Hauptseite/en -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Markus Glaser Sent: Tuesday, March 22, 2011 11:06 AM To: Wikimedia developers Subject: Re: [Wikitech-l] [Selenium] Structured description of tests? Hi Benedict, one way to make tests more structured and easier to maintain would be to provide a standard set of operations within the Selenium Framework. A list of suggestions can already be found at http://www.mediawiki.org/wiki/SeleniumFramework#Notes_and_further_improvemen ts. However, this does not seen to be very exhaustive... If you like to, we could join forces in order to create a usable set of standards, since this would be the next item on my todo list for the framework, anyway :) 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: Montag, 14. März 2011 19:03 An: Wikimedia developers Betreff: [Wikitech-l] [Selenium] Structured description of tests? Hello, As I see from [1-4], test descriptions for MW with the Selenium Framework are not much structured at the moment. I think, this will make it difficult to maintain these tests. Any suggestions how we could improve this? For a start, a bachelor student of mine will be looking into how to describe system tests for Semantic MediaWiki (and extensions) using categories and properties of Semantic MediaWiki. We are planning that tests are derived from and link to contents in the user/admin manual. Regards, Benedikt [1] http://www.mediawiki.org/wiki/Cite_Extension_Test_Plan [2] http://www.mediawiki.org/wiki/ConfirmEdit_Test_Plan [3] http://www.mediawiki.org/wiki/New_installer/Test_plan [4] http://www.mediawiki.org/wiki/Selenium/Deployment#Automation_work_done_by_th e_Calcey_team -- AIFB, Karlsruhe Institute of Technology (KIT) Phone: +49 721 608-47946 Email: benedikt.kaemp...@kit.edu Web: http://www.aifb.kit.edu/web/Hauptseite/en ___ 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] [Selenium] Structured description of tests?
Hello, As I see from [1-4], test descriptions for MW with the Selenium Framework are not much structured at the moment. I think, this will make it difficult to maintain these tests. Any suggestions how we could improve this? For a start, a bachelor student of mine will be looking into how to describe system tests for Semantic MediaWiki (and extensions) using categories and properties of Semantic MediaWiki. We are planning that tests are derived from and link to contents in the user/admin manual. Regards, Benedikt [1] http://www.mediawiki.org/wiki/Cite_Extension_Test_Plan [2] http://www.mediawiki.org/wiki/ConfirmEdit_Test_Plan [3] http://www.mediawiki.org/wiki/New_installer/Test_plan [4] http://www.mediawiki.org/wiki/Selenium/Deployment#Automation_work_done_by_th e_Calcey_team -- AIFB, Karlsruhe Institute of Technology (KIT) Phone: +49 721 608-47946 Email: benedikt.kaemp...@kit.edu Web: http://www.aifb.kit.edu/web/Hauptseite/en ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] [Selenium] How to use?
Thanks! The reason I asked is that SMW currently is tested for MW versions below 1.18. Best, Benedikt -- 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-47946 (!new since 1 January 2011!) Fax: +49 721 608-46580 (!new since 1 January 2011!) 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Markus Glaser Sent: Thursday, February 03, 2011 4:57 PM To: Wikimedia developers Subject: Re: [Wikitech-l] [Selenium] How to use? Hi Benedict, at the moment, the framework is still work in progress, so it is not shipped with any current releases (afaik). Also, using it requires some changes in the includes folder as well as the new maintenance class, which is not available until MW 1.16. But there is hope for you, I know at least one implementation of the framework with MW 1.15.3 ;) I put some notes on backporting the framework on http://www.mediawiki.org/wiki/Selenium_Framework#Backporting, although this may not yet be exhaustive. 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: Donnerstag, 3. Februar 2011 16:17 An: Janesh Kodikara; Wikimedia developers Betreff: Re: [Wikitech-l] [Selenium] How to use? Thanks for the quick answer. Unfortunately, I still don't know how to apply testing to older MW versions. I am familiar with the documentation, it is good, but does not answer all relevant questions. But I will figure out... Keep up the good work! Best, Benedikt -- 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-47946 (!new since 1 January 2011!) Fax: +49 721 608-46580 (!new since 1 January 2011!) 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Janesh Kodikara Sent: Thursday, February 03, 2011 9:11 AM To: Wikimedia developers Subject: Re: [Wikitech-l] [Selenium] How to use? - Original Message - From: "Benedikt Kaempgen" Newsgroups: gmane.science.linguistics.wikipedia.technical To: Sent: Wednesday, February 02, 2011 6:27 PM Subject: [Selenium] How to use? I got following for your answer. Hi Janesh, We checked with latest trunk and test scripts available only at tests/selenium. Earlier test were located at maintenance/tests/selenium but later moved to one level up. So now the tests should be available only at tests/selenium level. The tests were written against latest code because the idea is to regress test the system after latest changes. We can use the scripts against older versions if there are no major changes which would break the script. Details of Selenium framework is available at http://www.mediawiki.org/wiki/SeleniumFramework and there is a readme file which describes the behavior for installer test scripts. Regards, Jinesh De Silva ___ 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
Re: [Wikitech-l] [Selenium] How to use?
Thanks for the quick answer. Unfortunately, I still don't know how to apply testing to older MW versions. I am familiar with the documentation, it is good, but does not answer all relevant questions. But I will figure out... Keep up the good work! Best, Benedikt -- 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-47946 (!new since 1 January 2011!) Fax: +49 721 608-46580 (!new since 1 January 2011!) 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Janesh Kodikara Sent: Thursday, February 03, 2011 9:11 AM To: Wikimedia developers Subject: Re: [Wikitech-l] [Selenium] How to use? - Original Message - From: "Benedikt Kaempgen" Newsgroups: gmane.science.linguistics.wikipedia.technical To: Sent: Wednesday, February 02, 2011 6:27 PM Subject: [Selenium] How to use? I got following for your answer. Hi Janesh, We checked with latest trunk and test scripts available only at tests/selenium. Earlier test were located at maintenance/tests/selenium but later moved to one level up. So now the tests should be available only at tests/selenium level. The tests were written against latest code because the idea is to regress test the system after latest changes. We can use the scripts against older versions if there are no major changes which would break the script. Details of Selenium framework is available at http://www.mediawiki.org/wiki/SeleniumFramework and there is a readme file which describes the behavior for installer test scripts. Regards, Jinesh De Silva ___ 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] [Selenium] How to use?
Hi, I have some difficulties to use the actual Selenium framework for testing MW and an extension: - In trunk, selenium tests are both in tests/selenium and maintenance/tests/selenium. Why is that? - If I want to test Mediawiki versions other than the latest, how would I do that if files for both the testrunner and the application under test are only in trunk? Or is there just too much going on for Selenium testing at the moment that one should wait? Regards, Benedikt -- 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-47946 (!new since 1 January 2011!) Fax: +49 721 608-46580 (!new since 1 January 2011!) 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
Re: [Wikitech-l] Selenium Smoke Test Framework
Hi, when I created tests for monobook and then switched to vector skin some tests did not work anymore, e.g., due to different naming schemes of input fields. Although that would require only slight changes to the tests, it would increase redundancy and risk of inconsistency. How do you deal with this issue? Cheers! Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of K. Peachey Sent: Friday, November 05, 2010 1:47 AM To: Wikimedia developers Subject: Re: [Wikitech-l] Selenium Smoke Test Framework On Fri, Nov 5, 2010 at 10:33 AM, Rob Lanphier wrote: > If people have thoughts on the types of things that developers inadvertently > break that something like Selenium would be appropriate for trying to > detect, your thoughts would be greatly appreciated here. DB support for the other formats (aka, apart from just MySQL), if it installs, and some core functions work. -Peachey ___ 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
Re: [Wikitech-l] using parserTests code for selenium test framework
Hi, Automatic testing with a clean database sounds good, the scheme looks reasonable. Will it be possible to have cleaning of separate databases, used by extensions, added, also? In the context of wiki identification, I was wondering: At the moment I am mainly testing SMW instances having the selenium-server, the application under test, and the tests each on the same machine. Wiki identification is no issue, here. Of course, it would be great to eventually have the WM/extension testing on external (possibly Wikimania) infrastructure, resulting in higher security requirements; Is this planned or much considered in the discussions? Keep up the good work! Regards, Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Markus Glaser Sent: Friday, October 15, 2010 3:54 PM To: Wikimedia developers Subject: Re: [Wikitech-l] using parserTests code for selenium test framework Hi, I recently suggested some scheme for dynamically creating clean wikis for Selenium tests, which can be found here: http://www.mediawiki.org/wiki/SeleniumFramework#Testing_with_a_clean_databas e_and_file_state After some discussion in the Testing group, I would like to elaborate a bit further on some of the steps that need to be done: 2.2 Create temporal resources 2.2.1 create a new database with name "se"+testID 2.2.2 create a new images folder with name "se"+testID 2.2.3 populate database and images with template data. there is a standard (vanilla) template, but also, test suites can have their own templates, which then would be used. this test data should be placed in the same folder as the tests, with the same name. 2.3 Create test tracker with timestamp I suggest we use a textfile called "se"+testID.txt in a folder wiki/seRunningTests. The timestamp would be the creation date of the file. The next important question is, how should the wiki be identified? Brion suggested using a subdomain, e.g. "sn"+testID.yourwiki.org. If I understand webserver correctly, however, this would need some specific setup. In the selenium testing group we were discussion identifying the wiki via cookie. So the wiki under test would read the cookie and reconfigure accordingly. The reconfiguration would need to take place right after LocalSettings.php, since the following call to Setup.php already assumes some configurations as set. As far as I know, Priyanka already has written some code to do this. 3.1 start testsuites via selenium 3.1.1 First, the SeleniumTestRunner needs to store the testID in order to identify the ressources for teardown. 3.1.2 Start the test suite 5.1 send teardown request fetch the testID stored in 3.1.1 and request the wiki under test to teardown the ressources for that id I would be very happy about comments and thoughts. Are we heading in the right direction? Cheers, Markus -Ursprüngliche Nachricht- Von: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] Im Auftrag von Markus Glaser Gesendet: Mittwoch, 29. September 2010 20:02 An: Wikimedia developers Betreff: Re: [Wikitech-l] using parserTests code for selenium test framework Hi, since the wiki under test is not neccessarily the wiki running the test, it might be useful to visualize that (I have numbered the individual steps to make reference to them easier in the discussion): testrunner wiki under test -- --- 1.1 start selenium which in turn starts a browser to talk to the wiki under test 1.2 send request for new test with unique test id and tests that will be fired 2.1 create cookie with test id 2.2 create temporal resources according to tests list 2.3 create test tracker with timestamp 2.4 return success code 3.1 start testsuites via selenium 3.2 send a lot of individual requests according to the tests 4.1 testrunner is identified by test id 4.2 reconfigure database and resources according to test id 4.3 ? Do something with memcached ? 4.4 execute request 4.5 update timestamp in test tracker 5.1 send a teardown request 6.1 execute teardown, i.e. delete
Re: [Wikitech-l] Selenium Framework - test run configuration data
Hi, The selenium framework configuration using a config file [1] is much clearer now. Thanks. Regards, Benedikt [1] http://www.mediawiki.org/wiki/SeleniumFramework#Configure_Selenium_using_a_c onfiguration_file -- 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 Benedikt Kaempgen Sent: Thursday, October 07, 2010 11:28 PM To: pdha...@wikimedia.org; Wikimedia developers Subject: Re: [Wikitech-l] Selenium Framework - test run configuration data Hi Priyanka, Thanks for the update of the framework documentation. I will try to have a look at it soon. Cheers! Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Priyanka Dhanda Sent: Wednesday, September 22, 2010 2:29 AM To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] Selenium Framework - test run configuration data I made a few changes to the test runner and how we configure it. Also changed the mediawiki page to reflect this: http://www.mediawiki.org/wiki/SeleniumFramework#Configure_the_framework -p On 09/07/2010 09:52 AM, Ryan Lane wrote: >> I should also point out that what I was planning to do was not hidden. >> I wrote about these changes in my weekly report the Monday before I >> committed them (http://bit.ly/cqAcqz) and pointed to the weekly >> report from my Ohloh, Twitter, Identi.ca and Facebook accounts. >> >> Granted, this is not the same as posting to the mailing list, and for >> that I apologize. >> >> Looking back in the archives on gmane, it looks like you are very >> interested in MW testing. Since this is a large part of my focus >> currently as well, perhaps we should coordinate our work? >> >> > Please coordinate through wikitech-l and the SeleniumFramework page on > mediawiki.org [1]. It is good to broadcast information through other > sources as well, but normal communication methods are best. If changes > are being made to the framework, the documentation should also be > updated. > > -- Ryan > > [1] http://www.mediawiki.org/wiki/SeleniumFramework > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Priyanka Dhanda Code Maintenance Engineer Wikimedia Foundation http://wikimediafoundation.org San Francisco, CA ___ 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
Re: [Wikitech-l] Selenium Framework - test run configuration data
Hi Priyanka, Thanks for the update of the framework documentation. I will try to have a look at it soon. Cheers! Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Priyanka Dhanda Sent: Wednesday, September 22, 2010 2:29 AM To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] Selenium Framework - test run configuration data I made a few changes to the test runner and how we configure it. Also changed the mediawiki page to reflect this: http://www.mediawiki.org/wiki/SeleniumFramework#Configure_the_framework -p On 09/07/2010 09:52 AM, Ryan Lane wrote: >> I should also point out that what I was planning to do was not hidden. >> I wrote about these changes in my weekly report the Monday before I >> committed them (http://bit.ly/cqAcqz) and pointed to the weekly report >> from my Ohloh, Twitter, Identi.ca and Facebook accounts. >> >> Granted, this is not the same as posting to the mailing list, and for >> that I apologize. >> >> Looking back in the archives on gmane, it looks like you are very >> interested in MW testing. Since this is a large part of my focus >> currently as well, perhaps we should coordinate our work? >> >> > Please coordinate through wikitech-l and the SeleniumFramework page on > mediawiki.org [1]. It is good to broadcast information through other > sources as well, but normal communication methods are best. If changes > are being made to the framework, the documentation should also be > updated. > > -- Ryan > > [1] http://www.mediawiki.org/wiki/SeleniumFramework > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Priyanka Dhanda Code Maintenance Engineer Wikimedia Foundation http://wikimediafoundation.org San Francisco, CA ___ 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
Re: [Wikitech-l] Selenium Framework - standard directory for selenium tests
Hi, in SMW we have a maintenance folder just like MW does. Would it be possible to have the tests in there, i.e. SemanticMediaWiki/maintenance/tests/selenium (up to now, I have put them in there)? Regards Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Markus Glaser Sent: Monday, September 13, 2010 10:28 PM To: pdha...@wikimedia.org; Wikimedia developers Subject: Re: [Wikitech-l] Selenium Framework - standard directory for selenium tests Hi, I agree. Tests from extensions should follow the pattern Extensions/EXTENSION/tests/selenium whereas test for the core should be placed into maintenance/tests/selenium Any objections? Regards, Markus -Ursprüngliche Nachricht- Von: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] Im Auftrag von Priyanka Dhanda Gesendet: Montag, 13. September 2010 21:28 An: wikitech-l@lists.wikimedia.org Betreff: Re: [Wikitech-l] Selenium Framework - standard directory for selenium tests Hi Dan, I believe we decided that selenium tests should go under: Extension/tests/selenium/ -p On 09/13/2010 12:04 PM, Dan Nessett wrote: > Are there any standards for where to put selenium tests? Right now the > Simple Selenium test is in phase3/maintenance/tests/selenium and the > PagedTiffHandler selenium tests are in PagedTiffHandler/selenium. This > suggests a convention of putting extension selenium test files in a > sub- directory of the top-level directory named 'selenium'. Is that an > official convention? > > -- Priyanka Dhanda Code Maintenance Engineer Wikimedia Foundation http://wikimediafoundation.org San Francisco, CA ___ 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
Re: [Wikitech-l] Selenium Framework - test run configuration data
Hi, Great, that there is some further discussion and progress in Selenium testing going on. However, up to now I have been following the manual at [1] which Markus Glaser has updated recently but which now is out-of-date. I have figured out some of your changes and almost got the framework working. But still, SimpleSeleniumTestSuite/SimpleSeleniumTestCase do not work due to a "call_user_func_array()" error. Apparently, some methods cannot be found. I was wondering whether it would be possible to update the manual at [1] if there are any changes to the framework concerning its usage. Regards, Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Mark A. Hershberger Sent: Tuesday, September 07, 2010 5:15 AM To: Wikimedia developers Subject: Re: [Wikitech-l] Selenium Framework - test run configuration data Dan Nessett writes: > Last Friday, mah ripped out the globals and put the configuration > information into the execute method of RunSeleniumTests.php with the > comment "@todo Add an alternative where settings are read from an INI > file." So, it seems we have dueling developers with contrary ideas about > what is the best way to configure selenium framework tests. I'm opposed to increasing global variables and I think I understand Tim's concern about configuring via a PHP file. I plan to start work on reading the configuration from an INI file (*not* a PHP file). > Either approach works. But, by going back and forth, it makes development > of functionality for the Framework difficult. I agree. The idea I was pursuing is to encapsulate configuration in a Selenium object that (right now) RunSeleniumTests.php will set up. Platonides suggestion of a hook to provide configuration is also doable. Mark. -- http://hexmode.com/ Embrace Ignorance. Just don't get too attached. ___ 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
Re: [Wikitech-l] [Testing] Selenium
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
Re: [Wikitech-l] Testing Framework (was Selenium Framework - Question on coding conventions)
Hello, You are right that having "unit" and "selenium" folders in tests does not quite fit. However, "acceptance" I don't find appropriate, either. IMHO, Selenium actually is a framework for system testing (as it evaluates the system functionalities from a user perspective). So, how about having a folder "system"? Regards, Benedikt -- 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 -Original Message- From: wikitech-l-boun...@lists.wikimedia.org [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of Trevor Parscal Sent: Friday, August 06, 2010 8:27 PM To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] Testing Framework (was Selenium Framework - Question on coding conventions) I think /tests/unit and /tests/acceptance would be reasonable places to put things, and if they are both within maintenance or in the root doesn't really matter to me. Remember Selenium is a framework for doing acceptance testing, not unit testing. I don't quite see the purpose of specifying the framework name in our directory structure. Are we planning on using more than one unit or acceptance testing framework? My 2 cents. - Trevor On 8/5/10 3:55 PM, Chad wrote: > On Thu, Aug 5, 2010 at 6:47 PM, Mark A. Hershberger > wrote: >> Markus Glaser writes: >> >>> 1) Where are the tests located? I suggest for core to put them into >>> maintenance/tests/selenium. That is where they are now. For extensions >>> I propse a similar structure, that is/tests/selenium. >> Sounds fine. >> >> In the same way, since maintenance/tests contains tests that should be >> run using PHPUnit, we can say that/tests will contain >> tests that should be run using PHPUnit. >> > I would prefer moving them to a subdirectory of /tests/. As we hopefully > amass more unit tests, keeping them in the top-level will get a bit > confusing when trying to distinguish them from supporting code (shared > setUp and tearDown code, the bootstrap stuff, etc) > > Something like /maintenance/tests/unit/ to mirror /maintenance/tests/ > selenium/ would make the most sense. > > Consistency and thinking ahead is nice :) > > -Chad > > ___ > 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
[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
Re: [Wikitech-l] Experience Team - Insert Template
Hi, Thanks for the detailed answer. I have put some feedback on [1]. Unfortunately, on the sandbox page [2] the wizard did not work. I think, it might already provide some functionalities that I was suggesting. Could anyone point me to some page where it is working properly on Firefox 3.6.8 Windows 7? Then I can try it out and give more feedback. Keep up your good work. Benedikt [1] http://usability.wikimedia.org/wiki/Talk:Template_feedback#General_Feedback_to_Capsules [2] http://prototype.wikimedia.org/sandbox.6/Main_Page -- 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 Howie Fung Sent: Wednesday, July 28, 2010 7:43 PM To: Wikimedia developers Subject: Re: [Wikitech-l] Experience Team - Insert Template Correct. The features mentioned in this thread are rather complex, so we're starting by first hiding the template code into Template Capsules. The idea behind Template Capsules is to hide the template code for the benefit of the novice editor. These capsules may then be expanded to reveal the wikitext for the template. Mock-ups can be viewed here [1]. You may also visit Sandox [2] to view a prototype of the feature. We included an early version of Template Capsules as part of the last Usability Study [3] to test the basic concept of hiding/expanding the template code. We're incorporating the feedback we got from this study into the development of this feature. Once we get hiding/collapsing working, we'll start looking at other feature to make template editing easier. Please let us know what you think of what we have so far -- we've been using the following talk page for feedback: [4]. Howie [1] http://usability.wikimedia.org/wiki/Citron_Designs [2] http://prototype.wikimedia.org/sandbox.6/Main_Page [3] http://usability.wikimedia.org/wiki/Usability,_Experience,_and_Evaluation_Study#Template_Capsules [4] http://usability.wikimedia.org/wiki/Talk:Template_feedback On 7/27/10 7:39 AM, Aryeh Gregor wrote: > On Tue, Jul 27, 2010 at 10:31 AM, Benedikt Kaempgen > wrote: > >> Hello, >> >> is my question maybe not well placed in here? I thought it to be rather too >> technical oriented for MediaWiki-l. >> >> Please, give me a hint... :-) >> > As far as I know, the usability team is hoping to do something like > this at some point in the indefinite future, but since it would be > complicated, they're working on easier things first. I can't say for > sure, though. > > ___ > 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
Re: [Wikitech-l] Experience Team - Insert Template
Hello, is my question maybe not well placed in here? I thought it to be rather too technical oriented for MediaWiki-l. Please, give me a hint... :-) 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 Benedikt Kaempgen Sent: Saturday, July 24, 2010 12:17 AM To: Wikimedia developers Subject: [Wikitech-l] Experience Team - Insert Template Dear all, The improvements to the page editing interface by the experience team are great. I especially like the new insert link. I was wondering, whether it is possible to have something similar for templates, maybe with following functionalities: - suggestions for templates are listed while typing - short descriptions from the template page are shown - when a template is chosen, the user is asked for its parameters With that the users would not need to remember all templates, their syntax to use, and their number of parameters. Does anyone know whether that exists already or is planned? If not, how could that be implemented? Regards, Benedikt -- 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] Experience Team - Insert Template
Dear all, The improvements to the page editing interface by the experience team are great. I especially like the new insert link. I was wondering, whether it is possible to have something similar for templates, maybe with following functionalities: - suggestions for templates are listed while typing - short descriptions from the template page are shown - when a template is chosen, the user is asked for its parameters With that the users would not need to remember all templates, their syntax to use, and their number of parameters. Does anyone know whether that exists already or is planned? If not, how could that be implemented? Regards, Benedikt -- 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