Espresso training

Get Started. It's Free
or sign up with your email address
Rocket clouds
Espresso training by Mind Map: Espresso training

1. UI Automation framework from google

1.1. About 6 years old

1.2. Java/Kotlin only

1.3. https://developer.android.com/training/testing/espresso

1.4. Integrated within Android studio

1.4.1. Tests can be written, debugged and run

1.4.2. Record and playback tool available

1.4.3. Tools for inspection

1.4.4. Can run tests directly on Firebase test lab

2. Comparision

2.1. Appium

2.1.1. appium uses espresso

2.1.2. More black box scenarios

2.2. UIAutomator

2.2.1. Traditional Older framework from Google

2.2.2. Can interact with other apps

2.2.3. Works seamlessly with espresso

2.3. Selenium/webdriver

2.3.1. Not a black box tool

2.3.2. Doesn't need implicit or explicit waiters

2.4. XCUITest

3. Resources

3.1. Older

3.1.1. Code samples

3.1.1.1. chiuki/espresso-samples

3.1.1.2. googlesamples/android-testing

3.1.2. Official docs

3.1.2.1. Espresso | Android Developers

3.1.3. Espresso cheat sheet | Android Developers

3.1.4. Advanced

3.1.4.1. droidcon NYC 2017 - How Espresso Works

3.1.4.2. Advanced Android Espresso

3.1.5. Support

3.1.5.1. Slack

4. Building blocks of espresso test

4.1. Locators/ViewMachers

4.1.1. onView()

4.1.1.1. withId

4.1.1.2. withText

4.1.1.3. withContentDescriptors

4.1.2. onData()

4.1.3. allOf

4.1.4. ViewMatchers | Android Developers

4.1.5. Hamcrest

4.2. Actions

4.2.1. Click

4.2.2. typeText

4.2.3. swipe etc..

4.2.4. ViewAction | Android Developers

4.3. Assertions

4.3.1. check

4.3.2. matches

4.3.3. isDisplayed?()

4.3.4. not

4.3.5. ViewAssertions | Android Developers

5. Advanced features

5.1. Idling resources

5.2. Calling intents/activities

5.3. SetupRules

5.4. Shared code between Robo and Espresso