22
Mobile Technology Testing Are You Ready? Mobile Technology Testing Are You Ready? Lee Barnes, CTO Utopia Solutions © Utopia Solutions

Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Technology Testing – Are You Ready?Mobile Technology Testing Are You Ready?

Lee Barnes, CTOUtopia Solutions

© Utopia Solutions

Page 2: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Agenda

1 M bil T ti Ch ll1. Mobile Testing Challenges

2 M bil T ti P ti2. Mobile Testing Practices

3 Mobile Test A tomation3. Mobile Test Automation

4 Summary and Q & A4. Summary and Q & A

© Utopia Solutions

Page 3: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Testing Challenges

© Utopia Solutions

Page 4: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Testing Challenges – Platform Fragmentation

Smartphone Platform Market Share

Apple iOSAndroidBlackberryyWindowsPalm

© Utopia Solutions4

Source: comScore Reports May 2011 Smartphone Platform Market Share

Page 5: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Testing Challenges – Increased Test Burden

App FunctionalityFunctionality

Mobile EnvironmentMobile Testing

Iceberg

Mobile Environment

© Utopia Solutions5

Page 6: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Testing Challenges – Human Factors & Technology

Factor Traditional App Testing

App Host Desktop / notebook

Factor Traditional App Testing Mobile App Testing

App Host Desktop / notebook Mobile devicepp ost es top / oteboo

User Input Keyboard / mouse

C ll b ti S h i

App Host Desktop / notebook Mobile device

User Input Keyboard / mouse Touch screen

C ll b i S h i ?Collaboration Screen sharing

Results Verification Screen capture / movie

Collaboration Screen sharing ?

Results Verification Screen capture / movie ?

Testing Utilities? Yes

Automated Execution? Yes

Testing Utilities? Yes ?

Automated Execution? Yes ?

Performance Testing? Yes

System Monitoring? Yes

Performance Testing? Yes ?

System Monitoring? Yes ?

© Utopia Solutions6

System Monitoring? YesSystem Monitoring? Yes ?

Page 7: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Testing Practices

© Utopia Solutions

Page 8: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Understand the Mobile Landscape

• Mobile Industry Sources• Mobile Technology• Testing Techniques and Tools

© Utopia Solutions8

Page 9: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Industry Sources

Top Smartphone Platforms

304050

Top Smartphone Platforms% of Total US SubscribersGeneral IndustryGeneral Industry

• Analyst reports (Gartner, IDC t )

0102030

Feb-11May-11

IDC, etc.)• Mobile specific analysts,

blogs

Top Mobile OEMsOrganization / App S ifiOrganization / App S ifi

• Platform vendor sites

202530

Top Mobile OEMs% of Total US SubscribersSpecificSpecific

• System monitoring and analytics

05

101520

Feb-11May-11

• Business / user groups

© Utopia Solutions9

Source: comScore Reports May 2011 US Mobile Subscriber Market Share

Page 10: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Technology

Pl fPlatforms Android iOS Blackberry Windows WebOS

Devices Various Apple Blackberry Various HP / Palm

Dev. Language Java Objective C Java C# / C++ / VB HTML / CSS / Dev. Language Java Objective C Java C# / C++ / VB JavaScript

Source Model Open Closed Closed Closed Closed

Multi-tasking Yes Limited(iOS 4+) Yes Limited Yesg (iOS 4+)

Standard Browser WebkitBrowser Safari Blackberry

BrowserVaries with

Device / CarrierWebOSBrowser

Networks GSM CDMA LTE HSPA+ WiMAX

Carrier(s) AT&T, T-Mobile

Verizon, Sprint Verizon AT&T,

T-Mobile Sprint

Standard 3G 3G 4G 4G 4G

Typical Avg Speed 1769 / 739 kbps

848 / 506 kbps

6.44 / 5.0mbps

2.48 / 1.05 mbps

2.15 / .081 mbps

© Utopia Solutions10

Simultaneous Voice & Data Yes No Yes Yes Yes

Page 11: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile App Test Strategy

Business Objectives

Test Strategy Basedon Mobile ContextTest Strategy Basedon Mobile Context Objectives• What to test?• Where to test?

Business Impact

Mobile Strategy

• How to test?

Technology

© Utopia Solutions11

Page 12: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Non-Functional Mobile Test Conditions

InterruptInterrupt

• Incoming Call• Incoming SMS

• Power off• Battery dischargeInterruptInterrupt

• Low battery warning• Alarm alert

NetworkNetwork

• Carrier network(s)• Varying network

speeds

• Network loss• Network transition

p• Wi-Fi network

DeviceDevice

• Screen orientation• GPS• Camera

• Accelerometer input• Keyboard slide• Handset key mappings

© Utopia Solutions12

y pp g• Screen type/size

Page 13: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Weighted Mobile Configuration Matrix

OS

Device

DeviceWeighting iOS 3 iOS4 Android

2.2Android

2.3Blackberry

