automated testing tool in ruby

J

jon

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

Dave Burt

jon said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top