robust wrote:
> Thanks for your info thron7. Can I use the Test runner to test if the
> expected data is returned from the server? 
>   

there is no general restriction on how the tested classes do their work. 
if your class under test needs to talk to a server to compute its result 
that should be fine. just be aware that your test application (your 
classes under test together with the test harness classes) underlies the 
same restrictions as any other application when talking to a server. so 
it might be necessary that you load the test application from the same 
server your classes under test want to talk to when the test runs.

also, your test harness has to be able to handle asynchronicity if you 
use asynchronous network requests. this is only the case with the latest 
trunk version of Testrunner (and will be in the upcoming 0.8.2 release, 
scheduled for early March). if you are working with 0.8.1 sdk you might 
be restricted to synchronous requests as far as the Testrunner is 
concerned, which might be fine for unit testing but is generally not 
suitable for a production app. so that would limit your possibility to 
test production classes that do net i/o.


hth,
t.

> Thanks,
> Robust
>
> thron7-2 wrote:
>   
>> the test runner is best for testing the API of specific classes, one at 
>> a time. you would use it to e.g. automatically invoke a method on a 
>> class instance with various parameters and check the return values. 
>> these tests should require no manual intervention and are essentially 
>> non-gui.
>> selenium and the simulator on the other hand are about gui tests. you 
>> simulate an end user interacting with your application's user interface. 
>> this is good for testing the app's gui and its internal logic/backend 
>> access/etc. as far as it becomes apparent at the user interface.
>>
>> hth,
>> t.
>>
>> robust wrote:
>>     
>>> Hello All,
>>>
>>> I am trying to write some test cases against my application and run. When
>>> I
>>> searched the qooxdoo documentation, i found Test runner and Selenium
>>> (Simulator). Which is the best one to use. I am new to qooxdoo and never
>>> wrote any test cases previously in any language. Please, bear with my
>>> questions.
>>>
>>> Thanks,
>>> Robust
>>>   
>>>       
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>     
>
>   

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to