jeudi 14 décembre 2017

How to navigate between views in Android Espresso

I am currently learning Espresso, I'm writing a test case where user does the following.

Pre-condition:- Create a rule to activate a login activity:

  1. Opens the app
  2. Types username password
  3. Clicks on login button

Now user gets redirected to a new activity where it displays the username. How do I assert the text in Logged in activity?

Basically how to navigate between multiple activities in a single testcase

Aucun commentaire:

Enregistrer un commentaire