From: Dick Davies Date: 2005-01-14T20:26:32+09:00 Subject: Re: [Q] Web Testing in Ruby * stevetuckner [0114 22:14]: > > > >>Laurent Julliard wrote: > >>I am currently working on one (when time permits). My idea is to use a > >>template of the web page under test to allow the checking of values both > >>in a form and just within plain HTML. It parses the HTML so that can > >>check for identical structure (though not identical white space). It > >>also can handle differences in the number sub-elements (like multiple > >>rows in a table). After parsing and comparing with the template, it > >>returns a nested hash/array structure to allow the checking of values. > >>Parts not done include the modifiying of form values and their > >>resubmission. > >> > >> > > > >did you find webunit? it's designed to allow unit testing of webapps, but > >i'm not sure if it's maintained (and the docs were a bit scanty). > After downloading webunit and taking a quick look (thus all my > impressions could be wrong -- please correct me if it is) at it, I think > that I am taking a different approach than it. First of all, it doesn't > seem to check non-form data. You've already got further than me then :) I installed it a while back but never got much further than that, it's in the todo pile somewhere.... but the example on the homepage seemed to indicate it checked the site layout too ( assert_title( 'test-1', response ) and so on). If it needs the site to be tagged to work then it's obviously not that useful.... > Also, my approach relies on parts of the > displayable text (not hidden form values) to check for values on the > page. This is so the tests are more readable without having to modify > the system under test at all. Look forward to a release! -- Rasputin :: Jack of All Trades - Master of Nuns