Card image cap

UI Testing for Beginners


You must be a member to register





Description


This course is a work in progress. You can expect lectures to be published every business day until complete.

Course Objective:

To provide an introduction to UI testing on android with Espresso, Mockito and some of the most useful test classes in androidx.test.


Target Audience:

Complete beginners when it comes to UI testing. There is no required knowledge.


What you'll learn:

  • Kotlin
  • Testing Activities in Isolation:
    1. ActivityScenario
    2. ActivityScenarioRule
  • Activity Navigation:
    1. Intents and startActivity
    2. Back navigation
  • Test Suites:
    1. Running multiple test classes in a suite
  • Firebase Test Lab:
    1. Run UI tests on hundreds of virtual devices using Firebase Test Lab
  • Testing Fragments in Isolation:
    1. FragmentScenario
    2. launchInContainer
    3. FragmentFactory
  • Fragment Navigation:
    1. Testing fragment transactions
    2. Fragment transactions with FragmentFactory
  • Mockito:
    1. Mocking dependencies
    2. Constructor injection (no dagger)
  • Intents:
    1. IntentsTestRule
    2. Retrieving activity results
    3. Choosing image from gallery
    4. Capturing an image with camera
  • Dialogs:
    1. Material Dialogs (Library)
    2. Is dialog visible?
    3. Capturing input from user
  • Toasts:
    1. Is toast visible?
  • RecyclerView:
    1. Scrolling to list item
    2. Clicking list items
    3. List item verification
  • Espresso Idling Resource:
    1. Required for background work
  • Configuration Changes:
    1. Simulating a configuration change
  • Creating Custom Test Rules:
    1. TestRule
    2. TestWatcher
  • @SmallTest, @MediumTest, @LargeTest:
    1. What do these mean?

Github repo: Source code



Metadata


# lectures: 8

Total video time: 01:35:36





Authors


By Mitch Tabian

codingwithmitch.com

Software Dev





Comments