Top Banner
ATHENA AUTOMATION PLATFORM Automation Testing for Mobile byAthena Appium March 2017
21

Athena, Android UI Testing Platfrom

Apr 13, 2017

Download

Software

Buddy Arifin
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: Athena, Android UI Testing Platfrom

ATHENA AUTOMATION PLATFORM Automation Testing for Mobile byAthena Appium

March 2017

Page 2: Athena, Android UI Testing Platfrom

Contents

OLX IntroductionAthena

Athena - Appium

Demo3

1

2

Page 3: Athena, Android UI Testing Platfrom

Athena

Page 4: Athena, Android UI Testing Platfrom

Athena

❖automating the wiring of the dependencies and tools

❖implementing a plugin architecture to allow freedom and scalability

❖providing a wizard that takes care of the boring stuff

Page 5: Athena, Android UI Testing Platfrom

Athena architectureEngine

Plugin

• The Engine : based in bash• The Plugins : typically

Services, Applications, Jobs, etc. Using docker virtualisation to support the automation environments

Page 6: Athena, Android UI Testing Platfrom

Plugins

❖Plugin-appium❖Plugin-php❖bashUnit❖Plugin-avd❖Plugin-gradle❖Plugin-selenium❖Etc

More Plugin:https://athena-oss.github.io

Page 7: Athena, Android UI Testing Platfrom

Installation

❖Prerequisite:▪You have a bash shell▪You have Git installed▪You have Docker installed

Page 8: Athena, Android UI Testing Platfrom

Installation

❖On Mac$ brew tap athena-oss/tap$ brew install athena

❖Clone Repogit clone https://github.com/athena-oss/athena.git

Page 9: Athena, Android UI Testing Platfrom

Appium is an open source test automation framework which automates, native, hybrid, and mobile apps

Page 10: Athena, Android UI Testing Platfrom
Page 11: Athena, Android UI Testing Platfrom

Architecture❖ appium is an HTTP server

that creates and handles WebDriver sessions

❖ appium starts a “test cases” on the device that spawns a server and listens for proxied commands

❖ on Android, appium proxies commands to a UiAutomator test cases running on the devices

Page 12: Athena, Android UI Testing Platfrom
Page 13: Athena, Android UI Testing Platfrom

Elements (uiautomationviewer)

Page 14: Athena, Android UI Testing Platfrom

Intractions with App

Main Activity

PackageName

Page 15: Athena, Android UI Testing Platfrom

Intractions with Element

Classname

Page 16: Athena, Android UI Testing Platfrom

Prerequisites Appium

❖Intellij IDE❖Genymotion or AVD emulator

Buddy Arifin
Create and webserver to download all resources
Page 17: Athena, Android UI Testing Platfrom

Athena CommandInstall Appium Plugin & Start :

notes :❖ Kill adb server using : adb kill-server. Before Starting appium server❖ start Genymotion or avd emulator

athena plugins install appium https://github.com/athena-oss/plugin-appium.git

athena appium start --port=4444 --apks-dir=<apk_directory_file> --adb-port=5037

Page 18: Athena, Android UI Testing Platfrom

Athena CommandInstall Gradle Plugin & Running Test :

athena plugins install gradle https://github.com/athena-oss/plugin-gradle.git

athena gradle exec <project_dir> clean test —java-version=oracle-8jdk

Page 19: Athena, Android UI Testing Platfrom

DEMO

Page 21: Athena, Android UI Testing Platfrom

L/O/G/O

Thank You!www.themegallery.com