Search code examples
androidtestingcross-application

Android, testing a flow which involves other applications


I am testing an Android application using Instrumentation, Espresso and Robotium. The flow I need to test is the following:

  1. typing email in a EditTextView
  2. press confirm button
  3. receive an email
  4. click in the link received in the email to confirm the address

Now, everything is fine till the step 4, at that point I have no idea on how to open the Email application to click the link, is there a way to do it, or to mock it eventually?


Solution

  • One of the solution is to use uiautomator for this. It has everything you need to open email app and click the link.