goldb.org home

AS OF MAY 2008, THIS BLOG IS NO LONGER BEING UPDATED.
Visit the new blog at: http://coreygoldberg.blogspot.com



 Monday, April 14, 2008

Pylot 1.1 - New Release With Test Case Recorder

New Pylot 1.1 release is available
Visit: www.pylot.org/download.html

It contains some minor code cleanup and a new test case recorder contributed by David Solomon. The recorder works with Windows and IE only.

It is a script that launches your web browser and records HTTP requests as you navigate. While it records, it prints Pylot's XML test cases. The test cases are printed to STDOUT, so just redirect it to a file and you will have a valid testcases.xml file to use as Pylot input.

The pylot_recorder script is included in the lib directory of Pylot 1.1.

View the recorder's source code from the SVN trunk:
http://code.google.com/p/pylt/source/browse/trunk/lib/pylot_recorder.py

(It can't handle some complex scenarios, but is useful for recording simple GET and POST requests from web applications)

#    Comments [4] |
Monday, April 14, 2008 11:03:46 AM (Eastern Standard Time, UTC-05:00)
You should be able to use scotch to provide a proxy-based test case recorder; I have something simple written for twill already.

cheers,
--titus
Monday, April 14, 2008 11:16:36 AM (Eastern Standard Time, UTC-05:00)
@Titus,
thanks!

can you point me to where I can look at your proxy recorder for twill?

I did a proxy recorder in Perl a long time ago, but would love to add one onto Pylot.
Thursday, April 17, 2008 6:06:57 PM (Eastern Standard Time, UTC-05:00)
Hi Core,

nice tool! Might have been nice to mention that the test case recorder only works on Windows (needs win32 extensions). Just reading your blog entry I went like "Wow, cool, gotta check this out!", then downloaded the code only to find that on Linux I have to write XML by hand :-( Admittedly, the XML is rather simple, but why didn't you use sth even simpler like ConfigObj or YAML?

Chris
Thursday, April 17, 2008 6:25:43 PM (Eastern Standard Time, UTC-05:00)
@Chris:

The blog post mentioned Windows and IE only. I've been working a little bit with a proxy based recorder that is cross platform. possibly one day i will merge that and release it.

I considered yaml, but decided to stick with XML since it is widely known and somewhat human readable. possibly not the best choice, but it's what i went with. having said that, writing a new parser for a different markup language wouldn't be terribly hard.

thanks!

-Corey
Comments are closed.