[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby replacement for ab?

Mat Schaffer

12/21/2006 10:08:00 PM

So I've been hunting for a way to stress test a web application and
haven't been terribly satisfied so far.

I'd really love something where I could define a script that
determined the way an agent would behave. Basically a set of
requests where each request had the potential to use information
contained in the return of a previous request.

My brain is slowly churning around the possibilities of putting
ruby's benchmark.rb, mechanize, maybe drb to manage multiple test
hosts.... Some sort of ruby DSL would be sweet. But before I get
too ahead of myself: Does anyone here know of a tool does this?

I'm looking at JMeter right now. It at least allows for assertions
on HTTP requests as part of an agent script, but I don't see any
facility to do computations on the returned content from a previous
request.

Thoughts? Suggestions?

Thanks in advance,
Mat

21 Answers

hemant

12/21/2006 10:20:00 PM

0

On 12/22/06, Mat Schaffer <schapht@gmail.com> wrote:
> So I've been hunting for a way to stress test a web application and
> haven't been terribly satisfied so far.
>
> I'd really love something where I could define a script that
> determined the way an agent would behave. Basically a set of
> requests where each request had the potential to use information
> contained in the return of a previous request.
>
> My brain is slowly churning around the possibilities of putting
> ruby's benchmark.rb, mechanize, maybe drb to manage multiple test
> hosts.... Some sort of ruby DSL would be sweet. But before I get
> too ahead of myself: Does anyone here know of a tool does this?
>
> I'm looking at JMeter right now. It at least allows for assertions
> on HTTP requests as part of an agent script, but I don't see any
> facility to do computations on the returned content from a previous
> request.
>
> Thoughts? Suggestions?
>
> Thanks in advance,
> Mat
>
>

Did you see, : http://rfuzz.ruby...

--
gnufied
-----------
There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.

khaines

12/21/2006 10:51:00 PM

0

Fred Wulff

12/21/2006 10:56:00 PM

0

It seems like it would be fairly easy to set up something with
WWW::Mechanize, although there might be performance problems if you
wanted to use it for stress testing.

-Fred

On 12/21/06, khaines@enigo.com <khaines@enigo.com> wrote:
> On Fri, 22 Dec 2006, hemant wrote:
>
> > On 12/22/06, Mat Schaffer <schapht@gmail.com> wrote:
> >>
> >> I'd really love something where I could define a script that
> >> determined the way an agent would behave. Basically a set of
> >> requests where each request had the potential to use information
> >> contained in the return of a previous request.
> >>
> >> My brain is slowly churning around the possibilities of putting
> >> ruby's benchmark.rb, mechanize, maybe drb to manage multiple test
> >> hosts.... Some sort of ruby DSL would be sweet. But before I get
> >> too ahead of myself: Does anyone here know of a tool does this?
> >>
> >> I'm looking at JMeter right now. It at least allows for assertions
> >> on HTTP requests as part of an agent script, but I don't see any
> >> facility to do computations on the returned content from a previous
> >> request.
> >>
> >
> > Did you see, : http://rfuzz.ruby...
>
> rfuzz is nice but isn't really what he's asking about.
>
> What he is asking about is something that I have wanted for a long time.
> I want to be able to quickly and easily setup a test script for a site.
>
> Go to a URL. Follow a link on the page returned. Maybe pick randomly
> from a few choices of links to follow. Repeat a few times to simulate
> people clicking around a site. Go to a page with a form, and fill in form
> fields, etc...
>
> Basically, a DSL to write scripts for driving interactions to a site or
> application that would somewhat simulate what real traffic is expected to
> look like.
>
> That would be dandy.
>
>
> Kirk Haines
>
>
>

khaines

12/21/2006 11:17:00 PM

0

pat eyler

12/21/2006 11:24:00 PM

0

On 12/21/06, Mat Schaffer <schapht@gmail.com> wrote:
> So I've been hunting for a way to stress test a web application and
> haven't been terribly satisfied so far.
>
> I'd really love something where I could define a script that
> determined the way an agent would behave. Basically a set of
> requests where each request had the potential to use information
> contained in the return of a previous request.
>
> My brain is slowly churning around the possibilities of putting
> ruby's benchmark.rb, mechanize, maybe drb to manage multiple test
> hosts.... Some sort of ruby DSL would be sweet. But before I get
> too ahead of myself: Does anyone here know of a tool does this?
>
> I'm looking at JMeter right now. It at least allows for assertions
> on HTTP requests as part of an agent script, but I don't see any
> facility to do computations on the returned content from a previous
> request.
>
> Thoughts? Suggestions?

I'm not really maintaining it at this point, but RWB might help. it's
available as a gem. I've depracated it in favor of RFuzz, but RFuzz
still hasn't caught all the features.


>
> Thanks in advance,
> Mat
>
>


--
thanks,
-pate
-------------------------
http://on-ruby.bl...

Mat Schaffer

12/22/2006 12:01:00 AM

0

On 12/21/06, pat eyler <pat.eyler@gmail.com> wrote:
> I'm not really maintaining it at this point, but RWB might help. it's
> available as a gem. I've depracated it in favor of RFuzz, but RFuzz
> still hasn't caught all the features.

Both RFuzz and RWB look like really good starts toward what I'm after.
Tough to say if I'll decide to really code something at this point.
But I'll certainly start browsing the source of both projects to get
some ideas.

I'd love to have something that made it easy to take a script (like in
rfuzz or rwb), then just drop it straight into a harness that was
responsible for multi-threading, distribution across slave nodes,
aggregating data and generating reports.

