record a Script for the following scenario?
actually we have a business scenario to do the load testing for our application... and we are also familiar with openSTA, but our doubts is how we record a script for our business scenario
let i tell my business scenario
total Virtual user - 100
25 VUser's - without logging to browse the application
25 VUser's - Logging and purchase the books
25 VUser's - logging and choose the books in cart and logging off
25 VUser's - logging and checkout the previously collected books in the cart
we need to test all this scenario in a "single script" is there is a possible?
thanks in advance for yours answer
Have a Nice day
Re: record a Script for the following scenario?
Generally speaking, I would put each of the 4 scenarios in a separate script and then create a master script that uses the call script statement to invoke them, but this only works if the scenarios are independent. Or you could create 4 scripts and 4 task groups if you dont like the idea of a master script. These two methods produce the same result, and your choice is one of personal preference. Your scenarios however are not independent. You couldn't call the 4th scenario for a given VU if that VU didn't first execute the 3rd scenario.
One solution to your problem has nothing to do with what tool you use for emulation. You could assure that any VU can, at any time, execute any of the transactions. This will require you to pre-stage data in the correct state so that you can call these scripts at any time. This will be very difficult.
There is another option that is data independent, but you need to bend the workload definition a bit.
The first two transactions are independent. create 2 separate scripts, 2 task groups of 25 users each.
Group script 3 and 4 into a task task group that consists of two scripts; script3 for task1 and script4 for task2. Give this task group 50 VUs. it will run scirpt3 then script4 repeating this pattern over and over. make sure the iteration count for task1 and 2 are set to 1 to make this happen.