AirJD 焦点
AirJD

没有录音文件
00:00/00:00
加收藏

Appium移动端自动测试框架入门 by Jonathan Lipps@Ecosystem

发布者 tester
发布于 1439772781431  浏览 6656 关键词 自动化测试, 框架, English 
分享到

第1页

mobile automation made awesome

Chinese Mobile Testing Summit • Beijing, CN
 11 July 2015

Jonathan Lipps • Director of Ecosystem & Integrations • Sauce Labs




@AppiumDevs • @jlipps • @saucelabs



第2页

Appium: Open Source Mobile Automation

Director of Engineering,
 Ecosystems Project Lead &
 Architect

Jonathan Lipps • Director of Ecosystem & Integrations • Sauce Labs




@AppiumDevs • @jlipps • @saucelabs



第3页

appium introduction



第4页

Mobile is here to stay. So how do we scale mobile quality?



第5页

Automated testing is the solution for a fast dev cycle that maintains high quality



第6页

[ ]The Dev Cycle of Optimal Happiness



第7页

appium is the cross-platform solution for native and hybrid mobile automation



第8页

appium raison d’être



第9页

The appium philosophy

R1. Test the same app you submit to the marketplace

R2. Write your tests in any language, using any framework

R3. Use a standard automation specification and API

R4. Build a large and thriving open-source community effort



第10页

Platform Support

Real devices
 Simulators
 Native apps
 Hybrid apps
 Mobile web



第11页

Over 65 releases Over 5,600 commits 3,000 issues closed 1,900 pull requests merged 2,400 stars 1,600 forks Over 160 contributors

OSS Rookie of the Year, Bossie award



第13页

谢谢



第14页

Demos



第21页

appium architecture



第22页

Automation Orchestra

Apple Instruments & UIAutomation for iOS




第23页

Automation Orchestra

Apple Instruments & UIAutomation for iOS
 Google UiAutomator for Android (4.2.1 up)




第24页

Automation Orchestra

Apple Instruments & UIAutomation for iOS
 Google UiAutomator for Android (4.2.1 up)
 Google Instrumentation for older Android & hybrid


(via Selendroid)



第25页

Automation Orchestra



Apple Instruments & UIAutomation for iOS




Google UiAutomator for Android (4.2.1 up)




Google Instrumentation for older Android & hybrid




(via Selendroid)




Coming Soon



Google



DroidDriver



for



all



Android



versions



第26页

Automation Orchestra



Apple Instruments & UIAutomation for iOS




Google UiAutomator for Android (4.2.1 up)




Google Instrumentation for older Android & hybrid




(via Selendroid)




Coming Soon



Google



DroidDriver



for



all



Android



versions




Coming Soon



Apple



XCUITest



for



iOS



9+



第27页

Selenium WebDriver is the globally-recognized standard for browser automation



第28页

Selenium WebDriver is a HTTP API

POST /session POST /session/element GET /session/element/:id/:attr



第29页

Selenium WebDriver is a W3C working draft



第30页

appium is a Node.js HTTP server that creates and handles WebDriver sessions



第31页

appium extends the WebDriver protocol with mobile-specific behaviors



第32页

appium is working with the Selenium project so we can standardize these extensions



第33页

appium clients give access to these extensions in many languages


Java : JS : Python : Ruby : PHP : C# : ObjC : Perl



第34页

appium can run on your computer, in your network, or on a cloud service like Sauce Labs



第36页

appium setup



第37页

Requirements Basically the same as dev toolkits for iOS, Android

Xcode + iOS SDK Android SDK + Java



第38页

Install: Option One Clone from GitHub

REPO=”appium/appium.git” git clone https://github.com/$REPO cd appium && ./reset.sh node .



第39页

Install: Option Two Install from NPM

npm install -g appium appium



第40页

Install: Option Three Download the GUI app

# github.com/appium/appium/releases open /Applications/Appium.app



第44页

No Install Use Sauce Labs

https://saucelabs.com/mobile



第45页

appium test model



第46页

Desired Capabilities



第47页

Desired Capabilities



第48页

Sessions



第49页

Finding Elements



第50页

Interacting with Elements



第51页

Interacting with Webviews



第52页

Interacting with the Device



第53页

Gestures



第54页

Multiple devices (Android-only)



第55页

appium scale



第56页

appium is great for local test development, but has limitations when scaling up for use in CI



第57页

Sauce Labs is great for scale when you need to run a lot of appium tests



第60页

Running tests on Sauce



第62页

Sauce Labs simulator and emulator VMs are destroyed after each session



第63页

Sauce Connect allows your tests to run securely with all data transmitted through an encrypted private tunnel



第64页

saucelabs.com

FREE FOR OPEN SOURCE



第65页

CMTS2015

PROMO CODE FOR FREE TESTING



第66页

Android Real Devices



第67页

Android Real Devices

Publicly Available …soon



第68页

appium future



第69页

Appium 1.5



第72页

http://github.com/appium/appium/ milestones



第74页

The future is in your hands…

- Write code, be a committer - Make our docs better - Share your experiences - Help with community support - Let us know what to focus on - Keep up the translations!



第75页

Questions?

https://githhtutpb:./c/oampp/aiupmp.iuiom
 /appium


@AppiumDevs • @jlipps • @saucelabs



第76页

谢谢

Thanks!

https://githhtutpb:./c/oampp/aiupmp.iuiom
 /appium


@AppiumDevs • @jlipps • @saucelabs



支持文件格式:*.pdf
上传最后阶段需要进行在线转换,可能需要1~2分钟,请耐心等待。