• No results found

Lee Barnes, CTO Utopia Solutions. Utopia Solutions

N/A
N/A
Protected

Academic year: 2021

Share "Lee Barnes, CTO Utopia Solutions. Utopia Solutions"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Mobile Technology Testing – Are You Ready?

Mobile Technology Testing Are You Ready?

Lee Barnes, CTO

Utopia Solutions

(2)

Agenda

1 M bil T

ti

Ch ll

1. Mobile Testing Challenges

2 M bil T

ti

P

ti

2. Mobile Testing Practices

3 Mobile Test A tomation

3. Mobile Test Automation

4 Summary and Q & A

(3)

Mobile Testing Challenges

(4)

Mobile Testing Challenges – Platform Fragmentation

Smartphone Platform Market Share

Apple iOS

Android

Blackberry

y

Windows

Palm

(5)

Mobile Testing Challenges – Increased Test Burden

App

Functionality

Functionality

Mobile Environment

Mobile Testing

Iceberg

Mobile Environment

© Utopia Solutions 5

(6)

Mobile Testing Challenges – Human Factors & Technology

Factor

Traditional App Testing

App Host

Desktop / notebook

Factor

Traditional App Testing

Mobile App Testing

App Host

pp

ost

Desktop / notebook

es top / oteboo

Mobile device

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

?

System Monitoring?

Yes

(7)

Mobile Testing Practices

(8)

Understand the Mobile Landscape

Mobile Industry Sources

Mobile Technology

(9)

Mobile Industry Sources

Top Smartphone Platforms

30 40 50

Top Smartphone Platforms

% of Total US Subscribers

General Industry

General Industry

• Analyst reports (Gartner,

IDC

t )

0 10 20 30 Feb-11 May-11

IDC, etc.)

• Mobile specific analysts,

blogs

Top Mobile OEMs

Organization / App

S

ifi

Organization / App

S

ifi

• Platform vendor sites

20 25 30

Top Mobile OEMs

% of Total US Subscribers

Specific

Specific

• System monitoring and

analytics

0 5 10 15 20 Feb-11 May-11

• Business / user groups

© Utopia Solutions

9 Source: comScore Reports May 2011 US Mobile

(10)

Mobile Technology

Pl f

Platforms

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 Yes

g

(iOS 4+) Standard Browser Webkit

Browser Safari Blackberry Browser Varies with Device / Carrier WebOS Browser

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.0 mbps 2.48 / 1.05 mbps 2.15 / .081 mbps Simultaneous Voice

(11)

Mobile App Test Strategy

Business

Objectives

Test Strategy Based

on Mobile Context

Test Strategy Based

on Mobile Context

Objectives

• What to test?

• Where to test?

Business

Impact

Mobile

Strategy

• How to test?

Technology

© Utopia Solutions 11

(12)

Non-Functional Mobile Test Conditions

Interrupt

Interrupt

• Incoming Call

• Incoming SMS

• Power off

• Battery discharge

Interrupt

Interrupt

• Low battery warning

• Alarm alert

Network

Network

• Carrier network(s)

• Varying network

speeds

• Network loss

• Network transition

p

• Wi-Fi network

Device

Device

• Screen orientation

• GPS

• Camera

• Accelerometer input

• Keyboard slide

(13)

Weighted Mobile Configuration Matrix

OS

Device

Device

Weighting iOS 3 iOS4

Android 2.2 Android 2.3 Blackberry 5.0 Blackberry 6.0 OS 7 9 8 6 5 4 Weighting 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

HTC HTC

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

Motorola

Atrix 4G 6 N/A N/A 48 36 N/A N/A

Atrix 4G Blackberry

9700 6 N/A N/A N/A N/A 30 24

© Utopia Solutions

13

(14)

Testing on Emulator vs. Device

Type of Test

Emulator

Device

Unit

Yes

No

Functional / System

Maybe

Yes

Functional / System

Maybe

Yes

System Integration

No

Yes

Non Functional

No

Yes

Non-Functional

No

Yes

Usability Testing

No

Yes

