load-testing-using-loadrunner final-read-only
TRANSCRIPT
-
8/14/2019 load-testing-using-loadrunner final-read-only
1/36
-
8/14/2019 load-testing-using-loadrunner final-read-only
2/36
Load Testing needs
Due to application complexityDue to failure in a business processDifficult to find the root cause of a problem in applicationdeployment process
-
8/14/2019 load-testing-using-loadrunner final-read-only
3/36
Load Testing find out
Does the application respond quickly enough for theintended users?Will the application handle the expected user load andbeyond?Will the application handle the number of transactions
required by the business?Is the application stable under expected and unexpecteduser loads?
-
8/14/2019 load-testing-using-loadrunner final-read-only
4/36
Types of Load Testing Tools
LoadRunner : Mercury Interactivee-Load :EmprixSilk Performer :SeagueQACenter : Compuware
Rational Suite Test Studio : IBM Rational
-
8/14/2019 load-testing-using-loadrunner final-read-only
5/36
Mercury Interactive : LoadRunner
LoadRunner tool is designed for load testingCurrent version 8.1Support with various environments: Java, .Net, UNIX, CitixMetaFrame, XML and other environmentsHaving features included with Java/JE22 , SAP, .Net Diagnostics tool
LoadRunner offers a host of capabilities including WAN emulationsupport. A Web transaction breakdown monitor helps isolateperformance problems, while the tool's data wizard helps developerscreate data-driven tests quickly. In addition, the new tuning moduleadd-on provides component test libraries and a knowledge base thathelps isolate and resolve performance bottlenecks.
-
8/14/2019 load-testing-using-loadrunner final-read-only
6/36
System Requirements
-
8/14/2019 load-testing-using-loadrunner final-read-only
7/36
Load Runner Components
The Analysishelps youview, dissect,and comparetheperformance
results.
The Virtual UserGenerator capturesend-user businessprocesses andcreates anautomatedperformance testingscript, also knownas a virtual userscript.
The Controllerorganizes,drives,manages, andmonitors theload test.
The Loa d
Ge ne ra tors crea te the loa d by run ning virtual us er s.
.
-
8/14/2019 load-testing-using-loadrunner final-read-only
8/36
How LoadRunner works
-
8/14/2019 load-testing-using-loadrunner final-read-only
9/36
Load Testing Process with in LoadRunner
-
8/14/2019 load-testing-using-loadrunner final-read-only
10/36
Performance Testing Approach
Finding the Performance testing goals using testing approachType of load testAverage Response timeUser load estimationUser load distributionUser activity analysisProduction environment analysis
Performance Testing tools
-
8/14/2019 load-testing-using-loadrunner final-read-only
11/36
Type of load test
Load test
Load test determines how is the performance of application under theconcurrent user sessions for typical user scenario. The think time takeninto consideration in these test scripts.
Stress test
Stress test examines how application behaves under maximum load. Insimple terms find the upper threshold for the application below which itcan work normally. Think time ignored in these tests.
Performance test
Performance test indicates response time for the entire application fromthe users perspective.
-
8/14/2019 load-testing-using-loadrunner final-read-only
12/36
User Load Estimation
Performance Testing requirements will give an idea ofusers load or the number of users using the product. Thiswill determine the load to be used against the product intesting.
-
8/14/2019 load-testing-using-loadrunner final-read-only
13/36
User load distribution
This factor will input to the scenarios to be used and configured inthe load test.
-
8/14/2019 load-testing-using-loadrunner final-read-only
14/36
User activity analysis
By understanding the application ( Use Cases or DesignDocuments)Find out the user activities.Nothings just general manual script in order to performthe such action.( Basic Flow )
-
8/14/2019 load-testing-using-loadrunner final-read-only
15/36
Production Environment Analysis
A discussion with Business analyst or from requirementspecification design document will throw light ondeployment environmentMirror the production environment into a testingenvironment.
-
8/14/2019 load-testing-using-loadrunner final-read-only
16/36
Create Vuser Scripts
Using LoadRunner-VUGen
Open VUGen fromStart>All Programs>Mercury>Load Runner
If you had installed in your PC
-
8/14/2019 load-testing-using-loadrunner final-read-only
17/36
Create Vuser Scripts : VUGen
To Create new script:Select theCreate / Edit Scripts Link
-
8/14/2019 load-testing-using-loadrunner final-read-only
18/36
VUGen: Create Vuser Scripts Cont.
To Create New ScriptClick on the New VuserScript Link
To ope n e xis ting S criptClick on the Ope n Exis ting Script Link
-
8/14/2019 load-testing-using-loadrunner final-read-only
19/36
VUGen: Create Vuser Scripts Cont.
To record New Script1. Select the Protocols from
available Protocols2. Click OK button
-
8/14/2019 load-testing-using-loadrunner final-read-only
20/36
VUGen: Create Vuser Scripts Cont.
Click on the RecordApplication Link
-
8/14/2019 load-testing-using-loadrunner final-read-only
21/36
VUGen: Create Vuser Scripts Cont.
Under Application type- Internet Applications- Win Application
URL addressforapplicationor web
Working Directory:Where you can savethe script.
Program to recordMicrosoft Internet Explorer or Netscapeor Mozilla
Record Into Actionvuser_initActionsvuser_logout
-
8/14/2019 load-testing-using-loadrunner final-read-only
22/36
VUGen: Recording Summary
-
8/14/2019 load-testing-using-loadrunner final-read-only
23/36
-
8/14/2019 load-testing-using-loadrunner final-read-only
24/36
VUGen: Verify Replay Summery
Click on the VerifyReplay link
To View the Results:Click on the VisualTest Results link
-
8/14/2019 load-testing-using-loadrunner final-read-only
25/36
Define a Scenario
Using the LoadRunner Controller,
Set up the load test by defining the scenarios.
-
8/14/2019 load-testing-using-loadrunner final-read-only
26/36
Define a Scenarios cont
-
8/14/2019 load-testing-using-loadrunner final-read-only
27/36
Define a Scenarios cont.
-
8/14/2019 load-testing-using-loadrunner final-read-only
28/36
Controller Monitors
-
8/14/2019 load-testing-using-loadrunner final-read-only
29/36
Run the Scenario
Drive, manage, and monitor the load test from the LoadRunner
Controller .
-
8/14/2019 load-testing-using-loadrunner final-read-only
30/36
Running the Scenario cont.
-
8/14/2019 load-testing-using-loadrunner final-read-only
31/36
Analyze the results
Use LoadRunner Analysis to create graphs and reports, and
evaluate the performance.
-
8/14/2019 load-testing-using-loadrunner final-read-only
32/36
Results: Analysis Summary
-
8/14/2019 load-testing-using-loadrunner final-read-only
33/36
Results: Transaction Summary
-
8/14/2019 load-testing-using-loadrunner final-read-only
34/36
Data Collection from various result graphs
Based on the various graph, we will able to collect
following data metrics .Response time for each transactionTotal load on the serverTest scenarios details, Run Time setting detailTotal hits and hits/secondTotal Pass , Failed, Stop transactionsNumber of processes running on serverMemory detailCPU utilization
-
8/14/2019 load-testing-using-loadrunner final-read-only
35/36
Report Generation
Generate two types of reports
Load runner detailed reports: Word and HTMLversionGeneric reports in word version for the activitiesperformed in the scenario and response time detailswith other observation and conclusions for themanagement
Generating graphs also helpsHelps in tracking per load cycle resultsEasy to interpret for people
-
8/14/2019 load-testing-using-loadrunner final-read-only
36/36