Code samples for Automation Happy Hour are available at github.com/appium-pro/ahh
This week, I decided to tackle an app that I use really frequently---Twitter. Twitter has a mass of features, and I wanted to start simply by getting a solid login/logout flow. This is especially important since I didn't have a reliable APK of the Twitter app that would allow me to install/uninstall it. Given that I chose to launch the app purely via package and activity, it would start up with some pre-existing state, such as login state. What this means is that for each test run to start at the same state, I actually need to make sure to log out using the UI at the end of each test.
Ultimately, we were successful in getting a login and logout flow working. Here were some of the highlights (see full video above):
Otherwise, it was a pretty straightforward experience! It didn't go entirely smoothly, but that's what happens when my brain makes simple mistakes like using the wrong element variable.