> Hm, as we already stated this is significantly different from the 
> JSUnit protocol for tests, which relies on exceptions. Which means
> you cannot immedately use the TestLoader.js et al. code from the
> Testrunner for the test wrapper layer (although it would make for a
> good starting point).

JSUnit relies on exceptions for problem reporting but if everything goes
through OK it just returns. I'm not sure why the same technique can't be
used by the Selenium test layer so that any failure exceptions are caught
and documented as failures in the return information. It would mean some
code in qooxdoo to run the tests so we have:

Selenium command: qxRunTest - argument is regular expression that
   matches tests
Calls via SRC & eval to:
Qooxdoo function qx.dev.unit.Selenium.getInstance().runTest (or
  similar) to find and run appropriate tests catching exceptions etc
  as needed, marshalling results
Values returned to Selenium for logging

The qooxdoo function would be included as standard in "make source" but
would normally be excluded in "make build". "make build-test" would
include it so that tests could be run on a build version of the code.

I don't see any way for qxRunTest to know which functions are available
to run, therefore carrying out tests which match its argument, unless
there is a function or class in the qooxdoo code which keeps a register
of the available functions; or indeed searches for them dynamically. Once
we have that function/class we can make it work for us by keeping
compatibility of the unit test functions.

> Of course it seems possible to combine both protocols in the same 
> tests, these checking whether they are run in "Testrunner-" or
> "Seleniumrunner-mode".

I would really like to avoid that!

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

Reply via email to