Introduction
Wearable technology is on the rise in both personal and business use. In the consumer space, sales of smart wristbands and watches are on an exponential growth path. With the rise in wearable devices, there’s a rush to make existing apps usable for smartwatches and bands. Thereโs a need to have more robust development and testing practices for such apps.
This was the motivation for going for a POC for Android Wear 2.0, one of the most popular platforms for wearables in the smartwatch category. The intention was to see how existing tools can be leveraged for the automation of wearable-only apps and apps which are available on both Mobile and Android Wear platforms. The following write-up gives an overview of the POC conducted.
Application Under Test (AUT)
The POC deals with the automation of Android Wear 2.0 apps –
- A standalone โCalculatorโ app
- A Mobile + Smartwatch app โGoogle Keepโ.
Calculator app on Android Wear
This is a simple calculator app that can be used to perform basic math operations on the Android watch. Hereโs the link to the app.

The POC involves launching the app and performing some basic operations like addition, subtraction, etc. and verifying the results.
Google Keep App on Mobile & Android Wear
This POC takes into consideration an end to end flow in using the Google Keep app. The steps performed are as follows
- Create a checklist on the mobile โKeep app.โ
- ย Verify the whether the checklist syncs on the Android wear device or not.
- ย Mark all items as checked on the wearable device.
- ย Verify all items as checked on the wearable device.
- ย Refresh keep a list on a mobile device
- ย Verify if all items are checked on a mobile device in the โkeep app.โ
- Delete the keep checklist to clean up the data.
App Screenshots on Android Wear Emulator and Mobile device

Automation Tools Used
Library – Appium
Appium is the most popular automation library when it comes to the automation of mobile devices. A few of the benefits of using this library are:
- The app source or apk is not required for automation.
- The app does not require any instrumentation i.e. the production apk can be used as it is, giving more confidence in the tests.
- A familiar Selenium based API is used for automation reducing the learning curve.
In the POC the Java client of the Appium library was used for automation of both the โAndroid Mobile Google Keep Appโ and the โAndroid Wear Google Keep App.โ
Framework – TestNg
TestNg is a widely used automation framework for the Java language. Itโs based on Junit and provides a powerful feature for test configuration, execution, and reporting which makes it robust and easy to use.
Environment – AVD (Android Virtual Device) + Physical device
The environment consists of actual devices (physical, virtual, emulators) used for automation. Some of the options considered for automation were:
- Android Virtual Devices (AVD) for both Mobile and Android Wear.
- Real device for Mobile & AVD for Wear.
- Real devices for Mobile and Android Wear.
The second option was chosen considering the easy availability of an Android Mobile device and the unavailability of a real Android wearable device.
The crucial part here is to set up the environment such that the physical Android device and Android Wear device sync up to have the same Google accounts. This can be done by forwarding ports using the following command –
adb -s <android device id>forward tcp:5601 tcp:5601
Screencast
\
20 Comments
Lovely just what I was looking for.
I got what you intend, appreciate it for putting up.
Having read this I thought it was really informative. I appreciate you spending some time and energy to put this content together. I once again find myself spending a significant amount of time both reading and leaving comments. But so what, it was still worthwhile!|
You made some really good points there. I checked on the web for more info about the issue and found most people will go along with your views on this website.|
Thanks for sharing your info. I truly appreciate your efforts and I will be waiting for your next post thank you once again.|
Hi there everybody, here every one is sharing these knowledge, thus it’s pleasant to read this blog, and I used to pay a visit this blog everyday.|
I’m very pleased to find this web site. I need to to thank you for ones time due to this fantastic read!! I definitely liked every part of it and i also have you saved to fav to check out new information on your blog.|
Thanks for any other informative web site. Where else may I get that type of information written in such a perfect means? I’ve a undertaking that I am simply now working on, and I have been at the glance out for such info.|
Hi my family member! I wish to say that this article is amazing, great written and include approximately all significant infos. I would like to look more posts like this .|
I am in fact happy to read this blog posts which carries plenty of helpful information, thanks for providing these kinds of information.|
I am actually grateful to the owner of this site who has shared this enormous post at at this place.|
If some one wishes to be updated with hottest technologies afterward he must be pay a visit this web site and be up to date everyday.|
There is definately a lot to know about this topic. I love all of the points you made.|
If some one needs expert view on the topic of running a blog after that i suggest him/her to pay a visit this weblog, Keep up the pleasant work.|
Great post! We will be linking to this great article on our site. Keep up the good writing.|
I was able to find good info from your content.|
We absolutely love your blog and find almost all of your post’s to be what precisely I’m looking for. can you offer guest writers to write content for yourself? I wouldn’t mind creating a post or elaborating on a lot of the subjects you write about here. Again, awesome blog!|
Bookmarked your website for easy access! These articles are great
Hmm it seems like your blog ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to everything. Do you have any points for beginner blog writers? I’d really appreciate it.
Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Many thanks