Mastering Mobile Test Automation
eBook - ePub

Mastering Mobile Test Automation

Feroz Pearl Louis, Gaurav Gupta

Share book
  1. 274 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering Mobile Test Automation

Feroz Pearl Louis, Gaurav Gupta

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Mastering Mobile Test Automation an online PDF/ePUB?
Yes, you can access Mastering Mobile Test Automation by Feroz Pearl Louis, Gaurav Gupta in PDF and/or ePUB format, as well as other popular books in Informatica & Project Management. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781782175421

Mastering Mobile Test Automation


Table of Contents

Mastering Mobile Test Automation
Credits
About the Authors
Acknowledgements
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. Ensuring Five-star Rating in the MarketPlace
Introduction to mobile test automation
Mobile application packages
Native applications
Mobile web applications
Hybrid applications
Factors to be considered during mobile testing
Mobile automation testing approaches
Automation using real devices
Steps to set up automation
Limitations of this automation
Emulators-based automation
Steps to set up automation
Advantages
Limitations
User agent-simulation-based automation
Steps to set up the automation
Advantages
Limitations
Cloud-based automation
Steps to set up the automation
Advantages
Limitations
Types of mobile application tests
Selection of the best mobile testing approach
Troubleshooting and best practices
Summary
2. Designing Mobile Automation Frameworks
Selecting an automation tool
Types of mobile automation frameworks
The functional decomposition or test script modularity framework
Implementation required for mobile testing
The data-driven framework
Implementation required for mobile testing
The keyword-driven framework
Implementation required for mobile testing
The hybrid framework
Implementation required for mobile testing
Support libraries
Optimizing the combination of approach and framework
A robust reporting mechanism
The automation feasibility analysis
Test library management
Version control
Change control
Summary
3. User Agent – automating Mobile Applications with Browsers
Introduction
A user agent string
User agent simulation for mobile
User agent plugin programs
Setting up a mobile test automation lab for user agents
Setting up the user agent add-on for Mozilla Firefox
Setting up a user agent add-on for Google Chrome
Advantages of this approach
Limitations of this approach
The Hybrid framework implementation for the user agent
The UFT code snippet
The Selenium code snippet
Troubleshooting and best practices
Summary
4. Emulators and Simulators – the Automation of Emulated Devices
Introduction to mobile emulators
Setting up a mobile emulators for automation
The Android emulator setup
Automating the Android emulator with Selenium WebDriver
Code snippet
The iOS simulator setup
Code snippet
Implementing a mobile test automation framework for emulators
The Appium architecture
The Appium setup
Android on the Windows OS
Appium on the Mac OS
Scripting and execution with Appium
Scripting and object property extraction
Execution
Code snippet
Capabilities of the Android emulator for versions lower than 4.2 and hybrid applications
Advantages of mobile emulators
Limitations of mobile emulators
Troubleshooting and best practices
Summary
5. Automating Physical Devices
Getting started
Automation technologies with real devices
Automation with the optical recognition technology
Automation with AUT code instrumentation
Automating with native device methods
Object Identification with leading tools
Automation on real devices with various tools
Automation with Appium on real devices
Code snippet for Appium with real devices
Capabilities for Android devices with versions below 4.2
Automation with SeeTest on real devices
Configuring a SeeTest license
SeeTest tool configuration
Configuring a real mobile device for automation
Android devices
iOS-based devices
Windows-based devices
Blackberry devices
Instrumentation of a mobile application
Android platform
iOS platform
Windows platform
Blackberry platform
Mobile web applications
Creating scripts
Exporting scripts for integration with other execution environments
WebDriver code snippet
UFT code snippet
Advantages and limitations of this technique
Troubleshooting and best practices
Summary
6. Automating on Cloud
Getting started with cloud automation
Prominent mobile cloud automation tools
A private cloud lab setup
Integrating automation tools such as UFT and Selenium
Automation scripting with cloud devices
Automating with inbuilt cloud tool automation support
Test data parameterization
Interrupt scenario automation
Execution and reporting
Automating with third-party automation tools
Scripting with UFT
Scripting with Selenium
Troubleshooting and best practices
Summary
7. Optimizing Test Strategy and Estimation
Lifecycle of a mobile test automation project
Requirement gathering and analysis
Device matrix creation
Optimization of the device coverage matrix
Optimizing the test automation strategy
The automation feasibility analysis
Effort estimation
Return on investment
RoI calculation
The RoI analysis
Best practices to maximize the RoI
Automation framework design and development
Test scripting
Automation suite execution
The execution manager
Extensibility and maintenance
Some more best practices
Summary
8. Delivering Customer Delight
Customer delight – internal and external
An ideal mobile test automation framework
Mobile automation for agile projects
DevOps and shift left
Behavior-driven development
Continuous integration for mobile automation
Some sample mobile projects
Project 1 – an insurance provider's web application
Testing requirements
Optimization
The solution
Project 2 – automobile manufacturer's car dashboard and health-check application
Testing requirements
Optimization
The solution
Project 3 – using a web and hybrid application to enable BYOD for a secure banking application
Testing requirem...

Table of contents