This chapter introduces the Controller window and explains how to perform basic scenario operations
Set up the LoadRunner environment according to the instructions in the LoadRunner Installation Guide.
To open the Controller:
You can open the Controller from either of following:
- Start > Programs > Mercury LoadRunner > Applications > Controller
- Start > Programs > Mercury LoadRunner > LoadRunner. Mercury LoadRunner opens. Select the Load Testing tab, and then click Run Load Tests.
By default, the Controller opens with the New Scenario dialog box. Note that the New Scenario dialog box will not open on startup if you clear the Show at Startup check box or choose View > Show New Scenario dialog box (check mark cleared). To show the New Scenario dialog box at startup, select Show at Startup or choose View > Show New Scenario dialog box (check mark displayed). If the New Scenario dialog box does not open on startup, you can open it by choosing File > New or by clicking the New button on the Controller toolbar.
You can select one of two methods to create a scenario: Manual Scenario or Goal-Oriented Scenario. In a manual scenario, you create the scenario yourself by defining the number of Vuser groups you want to run, and building a schedule for LoadRunner to run these groups. You can also create a manual scenario by defining the total number of Vusers to be used in the scenario, and assigning a percentage of the total number of Vusers to each script. If you want to create a scenario using the Percentage Mode, select Use the Percentage Mode to distribute the Vusers among the scripts. 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.
To select the script or scripts that you want to use in your scenario:
- Select a script from the Available Scripts list. By default, the list displays 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_ USER Software Mercury InteractiveRecentScripts max_num_of_scripts You can also click the Browse button to locate the script you want to use. To view the directory path of a script listed in the Available Scripts list, rightclick the script and select Show Paths. To select a script saved in the Quality Center database, click Quality Center. To record a new script using VuGen, click Record.
Note: To select a VB Vuser script, browse to locate the .usr file.
- Click Add to copy the script you selected to the Scripts in Scenario list.
- Click Remove to remove a script from the Scripts in Scenario list.
- To bypass this dialog box the next time you create a new scenario, clear the Show at startup check box. You will be able to add scripts later on, while building your scenario.
- Click OK to close the dialog box.