Stress Testing Using Cucumber

I am currently writing integration tests for the RoR REST API using cucumber.

I would also like to emphasize testing the API and wondered how I can repeat using cucumber scripts for this.

I used JMeter and httperf before for stress tests, and, of course, I had to write or record tests with both tools that I wanted to include in stress testing. Since I already have scripts in Cucumber that I want to test, I try not to rewrite what would be basically the same scripts in the syntax of a stress testing tool.

Can someone recommend a way that I could use my tests for this? Ideally, I would like to simulate hundreds of concurrent users in the API.

+6
rest ruby-on-rails cucumber stress-testing
source share
2 answers

You may well need to create your own wiring harness. Essentially, you need to run multiple threads, each of which calls a process to run your scripts. You will want to delay the start of the step when each thread starts, because there will be some overhead associated with loading the Ruby interpreter. You can also spread the load to multiple machines for the same reasons. It would probably be better to do this in separate processes. Perhaps this could be useful for a new project?

+1
source share

Hmm, how about creating some steps that perform the httpref system call?

0
source share

All Articles