‘Scenario Preparation’ is one of the important steps in LoadRunner and it comes after the completion of test scripts. When the test scripts work properly on the local machine then you can upload them in Controller (Loadrunner Professional) or LoadRunner Enterprise and start creating the scenario as per the requirement.
Scenario designing or preparation is related to workload modelling. In which you should know the value of all the key inputs like user load, test duration, ramp-up, ramp-down, steady-state period, expected TPS, pacing etc. Without these inputs, you can not design an accurate scenario or workload model.
In LoadRunner Professional, there are two types of scenarios, which are:
1. Manual Scenario
In a manual scenario, you need to manually design the scenario as per the given performance metrics. While designing the scenario, you have to provide the inputs like how many users to run and for how much duration and in what way the Vusers have to be started and ended. Based on the scenario, LoadRunner executes the test. To get more details on manual scenario preparation, refer to the below link:
2. Goal-Oriented Scenario
In the goal-oriented scenario, you have to specify the target, and minimum and maximum no. of Vusers and duration. When the test script execution starts then LoadRunner checks whether the goal or target can be reached or not. If the target is unreachable then it stops the execution. The user load is started from min no. of Vusers to max no. of Vusers.
The targets can be mentioned in terms of
- Transaction Response time
- Virtual Load (User Load)
- Transactions per second
- Hits per second
- Pages per minute
To get more details on goal-oriented scenario preparation, refer to the below link:
Note: Manual and goal-oriented options are not available in LoadRunner Enterprise.
Follow the below steps to prepare a scenario in LoadRunner Professional.
- Choose Scenario Type
- Upload/Select the script (s)
- Set the number of Vusers
- Set the test duration
- Adjust the run-time setting (optional)