For Programmers: Free Programming Magazines  


Home > Archive > Ruby > August 2005 > automated testing tool in ruby









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author automated testing tool in ruby
jon

2005-08-24, 7:01 pm

Hi, is there any http proxy and automated testing tool written in ruby?
something along the line of PushToTest, which records yr http
conversations, and reproduce them in jython script, which you can
customise - either for regression testing, security testing etc..

I have looked briefly at watir, but it deals more with IE object, which
may not be what I want.

Regards//

Dave Burt

2005-08-30, 7:58 am

jon theebh wrote:
> Hi, is there any http proxy and automated testing tool written in ruby?
> something along the line of PushToTest, which records yr http
> conversations, and reproduce them in jython script, which you can
> customise - either for regression testing, security testing etc..
>
> I have looked briefly at watir, but it deals more with IE object, which
> may not be what I want.


Watir is a really good and handy tool for testing an app by driving the same
tool the end-users have, IE.

But your lower-level testing suggestion could be used for different things,
and is another good idea. I don't know of the existence of such a thing, but
you can certainly use Webrick as a proxy.

If you were up to a bit of coding, you could build such a thing fairly
easily on top of the MouseHole Proxy, I think. It is trivial to set
MouseHole up to log requests you make (you set your browser's proxy to
localhost and MouseHole's port).

To convert that to ruby code, for the simple case of GET requests:
require 'net/http'
body = Net::HTTP.get("host.goes.here", "/path/goes/here")

Cheers,
Dave


karlin.fox@gmail.com

2005-08-31, 9:56 pm

Sounds like your asking for a protocol-level capture/replay functional
testing framework.

Check out the thread Jason Sweat started in ruby-talk 130044 or
(http://groups.google.com/group/comp...552f77c95bde64/)

Wee's WWW::Mechanize port is probably the most fitting. If it's
web-application testing you're doing, I have to plug the Systir + Watir
combo. (http://atomicobject.com/systir.page)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com