test automation for mobile apps

20
Test Automation Mechanism for Mobile Apps Kafeel Ahmad QA Analyst

Upload: babudevanandam

Post on 15-Jul-2015

48 views

Category:

Software


3 download

TRANSCRIPT

Test Automation Mechanism for Mobile Apps

Kafeel Ahmad

QA Analyst

© 2013 Fiserv, Inc. or its affiliates. 2

Table of Contents

• Introduction

• Types of Mobile Apps

• Challenges in Mobile Testing

• Solution to Mobile Testing Challenges

• Mobile Automation Mechanism

• Conclusion

© 2013 Fiserv, Inc. or its affiliates. 3

Introduction

Mobile Automation – Transforming the technology landscape

© 2013 Fiserv, Inc. or its affiliates. 4

Types of Mobile Apps

• Single Platform Affinity

• Written with Platform SDK's

• Must be written for each

platform

• Access to all native API's

• Faster graphics

performance

• AppStore distribution

Native Apps

• Cross-platform affinity

• Written with web

technologies (HTML5, CSS

and JavaScript)

• Runs locally on the device,

supports offline

• Access to native API's

• AppStore distribution

Hybrid Apps

• Cross-platform affinity

• Written with web

technologies (HTML5, CSS

and JavaScript) or server

side (PHP, ASP.Net, etc.)

• Runs on web server,

viewable on multiple

devices

• Centralized updates

Mobile Web Apps

© 2013 Fiserv, Inc. or its affiliates. 5

?

Challenges in Mobile Testing

• Environment

• Application

• Users

• Devices

• Network

• Automation

Automation

© 2013 Fiserv, Inc. or its affiliates. 6

Solution to Mobile Testing Challenges

© 2013 Fiserv, Inc. or its affiliates. 7

Mobile Automation

Mechanism

© 2013 Fiserv, Inc. or its affiliates. 8

Mobile Apps Testing Devices

Emulators Simulators Real Devices / Cloud

© 2013 Fiserv, Inc. or its affiliates. 9

Understanding App Development –

User Interface XML

© 2013 Fiserv, Inc. or its affiliates. 10

Mobile Automation Mechanism

Test Cases

Test Automation

Tool/Framework

Mobile Test Devices

Test Driver

Device Interface

Test Steps

and Data

Expected

Results

© 2013 Fiserv, Inc. or its affiliates. 12

Building Object Repository

Object Spy

Object Properties

© 2013 Fiserv, Inc. or its affiliates. 13

Types of Object Repository

Native Object Web Object Image Object

© 2013 Fiserv, Inc. or its affiliates. 14

Mobile Automation With Open Source

• Native, Mobile Web and

Hybrid (iOS and Android)

Apps support

• Emulators and Simulators

are used for automation

development and

execution

• Easy for a newbie to learn

without any investment in

devices or tools

• Provides framework to

work with APIs and

prepare one’s own scripts

© 2013 Fiserv, Inc. or its affiliates. 15

Mobile Automation on Real Devices

• Real device is plugged in (local USB or WiFi)

• Scripts are recorded in real devices (no jailbreak required)

• Objects identified by Native / Web properties / Images

• Same test can be executed on different devices (e.g. android test

runs on iOS)

• Supported by tools like SeeTest, EggPlant etc.

© 2013 Fiserv, Inc. or its affiliates. 16

Mobile Automation on Cloud

• Connect anywhere

• Device combination

• Web based interface

• Enhanced

collaboration to share

scripts

• Quick and efficient

testing, but it comes

with a cost

• Supported by tools like

DeviceAnywhere and

PerfectoMobile

© 2013 Fiserv, Inc. or its affiliates. 17

Mobile Internet Users Will Globally Overcome

Desktop Users by 2014

0

200

400

600

800

1,000

1,200

1,400

1,600

1,800

2,000

2007 2008 2009 2010 2011 2012 2013 2014 2015

Desktop Mobile

Number of Global Users (Millions)

© 2013 Fiserv, Inc. or its affiliates. 18

Conclusion

Source: http://bigthink.com/

© 2013 Fiserv, Inc. or its affiliates. 20

Questions