Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Stephan Diehl <stephan_diehl@ho...> - 2001-03-20 09:57:55
>From: Albert Brandl <albert@...>
>On Mon, 19 Mar 2001, Chuck Esterbrook wrote:
> > A friend & colleague of mine and I were discussing testing of web sites.
> > pointed out that I currently scan the HTML output of my web application
> > important substrings, but that in the future I want to do more detailed
> > analysis on the contents. For example, if the page has a table of
> > I'd like to be able to work with those numbers to do comparisons, check
> > "greater than zero", etc.
>If you decouple the logic from the presentation (i.e. use
>a model-view-controller architecture), this kind of testing
>is no longer needed. You can test the controller without any
>need to parse HTML; since the view does not contain much
>logic, scanning for substrings might well be enough.
I was thinking along similar lines. Right now, I try to write dispatcher
(this idea is from the list, but I forgot who it was, sorry :-(). The idea
is to model the site as a finite state engine. The dispatcher holds a model
of the site and tries to make a state transition. During the transition, the
"request data" are analysed and all needed session data set. Then the
request is forwarded to the real page. Since all data are already verified,
the Pages should be quite lightweight and should basicly only create HTML.
With this approach, one could test the site (application) with general
python testing tools.
Any thoughts on this are greatly welcome
>What do you think about this approach? How well does it fit
>the architecture of WebKit?
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.