aspose file tools
The moose likes Testing and the fly likes Load test a two player game Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Load test a two player game" Watch "Load test a two player game" New topic
Author

Load test a two player game

R Sriram
Greenhorn

Joined: Jun 11, 2008
Posts: 18
Hello All,
I have written a web-based(specifically using servlets/jsp) two player game. I would like to do a load test to see how it performs and uncover a lot of issues .
Are there any load test tools which can simulate a number of concurrent pair of players playing a game? I am aware of a few tools which can httprequests and can do record and playback kinda thing,but, I am not sure if there can be any for this purpose. Please do let me know if any tool can be used in this direction or any other suggestions on how this can be achieved.

Thanks much,
Sriram
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26192
    
  66

Sriram,
Can you script a game? In other words, are the moves deterministic? In chess, they would be.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
R Sriram
Greenhorn

Joined: Jun 11, 2008
Posts: 18
Jeanne,
Yes the moves are deterministic. The game is 'bantumi'. The players will have a limited set of options from which they need to choose a move.In fact, unlike a chess game, the possibilities are more limited. Does this answer your question?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26192
    
  66

R Sriram wrote:Does this answer your question?

Yes. This means you could capture the URLs for a complete game. Some load tools do playback and record to make this faster to obtain. Then have a lot of scripts play the same game. You would have each virtual user pretending to be both pairs of user in a game to ensure the order of moves stays correct.
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

This is more appropriate for the Testing Forum


apigee, a better way to API!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I usually use JMeter for load testing, but that's largely because I'm familiar with it, and it's free.
R Sriram
Greenhorn

Joined: Jun 11, 2008
Posts: 18
Jeanne,
Alright. Let me look at the 'record/playback' thing.
Thanks a lot.
Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
Jeanne's suggestion sounds like a good place to start. If you want to capture the ordered URLs for a full round of game play, then adding a javax.servlet.ServletRequestListener to your application will make that step easier.


Fun programming etcetera!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load test a two player game
 
Similar Threads
snakes and ladders game
Colourful arrays!!
What's the best way to clear an array.
OO design question?
How to store possible movements? and which is the best way?