How do I set the run-time behavior?
LoadRunner Run-Time settings let you emulate different kinds of real user activity and behavior. For example, you could emulate a user who responds immediately to output from the server, or a user who stops and thinks before each response. You can also configure run-time settings to specify how many times the Vuser should repeat a set of actions and how often.There are general run-time settings, and settings that are specific to certain Vuser types. For example, for a Web emulation, you could instruct your Vusers to replay your script in Netscape instead of Internet Explorer. Specific settings will be covered in Lesson 6, “Preparing a Script for Load Testing.”
In this lesson, general run-time settings that apply to all types of scripts will be discussed.
They include:
➤ Run Logic: the number of repetitions
➤ Pacing: the time to wait between repetitions
➤ Think Time: the time the user stops to think between steps
➤ Log: the level of information that you want to gather during playback
Note that you can also modify the run-time settings from the LoadRunner Controller. This will be discussed in a later lesson.
1. Open the run-time settings:
Ensure that the Task pane is displayed (If not click the Task button). Click Verify Replay in the task pane.
Under the heading Run Time Settings in the instruction pane click the Open Run-Time Settings hyperlink.
Alternatively you can press F4 or click the Run-Time Settings button in the toolbar. The Run-Time settings dialog box opens.
2. Open the Run Logic settings
Select the Run Logic node.
In this node you set the number of iterations, or the number of times to repeat the activity in succession. Set the number of iterations to 2.
3. Set the Pacing settings
Select the Pacing node.
This node lets you control the time between iterations. You will specify a random time. This accurately emulates a real-life setting where the user waits between actions, but at random intervals—you don’t see real users waiting exactly 60 seconds between repetitions.
Choose the third option and select the following:
At random intervals every 60.00 to 90.00 seconds.
4. Set the Log settings.
Select the Log node.
The Log settings indicate how much information to log while running the test. During development, you may choose to enable some logging for debugging purposes, but once you verify that your script is functional, you
can enable logging for errors only or disable it.
Select Extended log and enable Parameter substitution. This option will be relevant for the following lesson at which point it will discussed.
5. View the Think Time settings.
Select the Think Time node.
Do not make any changes. You will set the think-time from the Controller.
Keep in mind that when you run the script in VuGen, it will run quickly
since it will not include think-time.
6 Click OK to close the Run-Time Settings dialog box.




No comments:
Post a Comment