Scenarios?
Hi again,
Just starting to play with The Grinder and I have a (possibly stupid) question.
Often when load testing I want to set up several different usage 'Scenarios'
eg( for a 'for sale' app)
Scenario 1 - User:
searches for a for sale Item,
clicks through to a detail page for an item,
returns to search results,
clicks through to another detail page for another item
Scenario 2 - User:
logs in,
posts a new item for sale,
logs out
Scenario 3 - User
visits registration page,
registers,
logs in
posts a new item for sale,
logs out
etc etc
I would then have a whole bunch of threads repeatedly running Scenario
1, another bunch running Scenario 2 etc
At first glance I was expecting that I would write a script for each
scenario, and then allocate the scripts to different workers,
however it looks like grinder.properties only allows for a single
script to be specified per agent and all workers will run that script.
So it seems that to do what I want I need to
a) run a separate agent for each scenario OR
b) make the script able to run multiple scenarios in parallel (
using threads?)
What is the accepted way to do this sort of thing with The Grinder?
cheers
Perryn
--
--
-----------------------
Perryn Fowler
ThoughtWorks
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/