5.0Blackberry

6.0

OS 7 9 8 6 5 4Weighting 7 9 8 6 5 4

iPhone 3GS 7 49 63 N/A N/A N/A N/A

iPhone 4 9 63 81 N/A N/A N/A N/A

HTCHTC Thunderbolt 8 N/A N/A 64 48 N/A N/A

MotorolaAtrix 4G 6 N/A N/A 48 36 N/A N/AAtrix 4G

Blackberry9700 6 N/A N/A N/A N/A 30 24

© Utopia Solutions13

Primary Configuration Secondary Configuration

Page 14: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Testing on Emulator vs. Device

Type of Test Emulator Device

Unit Yes No

Functional / System Maybe YesFunctional / System Maybe Yes

System Integration No Yes

Non Functional No YesNon-Functional No Yes

Usability Testing No Yes

Field Testing (e g location basedField Testing (e.g. location based functionality) No Yes

Performance (device or system) No Yes

© Utopia Solutions14

Page 15: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Test Tools

Mobile Cloud Test Automation EmulatorsPrimary Purpose

Provide remote access to wide range of devices and carriers from o r

Provide automated testing capabilities to the mobile platform

Provide a mobile testing environment independent of theand carriers from your

desktopmobile platform independent of the

physical device

Benefits Eliminates the need to procure and manage

Address the large testing burden associated with

Emulate various mobile environmentsprocure and manage

devicesIncreases test efficiency via built-in utilities ( / id t

burden associated with deploying mobile apps across diverse platforms and devices

mobile environments without the need for physical devicesTest application f ti lit i(screen/video capture,

publishing results, etc.)functionality in a desktop environment

Vendors DeviceAnywhereP f t M bil

Jamo SolutionsZ Fi

Mobile OS vendors,OEMs and carriersPerfecto Mobile Zap-Fix

eggPlant

OEMs and carriersMany 3rd parties

Notes Focus is on manual testing – most vendors

Automation approach and capabilities vary widely

Many test conditions cannot be effectively

© Utopia Solutions15

testing most vendors have some automation capability

capabilities vary widely cannot be effectively tested on an emulator

Page 16: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Test Automation

© Utopia Solutions

Page 17: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Test Automation Success Criteria

ReliableReliable• Issue detection and recovery• Accurate verificationReliableReliable Accurate verification• Unattended execution

MaintainableMaintainable• Minimum sensitivity to application and

test case changes• Test cases separate from automation• Test cases separate from automation

code

ScalableScalable• Test coverage expanded efficiently• Automated test cases created by non-

technical resources

© Utopia Solutions17

technical resources

Page 18: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Test Automation Architecture

Test Cases &Test DataTest Cases &Test DataTest DataTest Data

Test DriverTest Driver

Automation FrameworkAutomation Framework

Device InterfaceDevice Interface

Mobile DevicesMobile Devices

© Utopia Solutions18

Page 19: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Mobile Automation Technology

Two Main ApproachesTwo Main Approaches

Visual InteractionVisual Interaction

• Uses OCR and image recognition

Object InteractionObject Interaction

• Application interaction performed to “see” mobile UI

• Test actions are performed with keyboard and user actions (e.g.

at the object level• May require an agent to be

compiled into apptaps, swipes, etc.)

• Apps must have consistent navigation and UI layout

• Some tools support object interaction on emulators only

• Platform vendors have capability • Can be unreliable

p ybuilt into their developer kits

Most tools integrate with commercial / open sourceMost tools integrate with commercial / open source

© Utopia Solutions19

Most tools integrate with commercial / open sourceautomated tools and IDE’s for script development

Most tools integrate with commercial / open sourceautomated tools and IDE’s for script development

Page 20: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Automation Friendly Apps

General CharacteristicsGeneral Characteristics• Business apps (vs. games / multi- User ID( g

media)• Consistent functionality• Consistent navigation

PasswordConsistent navigation

• Consistent GUI layout

Warehouse

Visual Interaction RequirementsVisual Interaction Requirements• UI objects identifiable by text

Consistent object / object ID

ChicagoDenverLas VegasLouisville• Consistent object / object ID

relationship• Lists searchable via keystroke

entryLogin

Louisville

© Utopia Solutions20

entry

Page 21: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Summary

• Mobile Testing Challenges–Platform and device diversity– Increased testing burden–New environment

• Mobile Testing Practicesg–Understand the mobile landscape–Test strategy comes from mobile strategy

Tools are available on the mobile platform–Tools are available on the mobile platform• Automation

–Approach to Automation is the same as traditional apps–Tool capabilities vary widely – evaluate carefully

© Utopia Solutions21

Page 22: Mobile Technology Testing - Are You Ready 2011/Mobile Technolog… · Mobile Industry Sources Top Smartphone Platforms 30 40 50 Top Smartphone Platforms General Industry % of Total

Questions…

…. and Answers!

Direct future questions to:

Lee [email protected]

© Utopia Solutions23