Hi Marco,

> I mean is there a way to initialize the application and then do tests with
> it?
> In my application main() method i set a property like this.foo, then in
> tests i try to access it with qx.core.Init.getApplication().foo but it's
> undefined.
>    
Yes, that's correct, because the Test Runner has an own application and 
this has nothing to do with your application. The Test Runner 
application is thought to test separate parts from your code and not 
your complete application, so this is unfortunately not possible to 
initialize your application and test it like your described above.
> I want to do tests when the application is already initialized because i
> have to test its methods when it is loaded like in the source/index.html
> file, is it possible?
>    
I'm not sure, but perhaps you can use selenium [1] to test the correct 
application initialization and all other unit test can be done with the 
Test Runner.

[1] http://qooxdoo.org/contrib/project/simulator/qooxdoo-tests-with-selenium

Cheers,
Chris

-- 
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to