You can build a manual scenario by creating groups and specifying the scripts, the load generators, and the number of Vusers included in each group. You can also build a manual scenario using the Percentage Mode, which allows you to define the total number of Vusers to be used in the scenario, and assign load generators and a percentage of the total number of Vusers to each script.
This chapter describes how to create a manual scenario using the Vuser Group Mode. For information on creating a manual scenario using the Percentage Mode
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.
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:
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.