Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Gallery Intent and Activity Result Testing with Espresso - Part 8

CodingWithMitch via YouTube

Overview

Learn how to use the IntentTestRule in Espresso for testing intents on Android in this tutorial video. Explore the process of testing the ACTION_PICK intent, which enables users to select images from their phone's gallery and retrieve results through the onActivityResult function. Gain hands-on experience with UI (Instrumentation) tests using Espresso, focusing on gallery intent implementation and startActivityForResult. Access the provided source code and follow along with practical examples to enhance your Android UI testing skills. This video is part of a comprehensive free course on UI testing for beginners, offering valuable insights for Android developers looking to improve their testing practices.

Syllabus

Intro
What is Espresso Intense
Dependencies
Source Code
Disclaimer
Writing the Test
MainActivityTest
Test Function
Test Intent
Match Intent
Extras
ExpectedResult
Problem
Test

Taught by

CodingWithMitch

Reviews

Start your review of Gallery Intent and Activity Result Testing with Espresso - Part 8

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.