But given the state of things, it'd be a big problem to tackle.
Possibly too big for me at this point.

Thanks for the feedback. This list never disappoints!
-Mat

pat eyler

12/22/2006 12:47:00 AM

0

On 12/21/06, Mat Schaffer <schapht@gmail.com> wrote:
> On 12/21/06, pat eyler <pat.eyler@gmail.com> wrote:
> > I'm not really maintaining it at this point, but RWB might help. it's
> > available as a gem. I've depracated it in favor of RFuzz, but RFuzz
> > still hasn't caught all the features.
>
> Both RFuzz and RWB look like really good starts toward what I'm after.
> Tough to say if I'll decide to really code something at this point.
> But I'll certainly start browsing the source of both projects to get
> some ideas.

If you're planning on writing something, either coordinate with Zed
to work on RFuzz, or take over RWB and go for it.


>
> I'd love to have something that made it easy to take a script (like in
> rfuzz or rwb), then just drop it straight into a harness that was
> responsible for multi-threading, distribution across slave nodes,
> aggregating data and generating reports.
>

That's sort of where I was headed with RWB. It's already multithreaded,
but it really should use dRb to coordinate across multiple nodes. I
don't think there's too much code needed to do that.

> But given the state of things, it'd be a big problem to tackle.
> Possibly too big for me at this point.
>

If you decide to go with RWB, I'd be happy to answer any questions.
It might be a plateful, but you can take small bites and it won't be
that hard. (Same is true of RFuzz, except that I can't answer the
questions.)

> Thanks for the feedback. This list never disappoints!
> -Mat
>
>


--
thanks,
-pate
-------------------------
http://on-ruby.bl...

Xavier Noria

12/22/2006 7:08:00 AM

0

On Dec 21, 2006, at 11:51 PM, khaines@enigo.com wrote:

> Go to a URL. Follow a link on the page returned. Maybe pick
> randomly from a few choices of links to follow. Repeat a few times
> to simulate people clicking around a site. Go to a page with a
> form, and fill in form fields, etc...
>
> Basically, a DSL to write scripts for driving interactions to a
> site or application that would somewhat simulate what real traffic
> is expected to look like.

Do you know Watir?

-- fxn




khaines

12/22/2006 4:04:00 PM

0

Hassan Schroeder

12/22/2006 4:58:00 PM

0

On 12/22/06, khaines@enigo.com <khaines@enigo.com> wrote:

> Those actually drive a real browser session, though. That's not really
> what I need.

For a non-Ruby example of a scriptable test system: WebTest:
<http://webtest.cano...

There's also a Firefox plugin to capture actions to use as the basis
for a test script: <http://webtestrecorder.cano...

Once your script is done, you run it from the command line, or from
your build environment.

FWIW!
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com