Search code examples
androidandroid-studioandroid-espressoandroid-testingandroid-espresso-recorder

Android Studio espresso test recorder - swipe events


I've been playing around with the espresso test recorder and reading the documentation

The documentation states:

Interact with your device to start logging events such as “tap” and “type” actions.

Is it possible to record swipe events like swiping on a view pager? I've been unable to find any examples of this being done, though I know it's still in beta.

Thanks


Solution

  • Nowadays, Espresso Test Recorder lacks in features like swipe events or starting from actual activity. Maybe that would be fixed in the nearest feature.

    Nowadays, still more simple and less flaky way is to write Espresso tests.

    This might be useful:https://google.github.io/android-testing-support-library/downloads/espresso-cheat-sheet-2.1.0.pdf

    Hope it will help.