Field Testing (e g location based

Field Testing (e.g. location based

functionality)

No

Yes

(15)

Mobile Test Tools

Mobile Cloud

Test Automation

Emulators

Primary 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 the and carriers from your

desktop

mobile platform independent of the physical device

Benefits Eliminates the need to procure and manage

Address the large testing burden associated with

Emulate various mobile environments procure and manage

devices

Increases 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 devices Test application f ti lit i (screen/video capture,

publishing results, etc.)

functionality in a desktop environment Vendors DeviceAnywhere P f t M bil Jamo Solutions Z Fi Mobile OS vendors, OEMs and carriers Perfecto Mobile Zap-Fix

eggPlant

OEMs and carriers Many 3rd parties

Notes Focus is on manual testing – most vendors

Automation approach and capabilities vary widely

Many test conditions cannot be effectively

© Utopia Solutions

15 testing most vendors

have some automation capability

capabilities vary widely cannot be effectively tested on an emulator

(16)
(17)

Test Automation Success Criteria

Reliable

Reliable

• Issue detection and recovery

• Accurate verification

Reliable

Reliable

Accurate verification

• Unattended execution

Maintainable

Maintainable

• Minimum sensitivity to application and

test case changes

• Test cases separate from automation

• Test cases separate from automation

code

Scalable

Scalable

• Test coverage expanded efficiently

• Automated test cases created by

non-technical resources

© Utopia Solutions

17

(18)

Test Automation Architecture

Test Cases &

Test Data

Test Cases &

Test Data

Test Data

Test Data

Test Driver

Test Driver

Automation Framework

Automation Framework

Device Interface

Device Interface

Mobile Devices

Mobile Devices

(19)

Mobile Automation Technology

Two Main Approaches

Two Main Approaches

Visual Interaction

Visual Interaction

• Uses OCR and image recognition

Object Interaction

Object 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 app

taps, 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

y

built into their developer kits

Most tools integrate with commercial / open source

Most tools integrate with commercial / open source

© Utopia Solutions

19

Most tools integrate with commercial / open source

automated tools and IDE’s for script development

Most tools integrate with commercial / open source

(20)

Automation Friendly Apps

General Characteristics

General Characteristics

• Business apps (vs. games / multi-

(

g

User ID

media)

• Consistent functionality

• Consistent navigation

Consistent navigation

Password

• Consistent GUI layout

Warehouse

Visual Interaction Requirements

Visual Interaction Requirements

• UI objects identifiable by text

Consistent object / object ID

Chicago

Denver

Las Vegas

Louisville

• Consistent object / object ID

relationship

• Lists searchable via keystroke

entry

Login

Louisville

(21)

Summary

Mobile Testing Challenges

Platform and device diversity

Increased testing burden

New environment

Mobile Testing Practices

g

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 Solutions

(22)

Questions…

…. and Answers!

Direct future questions to:

Lee Barnes

References

Related documents

(Bernard J. [Ben] Scaglione, CPP, CHPA, CHSP, is Principal of The Secure Hospital, a resource management and blogging site, and author of Security Management for Health-

Following the discovery in February of Colombia’s first fully submersible “narco-submarine,” built by drug cartels to ship cocaine through the Pacific to the United

Gable has demonstrated how Palladio's architecture has endured because of dramatic exterior motifs, economical materials, and internal harmony. That these qualities apply equally to

So, the contribution of the research will develop an Android application which can provide detection and protection against ARP spoofing by installing the application on

Local or independent Generators Consumers Intermediary Archetypes Local White Label Local Aggregator Local Pool and Sleeve Peer to Peer (a&b) Network operators Not for

To make learning much effective and systematic,teachers should be clear about the long term goals and specific aims of teaching English (James, 2001). The aims of teaching

In England the developments I propose to deal with are the Administration of Justice Act of 1970, the Supreme Court Act of 1981, and the Mareva Injunction; in the United States,

For tendons modeled as resisting elements, four post-tensioning analysis types are shown in Figure 5.11: (1) beam type, (2) tendon type, (3) plane stress type, and (4) solid