mercredi 23 septembre 2015

Testing Main/Launcher Activity in Android

We are developing an app with a LoginActivity as main activity but, while developing, we configure the next activity to avoid writing user/password each time. I am starting with TDD and in order to avoid letting the wrong activity, I am trying to create a simple test that check that.

Is there any way to create a test that check what Activity is called when user click on the app icon? I have tried with an ActivityInstrumentationTestCase2 but it only let me choose what activity I want to test, not the complete app.

Thank you

Aucun commentaire:

Enregistrer un commentaire