[gcs-pcs-list] test suite.
Daniel Chudnov
daniel.chudnov at yale.edu
Fri Mar 3 16:44:46 EST 2006
Ed Summers wrote, on Fri, Mar 03, 2006 at 03:32:16PM -0600:
> > Or, actually, any unAPI test suite would be cool, too: just point
> > it at some page in your webapp that has at least one unapi-uri and
> > see if it will do all the stuff you expect.
>
> I'm willing to try this. Can you sketch out what you would want it to
> exercise and check?
Hooray for edsu! :)
I *think* the simplest thing that might work would be:
- A commandline app or web form into which you could paste a url
(alternately a bookmarklet that would send the current page in)
- The url should be a web page with at least one unAPI
unapi-uri span element and the unAPI link element.
- If there's no unapi-uri, but there is a unAPI link element, check
that the UNAPI? formats response is correct and stop
- If there's no link element, indicate the error and stop
- Check that the following works:
- The UNAPI? formats response is correct (xml pattern and 300 code)
- The UNAPI?uri=URI response is correct (xml pattern and 300 code)
- For each format listed in UNAPI?uri=URI, verify that the
response headers are as advertised (esp. mime-type)
- Check that the following fail correctly:
- Some bad UNAPI request (e.g. UNAPI?format=FORMAT) should return
400
- Make up a bad URI (info:bad-uri/BAD!-BAD!-BAD! :) and
UNAPI?uri=URI should return a 404
- For a good URI (one you discover in a unapi-uri span) try a
format that isn't listed; should return a 415
> I could start out with a simple command line app, and then put it
> behind a web app if you want.
Any working start on any of this would be way cool. Style points for
AJAX whiz-bang and slick CSS layout will not be included in the final
judging (we can always add that later :P).
-Dan
--
Daniel Chudnov
Yale Center for Medical Informatics
(203) 737-5789
More information about the gcs-pcs-list
mailing list