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
|
|
|
| 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
| |
|
|
|
|
|