In my last post I promised to write about log viewing tools, but since then I encountered a new issue with Chrome crashing when opening non-ASCII URL on Android, and I wanted to let you know about it ASAP.
Continue readingHow-to
Set permissions via adb and appops command
Recently I’ve ended up spending quite some time trying to figure out why a test where I was trying to set permissions via adb and appops command on Android intermittently fails (the dreaded flaky test!). So in today’s post I want to share my findings with you.
Continue readingUsing RunListener in Android tests
In this post I will describe how to use RunListener in Android instrumented tests (i.e. UI Automator or Espresso). But before getting into the nitty-gritty details, let’s discuss if you need to use it at all.
Continue readingHow to get displayed notifications on Android
When doing mobile test automation, you might need to check if a certain notification is displayed or to get all displayed notifications. In this post I’m going to describe how this can be achieved on Android using adb and/or UiAutomator. Some of the approaches can also be used with Appium.
Continue readingAndroid Service with multiple threads
In this post I’m going to explain step-by-step how to create background Android service with multiple threads.
Continue reading