athena, android ui testing platfrom
TRANSCRIPT
![Page 1: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/1.jpg)
ATHENA AUTOMATION PLATFORM Automation Testing for Mobile byAthena Appium
March 2017
![Page 2: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/2.jpg)
Contents
OLX IntroductionAthena
Athena - Appium
Demo3
1
2
![Page 3: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/3.jpg)
Athena
![Page 4: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/5.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/7.jpg)
Installation
❖Prerequisite:▪You have a bash shell▪You have Git installed▪You have Docker installed
![Page 8: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/9.jpg)
Appium is an open source test automation framework which automates, native, hybrid, and mobile apps
![Page 10: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/10.jpg)
![Page 11: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/12.jpg)
![Page 13: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/13.jpg)
Elements (uiautomationviewer)
![Page 14: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/14.jpg)
Intractions with App
Main Activity
PackageName
![Page 15: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/15.jpg)
Intractions with Element
Classname
![Page 16: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/16.jpg)
Prerequisites Appium
❖Intellij IDE❖Genymotion or AVD emulator
![Page 17: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/19.jpg)
DEMO
![Page 20: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/20.jpg)
Resources
https://io2015codelabs.appspot.com/codelabs/android-studio-testing#1
https://codelabs.developers.google.com/codelabs/android-testing/index.html?index=..%2F..%2Findex#0
![Page 21: Athena, Android UI Testing Platfrom](https://reader035.vdocuments.site/reader035/viewer/2022081513/58ef841a1a28ab18418b4639/html5/thumbnails/21.jpg)
L/O/G/O
Thank You!www.themegallery.com