Upload
buddy-arifin
View
28
Download
1
Embed Size (px)
Citation preview
ATHENA AUTOMATION PLATFORM Automation Testing for Mobile byAthena Appium
March 2017
Contents
OLX IntroductionAthena
Athena - Appium
Demo3
1
2
Athena
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
Athena architectureEngine
Plugin
• The Engine : based in bash• The Plugins : typically
Services, Applications, Jobs, etc. Using docker virtualisation to support the automation environments
Plugins
❖Plugin-appium❖Plugin-php❖bashUnit❖Plugin-avd❖Plugin-gradle❖Plugin-selenium❖Etc
More Plugin:https://athena-oss.github.io
Installation
❖Prerequisite:▪You have a bash shell▪You have Git installed▪You have Docker installed
Installation
❖On Mac$ brew tap athena-oss/tap$ brew install athena
❖Clone Repogit clone https://github.com/athena-oss/athena.git
Appium is an open source test automation framework which automates, native, hybrid, and mobile apps
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
Elements (uiautomationviewer)
Intractions with App
Main Activity
PackageName
Intractions with Element
Classname
Prerequisites Appium
❖Intellij IDE❖Genymotion or AVD emulator
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
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
DEMO
Resources
https://io2015codelabs.appspot.com/codelabs/android-studio-testing#1
https://codelabs.developers.google.com/codelabs/android-testing/index.html?index=..%2F..%2Findex#0
L/O/G/O
Thank You!www.themegallery.com