Cosmin Bucur wrote:
===================
99% of the stuff I do is component in component because I strongly
believe an Ajax app is an application that runs from a SINGLE page .
And then the user loses the address bar. Having the ability to write ("/someApp/section1/PageX.html") in the URL is very useful. I just hope this new breed of single-page apps recognize this. By the way, what happened to the friendly URLs I set in the tacos demo? We can actually have both ways of accessing pages, you know (the /app? and the friendly url).

But for automated tests simpler pages are actually
better. For example, for this Autocompleter problem, we could use a
simple page with a JWC and a Autocompleter inside. The simplest way to
reproduce the bug is always the best.
===================
Well yes , it's simple to have automated testts on simple pages , but
as you can see , simple pages won't find all the bugs a component
might have . I'm thinking back to the 2 - 3 months i've been
complaining that there is a comment bug in tacos . Everyone was
telling me it's fixed , and then Andy realised that the bug is still
there IF you also have <script> tags in your response .
Hmm I don't think I'm being clear on this. Automated tests are useful to document existing bugs, and *sometimes* to find new ones. They force the programmer to think about boundary cases, and all other special stuff. OTH, and this is important, automated testing prevents regression.

For example, for the comment bug you said before, if you provide an automated test that shows this bug, and someone makes a change that breaks it again, the test would catch it and everybody saves a lot of time. But automated tests *must* be simple by definition.

So, complete apps and automated tests are two different kinds of beasts. The job of an Open Source project, is, IMO, to build a simple demo site (a "toy" site) and provide automated tests for all of the complex cases that are arising. Of course, a larger demo would be nice, but we need programmers for that :P.

--
Ing. Leonardo Quijano Vincenzi
DTQ Software




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to