• Save
Performance testing using HP Load Runner
Upcoming SlideShare
Loading in...5
×
 

Performance testing using HP Load Runner

on

  • 4,534 views

Presenter: Petr Kiryukhin

Presenter: Petr Kiryukhin

Statistics

Views

Total Views
4,534
Views on SlideShare
4,530
Embed Views
4

Actions

Likes
7
Downloads
0
Comments
0

2 Embeds 4

http://www.hostedredmine.com 3
http://www.docshut.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • SD 27.09.12 CVXCV
  • SD 27.09.12 CVXCV
  • Virtual User Generator ( VuGen ), is the primary tool for developing Vuser scripts
  • SD 27.09.12 CVXCV
  • During recording, you can select the section of the script into which VuGen will insert the recorded functions. The vuser_init & vuser_end are executed only once. The Actions section is repeated during multiple iterations of the Vuser script.
  • When a Vuser arrives at a rendezvous point, it is held by the Controller until all Vusers participating in the rendezvous reach that point.
  • Record typical business processes on a client application. VuGen creates the script by recording the activity between the client and the server. Instead of manually creating a Vuser script by programming the application’s API function calls to the server, you use VuGen to: Monitor the communication between the application and the server; Generate the required function calls; Insert the generated function calls into a Vuser script.
  • Virtual users depend upon the application layer protocol. Application layer protocol is the protocol that is used over TCP/IP. Examples are HTTP, SAP GUI Protocol, Protocols used by Oracle, etc.
  • Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols. SD 27.09.12 CVXCV
  • Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols. SD 27.09.12 CVXCV
  • Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • SD 27.09.12 CVXCV
  • SD 27.09.12 CVXCV
  • SD 27.09.12 CVXCV
  • LoadRunner Analysis provides graphs and reports to help you analyze the performance of your system. When you run a scenario via Controller, data is stored in a result ( .lrr) file. Analysis is the utility that processes the gathered result information and generates graphs and reports. Analysis graphs are generated for the resources that were monitored during the scenario execution.
  • LoadRunner Analysis provides graphs and reports to help you analyze the performance of your system. When you run a scenario via Controller, data is stored in a result ( .lrr) file. Analysis is the utility that processes the gathered result information and generates graphs and reports. Analysis graphs are generated for the resources that were monitored during the scenario execution.
  • SD 27.09.12 CVXCV

