Tclwebtest-Recorder (TwtR)

Tclwebtest-Recorder(TwtR) is a plugin for Mozilla Firefox that generates Tclwebtest scripts of a user's interaction with a web site.
The motivation for creating the tool was to reduce the time required for creating automatic tests for OpenACS.

TwtR is open source and released under the Apache License version 2.0.

It runs on Firefox 1.5 to 3.0.

Download

How to... 

After TwtR is installed the option show TwtR is present in the tools menu.
By selecting it an extra toolbar is displayed.

Before recording can start, an URL has to be specified in the Start URL field. The URL must be complete including the protocol part. (E.g. http://www.openacs.org instead of just www.openacs.org)

When the record button is pressed, the following is added to the view window:

::tclwebtest::init
::tclwebtest::do_request {http://www.mypage.org}

New lines are appended to the script as soon as the user click on a link, submit a form etc.
The view window can be open during the recording process in order to view the script being created.


Sometimes one would like to add a comment on a certain place in the script, or adding an optional assert command etc.
This can be done by simply open the view window and edit the text. New lines are added to the end of the script, and manual changes to the script are stored, regardless if the view window is kept open or not.

When the recording is finished, the script can be copied and pasted into a text editor.

The generated script includes some additional information, in form of comments.

::tclwebtest::field fill {foo@bar.com} ;# ~n {email} ;# type of field = text 

This is done in order to make it easier to edit the script later on.
E.g. Default Tclwebtest process each field in a form in the order they appear. In the example above the field name is included in the comment, and all one have to do in order to make the script independent from the number of appearance in the web form is to uncomment the field specification.

::tclwebtest::field fill {foo@bar.com} ~n {email} ;# type of field = text

 

Help, Contact and Further Development

TwtR is provided "as is" under the Apache License version 2.0, and no further development is planned.
However, good ideas for new functionalities, reporting of bugs and general comments are welcome.
Contact Åsmund Realfsen. (realfsen@km.co.at)

If you would like to continue the development of this software your self, please do !
The source code is inside of the xpi file, you simply have to unzip it.

For general help in respect to Tclwebtest, take a look at the documentation for it, or search the OpenACS forums.