SlideShare a Scribd company logo
Hier soll der Titel reinNon-Functional Testing
www.qs-tag.de
Veranstalter: imbus AG www.qs-tag.de
Mobile Native Apps Performance
Testing Using Open Source Tool
JMeter
Devendra Singh
Nihilent Technologies Ltd.
© Nihilent Technologies 2015
Agenda
• Testing Landscape
• Mobile Apps
• Purpose
• Importance
• Types
• Performance Problems in Mobile Applications
• Challenges in Mobile Performance Testing
• Using JMeter for Mobile Performance Testing
• Practical Session
• Configuration Settings
• Setting up Proxy Server
• Setting the Device
• Scripting
• iOS App
• Android App
• Running Performance Test
• Analysing Performance Bottlenecks
• Questions and Answers
© Nihilent Technologies 2015
Testing Landscape
Functional
Testing
Usability
Testing
Compatibility
Testing
Integration
& System
Testing
Performance
Testing
Regression
Testing
Test Strategic
Consulting
Test Process
Consulting
Testing Verification
and Validation
Conventional
Testing
Non Functional
Testing
Automation
Testing
Testing Services Mobile Testing Types
© Nihilent Technologies 2015
Mobile Apps - Purpose
Program designed to run on Mobile devices.
Purpose
• Information Retrieval
• Business
• Communication
• Education
• Finance
• Social Networking
• Mobile Commerce
• Health and Fitness
• Travel and Transport
and many more…
© Nihilent Technologies 2015
Importance - Current Trends
Mobile is dominant in major areas
Mind your business; through mobile
Ref: Smartinsights.com
© Nihilent Technologies 2015
Importance - User Behavior
Analyst firm BIA/Kelsey has projected
• By 2015 there will be more local searches coming from smartphones than
PCs in the US.
• Smartphone search volumes are growing faster than search on the PC.
© Nihilent Technologies 2015
Mobile Apps - Types
There are majorly three types of Applications:
Native
Hybrid
Web
• Stored on a remote server
• Delivered over the internet through
a browser
• Websites that look and feel like
native applications.
© Nihilent Technologies 2015
Mobile Apps - Types
There are majorly three types of Applications:
Native
Hybrid
Web
• Developed for use on a particular
platform or device
• Specific programming language,
such as Objective C (for iOS) and
Java (for Android)
• Provides fast performance and a
high degree of reliability
© Nihilent Technologies 2015
Mobile Apps - Types
There are majorly three types of Applications:
Native
Hybrid
Web
• Hybrid Apps are like native apps, run
on the device, and are written with
web technologies (HTML5, CSS and
JavaScript)
• Leverages device’s browser engine
but not browser
• A web-to-native abstraction layer
• Access to device capabilities that are
not accessible in Mobile Web
applications, such as the
accelerometer, camera and local
storage
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• Sluggish Code
• Synchronization Issues
• Memory Leaks
• Application Deadlocks
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• Deadlocks
• Inefficient Queries
• Missing Index
• Memory and Connection
Management
• Unmanaged Data Growth
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• Using Default Setups for
Server boxes
• Lack of technology specific
best practices
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• Unbalanced Tiers
• Mismatched Technology
• Lack of Scalability
• Poor Design
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• Lack of Visibility
• Under utilized resources
• Lack of Health checking
• Poor load Distribution
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• DNS Routing
• Number of hops
• Inefficient Firewall
Configurations
© Nihilent Technologies 2015
Performance Problems in Mobile Application
Application performance can be hindered by below problems:
Application
Code
Database
Performance
Configuration
Settings
Architecture
Load
Balancing
Connectivity
Third Party
Services
• Aggregated Content
• Payment Gateways
• Social Network integration
© Nihilent Technologies 2015
Approaches and Challenges in Mobile Performance Testing
Approach 1 : Using Real Devices to Generate Load
Challenges:
• Testing Cost will increase drastically
• Manage device collection is hectic
• Poor Network Quality, High Latency
Approach 2 : Using Licensed Tools
Challenges:
• Tools use emulators to generate script
• Tools supports only browser based recording
• Restriction on number of users
• License Cost
Approach 3 : Using Network Proxy Capturing Utilities
Challenges:
• Requires lot of effort in filtering out the requests and responses from Application under
test
• Script generation and enhancement is complex
• Script recorded not close to real world
• Supports Licensed tools
© Nihilent Technologies 2015
Using JMeter for Mobile Performance Testing
Fact
All the performance testing tools work on one abstract idea.
“Capture the HTTP traffic coming and going from mobile device.”
We have to simulate the same using JMeter but alas no sampler request for
mobile protocols so this cannot be captured in the conventional way.
Concept
Native and hybrid mobile application uses the HTTP protocol to communicate with
the server and this can be utilized.
Approach
• Make the machine with JMeter a proxy server
• Connect mobile device with this proxy server
• Capture the HTTP traffic (request – response from mobile device) using proxy
server as all the traffic from device is now routed to this proxy server
This approach is far closer to the real world traffic simulation as compare to that
of emulators.
© Nihilent Technologies 2015
Using JMeter for Mobile Performance Testing
Exchange of Request Response between Mobile device with
Application Server
© Nihilent Technologies 2015
Using JMeter for Mobile Performance Testing
Exchange of Request Response between Mobile device with
Application Server via Proxy Server
© Nihilent Technologies 2015
Performance Testing Value Add
Below are the value adds for performance testing.
• Established benchmark behaviour of the Application
• Improved quality from a user’s perspective
• Reduced system costs
• Increased profits
• Identification of major application defects and architectural issues
• Guaranteed customer satisfaction
• Clarity on resource utilization
• Reliability and Availability
• Optimised Software code
© Nihilent Technologies 2015
Practical Session
• Configuration Settings
• Setting up Proxy Server
• Test Host Machine
• JMeter
• Setting the device
• Android
• iOS
• Scripting
• Android
• iOS
• Running Performance Test
• Analysis for Bottlenecks
© Nihilent Technologies 2015
Benefits, Assumptions and Dependencies
Benefits
• Device independent
• Cost Effective
• Application platform independent
• Applicable to other projects situation without any limitations
• Scripts generated is much closer to real world as compared to that of using simulators
• No network latency or overhead is induced by using network traffic capture tools
Assumptions
• The native application is interaction with the server via HTTP protocol.
• Device with the application installed is available.
• The user’s actions that do not have ant HTTP request sent and received will not be
captured and as these are executed at the client level are not of as much importance
to the performance testing.
Dependencies
• The device and machine with tools installed should be in same network.
• We have sufficient privileges to make the machine with tool installed a proxy server.
© Nihilent Technologies 201524
Questions?
© Nihilent Technologies 201525
Thank You