Performance testing using HP Load Runner Performance testing using HP Load Runner Presentation Transcript

  • PERFORMANCE TESTINGTesting using HP LoadRunnerPetr KiryukhinSeptember 27, 2012 www.ExigenServices.com
  • TABLE OF CONTENTS Performance Testing. Why? Goals. LoadRunner Overview – LR Components, System Architecture Virtual User Generator (VuGen): – Virtual Users; – Run and Debugging VuGen scripts; – Transactions, Rendezvous points; – Record, Vusers Types Controller: – Understanding Scenarios; – Creating & Executing LoadRunner scenarios; – Configuring scenarios Analysis 2 www.ExigenServices.com
  • PERFORMANCE TESTING Real system emulation Test executing Results analysis 3 www.ExigenServices.com
  • WHY SHOULD YOU USE PERFORMANCE TESTING? Does the application respond quickly enough for the intended users? Is the application stable under expected and unexpected user loads? Will system meet the needs of the business before going live? 4 www.ExigenServices.com
  • WHY SHOULD YOU USE PERFORMANCE TESTING? Are undetected application bottlenecks resulting in slow time or downtime in production? Are you struggling to deploy business systems smoothly, with no performance surprises? How do you know if an application or system can scale to the desired level of usage in production? 5 www.ExigenServices.com
  • WHY SHOULD YOU AUTOMATE PERFORMANCE TESTING? Manual testing limitations: It is expensive, requiring large amount of both personnel and machinery It is complicated, especially coordinating and synchronizing multiple testers It involves a high degree of organization, especially to record and analyze results meaningfully The repeatability of the manual tests is limited 6 www.ExigenServices.com
  • TESTING PROCESS. HOW DOES IT LOOK? number of scripts Planning the Test Creating Vuser scripts Record a basic Vuser script Creating the scenario Enhance and edit the script Running the scenario Configure run-time settingsMonitoring the scenario Run the Vuser script in stand- alone mode Incorporate the Vuser scriptAnalyzing Test Results into a LR scenario 7 www.ExigenServices.com
  • LOADRUNNER LoadRunner is an automated solution:– Put your application into stress;– Create controlled and peak load conditions;– Thousands of Virtual Users;– Using a minimum of hardware resources;– Repeatable, and measurable load 8 www.ExigenServices.com
  • LOADRUNNER – TYPICAL ARCHITECTURE 9 www.ExigenServices.com
  • LOADRUNNER – COMPONENTS– Virtual User Generator (VuGen )– Controller– Analysis 10 www.ExigenServices.com
  • LOADRUNNER – VIRTUAL USER GENERATOR– Records & runs scripts (Records on Windows platforms only)– Debugging of the scripts– Script can run on a Windows or UNIX machine– A custom type Vuser script 11 www.ExigenServices.com
  • VIRTUAL USERS. Reduces personnel requirements Vusers emulate the behavior of real Control - from a single point of control By increasing the number of Vusers, you increase the load on the system Reduces the amount of hardware required for testing 12 www.ExigenServices.com
  • VUSER SCRIPTS USES SCRIPTS. WHAT IS IT ?! A small program The actions that a Vuser performs ‘User data point’ ‘Parameters’ ‘Rendezvous points’ ‘Transactions’ ‘Run-time settings’ ‘Types’ 13 www.ExigenServices.com
  • VUSER SCRIPT STRUCTUREMethod within Record into Used to emulate Executed duringActions class action a login to ainit vuser_init Initialization serveraction Action client activity Running a log off Finish orend vuser_end procedure Stopped 14 www.ExigenServices.com
  • VUGEN – OVERVIEW, RUN, DEBUGGING 15 www.ExigenServices.com
  • VUGEN – PARAMETERS 16 www.ExigenServices.com
  • VUGEN - TRANSACTIONS The time it takes for the server to respond to specified Vuser requests. Transactions are defined to measure the performance of the server. The Controller measures the response times. 17 www.ExigenServices.com
  • VUGEN - TRANSACTIONS 18 www.ExigenServices.com
  • VUGEN – RENDEZVOUS POINTS synchronize Vusers; to perform a task at exactly the same moment; to emulate heavy user load. Note: You may only add rendezvous points in the Action section – not to the init or end . 19 www.ExigenServices.com
  • VUGEN – RENDEZVOUS POINTS 20 www.ExigenServices.com
  • RECORD VUSER SCRIPT 21 www.ExigenServices.com
  • VUGEN – RECORDING OPTIONS Recording options specify: – The information to record; – Client/browser with which to record; – Environment Settings; – Recording Properties Some of the recording options available are: – Recording Level – what information to record and which functions to use when generating script; – Correlation (HTML/WEB) 22 www.ExigenServices.com
  • VUGEN – RECORDING OPTIONSSetting the Recording Level: 23 www.ExigenServices.com
  • VUGEN – RUN-TIME SETTINGS Run-time settings define the way in which a script runs. – Stored in the default.cfg in the Vuser script directory – Applied to Vusers when the script is executed using VuGen or the Controller Configuring run-time settings enable you to emulate different kinds of user activity 24 www.ExigenServices.com
  • VUGEN – RUN-TIME SETTINGS General run-time settings include: – Run Logic – Number of times the action block of the script iterations (For HTML/WEB); – Pacing – the time between iterations; – Log – how much information is logged to the output; – Think time – emulates the time a real user waits between actions; – Miscellaneous. 25 www.ExigenServices.com
  • VUGEN – RUN-TIME SETTINGSSetting the Run Logic [HTML/WEB] : 26 www.ExigenServices.com
  • VUGEN – RUN-TIME SETTINGSSetting the Pacing: 27 www.ExigenServices.com
  • VUGEN – RUN-TIME SETTINGSSetting the Think time: 28 www.ExigenServices.com
  • VUGEN – RUN-TIME SETTINGSSetting the Miscellaneous: 29 www.ExigenServices.com
  • VIRTUAL USER TYPES Application Deployment Solution: For Citrix/Microsoft RDP Client/Server: For DB2 CLI, DNS, MS SQL Server, ODBC, Oracle (2-tier), Sybase Ctlib, Sybase Dblib, Windows Sockets protocols Distributed Components: For COM/DCOM, CORBA–Java, and RMI– Java protocols E-business: For FTP, LDAP, Palm, Web (HTTP/HTML), Web Services, SOAP and Web/Winsocket Dual protocol Enterprise Java Beans: For EJB Testing and Rmi-Java protocols ERP/CRM: For Baan, Oracle NCA, Peoplesoft-Tuxedo, Peoplesoft 8, SAPGUI, SAP-Web, and Siebel (Siebel-DB2CLI, Siebel-MSSQL, Siebel- Web, and Siebel-Oracle) protocols Legacy: For Terminal Emulation (RTE) Mailing Services: Internet Messaging (IMAP), MS Exchange (MAPI), POP3, and SMTP Middleware: Jacada and Tuxedo (6, 7) protocols Streaming: For MediaPlayer and RealPlayer protocols Wireless: For i-Mode, VoiceXML, and WAP protocols Custom: C Vuser, Java template, Javascript Vuser, VB Script Vuser, Visual Basic template 30 www.ExigenServices.com
  • VIRTUAL USERS PROTOCOLS Microsoft .NET Protocol Java Protocol Java Protocol - Manually Programming Scripts Enterprise Java Beans (EJB) Protocol Flex Protocol AJAX Protocol AMF Protocol Citrix Protocol RDP Protocol 31 www.ExigenServices.com
  • VIRTUAL USERS PROTOCOLS Click and Script Protocol Web Protocols Oracle NCA Protocol SAP Protocols Java over HTTP Protocol RTE Protocol Windows Sockets Protocol Mailing Service Protocols Tuxedo Protocols 32 www.ExigenServices.com
  • VIRTUAL USERS PROTOCOLS Siebel Web Protocol COM Protocol Database Protocols LDAP Protocol Wireless Protocols SilverLight Protocol Web Services - Adding Script Content Web Services - Managing Services Web Services – Security 33 www.ExigenServices.com
  • VIRTUAL USERS PROTOCOLS Web Services - Preparing Scripts for Replay Web Services - Service Emulation 34 www.ExigenServices.com
  • VIRTUAL USERS PROTOCOLS Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols. 35 www.ExigenServices.com
  • LOADRUNNER – CONTROLLER Easily and effectively control Single point of control Creates scenarios to test– Manages:– Load generators;– Number of virtual users;– Monitors. 36 www.ExigenServices.com
  • SCENARIOS number of users to emulate; the actions they perform (Vuser scripts); load generators 37 www.ExigenServices.com
  • CONTROLLER – SCENARIOSChoosing the scenario type: 38 www.ExigenServices.com
  • CONTROLLER – CREATING A SCENARIO Select the Vuser scripts for the scenario Add a Vuser group: – Choose a group name; – Select the number of Vusers to create in the group; – Select a load generator; – Select a Vuser script from the list Configure run-time settings for the group 39 www.ExigenServices.com
  • CONTROLLER – CONFIGURING A SCENARIO Some of the important parameters that maybe configured for each scenario: – Run-time settings; – Timeout interval; – Run-time file storage 40 www.ExigenServices.com
  • CONTROLLER – TAB ‘DESIGN’ 41 www.ExigenServices.com
  • LOADRUNNER – MONITORS Run – time: number and status of Vusers Transaction: transaction rate and response time Web Resource: statistics at the Web server System Resource: Windows, UNIX etc. 42 www.ExigenServices.com
  • LOADRUNNER – MONITORS 43 www.ExigenServices.com
  • LOADRUNNER – ANALYSIS Graphs Reports Drill down External monitors Correlation analysis Controller stores a result (.lrr) Analyze creates session 44 www.ExigenServices.com
  • LOADRUNNER – ANALYSIS 45 www.ExigenServices.com
  • HINTS %LR_Home%helpbooksbooks.pdf 46 www.ExigenServices.com
  • THANK YOU Questions? 47 www.ExigenServices.com