[Zope-CVS] CVS: Products/Zelenium - README.txt:1.2
tseaver at zope.com
Wed Apr 20 15:08:43 EDT 2005
Update of /cvs-repository/Products/Zelenium
In directory cvs.zope.org:/tmp/cvs-serv24672
- Outline usage of 'generator.py' script with tcpwatch.
=== Products/Zelenium/README.txt 184.108.40.206 => 1.2 ===
--- Products/Zelenium/README.txt:220.127.116.11 Fri Apr 15 14:48:44 2005
+++ Products/Zelenium/README.txt Wed Apr 20 15:08:43 2005
@@ -69,3 +69,34 @@
On the "Zip" tab, supply a filename and click the "Download" button.
The Zuite object will construct a zip file with the same contents
described above, and then save it as a File object in its own contents.
+ Generating Testcases using tcpwatch
+ 1. Download the 'tcpwatch' product from Shane Hathaway's site:
+ 2. Unpack and run tcpwatch in its "HTTP proxy" mode, with recoring
+ turned on. E.g., the following command runs the proxy on
+ port 9999, recording the request / response data to the directory
+ $ python /path/to/tcpwatch/ tcpwatch.py \
+ -p 9999 -r /tmp/recorded_scenario
+ 3. Configure your browser to use an HTTP proxy on localhost, port 9999.
+ 4. Click through your site, exercising the features you are testing.
+ 5. Stop the proxy. Run the 'generator.py' script, pointing to the
+ directory where tcpwatch was recording::
+ $ python /path/to/Zelenium/generator.py \
+ --logfile-directory=/tmp/recorded_scenario \
+ 6. Edit the generated test case, removing / correcting the various
+ 7. Upload the test case to a Zelenium Zuite and run it.
More information about the Zope-CVS