logo资料库

Appium Essentials.pdf

第1页 / 共238页
第2页 / 共238页
第3页 / 共238页
第4页 / 共238页
第5页 / 共238页
第6页 / 共238页
第7页 / 共238页
第8页 / 共238页
资料共238页,剩余部分请下载后查看
Appium Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Appium – Important Conceptual Background
Appium architecture
Appium on iOS
Appium on Android
The Selenium JSON wire protocol
Appium session
Desired capabilities
Android capabilities
iOS capabilities
The Appium server and its client libraries
Summary
2. Getting Started with Appium
Appium – pros and cons
System requirements for Android/iOS
Android requirements on Windows and Mac
iOS requirements
Installing different software
Appium installation for Android
Installing JDK on Windows
Installing the Android SDK
Setting the system variables for Mac
Appium for iOS
Installing Xcode
Installing Homebrew
Node and npm
Appium for different OSes
Appium for Windows
Appium for Mac
Downloading the necessary JAR files
Creating emulators and simulators
An iOS simulator
An Android emulator
Setting up an Eclipse Java project
Summary
3. The Appium GUI
The Appium server
The Appium GUI for Windows
Android Settings
Application
Launch Device
Capabilities
Advanced
General Settings
Server
Logging
Developer settings
About
Inspector
The Launch/Stop button
The Clear button
The Appium GUI for Mac
Android Settings
iOS Settings
Application
Device Settings
Advanced
Robot Settings
Save/Open configuration
Appium doctor
Inspector
The Recording panel
Summary
4. Finding Elements with Different Locators
Finding elements for Android web-based apps using the Chrome ADB plugin
Finding elements for iOS web-based apps using Safari's Develop option
Finding elements by ID
Finding elements by name
Finding elements by linkText
Finding elements by Xpath
Finding elements by cssSelector
Finding elements for native and hybrid apps
Finding elements with UIAutomatorviewer
Finding elements by ID
Finding elements by name
Finding elements by className
Finding elements by AccessibilityId
Finding elements by AndroidUIAutomator
Finding elements with Appium Inspector
Finding elements by Xpath
Finding elements by name
Finding elements by IosUIAutomation
Summary
5. Working with Appium
Important initial points
Necessary desired capabilities for Android and initiating the Android driver
Desired capabilities for native and hybrid apps
Desired capabilities for web apps
Necessary desired capabilities for iOS and initiating the iOS driver
Desired capabilities for native and hybrid apps
Desired capabilities for web apps
Automating native apps
Native Android apps
Native iOS apps
Working with web-apps
Web apps on Android
Web apps on iOS
Hybrid apps' automation
Android hybrid apps
iOS hybrid apps
Summary
6. Driving Appium on Real Devices
Important initial points
Desired capabilities for Android and initiating the Android driver
Desired capabilities for native and hybrid apps
Desired capabilities for web apps
Installing provisional profile, SafariLauncher, and ios-webkit-debug-proxy
Provisional profile
SafariLauncher app and ios-webkit-debug-proxy
Desired capabilities for iOS and initiating theiOS driver
Desired capabilities for native and hybrid Apps
Desired capabilities for web apps
Automating native apps
Android native apps
iOS native apps
Working with web apps
Web apps on Android
Web apps on iOS
Automating hybrid apps
Android hybrid apps
iOS hybrid apps
Summary
7. Advanced User Interactions
Exploring advanced user interactions
Long press
Scroll and swipe
Drag and drop
Pinch and zoom
Alerts
Spinners
The switch button
The slide SeekBar
Capturing screenshots
Capturing screenshots on test failure
Summary
Index
Table of Contents Appium Essentials Credits About the Author About the Reviewers www.PacktPub.com Support files, eBooks, discount offers, and more Why subscribe? Free access for Packt account holders Preface What this book covers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. Appium – Important Conceptual Background Appium architecture Appium on iOS Appium on Android The Selenium JSON wire protocol Appium session Desired capabilities Android capabilities iOS capabilities The Appium server and its client libraries
Summary 2. Getting Started with Appium Appium – pros and cons System requirements for Android/iOS Android requirements on Windows and Mac iOS requirements Installing different software Appium installation for Android Installing JDK on Windows Installing the Android SDK Setting the system variables for Mac Appium for iOS Installing Xcode Installing Homebrew Node and npm Appium for different OSes Appium for Windows Appium for Mac Downloading the necessary JAR files Creating emulators and simulators An iOS simulator An Android emulator Setting up an Eclipse Java project Summary 3. The Appium GUI The Appium server The Appium GUI for Windows Android Settings Application Launch Device Capabilities
Advanced General Settings Server Logging Developer settings About Inspector The Launch/Stop button The Clear button The Appium GUI for Mac Android Settings iOS Settings Application Device Settings Advanced Robot Settings Save/Open configuration Appium doctor Inspector The Recording panel Summary 4. Finding Elements with Different Locators Finding elements for Android web-based apps using the Chrome ADB plugin Finding elements for iOS web-based apps using Safari’s Develop option Finding elements by ID Finding elements by name Finding elements by linkText Finding elements by Xpath Finding elements by cssSelector Finding elements for native and hybrid apps Finding elements with UIAutomatorviewer
Finding elements by ID Finding elements by name Finding elements by className Finding elements by AccessibilityId Finding elements by AndroidUIAutomator Finding elements with Appium Inspector Finding elements by Xpath Finding elements by name Finding elements by IosUIAutomation Summary 5. Working with Appium Important initial points Necessary desired capabilities for Android and initiating the Android driver Desired capabilities for native and hybrid apps Desired capabilities for web apps Necessary desired capabilities for iOS and initiating the iOS driver Desired capabilities for native and hybrid apps Desired capabilities for web apps Automating native apps Native Android apps Native iOS apps Working with web-apps Web apps on Android Web apps on iOS Hybrid apps’ automation Android hybrid apps iOS hybrid apps Summary 6. Driving Appium on Real Devices Important initial points Desired capabilities for Android and initiating the Android driver
Desired capabilities for native and hybrid apps Desired capabilities for web apps Installing provisional profile, SafariLauncher, and ios-webkit-debug-proxy Provisional profile SafariLauncher app and ios-webkit-debug-proxy Desired capabilities for iOS and initiating theiOS driver Desired capabilities for native and hybrid Apps Desired capabilities for web apps Automating native apps Android native apps iOS native apps Working with web apps Web apps on Android Web apps on iOS Automating hybrid apps Android hybrid apps iOS hybrid apps Summary 7. Advanced User Interactions Exploring advanced user interactions Long press Scroll and swipe Drag and drop Pinch and zoom Alerts Spinners The switch button The slide SeekBar Capturing screenshots Capturing screenshots on test failure Summary Index
Appium Essentials Appium Essentials Copyright © 2015 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: April 2015 Production reference: 1060415 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78439-248-2 www.packtpub.com
Credits Author Manoj Hans Reviewers Shankar Garg Petro Podrezo Yalçın Yenigün Commissioning Editor Amit Ghodake Acquisition Editor Reshma Raman Content Development Editor Ritika Singh Technical Editor Manan Patel Copy Editor Dipti Kapadia Project Coordinator Aboli Ambardekar Judie Jose Proofreaders Simran Bhogal Lesley Harrison Indexer Priya Sane Production Coordinator Komal Ramchandani Cover Work Komal Ramchandani
分享到:
收藏