More Related Content

PDF
Mobile Apps Performance Testing Using Open Source Tool JMeter
PPTX
The Essentials of Mobile App Performance Testing and Monitoring
PDF
Experitest & Cigniti Co-Webinar -
PDF
Innovate 2013 session 1243 mobile testing.v3
PDF
Hp perfecto webinar - UFT Mobile
PPTX
Mobile testing
PDF
Soa architect summit mobile 2013_mar [compatibility mode]
PDF
Agile IT: Modern Architecture for Rapid Mobile App Development
Mobile Apps Performance Testing Using Open Source Tool JMeter
The Essentials of Mobile App Performance Testing and Monitoring
Experitest & Cigniti Co-Webinar -
Innovate 2013 session 1243 mobile testing.v3
Hp perfecto webinar - UFT Mobile
Mobile testing
Soa architect summit mobile 2013_mar [compatibility mode]
Agile IT: Modern Architecture for Rapid Mobile App Development

What's hot (20)

PDF
Performance testing of mobile apps
PPTX
Mobile architecture overview
PPTX
EVERS Corp.,
PPT
An Overview on IBM MobileFirst Platform v7
PPTX
IBM MobileFirst Quality Assurance (Português)
PDF
IBM MobileFirst - Hybrid Application Development with Worklight
PDF
Introduction to IBM Worklight: Building and connecting cross-platform mobile ...
PDF
IBM Mobile First
PPT
Key Architectural Aspects of a Enterprise Mobility Solution
PDF
Mobile Application Architecture Strategy
PPTX
Security and Mobile Application Management with Worklight
PDF
IBM MobileFirst - Hybrid App Development
PPTX
IBM Worklight-Overview
PDF
IBM Mobile Overview for Ecosystem Partners
PPT
IBM Mobile Quality Assurance Study Group Session 6
PPTX
Multi channel advantage
PDF
Mobile World Congress 2013 IBM-ATT Session
PDF
CIS13: Deliver Secure Apps with Great Experiences
PPTX
Why Mobile will Change your Business - Parmelee
PPT
DevBeat 2013 IBM Master Class presentation
Performance testing of mobile apps
Mobile architecture overview
EVERS Corp.,
An Overview on IBM MobileFirst Platform v7
IBM MobileFirst Quality Assurance (Português)
IBM MobileFirst - Hybrid Application Development with Worklight
Introduction to IBM Worklight: Building and connecting cross-platform mobile ...
IBM Mobile First
Key Architectural Aspects of a Enterprise Mobility Solution
Mobile Application Architecture Strategy
Security and Mobile Application Management with Worklight
IBM MobileFirst - Hybrid App Development
IBM Worklight-Overview
IBM Mobile Overview for Ecosystem Partners
IBM Mobile Quality Assurance Study Group Session 6
Multi channel advantage
Mobile World Congress 2013 IBM-ATT Session
CIS13: Deliver Secure Apps with Great Experiences
Why Mobile will Change your Business - Parmelee
DevBeat 2013 IBM Master Class presentation
Ad

