Android Espresso revealed : writing automated UI tests /: writing automated UI tests. (2019)
- Record Type:
- Book
- Title:
- Android Espresso revealed : writing automated UI tests /: writing automated UI tests. (2019)
- Main Title:
- Android Espresso revealed : writing automated UI tests
- Further Information:
- Note: Denys Zelenchuk.
- Authors:
- Zelenchuk, Denys
- Contents:
- Intro; Table of Contents; About the Author; About the Technical Reviewer; Introduction; Chapter 1: Getting Started with Espresso for Android; User Interface Testing: Goals and Approach; Setting Up the Sample Project; Understanding Android Instrumentation; Espresso Basics; Identifying Application UI Elements; Espresso; Espresso ViewMatchers; Espresso's ViewInteraction Class; Espresso's ViewActions Class; Espresso's DataInteraction Class; Operating on RecyclerView Using Espresso; RecyclerViewActions; Running Espresso Tests from AndroidStudio; Running Espresso Tests from the Terminal Running Instrumentation Tests Using Shell CommandsRunning Instrumentation Tests Using Gradle Commands; Summary; Chapter 2: Customizing Espresso for Our Needs; Writing Custom ViewActions; Adapting Espresso Swipe Actions; Creating Custom RecyclerView Actions; Writing Custom Matchers; Creating Custom Matchers for Simple UI Elements; Implementing Custom RecyclerView Matchers; Handling Errors with a Custom FailureHandler; Taking and Saving Screenshots Upon Test Failure; Summary; Chapter 3: Writing Espresso Tests with Kotlin; Migrating Espresso Java Tests to Kotlin Benefits of Writing Tests in KotlinFunction as a Type; Extension Functions; String Templates; Import R.class Resources; Espresso Domain-Specific Language in Kotlin; Summary; Chapter 4: Handling Network Operations and Asynchronous Actions; IdlingResource Basics; Writing the Code; Running the First Test; OkHttp3IdlingResource; PicassoIntro; Table of Contents; About the Author; About the Technical Reviewer; Introduction; Chapter 1: Getting Started with Espresso for Android; User Interface Testing: Goals and Approach; Setting Up the Sample Project; Understanding Android Instrumentation; Espresso Basics; Identifying Application UI Elements; Espresso; Espresso ViewMatchers; Espresso's ViewInteraction Class; Espresso's ViewActions Class; Espresso's DataInteraction Class; Operating on RecyclerView Using Espresso; RecyclerViewActions; Running Espresso Tests from AndroidStudio; Running Espresso Tests from the Terminal Running Instrumentation Tests Using Shell CommandsRunning Instrumentation Tests Using Gradle Commands; Summary; Chapter 2: Customizing Espresso for Our Needs; Writing Custom ViewActions; Adapting Espresso Swipe Actions; Creating Custom RecyclerView Actions; Writing Custom Matchers; Creating Custom Matchers for Simple UI Elements; Implementing Custom RecyclerView Matchers; Handling Errors with a Custom FailureHandler; Taking and Saving Screenshots Upon Test Failure; Summary; Chapter 3: Writing Espresso Tests with Kotlin; Migrating Espresso Java Tests to Kotlin Benefits of Writing Tests in KotlinFunction as a Type; Extension Functions; String Templates; Import R.class Resources; Espresso Domain-Specific Language in Kotlin; Summary; Chapter 4: Handling Network Operations and Asynchronous Actions; IdlingResource Basics; Writing the Code; Running the First Test; OkHttp3IdlingResource; Picasso IdlingResource; ConditionWatcher as an Alternative to IdlingResource; Making Condition Watchers Part of Espresso Kotlin DSL; Summary; Chapter 5: Verifying and Stubbing Intents with IntentMatchers; Setting Up Dependencies; Stubbing Activity Intents Stubbing Intents Without a ResultStubbing a Single Intent; Stubbing Intents with the Result; Verifying Intents; Summary; Chapter 6: Testing Web Views; Espresso-Web Basics; Espresso-Web Building Blocks; Writing Tests with Espresso-Web; Summary; Chapter 7: Accessibility Testing; Android Accessibility Tools; Testing Application Accessibility; Summary; Chapter 8: Espresso and UI Automator: the Perfect Tandem; Starting with UI Automator; Finding and Acting on UI Elements; Waiting for UI Elements; Watching for Conditions; Combining Espresso and UI Automator in Tests; Summary Chapter 9: Dealing with Runtime System Actions and PermissionsChanging the Emulator System Language Programmatically; Handling Runtime Permissions; Enabling Permissions Using the GrantPermissionRule; Handling Runtime Permissions Using UI Automator; Summary; Chapter 10: Android Test Automation Tooling; Setting Up a Virtual or Physical Device for Test Automation; Using the Espresso Test Recorder Tool; Running Espresso Tests in the Firebase Test Lab from Android Studio; Chapter 11: The Screen Object Design Pattern in Android UI Tests … (more)
- Publisher Details:
- Berkeley, CA : Apress
- Publication Date:
- 2019
- Extent:
- 1 online resource (xvii, 308 pages), illustrations
- Subjects:
- 005.1/4
Computer software -- Testing
Electronic books
Electronic books - Languages:
- English
- ISBNs:
- 9781484243152
1484243153 - Related ISBNs:
- 9781484243145
- Notes:
- Note: Online resource; title from PDF title page (SpringerLink, viewed March 6, 2019).
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.393138
- Ingest File:
- 02_400.xml