sebaslogen / CleanGUITestArchitecture

Sample project of Android GUI test automation using Espresso, Cucumber and the Page Object Pattern
MIT License
137 stars 31 forks source link

Question : Reset app state between scenario #22

Open hugoTiss opened 6 years ago

hugoTiss commented 6 years ago

Hey, Thank for you repository, it help me a lot to build my test with espresso and cucumber. I need to reset app stat between some scenario, do you know a way to do this with cucumber and espresso ?

Thanks for all,

sebaslogen commented 6 years ago

Hi @hugoTiss, To the best of my knowledge, all clean up of app state can only be done manually and it's indeed what I usually do in my apps in the @After step, things like unregistering all Espresso Idling Resources, clean up of SharedPreferences and all DB entries.