8 Feb 2006 titus   » (Journeyer)

New release of twill imminent.

Whoops, screwed up some things; in particular, BeautifulSoup is needed to install 0.8.2. I've finally figured out how to test it properly, but I still need to work through the errors and do the testing. twill 0.8.3 will come soon.

On a related subject, does anyone have any HTML code that cannot be fixed with tidy, cannot be read (in tidy- or non-tidied- form) by HTMLParser, but can be parsed with BeautifulSoup? It's more difficult to test whether or not something is working properly if you can't test it directly.

twill, in-app

I recently added the ability to run twill scripts within the Web application to our tutorial app. The purpose is to run twill scripts for setup/teardown and testing of a Web app from within that Web app; as long as your Web app handles multiple simultaneous requests, it will work. Basically all you do is set up a page that retrieves twill scripts from a particular location and then executes them within that page. The output of the script is then retrieved and displayed on the page.

The big question is, why would you want to do this?

First, it lets you put live testing code in the actual application, e.g. like distributing Selenium tests with your Web app. (This is a pretty cool feature of Selenium.)

Second, programs like Selenium can use scripts written in the (much nicer IMO) twill language for both setup/teardown and some of the more boring non-JavaScript testing areas.

What other uses are there? Are we (Grig & I) on crack here?

--titus

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!