[Binh nguyen] Mobile Application Automation Testing iOS and Android

24
STC 2014 Mobile App Automation Testing On iOS and Android BINH NGUYEN Technical Architecture, TesterVN

description

Mobile application testing on iOS or Android can be quite a challenge for a Quality Assurance team. One reason is that mobile applications are often required to function on a variety of devices featuring different hardware capabilities, configurations, and specifications. Many different types of testing including automation are required to cover different areas of the application. Many people believe that automated testing may replace manual testing almost entirely. In reality, however, automated testing is still not able to cover all the types of testing that manual testing does. Automation Mobile Testing: framework, tools, some suggested solutions.

Transcript of [Binh nguyen] Mobile Application Automation Testing iOS and Android

Page 1: [Binh nguyen] Mobile Application Automation Testing iOS and Android

STC 2014

Mobile App Automation Testing On iOS and Android

BINH NGUYEN

Technical Architecture, TesterVN

Page 2: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Agenda

• Overview of Mobile Automation

• Mobile Application Automation Challenges

– Challenges In Mobile Automation Testing

– Open Source Mobile Automation Tools

• Case Study – Amazon

– Mobile Automation Framework Architecture

– Project Structure

• Q&A

2

Page 3: [Binh nguyen] Mobile Application Automation Testing iOS and Android

3

Overview of Mobile Automation

Page 4: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Introduction

4

Page 5: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Mobile Categories

5

Page 6: [Binh nguyen] Mobile Application Automation Testing iOS and Android

6

Mobile Application Automation Challenges

Page 7: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Five Challenges

7

Application Technical

Network Business

Test

Page 8: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Test Challenges

8

Test combinations - platforms, devices and versions.

End to end automation - API to device UI, external databases and systems.

Testing with physical devices - device, network operator and network.

Page 9: [Binh nguyen] Mobile Application Automation Testing iOS and Android

9

Mobile Automation Tools

Page 10: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Open Source Tools

10

IOS ANDROID

Calabash-ios Calabash-ios

Frank MonkeyTalk

UIAutomation Robotium

IOS-Driver UIAutomator

KeepItFunctional Selendroid

Appium

Page 11: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Why Appium?

11

Appium

Support any framework

Support any languages

Real-World approach

Cross Browsers/Devices

Page 12: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Pros and Cons Appium

12

Pros:

Supporting cross-platform testing

Automating Native, Web, Hybrid application

Writing in any frameworks or languages

Developing and supporting by Sauce Labs

Cons:

iOS run one instance per MacOS

Android supports SDK platform API16 or higher

Page 13: [Binh nguyen] Mobile Application Automation Testing iOS and Android

13

Case Study: Amazon Department Online Store

Page 14: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Amazon Approach

14

Tools

(Appium, Webdriver API)

Page Object

Model/Pattern

(POM)

Framework & Project

Structure

Page 15: [Binh nguyen] Mobile Application Automation Testing iOS and Android

How Appium iOS Works?

15

Page 16: [Binh nguyen] Mobile Application Automation Testing iOS and Android

How Appium Android Works?

16

Page 17: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Why POM?

17

Page 18: [Binh nguyen] Mobile Application Automation Testing iOS and Android

18

Mobile Automation Framework Architecture

Page 19: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Framework Architecture

19

Page 20: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Project Structure

20

Am

azo

n P

roje

ct

Configuration File

Libraries/Utilities

Test Data

Object Repository

Test Scripts

Test Reports

Test Logs

Page 21: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Summary

21

Test Challenges in Mobile Automation

Applying appium and Page Object Model (POM) to automated Amazon website on mobile

Mobile Automation Framework Architecture & Project Structure

Page 22: [Binh nguyen] Mobile Application Automation Testing iOS and Android

Q&A

22

Page 24: [Binh nguyen] Mobile Application Automation Testing iOS and Android

© 2014 HCMC Software Testing Club

THANK YOU