Download presentation
Presentation is loading. Please wait.
Published byTheresa Carter Modified over 8 years ago
1
LOAD RUNNER
2
Product Training Load Runner
3
3 Examples of LoadRunner Performance Monitors Internet/Intranet Database server App servers Web servers Clients O.S. Monitors: NT, 2000, XP Unix Linux Middleware Monitors: TUXEDO EJB Firewall Monitors: CheckPoint Network Monitors: SNMP Network Delay Web App. Server Monitors: BroadVision Allaire ColdFusion SilverStream BEA WebLogic Server WebSphere MS ASP Ariba ATG Dynamo iPlanet (NAS) GemStone/J Web Server Monitors: MS IIS iPlanet (NES) Apache Oracle 9iAS Database Monitors: Oracle SQLServer DB2
4
4 Load Testing Process Define Goals Analyze system Gather System Usage Data Record Scripts and turn scripts into Vusers by adding test data and user behavior Create Scenarios based on your goals Execute Scenarios for testing first, running 100% and overloading Analyze results data and pinpoint bottlenecks Fine tune system based on analysis data and re-run the scenario Tweak System Based on Analysis Plan Load Test Plan Load Test 1 Create Virtual Users Create Virtual Users 2 Scenario Creation Scenario Creation 3 Scenario Execution Scenario Execution 4 Results Analysis Results Analysis 5 Rerunning the scenario indicates whether performance has improved and whether goals have been achieved.
5
5 Load Runner Expert Workflow “The Big Picture” LoadRunner V U G E N LoadRunner C O N T R O L L E R & A N A L Y S I S Tweak System Based on Analysis Plan Load Test Plan Load Test 1 Create Virtual Users Create Virtual Users 2 Scenario Creation Scenario Creation 3 Scenario Execution Scenario Execution 4 Results Analysis Results Analysis 5
6
6 The Planning Phase Plan Load Test Plan Load Test 1 Create Virtual Users Create Virtual Users 2 Scenario Creation Scenario Creation 3 Scenario Execution Scenario Execution 4 Results Analysis Results Analysis 5 Goals, business processes, user type, user behaviors, input data, system profiling, scenario design, and LoadRunner installation
7
7 Plan Load Test Plan Load Test 1 Create Virtual Users Create Virtual Users 2 Scenario Creation Scenario Creation 3 Scenario Execution Scenario Execution 4 Results Analysis Results Analysis 5 1 Record user actions 2 Add verification checks 3 Add LoadRunner transactions 4 Parameterize input data 5 Correlate reused data 6 Verify correct execution The Script Creation Phase Creating Web Vusers will be the focus of this course Use the LoadRunner Virtual User Generator (VuGen) to create scripts (Vusers)
8
8 The Scenario Creation Phase Assign scripts, assign load generators, assign virtual users Plan Load Test Plan Load Test 1 Scenario Execution Scenario Execution 4 Results Analysis Results Analysis 5 Create Virtual Users Create Virtual Users 2 Scenario Creation Scenario Creation 3
9
9 The Results Analysis Phase Analysis graphs and reports to pinpoint bottlenecks and slowdowns Plan Load Test Plan Load Test 1 Scenario Execution Scenario Execution 4 Create Virtual Users Create Virtual Users 2 Scenario Creation Scenario Creation 3 Results Analysis Results Analysis 5
10
Recording for Web Lesson 1
11
11 Workflow Gather relevant test information Script Creation Plan 1 Test 4 Record 2 Enhance 3 Transactions Verification Parameters Correlation Play back script to verify success Record a Web Vuser Script
12
12 Create the Scripts Based on Planning Mission critical Business process name Purchase ticket Typical day 20/hr Peak day 30/hrModerate High 40/hr90/hrHeavy High Dynamic content Search for flights View flight booking Create new account 130/hr180/hrModerate Mod. 10/hr15/hrModerate Low Sign in 70/hr210/hrLight High Record ? Definitely Probably Record business processes selected during planning as scripts.
13
13 Record User Actions 1. Create a new Vuser script. 4. Start Recording. 5. Enter URL of the application under test & click OK. 6. Perform user steps with Web application. 7. Click Stop Recording once all the users steps have been recorded. 2. Select Web(HTTP/HTML) protocol to record against browser-based applications. 3. Set Recording Options. 8. Save the script.
14
Play Back
15
15 Workflow Gather relevant test information Script Creation Plan 1 Test 4 Record 2 Record Script Enhance 3 Transactions Parameters Verification Correlation Play back script to verify success
16
16 Which Run-time Settings Apply to Web Play Back? Run Logic Pacing Log Think Time Miscellaneous Speed Simulation Browser Emulation Proxy Preferences ContentCheck Available for all protocols. Specific to Web. DEMO – Run-time Settings
17
17 Run-time Settings – Run Logic Iteration Count: Set Number of Iterations to more than one to iterate the steps recorded under ‘Action’ section.
18
18 Run-time Settings - Pacing Start new Iteration: These settings are more useful when load testing. For debugging purposes, use the default values.
19
19 Run-time Settings - Log Use defaults for this stage of scripting, later we will see when to use other log options.
20
20 Run-time Settings – Think Time Use the default values at this stage of scripting.
21
21 Run-time Settings – Miscellaneous Multithreading and Automatic Transactions only apply when the script is run as a part of load test. when running the script in VuGen, uncheck this option.
22
22 Run-time Settings – Speed Simulation Network Speed: When in script development stage, it is not important to emulate different connections like modem, DSL and cable to see application performance. If required, select the various options to simulate users connecting at different speeds.
23
23 Run-time Settings – Browser Emulation Simulate browser cache: Check this option to ensure normal browser behavior at real-user level Download non-HTML resources: Check this to download resources like JavaScript, applet or Active X components Simulate a new user each iteration: Use this option to reset browser context on each iteration
24
24 Run-time Settings – Proxy Proxy It is recommended to use the same proxy settings used during recording.
25
25 Run-time Settings – Preferences At this stage of script development, use the default settings under ‘Advanced.’ Enable all the options under ‘Generate Web performance graphs’ in the Controller so that the graphs can be viewed during analysis. Enable Checks.
26
26 Run-time Settings – ContentCheck ContentCheck options: Allows you to add rules that globally predefine errors to detect errors in the server response.
27
27 Also Set General Options Under General Options, set Replay, Environment, Display and Correlation tab settings before playing back the script. DEMO – General Options
28
28 Running the Script Click the Run button to play back the script. The Execution log lists all messages once the script has stopped running. DEMO – Running a script and how to set results directory
29
29 Debugging Tools Test Results window Execution Log Snapshot Results window Page View Server Response Client Request Run-Time Viewer DEMO – Available debugging tool options
30
30 Summary Configured Run-time settings for Web debugging run Played back the script and verified functionality using debugging tools Test Results window Execution Log Snapshot Results window Run-Time Viewer Web Specific: Speed Simulation Browser Emulation Proxy Preferences ContentCheck General: Run Logic Pacing Log Think Time Miscellaneous
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.