Hugh Gibson schrieb: >> First of all the testrunner is not limited to use just the GUI >> application it is possible to implement completely independent >> testrunners. We already have one very simple testrunner called >> BasicRunner. You can try it by commenting in line 73 and comment >> out line 71 in "testrunner.runner.Application" (You may have to >> update your qooxdoo). It basically loads the application to test >> (testrunner.TestLoader) in an IFrame and runs all tests, which >> namespace matches the text field's value. >> >> It should be possible to embed the functionality of the TestLoader >> into your application to test. >> > > Thanks. The point is that we would like to bring all testing into the one > place i.e. Selenium. It's already doing UI tests and can easily run the > the unit tests as well, capturing output. > I understand. What I wanted to propose is to reuse some of the testrunner classes to implement this. I just talked to Thomas and we decided to move some of the testrunner classes into the framework. These include "testrunner.TestResult", "testrunner.TestCase", "testrunner.Suite". It will be possible to create a special build, which includes all of the application's test cases and the ability to run the testcases from the running application. The test could be started by selenium and the results of the tests could be sent back to selenium. I think Thomas will build a prototype of this in the selenium-contrib. I hope you two could build up something, which can be used as reference for testing qooxdoo applications.
Best Fabian >>> OK. Would that work with aggressive optimisation of method names >>> in a hypothetical future build version? >>> >>> >> No, public members cannot be optimized/renamed. The testrunner >> finds the tests by walking over all classes and searching classes, >> which are instances of TestCase. All methods starting with "test" >> are considered tests in those classes. >> > > OK, in which case it will always be OK. It would be trivial to *not* > rename those if public renaming was ever implemented. > > Hugh > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG Brauerstraße 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel