Introduction to Mobile Performance Testing



Similar documents
Going mobile: Keys to the successful performance of your mobile application Shane Evans, HP Product Manager Todd DeCapua, Shunra VP

How To Test On An Hp Mobile Device

Mobile Performance Testing Approaches and Challenges

What is new for HP LoadRunner and Performance Center 11.52

Questions & Answers Preview the new HP LoadRunner and HP Performance Center 12.0

LoadRunner and Performance Center v11.52 Technical Awareness Webinar Training

HP AppPulse Active. Software Version: 2.2. Real Device Monitoring For AppPulse Active

Workshop: Mobile Performance Testing Series I May 10, Copyright 2016 Vivit Worldwide

Mobile Testing: Actual Results from Nationwide Insurance How we could have tested the same application with the latest tools available

HP Performance Center 11.5: What s New? Gurmeen Aneja

STeP-IN SUMMIT June 2014 at Bangalore, Hyderabad, Pune - INDIA. Mobile Performance Testing

Sophos Mobile Control Installation guide. Product version: 3

Sophos Mobile Control Installation guide. Product version: 3.5

Mobile Application Performance Management

HP Business Process Monitor

Best Practices for Performance Testing Mobile Apps

Mobile Performance Testing

Fundamentals of LoadRunner 9.0 (2 Days)

On the Edge of Mobility Building a Bridge to Quality October 22, 2013

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

HP Business Service Management

Developing Cross-platform Mobile and Web Apps

... Introduction Acknowledgments... 19

Sophos Mobile Control Installation guide. Product version: 3.6

Network Virtualisation in Testing

Introduction to IBM Worklight Mobile Platform

Quick Installation Guide

Testing & Assuring Mobile End User Experience Before Production. Neotys

Mobile application performance management

Database FAQs - SQL Server

What s new in the HP Functional Testing 11.5 suite Ronit Soen, product marketing John Jeremiah, product marketing

Mobile application testing is a process by which application software developed for hand held mobile devices is tested for its functionality,

Business Assurance & Testing QEx Automation Platform

MOBILIZING ORACLE APPLICATIONS ERP. An Approach for Building Scalable Mobility Solutions. A RapidValue Solutions Whitepaper

Operational Decision Manager Worklight Integration

Applications Performance Management for Mobile Applications September 18, 2013

Bridging the Gap: from a Web App to a Mobile Device App

Adobe Marketing Cloud Bloodhound for Mac 3.0

Enterprise Mobile App Management Essentials. Presented by Ryan Hope and John Nielsen

Mobile Performance Management Tools Prasanna Gawade, Infosys April 2014

HP ALM Masters 2014 Connected, collaborative mobile application development for the enterprise HP Anywhere

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Gladinet Cloud Access Solution Simple, Secure Access to Online Storage

SOFTWARE TESTING TRAINING COURSES CONTENTS

Flexible Identity Federation

Load and Performance Load Testing. RadView Software October

HP LoadRunner. Software Version: Ajax TruClient Tips & Tricks

PERFORMANCE TESTING. New Batches Info. We are ready to serve Latest Testing Trends, Are you ready to learn.?? START DATE : TIMINGS : DURATION :

Sophos Mobile Control Installation guide

INFORMATION TECHNOLOGY STANDARD

Title: Appium Automation for Mac OS X. Created By: Prithivirajan M. Abstract. Introduction

Best Practices for Web Application Load Testing

SBBWU PROXY SETTING IT CENTRE How to Set a Proxy Server in All Major Internet Browsers for Windows

AppBoard TM 2.6. System Requirements. Technical Documentation. Version July 2015

Blue Coat Security First Steps Solution for Deploying an Explicit Proxy

Continuous???? Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

place/business fetch details, removefromfavorite () function, 189 search button handler bind, B BlackBerry build environment

Addressing Mobile Load Testing Challenges. A Neotys White Paper

01. Introduction of Android

KonyOne Server Prerequisites _ MS SQL Server

Mobile Device Manual for 3G DVRs

Interact Intranet Version 7. Technical Requirements. August Interact

Retool your HTML/JavaScript to go Mobile

Building a Mobile App Security Risk Management Program. Copyright 2012, Security Risk Advisors, Inc. All Rights Reserved

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Dave Haseman, Ross. Hightower. Mobile Development for SAP* ^>. Galileo Press. Bonn. Boston

Mobile Cross Platform Development really? Jonathan Marshall, IBM Mobile Technical Specialist IBM Corporation

Getting Started with the iscan Online Data Breach Risk Intelligence Platform

Customer Master Presentation - Contents

Brochure. Performance testing. HP Performance Center


Getting Started with Attunity CloudBeam for Azure SQL Data Warehouse BYOL

Step by Step Guide for Upgrading Your NetCamPro Camera to Cloud Mode Using an Android Device

SaaS-Based Employee Benefits Enrollment System

Installing the Android SDK

Debugging Mobile Apps

HP LoadRunner: Essentials 11

Open Source and Commercial Performance Testing Tools

Automated testing for Mobility New age applications require New age Mobility solutions

LR120 LoadRunner 12.0 Essentials

STeP-IN SUMMIT June 18 21, 2013 at Bangalore, INDIA. Enhancing Performance Test Strategy for Mobile Applications

Scholastic Education Technology Programs

Enterprise Application Security Workshop Series

CRESTRON-APP/CRESTRON-APP-PAD Control App for Apple ios

Running a Program on an AVD

Perfect Your Mobile App with Load Testing and Test Automation

SuperOffice Pocket CRM

Configuration Manual English version

SAP Web IDE Hybrid App Toolkit Add-on

Whitepaper Performance Testing and Monitoring of Mobile Applications

AVG Business SSO Partner Getting Started Guide

design coding monitoring deployment Java Web Framework for the Efficient Development of Enterprise Web Applications

CRESTRON-APP/CRESTRON-APP-PAD

Workday Mobile Security FAQ

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Integrating Mobile apps with your Enterprise

Transcription:

Introduction to Mobile Performance Testing Shlomi Zalma, Wilson Mar DT3338 at Noon, June 13, 2013 HOL330 in Sands 305

Why performance test mobile apps? Mobile apps are now: how customers locate stores and information how brands get exposure many times a day the face of the organization 3

Slow app = Slow product? 4

Baseline vs. impact of network latency, etc. 5 from HP Network Virtualization by Shunra [P01]

Possible points of risk in landscape mdev: Data Caching Network: Latency & Loss Network: Encrypt, Compress. Network: Load Bal. Algorithm Dev: Resource Usage SysAdmin: Server Config. Back-end: Pooling & Threading DBA: DB Indexes & Logs Platforms & Versions Device Features Screen Sizes 2G,3G,4G Cellular Carriers 3 rd Party Cloud Services ISPs Firewalls VPNs Load Balancers Web Servers App Servers DB Servers Storage Internet Browsers LANs Web Services Mobile Components CDNs & CoLo. 6

HP LoadRunner components and workflow End User Client(s) Internet/WAN Application Server(s) Database 1 Author Scripts 5 Virtualize Network 4 Virtualize Services 6 Generate Load 7 Measure Impact 8 Analyze, Compare, Report 2 Collaborate HP Live Network 3 Test Scenario Plan and Execute Tests 7

Scan for more information http://www.hp.com/go/... LoadRunner Network Virtualization Service Virtualization Mobile Testing 8 HP Codescan app

Mobile technology terms Windows PC internet explorer feature phones minimal browser Chrome Safari browser iphone, Android ipad Native app Apple Play. google App Store.com URL URL URL Hybrid app ft.com HTML4 m.ft.com mobile site ft.com HTML5 responsive design ft.com/ws web services 9

Mobile LoadRunner Scripting https://connections.houston.hp.com/docs/doc-15086

Create a New Script, Mobile Category 11 HP LoadRunner VuGen 11.5 SP1+

Multiple Approaches Available Browser or hybrid app: Ajax? > TruClient Ajax Mobile scripting protocol using User Agent spoofing in Firefox Simple > Mobile HTTP/HTML scripting protocol Native app: > Mobile HTTP/HTML scripting protocol Android: No device > Record Emulator using Android Virtual Device (AVD) Have rooted device > Mobile Recorder generate lrpcap to Analyze ios & others: > LoadRunner Proxy on same subnet/wi-fi hub (the newest technique) > Record & Analyze WinPcap capture on the mobile app server 12

Recording Method TruClient Ajax App web server 13 TruClient Ajax User Agent in Firefox > HP LoadRunner VuGen 11.51+

TruClient recording 14 HP LoadRunner VuGen 11.51+

Devices with User Agent strings Count: 27 15 HP LoadRunner VuGen11.52

User Agent string example Sample User Agent for Samsung Galaxy S3 Mozilla/5.0 (Linux; U; Android 4.0; xx-xx; GT- I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 16 More at http://www.useragentstring.com/ HP LoadRunner VuGen11.52

Android Versions 4.0 (15) 4.1 (16) 4.2 (17) 2.3 (9,10) 17

Mobile Device Manager Tool in VuGen 18

VuGen Scripting Process 1. Configure recording settings 2. Consider run-time settings 3. Object identification using script levels 4. Specify Transaction Names 5. Specify Completion End Events Logic 6. Insert flow control 7. Run-time logic 8. Vary data based on parameters 9. Using C script functions in a library 19 from HP Virtual User Generator User Guide 11.52 page 73

Random Think-time in TruClient Arguments: Math.floor( 11 * Math.random()+5 ); 20 http://www.perftesting.co.uk/ajax-truclient-tips-and-tricks-part-ii/2012/05/02/

TruClient Toolbox drag and drop Arguments: var randwait = Math.floor( 11 * Math.random()+5 ); window.alert( randwait= + randwait ); 21 http://www.perftesting.co.uk/ajax-truclient-tips-and-tricks-part-ii/2012/05/02/

HTTP/HTML Mobile Recording https://connections.houston.hp.com/docs/doc-15086

Mobile HTTP vs. HTML mode= HTTP For use with web services calls. Does not parse for resource requests. mode= HTML Parse HTML to automatically identify additional resources to download CSS JavaScript 23 HP LoadRunner VuGen

Record Mobile HTTP/HTML 24 HP LoadRunner VuGen11.52

HTTP/HTML Recording Methods Wizard HTTP/HTML Record & Analyze Traffic Analyze Traffic Record Emulator Proxy TruClient Recording 25 HP LoadRunner VuGen11.52

Proxy Recording https://connections.houston.hp.com/docs/doc-15086

Proxy Recording HTTP/HTML Android APK Proxy Recording LoadRunner Proxy ios Proxy Port 8080 Port 80/443 IPA App web server 27 HP LoadRunner VuGen11.5x

Same subnet via Wi-Fi router HTTP/HTML Ethernet cables Proxy Recording Wi-Fi router on private LAN 28

Proxy Recording HTTP/HTML Proxy Recording 29 HP LoadRunner VuGen11.52

Proxy Recording Setup on ios 1. 2. 3. Scroll down 4. 255.255.255.0 Eleanor 192.168.1.2 192.168.1.1 Eleanor 192.168.1.3 Password: ncjm-q3ey-t1dd 8080 Source: http://www.amsys.co.uk/2012/blog/how-to-setup-proxy-servers-in-ios/ 30

Proxy Recording Setup on Android Galaxy S3 (4.1.2) 1. 2. Long press 3. 4. 31

Record Emulator https://connections.houston.hp.com/docs/doc-15086

Record Emulator Android Recording Method HTTP/HTML Record Emulator Android \sdk\tools Async. device emulator APK @device ADT file APK Copy Android Backup File manager Install App web server Play. Google.com 33 HP LoadRunner VuGen11.5x

Record Emulator Requirements HTTP/HTML 1. USB cable to device 2. USB driver for device 3. Android app APK file for Android app under test 4. Android file download manager app to extract APK file from device Record Emulator 5. JDK (Java Development Kit) 6. ADT (Android Development Toolkit) plug-in for Eclipse 7. AVD (Android Virtual Device) within Eclipse for device under test 8. JAVA_HOME and PATH Windows environment variables 9. HP LoadRunner 11.50 and SP2 patch to upgrade to 11.52 34

Record & Analyze Traffic HTTP/HTML Record & Analyze Traffic.cap,.pcap network sniffer APK Android Ad hoc network ios IPA App web server 35 HP LoadRunner VuGen11.5x

Analyze Traffic https://connections.houston.hp.com/docs/doc-15086

Analyze Traffic HTTP/HTML Analyze Traffic APK Android 4.1+ (rooted) Mobile Recorder.lrpcap App web server 37 HP LoadRunner VuGen11.52

Android Mobile Recorder 1. Start Recording 2. 3. Stop and send email Perform user steps. 38

Android Mobile Recorder Settings 39

Recording Methods Recap HTTP/HTML Record & Analyze Traffic.cap,.pcap network sniffer APK Android 4.1+ (rooted) Mobile Recorder Play. Google.com Analyze Traffic Record Emulator device emulator APK Ad hoc network @device ADT file ios IPA.lrpcap App web server Proxy Recording LoadRunner Proxy Proxy Port 8080 Port 80/443 40 TruClient Ajax User Agent in Firefox > HP LoadRunner VuGen11.52

Mobile scenarios https://connections.houston.hp.com/docs/doc-15086

How can we help? Analytics Executive Scorecard Performance Center Test results ALM Analysis Tear down environment Continuous Delivery Automation (CDA) Application Security Assessment WebInspect Development Agile Manager App. Lifecycle Intelligence Monitoring & Diagnostics Business Service Management ALM Lab Management Run test cases UFT / BPT LoadRunner Execute automated build (Jenkins) Security Code Scan Fortify Source Code Analysis Provision & deploy environment Continuous Delivery Automation (CDA) Service Virtualization Network Virtualization 42 HP integrated testing suite

Interconnected component services Shopping process Search Buy Pay Ship Track Product Customer profiles Payment Shipping Track package Composite Managed cloud Traditional Public cloud Private cloud 43

Concurrency and rendezvous 44 Illustrative data [P10]

Key take-aways For mobile browser apps (jquery Mobile, Sencha, PhoneGap, etc.), little scripting is needed using User Agent spoofing via Firefox TruClient Mobile JavaScript executes against a DOM for each virtual user Traffic captured between native apps and server are converted to VuGen scripts Android native app traffic on rooted devices can be recorded on device using LoadRunner Mobile Recorder iphone and ipad (ios) -- all non-rooted apps can be recorded using LoadRunner Proxy Monitor and Diagnose using HP Business Service Management Consider HP Network Virtualization and Services Virtualization 45

Thank you