Mobile automation using appium.pptx
-
Upload
sai-krishna -
Category
Software
-
view
254 -
download
4
Transcript of Mobile automation using appium.pptx
![Page 1: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/1.jpg)
AUTOMATION - THE MOBILE WAY
Mobile automation using Appium : An open source, cross platform tool for automating native, mobile web and hybrid
applications
![Page 2: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/2.jpg)
Mobile Testing
• Types?
• Native vs Hybrid vs Web?
• Challenges?
2
![Page 3: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/3.jpg)
Appium Philosophy
• You’re testing the same app you are shipping
• Write tests in any language and framework you want
• Wrapped vendor-provided frameworks in WebDriver API (JSON Wire Protocol)
• Open source
3
![Page 4: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/4.jpg)
4
Calabash Appium Robotium UiAutomator Frank MonkeyTalk
Android Yes Yes Yes Yes No Yes
iOS Yes Yes No No Yes Yes
Scripting Language Ruby Any Java Java Ruby
MonkeyTalk Command Language
Supported API Levels All All All >=16 No Android
Support Javascript API
Open Source Yes Yes No (Recorder) Yes Yes Yes
Support for Apps
Native, Hybrid
Native, Hybrid, Web Native, Hybrid Native Native Native, Hybrid
![Page 5: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/5.jpg)
Stats
5
Commits 5993
Releases 110
Contributors 155
Downloads ~34k/month
Total Issue 4625
![Page 6: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/6.jpg)
Requirements
• iOS:• Mac OSX 10.7+• XCode 4.5+ w/ Command Line Tools
• Android:• Mac OSX 10.7+ OR Windows 7+ OR Linux• Android SDK >= 16• Android SDK < 16 (Selendroid mode)
• Run Appium via:• Appium app• node.js
6
![Page 7: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/7.jpg)
Instruments Controller
(iOS)
Instruments Command Server
Unix Socket Server
Instruments Command Client
Unix Socket Client
Instruments
bootstrap.js
WebDriver Controller
iOS - UI Automation
WebDriver Script
![Page 8: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/8.jpg)
UiAutomator Controller (Android)
UiAutomator Command
Client
TCP Client
WebDriver Controller
Android - UI Automator (4.2+), Selendroid (2.3+)
WebDriver Script
TCP Server
UiAutomator Command
Server
bootstrap.jar
![Page 9: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/9.jpg)
Appium Inspector
9
![Page 10: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/10.jpg)
From Appium 1.x
vanilla webdriver clients Appium client libraries
device, version deviceName, platformVersion
browsers (chrome/safari) browserName
name accessibility_id
tag name classname
switch_to.window switch_to.context(“WEBVIEW”)
driver.execute(“mobile:lock”, [5]) driver.lock(5)
gesture methods TouchAction / MultiAction API
![Page 11: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/11.jpg)
Hands On
![Page 12: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/12.jpg)
References
• vodQA Github - https://github.com/saikrishna321/VodQa_MobileAutomationWorkShop
• iOS Automation [Mac] - http://smritituteja.in/ios-mobile-automation-using-appium/
• Appium Architecture - http://appium.io/slate/en/master/?java#introduction-to-appium
• Appium [Sauce Labs] - https://saucelabs.com/appium• Android Automation [Windows] -
http://smritituteja.in/android-automation-appium-windows/
![Page 13: Mobile automation using appium.pptx](https://reader034.fdocuments.net/reader034/viewer/2022042611/58705cff1a28aba2118b6d9f/html5/thumbnails/13.jpg)
THANK YOUQ & A
SAI KRISHNA : [email protected] SMRITI TUTEJA : [email protected]
KOKILA :[email protected] SHALINI SAINI:[email protected]
SHWETA:[email protected] HITESH : [email protected]