Top Banner
Appium Test automation for mobile Apps
20

Appium - test automation for mobile apps

Apr 15, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Appium - test automation for mobile apps

AppiumTest automation for mobile Apps

Page 2: Appium - test automation for mobile apps

Why do we need to automate?

• Growing mobile app market and huge amount of users

• Even minor bug might be critical point to delete app right away

• Reusability• Faster• Cost Reduction

Page 3: Appium - test automation for mobile apps

What to use?

Page 4: Appium - test automation for mobile apps

• Appium is an open-source test automation tool

• Allows testing for all types of Mobile Applications: Native Apps, Hybrid Apps and Mobile Web Apps

• Important - it is “Cross-Platform”

Page 5: Appium - test automation for mobile apps

• Appium is Cross Platform supporting iOS and Android + (WinPhone from 1.5 Appium version)

Page 6: Appium - test automation for mobile apps

• Appium supports variety of the Programming languages like java, ruby, php C#, javascript, etc.

Page 7: Appium - test automation for mobile apps

• Appium handles both Simulators and Real devices

Page 8: Appium - test automation for mobile apps

• Appium is based on Selenium Webdriver

Page 9: Appium - test automation for mobile apps

• Appium is very well supported and have active community

Page 10: Appium - test automation for mobile apps

Philosophy• No app modification• Use any programming language• Implement a standard API

(Selenium/WebDriver)• Huge community

Page 11: Appium - test automation for mobile apps

iOS requirements• Mac OS X 10.7 or later• Xcode (>=4.6.3) with command line tool• Java version 7 or later• Homebrew• Node and npm

Page 12: Appium - test automation for mobile apps

Android requirements

• Java version 7 or later• Android SDK API (version 17 or later)• Android Virtual Device or real device

Page 13: Appium - test automation for mobile apps

Architecture• HTTP server written in Node.js• Handles WebDriver sessions• Apple Instruments & UIAutomation for iOS• Google UiAutomator for Android (4.2.1 up)

Page 14: Appium - test automation for mobile apps

Easy Install• iOS

• Just download the .app; That’s all• Android

• Download .app or .exe• Export one environmental variable

Page 15: Appium - test automation for mobile apps

Appium.app• GUI for launching server

• Monitor Status• Set Preferences

• Inspector for probing your application• Create hooks for UI elements in your app• Try out actions• Recording• Playback action• Convert UIAutomator JS to Appium Code

Page 16: Appium - test automation for mobile apps

Demo iOS

Page 17: Appium - test automation for mobile apps

Continuous Integration

Page 18: Appium - test automation for mobile apps

Device Farms

Page 19: Appium - test automation for mobile apps

Limitations

• Doesn’t support image comparison• No Record/Play functionality on Windows• Hard to locate elements comparing to Web

Page 20: Appium - test automation for mobile apps

Benefits• Easy to setup• Almost no additional knowledge required if already worked

with Selenium• Can be integrated to almost any device farm platforms• Can be integrated into CI process• Variety of programming languages supported• Cross-platform• Real device + simulator/emulator• Huge community + easy to find solutions in google