LoadRunner – Scenario Preparation

LoadRunner - Scenario Preparation

‘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:

How to prepare a manual scenario?

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

  1. Transaction Response time
  2. Virtual Load (User Load)
  3. Transactions per second
  4. Hits per second
  5. Pages per minute

To get more details on goal-oriented scenario preparation, refer to the below link:

How to prepare a Goal-Oriented scenario?

Note: Manual and goal-oriented options are not available in LoadRunner Enterprise.

Follow the below steps to prepare a scenario in LoadRunner Professional.

  1. Choose Scenario Type
  2. Upload/Select the script (s)
  3. Set the number of Vusers
  4. Set the test duration
  5. Adjust the run-time setting (optional)

Leave a Reply

Your email address will not be published. Required fields are marked *