Re: Re: SchemeUnit redevelopment

Noel Welsh <noelwelsh-/[email protected]> Wed, 18 Aug 2004 01:47:39 -0700 (PDT)
Newsgroups gmane.lisp.scheme.plt.schematics
Message-ID <[email protected]>
--- Chris Dean <ctdean-ugGTvEhQ0gVWk0Htik3J/[email protected]> wrote:

> Great news!  I have something similar I've been using for
> the past few
> years that runs under Kawa (a Scheme -> JVM compiler) and
> have wanted
> to change the TestFramework code to use the same (or very
> similar)
> interface as SchemeUnit.  Now seems like a good time to
> do that.

Ok, sounds good.  What is TestFramework above?  I'm
familiar with JUnit but I think you're referring to a
different library.


> We have a very primitive framework for this written in
> Kawa.  I'd love
> to see any thoughts you have on the a good interface. 
> (Even if it's just random scribblings.)

Sure.  Old code is in the Schematics CVS at

  /src/libs/web-test/

I have an updated framework, which I will send you a
tarball of offlist (I'm a bit lazy commiting stuff to CVS
as CVS forces me to specific about my directory structure
at a time when I'm still experimenting with organisation). 
The updated framework actually has fewer web testing
functions (custom assertions etc.) as I've been using it
more as a HTTP client.

Anyway, my thoughts for such a library:  There should be
layers of HTTP functions, ranging from really basic GET/PUT
that doesn't follow redirects etc. to more complex
functions that follow redirects, and then really high-level
functions that imitate web browser use cases, such as
"follow link", "submit form" and so on.  Sometimes you want
to test that your application is redirecting as it should
be, sometimes you don't care about the details.

On the assertions side there should be basic things that
check responses (e.g. Did I get a 200 OK?) to more complex
stuff that pulls apart web pages.  With Neil's HtmlPrag and
Kirill's SXPath the latter is fantastically easy.

HTH,
Noel

=====
Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285