Twill is a simple language that allows users to browse the Web from a command-line interface. With twill, you can navigate through Web sites that use forms, cookies, and most standard Web features. Twill supports automated Web testing and has a simple Python interface. Twill is open source and written in Python. Unlike many test automation tools for web application testing, Twill does not launch or need browser. Twill works from the command line (or from your Python script) and allows you to perform standard operations like navigating to specific pages, use forms, cookies and so on. As mentioned earlier, Twill does not launch real browser and hence its usage as test automation tool is limited. Twill can not be used to test rendering of pages, functionality related to Java scripts and so on. Tools like Selenium are better suited for that purpose. Twill is better suited for validating functionality which can be exercised using http request / response and analyzing page source.
Download link: http://darcs.idyll.org/~t/projects/twill-0.9.tar.gz
You can also use Python's easy_install to install or upgrade twill. It works with Python 2.3 or later.
To start using twill, install it and then type twill-sh. At the prompt type:
go http://www.slashdot.org/
show
showforms
showhistory
Source: Testing Site
Friday, March 4, 2011
Subscribe to:
Post Comments (Atom)
1 comment:
Post a Comment