Viewers also liked (13)

PDF
A3 oxfam's volumes
PPTX
WEBQUEST: ABSTRACT
PDF
Alphaeon Beauty Eyelash Serum
PDF
Star of Oct 2014.PDF
DOCX
Netiqueta
PDF
Alphaeon Beauty Epidermal Serum
PDF
Discriminación al Colombiano en España
PDF
A study on the mechanical properties of s45 c medium type carbon steel specim...
PDF
Présence digitale des banques en Tunisie - Premier semestre 2015
PDF
Charles Tsai: Whole Self Engagement
PDF
Panchal meditech-pvt-ltd
PPT
школа №90
A3 oxfam's volumes
WEBQUEST: ABSTRACT
Alphaeon Beauty Eyelash Serum
Star of Oct 2014.PDF
Netiqueta
Alphaeon Beauty Epidermal Serum
Discriminación al Colombiano en España
A study on the mechanical properties of s45 c medium type carbon steel specim...
Présence digitale des banques en Tunisie - Premier semestre 2015
Charles Tsai: Whole Self Engagement
Panchal meditech-pvt-ltd
школа №90
Ad

Similar to Software QS Tag White Paper (20)

PDF
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
PDF
Presentation build and connect apps, devices and data ibm worklight overview
PDF
Agile Network India | New to Automation? Learn what, how & when | TRIPTI MITTAL
PDF
Mobile application-testing for shanethatech
PPT
Mobile Testing : Brief OverView
PDF
Building Agility for Automated Mobile Apps Testing
PPTX
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
PPTX
Appmotives - Software Testing As Service
PDF
Think tank event mobile app testing v1.3
PDF
Experitest & Hexaware Co-Webinar
PDF
Gcp intro-20160721
PDF
Testing Mobile App Performance
PDF
A Guided Approach to Testing - A Mobile First Strategy for your Enterprise!
PPTX
Top Custom App Development Trends That You Shouldn’t Miss
PPTX
IBM Worklight for Digital Agencies
PPTX
How to Manage Digital User Experience for Web Applications
PPTX
Optimize Experiences Everywhere: How Marketers Leverage Real-Time App Agility...
PPTX
Amalgamation of BDD, parallel execution and mobile automation
PPTX
API Strategy Introduction
DOC
AshishShrivastava_Capgemini
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
Presentation build and connect apps, devices and data ibm worklight overview
Agile Network India | New to Automation? Learn what, how & when | TRIPTI MITTAL
Mobile application-testing for shanethatech
Mobile Testing : Brief OverView
Building Agility for Automated Mobile Apps Testing
SenchaCon 2016: Using Ext JS 6 for Cross-Platform Development on Mobile - And...
Appmotives - Software Testing As Service
Think tank event mobile app testing v1.3
Experitest & Hexaware Co-Webinar
Gcp intro-20160721
Testing Mobile App Performance
A Guided Approach to Testing - A Mobile First Strategy for your Enterprise!
Top Custom App Development Trends That You Shouldn’t Miss
IBM Worklight for Digital Agencies
How to Manage Digital User Experience for Web Applications
Optimize Experiences Everywhere: How Marketers Leverage Real-Time App Agility...
Amalgamation of BDD, parallel execution and mobile automation
API Strategy Introduction
AshishShrivastava_Capgemini

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
KodekX | Application Modernization Development
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PDF
cuic standard and advanced reporting.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
“AI and Expert System Decision Support & Business Intelligence Systems”
Building Integrated photovoltaic BIPV_UPV.pdf
KodekX | Application Modernization Development
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Weekly Chronicles - August'25 Week I
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
cuic standard and advanced reporting.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

Software QS Tag White Paper

  • 1. Hier soll der Titel reinNon-Functional Testing www.qs-tag.de Veranstalter: imbus AG www.qs-tag.de Mobile Native Apps Performance Testing Using Open Source Tool JMeter Devendra Singh Nihilent Technologies Ltd.
  • 2. © Nihilent Technologies 2015 Agenda • Testing Landscape • Mobile Apps • Purpose • Importance • Types • Performance Problems in Mobile Applications • Challenges in Mobile Performance Testing • Using JMeter for Mobile Performance Testing • Practical Session • Configuration Settings • Setting up Proxy Server • Setting the Device • Scripting • iOS App • Android App • Running Performance Test • Analysing Performance Bottlenecks • Questions and Answers
  • 3. © Nihilent Technologies 2015 Testing Landscape Functional Testing Usability Testing Compatibility Testing Integration & System Testing Performance Testing Regression Testing Test Strategic Consulting Test Process Consulting Testing Verification and Validation Conventional Testing Non Functional Testing Automation Testing Testing Services Mobile Testing Types
  • 4. © Nihilent Technologies 2015 Mobile Apps - Purpose Program designed to run on Mobile devices. Purpose • Information Retrieval • Business • Communication • Education • Finance • Social Networking • Mobile Commerce • Health and Fitness • Travel and Transport and many more…
  • 5. © Nihilent Technologies 2015 Importance - Current Trends Mobile is dominant in major areas Mind your business; through mobile Ref: Smartinsights.com
  • 6. © Nihilent Technologies 2015 Importance - User Behavior Analyst firm BIA/Kelsey has projected • By 2015 there will be more local searches coming from smartphones than PCs in the US. • Smartphone search volumes are growing faster than search on the PC.
  • 7. © Nihilent Technologies 2015 Mobile Apps - Types There are majorly three types of Applications: Native Hybrid Web • Stored on a remote server • Delivered over the internet through a browser • Websites that look and feel like native applications.
  • 8. © Nihilent Technologies 2015 Mobile Apps - Types There are majorly three types of Applications: Native Hybrid Web • Developed for use on a particular platform or device • Specific programming language, such as Objective C (for iOS) and Java (for Android) • Provides fast performance and a high degree of reliability
  • 9. © Nihilent Technologies 2015 Mobile Apps - Types There are majorly three types of Applications: Native Hybrid Web • Hybrid Apps are like native apps, run on the device, and are written with web technologies (HTML5, CSS and JavaScript) • Leverages device’s browser engine but not browser • A web-to-native abstraction layer • Access to device capabilities that are not accessible in Mobile Web applications, such as the accelerometer, camera and local storage
  • 10. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • Sluggish Code • Synchronization Issues • Memory Leaks • Application Deadlocks
  • 11. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • Deadlocks • Inefficient Queries • Missing Index • Memory and Connection Management • Unmanaged Data Growth
  • 12. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • Using Default Setups for Server boxes • Lack of technology specific best practices
  • 13. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • Unbalanced Tiers • Mismatched Technology • Lack of Scalability • Poor Design
  • 14. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • Lack of Visibility • Under utilized resources • Lack of Health checking • Poor load Distribution
  • 15. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • DNS Routing • Number of hops • Inefficient Firewall Configurations
  • 16. © Nihilent Technologies 2015 Performance Problems in Mobile Application Application performance can be hindered by below problems: Application Code Database Performance Configuration Settings Architecture Load Balancing Connectivity Third Party Services • Aggregated Content • Payment Gateways • Social Network integration
  • 17. © Nihilent Technologies 2015 Approaches and Challenges in Mobile Performance Testing Approach 1 : Using Real Devices to Generate Load Challenges: • Testing Cost will increase drastically • Manage device collection is hectic • Poor Network Quality, High Latency Approach 2 : Using Licensed Tools Challenges: • Tools use emulators to generate script • Tools supports only browser based recording • Restriction on number of users • License Cost Approach 3 : Using Network Proxy Capturing Utilities Challenges: • Requires lot of effort in filtering out the requests and responses from Application under test • Script generation and enhancement is complex • Script recorded not close to real world • Supports Licensed tools
  • 18. © Nihilent Technologies 2015 Using JMeter for Mobile Performance Testing Fact All the performance testing tools work on one abstract idea. “Capture the HTTP traffic coming and going from mobile device.” We have to simulate the same using JMeter but alas no sampler request for mobile protocols so this cannot be captured in the conventional way. Concept Native and hybrid mobile application uses the HTTP protocol to communicate with the server and this can be utilized. Approach • Make the machine with JMeter a proxy server • Connect mobile device with this proxy server • Capture the HTTP traffic (request – response from mobile device) using proxy server as all the traffic from device is now routed to this proxy server This approach is far closer to the real world traffic simulation as compare to that of emulators.
  • 19. © Nihilent Technologies 2015 Using JMeter for Mobile Performance Testing Exchange of Request Response between Mobile device with Application Server
  • 20. © Nihilent Technologies 2015 Using JMeter for Mobile Performance Testing Exchange of Request Response between Mobile device with Application Server via Proxy Server
  • 21. © Nihilent Technologies 2015 Performance Testing Value Add Below are the value adds for performance testing. • Established benchmark behaviour of the Application • Improved quality from a user’s perspective • Reduced system costs • Increased profits • Identification of major application defects and architectural issues • Guaranteed customer satisfaction • Clarity on resource utilization • Reliability and Availability • Optimised Software code
  • 22. © Nihilent Technologies 2015 Practical Session • Configuration Settings • Setting up Proxy Server • Test Host Machine • JMeter • Setting the device • Android • iOS • Scripting • Android • iOS • Running Performance Test • Analysis for Bottlenecks
  • 23. © Nihilent Technologies 2015 Benefits, Assumptions and Dependencies Benefits • Device independent • Cost Effective • Application platform independent • Applicable to other projects situation without any limitations • Scripts generated is much closer to real world as compared to that of using simulators • No network latency or overhead is induced by using network traffic capture tools Assumptions • The native application is interaction with the server via HTTP protocol. • Device with the application installed is available. • The user’s actions that do not have ant HTTP request sent and received will not be captured and as these are executed at the client level are not of as much importance to the performance testing. Dependencies • The device and machine with tools installed should be in same network. • We have sufficient privileges to make the machine with tool installed a proxy server.
  • 24. © Nihilent Technologies 201524 Questions?
  • 25. © Nihilent Technologies 201525 Thank You