Easy Integration test with Espresso test recorder
In my previous article we tried to implement cucumber to android, in that article we made an instrument test in android studio manually, that what bring me to write this article, because i just found out that in android studio there is an espresso test recorder with the same function like mobile recorder in katalon studio where you can create integration test with just a few click as long as your minimun android studio version is 2.2, Oke without any further let’s try this tools.
Record UI Interactions 💻
First let use the previous project, then open the LoginActivity
and click run > Record Espresso
the record test will show like bellow
Now all you have to do is follow the steps in your feature
file, if you feel you have done all the steps then select ok
, android studio will generate the integration test and you just have to copy that code to your step
file. Done 🎉
Ok that’s all, i know this is the shortest article in the world 😄 but hopefully it can help us to create instrument test, thank you. 🙏