Automated Mobile Testing using Appium.pdf

34

Transcript of Automated Mobile Testing using Appium.pdf

Page 1: Automated Mobile Testing using Appium.pdf
Page 2: Automated Mobile Testing using Appium.pdf

Automated

Mobile Testing

using

By Lokesh Soni

Page 3: Automated Mobile Testing using Appium.pdf

Lokesh Soni • Software Test Engineer @ Blisstering Solutions

• Web and Mobile Automation Tester

• Also, Manual Test Engineer

Page 4: Automated Mobile Testing using Appium.pdf

Need of Mobile

Application Automation

Testing

Page 5: Automated Mobile Testing using Appium.pdf

Smartphone Apps have experienced explosive growth

since 2007

Mobile App are more reliable for Organizations

Mobile Apps bringing half of their Web Traffic

In some cases, mobile apps are the only way

customers interact with their products.

Page 6: Automated Mobile Testing using Appium.pdf

No Wonder, that Mobile Apps Development Process

has become quick and efficient, which also have high

priority for organizations.

Fortunately, Mobile development tools are evolving to

meet these needs, with modern dev teams.

Development of Mobile Apps has become faster

But, what about the Testing approaches??

Page 7: Automated Mobile Testing using Appium.pdf

Testing Mobile Applications is: More complex

Time consuming

Platform Variations

Quality Concerns

So, alike Manual Mobile Testing process,

we should also adopt

Mobile Automation Testing

Page 8: Automated Mobile Testing using Appium.pdf

Why Mobile Automation

Testing?

Page 9: Automated Mobile Testing using Appium.pdf

Various factors to adopt Mobile Automation:

Efficient

Faster

Reusability

Reliable

Cost Reduction

Page 10: Automated Mobile Testing using Appium.pdf

Which Mobile

Automation Tool to be

Used?

Page 11: Automated Mobile Testing using Appium.pdf
Page 12: Automated Mobile Testing using Appium.pdf

What is Appium?

&

Why Appium?

Page 13: Automated Mobile Testing using Appium.pdf

• Appium is an open-source test automation tool

• Allows testing for all types of Mobile Applications:

Native Apps, Hybrid Apps and Mobile Web Apps

• I porta tly, it is Cross-Platform

Page 14: Automated Mobile Testing using Appium.pdf
Page 15: Automated Mobile Testing using Appium.pdf

Appium is Cross Platform

Supporting iOS and android

Page 16: Automated Mobile Testing using Appium.pdf

Appium supports most of the

Programming languages like java, ruby,

php, C#, etc.

Page 17: Automated Mobile Testing using Appium.pdf

Appium handles both, Simulators

and Real devices

Page 18: Automated Mobile Testing using Appium.pdf

Appium supports Automation for all Apps

like Hybrid, Native and Web apps

Page 19: Automated Mobile Testing using Appium.pdf

Appium is compatible with

Selenium Webdriver

Page 20: Automated Mobile Testing using Appium.pdf

Appium is very well supported and

Active Google group,

Building a large and thriving open source

community effort

Appium is free and Open source

Page 21: Automated Mobile Testing using Appium.pdf

Getting Started with

Appium

Page 22: Automated Mobile Testing using Appium.pdf

Prerequisite to use Appium: • JDK (Java Development Kit) - V1.6(+)

• Eclipse - Indigo(+)

• Android SDK – With API level 17(+)

• Selenium WebDriver JAR – 2.43.0(+)

• Appium for Mac/Windows – 1.3.7.2(+)

• APK App info from Play Store

Page 23: Automated Mobile Testing using Appium.pdf

Appium Screenshot

Page 24: Automated Mobile Testing using Appium.pdf

UI Automator

Page 25: Automated Mobile Testing using Appium.pdf

Test Script Screenshot (On Eclipse)

Page 26: Automated Mobile Testing using Appium.pdf
Page 27: Automated Mobile Testing using Appium.pdf

Working

Architecture

How Appium works?

Page 28: Automated Mobile Testing using Appium.pdf

Working Architecture of Appium on Real

Devices/Simulator

Page 29: Automated Mobile Testing using Appium.pdf

1. From Web-driver, Automation Commands are sent in form

of JSON via HTTP request to Appium Server.

2. Appium Server invokes Vendor specific mechanism to

execute those commands on the Mobile-Device.

3. Client sends back the message to the Appium Server.

4. Appium Server logs the result in the console of the Web

Driver.

Working flow:

Page 30: Automated Mobile Testing using Appium.pdf

Demo of Appium

Automation Script

Page 31: Automated Mobile Testing using Appium.pdf

Limitations of Appium: • Doesn't support image comparison

• Does ’t support testi g of A droid Versio lower tha 4.2

• Limited support for testing Hybrid App

• Long time to configure Appium for both android and iOS

• No Support to run Appium Inspector on Microsoft

Windows

Page 32: Automated Mobile Testing using Appium.pdf

Any Question?

Page 33: Automated Mobile Testing using Appium.pdf

Thank You & Namastey

For More Queries:

Contact:

Skype: lokesh.soni1992

Twitter: lokeshsoni20

Page 34: Automated Mobile Testing using Appium.pdf

asia2016.drupal.org/sched

ule asia2016.drupal.org/schedule