RSS Feed for This PostCurrent Article

TCL Web Test Tool

tclwebtest is a tool to write automated tests for web applications. It provides a simple API for issuing http requests, dealing with the result and assume specific response values, while taking care of the details such as redirects and cookies.

It has some basic html parsing functionality, to provide access to elements of the result html page that are needed for testing (mainly links and forms).

A typical test script looks like this:

   1: set SERVER "testserver"
   2: do_request "http://$SERVER/sometesturl/"
   3: assert text "some text"
   4:  
   5: link follow "login"
   6:  
   7: field fill "testuser"
   8: field fill "testpassword"
   9: form submit
  10:  
  11: assert text "you are logged in as testuser"
  12:     


Trackback URL


Sorry, comments for this entry are closed at this time.