I’ve done some research on this and I’m fairly convinced it doesn’t
but I thought I would just ask here in case I missed something.
I want to be able to full-stack load test a Ruby on Rails site (not that
rails matters in this context) running dynamic test plans across
concurrent users in order to better replicate real world usage.
In other words, I’d like to run say 50 concurrent user sessions where
of them are signing up, some are just browsing around, some are logging
and doing UserActivity1, some are doing UserActivity2, etc.
I want to script the test plans in ruby, similar to a seleinum-rc test
where I can use the same DSL to simulate user input and identify parts
the response html, and use that to drive further test activity. I’d like
use some of the same DSL from my selenium or integration test helper
already developed in these tests as well in order to be DRY.
I would like the test framework to mimc the browser behaviour: handling
cookies and even simulating caching to send the appropriate
Since I would like to replicate actual request load on the server, I
make sure that all page assets, even static ones like
are requested during the test, so it would be nice if an HTTP Proxy
used to create the initial test plans by recording actual browser
Some things I’ve looked at so far:
- seems difficult to make dynamic test plans here that will modify
based on earlier responses
- test plans are in XML, although I suppose I could use a ruby DSL to
generate the XML, but since the proxy records to XML I’d also have to
generate ruby from XML
- Looks awesome, and I may end up going with this, but it would be nicer
use ruby instead of Jython in order to leverage my teams existing code
shell/curl/ruby script mish mash:
- A lot of control, and curl handles cookies, but no real framework
and no proxy recording
- Doesn’t really seem to be any test framework that deals with
requests like this
- I assume JRuby would be required (and would be sufficient) to get real
- I feel like there are probably a lot of pieces that could be tied
to make what I want, but unsure of what they are or which ones to
concentrate on. Hpricot? Mechanize?
Anyone have any ideas? Is anyone doing load testing via ruby?