web site test framework? in python?

Tres Seaver tseaver at starbase.neosoft.com
Fri Apr 28 00:00:48 EDT 2000


In article <Pine.BSF.4.10.10004271745230.28211-100000 at chi.pair.com>,
Michal Wallace (sabren) <sabren at manifestation.com> wrote:
>On Thu, 27 Apr 2000 tiddlerdeja at my-deja.com wrote:
>
>> I'd also like to code the testing framework in Python.
>> 
>> Again, has anyone any experience in this testing websites arena?
>
>Well, there's http://pyunit.sourceforge.net/ .. I't s a pretty good
>test suite manager.
>
>
>> I was thinking of having JSP or ASP pages check for a testing variable
>> (registry or environment). If pages were called in test mode they would
>> return XML to be parsed which would can then be used as input data to
>> call the page again (this way you could store the test data with the
>> page you are testing). The XML would also contain the desired correct
>> data to check against to ensure the page is working correctly.
>
>Perhaps you should stick all this code in an object so you don't have
>to complicate your tests by communicating via http. You can set it
>up so you just pass objects around..

PyUnit is fine for *unit* testing, but tiddler is asking for what XP
would call *functional* testing -- XP requires that *developers* write
unit tests, but *users* write functional tests, in order to verify
that the system is delivering the promised externally-visible behavior.

I for one would be extremely interested in a means of running
automated functional tests through the web.  My own crude attempts at
this use urllib and diff(1), and break on a number of my pages.

Manual-testing-is-for-infinite-monkeys'ly

Tres.
-- 
---------------------------------------------------------------
Tres Seaver        tseaver at digicool.com     http://www.zope.org
Digital Creations



More information about the Python-list mailing list