About Creating a Scenario - LoadRunner

To test your system with LoadRunner, you must create a scenario a file with information about the test session. The scenario is the means by which you emulate a real-life user. The scenario contains information about how to emulate real users: the groups of virtual users (Vusers), the test scripts the Vusers will run, and the load generator machines upon which to run the scripts.

If you chose to create a regular manual scenario, each script you selected in the New Scenario dialog box is assigned to a Vuser group. To each Vuser group you then assign a number of virtual users. You can instruct all Vusers in a group to run the same script on the same load generator machine, or you can assign different scripts and load generators to the various Vusers in a group. Once you create your Vuser groups, you select or build a schedule for your scenario.

Understanding the New Scenario Dialog Box

The new Scenario dialog box enables you to select scripts for a new scenario.

Understanding the New Scenario Dialog Box

Selecting the Scenario Type

Select one of the following scenario options:

  • Manual Scenario: Select this method if you want to build a manual scenario.
    You build a manual scenario by creating groups and specifying the script, the load generator, and the number of Vusers included in each group.
  • Use the Percentage Mode to distribute the Vusers among the scripts:
    Select this option if you want to build a manual scenario by specifying a number of Vusers to be distributed among the selected Vuser scripts.
  • Goal Oriented Scenario: Select this method to have LoadRunner build a scenario for you. In a goal-oriented scenario, you define the goals you want your test to achieve, and LoadRunner automatically builds a scenario for you, based on these goals.

Choosing a Script

Select a script from the Available Scripts list. Scripts that have been selected appear in the Scripts in Scenario pane.

Available Scripts: Displays, by default, a list of the fifty most recently used scripts.

Note: You can change the maximum number of scripts displayed in the Available Scripts list by modifying the following registry key:

HKEY_CURRENT_USERSoftwareMercuryInteractiveRecentScripts max_num_of_scripts

Add: Adds a script to the scenario.

Remove: Removes a script from the scenario.

Browse: Select scripts from a different directory. To select a VB Vuser script, browse to locate the .usr file.

Record: Opens the Virtual User Generator so that you can begin recording a script.

Quality Center: Opens the Connection to Quality Center dialog box, so that you can open a connection to a Quality Center project.

Scripts in Scenario: Displays the scripts to be used in the scenario.

Show at startup: When selected, LoadRunner displays the New Scenario dialog box each time you open the Controller.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

LoadRunner Topics