万本电子书0元读

万本电子书0元读

顶部广告

Mobile Test Automation with Appium电子书

售       价:¥

50人正在读 | 0人评论 6.2

作       者:Nishant Verma

出  版  社:Packt Publishing

出版时间:2017-07-07

字       数:22.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Automate your mobile app testing About This Book ? How to automate testing with Appium ? Apply techniques for creating comprehensive tests ? How to test on physical devices or emulators Who This Book Is For Are you a mobile developer or a software tester who wishes to use Appium for your test automation? If so, then this is the right book for you .You must have basic Java programming knowledge. You don’t need to have prior knowledge of Appium. What You Will Learn ? Discover Appium and how to set up an automation framework for mobile testing ? Understand desired capabilities and learn to find element locators ? Learn to automate gestures and synchronize tests using Appium ? Take an incremental approach to implement page object pattern ? Learn to run Appium tests on emulators or physical devices ? Set up Jenkins to run mobile automation tests by easy to learn steps ? Discover tips and tricks to record video of test execution, inter app automation concepts ? Learn to run Appium tests in parallel on multiple devices simultaneously In Detail Appium is an open source test automation framework for mobile applications. It allows you to test all three types of mobile applications: native, hybrid, and mobile web. It allows you to run the automated tests on actual devices, emulators, and simulators. Today, when every mobile app is made on at least two platforms, iOS and Android, you need a tool that allows you to test across platforms. Having two different frameworks for the same app increases the cost of the product and time to maintain it as well. Appium helps save this cost. With mobile app growth exploding, mobile app automation is mainstream now. In this book, author Nishant Verma provides you with a firm grounding in the concepts of Appium while diving into how to set up appium & Cucumber-jvm test automation framework, implement page object design pattern, automate gestures, test execution on emulators and physical devices, and implement continuous integration with Jenkins. The mobile app we have referenced in this book is Quikr because of its relatively lower learning curve to understand the application. It's a local classifieds shopping app. Style and approach This book takes a practical, step-by-step approach to testing and automating individual apps such as native, hybrid, and mobile web apps using different examples.
目录展开

Title Page

Copyright

Mobile Test Automation with Appium

Credits

About the Author

About the Reviewers

www.PacktPub.com

Why subscribe?

Customer Feedback

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

Introduction to Appium

Native app

Mobile Web app

Hybrid app

Appium architecture

XCUITest

UiAutomator 2

Pros of using Appium

Summary

Setting Up the Machine

Machine setup for macOS

Installing Java

Installing Android SDK (using the Android command-line tool)

Installing Android SDK (using Homebrew) (Optional)

Creating Android Virtual Device (Optional)

Genymotion emulator

Debug help

Installing Appium

Installing Appium server (From Source) (Optional)

Selecting IDE

App under test

Machine setup for Windows

Installing Java

Installing Android SDK (using Android command-line tool)

Installing Node JS

Installing Appium

Installing Appium server (via npm)

Installing Genymotion

Selecting IDE

Appium GUI app

Summary

Writing Your First Appium Test

Creating an Appium Java project (using gradle)

Introduction to Cucumber

Writing our first Appium test

Running the feature file

Refactoring

Implementing the remaining steps

Running the scenario

Automating a mobile web app using Appium

Implementing the remaining steps

Automating the iOS app using Appium

Build the app

Deploying the app on the iOS Simulator

Via xcrun command

Using Appium

Generating Boilerplate code for iOS

Summary

Understanding Desired Capabilities

Refactoring -1

Server argument

Refactoring -2

Server capabilities

Refactoring -3

Android-only capabilities

Refactoring -4

iOS-only capabilities

Summary

Understanding Appium Inspector to Find Locators

Appium inspector

Implementing the other steps

UI Automator Viewer

Debugging mobile web apps using Chrome Inspect

Summary

How to Synchronize Tests

AppiumDriver

Implicit wait

Explicit wait

Fluent wait

Summary

How to Automate Gestures

Gestures

TouchAction

MultiTouch

Scroll

Swipe

Orientation

Summary

Design Patterns in Test Automation

Refactor -1

Page Object pattern

Refactor-2

Assertions

Implementing assertions in Page Object

Implementing assertion in test script

Avoiding dependencies between tests

Introducing set up and tear down

Summary

How to Run Appium Test on Devices and Emulators

Emulator

Running test on the Genymotion emulator

Devices

Running a test on actual Android devices

Running a test on actual iOS devices

Summary

Continuous Integration with Jenkins

Refactoring -1

Setting up Jenkins

Moving a project to Git

Adding Jenkins plugin

Setting up the Jenkins task

Viewing reports in Jenkins

Summary

Appium Tips and Tricks

Switching between views - web and native

Taking screenshots

Recording video execution

Interacting with another app

Running the test in parallel

Network conditioning

Summary

Appium Desktop App

Installing the new Appium app

Starting a simple server

Start New Session

Attach to an existing session

Desired Capabilities

Appium Inspector

Starting the server with advanced options

Appium Endpoints

Summary

Appendix

Introduction to Cucumber

How does Cucumber work?

Feature

Scenario

Background

Scenario Outline

Hooks in Cucumber

Running Cucumber

CLI Runner

JUnit Runner

Third-Party Runner (Via IntelliJ)

Finding an app's package name and launch activity

Using the ManifestViewer app

Using the Appium GUI app

Installing Google Play services in the Genymotion emulator

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部