Performance testing overview

13
Performance Testing Overview

Transcript of Performance testing overview

Page 1: Performance testing overview

Performance Testing Overview

Page 2: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 2

Introduction to Performance Testing

Performance testing is the process of determining the speed or effectiveness of a computer, network, software program or device

Before going into the details, we should understand the factors that governs Performance testing:

Throughput Response Time Tuning Benchmarking

Page 3: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 3

Throughput:

Capability of a product to handle multiple transactions in a give period. Throughput represents the number of requests/business transactions processed by the product in a specified time

duration.

Response Time:

It is equally important to find out how much time each of the transactions took to complete. Response time is defined as the delay between the point of request and the first response from the product. The response time increases proportionally to the user load.

Tuning:

<Need to fill>.

Benchmarking:

Benchmarks provide a method of comparing the performance of various subsystems across different chip/system architectures

Benchmarking is the process of comparing your system’s performance against a baseline that you have created internally or against an industry standard endorsed by some other organization.

Introduction to Performance Testing

Page 4: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 4

Load testing Checks the application’s ability to perform under

anticipated user loads. The objective is to identify performance bottlenecks before the software application goes live.

Stress testing Involves testing an application under extreme

workloads to see how it handles high traffic or data processing .The objective is to identify breaking point of an application.

Endurance/Soak testing Done to make sure the software can handle the

expected load over a long period of time.

Volume testing Under Volume Testing large no. of. Data is populated

in database and the overall software system’s behavior is monitored. The objective is to check software application’s performance under varying database volumes.

Types of Performance Testing

Page 5: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 5

Scalability: Will the application handle the expected

load and beyond?

Stability: Is the application stable under expected

and unexpected user loads?

Availability: Is the application available to the end

user without any interruption?

Serviceability: Can the system quickly recover from

a failure?

Speed: Does the application respond quickly?

Confidence: Are you sure that clients will have a

positive experience on go-live day?

Why Performance Testing?

Page 6: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 6

Performance testing tool is helping us to reduce risks and minimize costs and for measuring web application performance and load stress capacity. These load testing tools will ensure your application performance in peak traffic and extreme stress conditions This is surely a complex testing which involved objectives of testing, cost, resources involved and potential return.

Performance testing tools aim to make it easy to regularly test and check your website’s performance so that you can then carry out remedial action in order to speed up the time it takes to load each page..

Why to use Performance Testing Tool

Page 7: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 7

Apache JMeter is open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications.

JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.

What is JMeter?

Page 8: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 8

How to launch the Jmeter:

{JMeter home dir -> bin-> jmeter.bat for launch the Jmeter

How to increase Heap Memory:

{JMeter home dir}/bin/jmeter.bat

How to Run the jmeter:

Ctrl + R to run the JMeter scriptsCtrl + E to clear the previous results

JMeter Basics

Page 9: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 9

Identify the category under which the

application falls. i.e. FTP, HTTP, LDAP, JDBC

Creating the test plan

Recording the Scripts

Inserting the timers

Running & Saving the tests

Analyzing the results and check for

possible bottlenecks

JMeter Basics

Page 10: Performance testing overview

Performance Testing Training Session

Day 2

Page 11: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 11

Thread Group

Stepping Thread Group

Controllers

Throughput Controller Transaction Controller IF Controller

Assertions Response Assertion

JMeter Components/Elements Overview

11

Page 12: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 12

Post-Processor Elements Regular Expression Extractor

Listeners Simple Data Writer View Results Tree View Results in Table

JMeter Components/Elements Overview

Page 13: Performance testing overview

Dallas | Hyderabad | Atlanta | San Jose | Des Moines | London | Bogota | www.cigniti.com | Unsolicited Distribution is Restricted. Copyright © 2013, Cigniti Technologies 13

Other Elements

CSV Data Set Config HTTP Cache Manager HTTP Cookie Manager User Defined Variable Random Variable Test Action

JMeter Components/Elements Overview