An execution plan in ZebraTester is designed to control VUsers, Test duration, Max loops per user and RampUp via a flat file.
The benefit of having an execution plan is that the VUsers, test duration, ramp up and ramp down can be altered at any point of time during the test which will be helpful in simulating a stepped load test, spike test etc.
Procedure:
Create an execution plan flat file with extension “.exepl”
Now design the execution plan as per the test scenario
Refer the documentation here Sec 3.10
When an execution plan is selected in ZebraTester before starting a Load test, then these 4 options are disabled from the UI and is controlled via the execution plan “.exepl” file
Example:
An example of a stepped load test starting with 5 VUsers having ramp up of 2sec per user with a stable period of 5 minutes and going up to 50 VUsers is provided below:
//Define a name for this execution plan
set(ExecutionPlanTitle,"Step_Up_Scenario")
//Define the maximum test duration, though the test can be executed shorter than the planned
set(MaxTestDuration,2:0:0)
//Set the max loops any user can execute, enter 0 or unlimited for a duration test
set(MaxLoopsPerUser,unlimited)
//Initialise the first set of users within specific time defined
rampup(+5,within,10)
//Optional - This is to make sure the ramp up completes and will extend the MaxTestDuration if required until ramp-up is completed
synch(rampup)
//This will act like stable period (5 minutes here)
wait(5:0)
//Second set of users ramping up
rampup(+5,within,10)
//Next stable period for all set of users running now
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
rampup(+5,DelayPerUser,2)
wait(5:0)
//Ramp down specific number of users in the given time. The users count may go beyond the actual no. of running vusers
rampdown(-1000,within,0)
synch(rampdown)
//Aborting the test. If there is no eot statement then the test will stop when it reaches the MaxTestDuration
eot
***End of article ***