From: Stephan D. <ste...@ho...> - 2001-03-20 09:57:55
|
>From: Albert Brandl <al...@li...> > >On Mon, 19 Mar 2001, Chuck Esterbrook wrote: > > > A friend & colleague of mine and I were discussing testing of web sites. >I > > pointed out that I currently scan the HTML output of my web application >for > > 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 >numbers, > > I'd like to be able to work with those numbers to do comparisons, check >for > > "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? > > Yours, > > Albert Cheers --stephan _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |