Will Verduzco · May 25, 2013 at 11:30 am

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you need to do one very critical step: testing. Most Java developers out there have heard of Selenium.

No, I’m not talking about the metalloid 34Se. I’m talking about the Java-based automated application tester. Luckily for Android developers, there’s a similar tool called Robotium. According to the Robotium project page:

Robotium is an Android test automation framework that has full support for native and hybrid applications. Robotium makes it easy to write powerful and robust automatic black-box test cases. With the support of Robotium, test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.

Thankfully, XDA Senior Member EatHeat has written a guide to help new developers perform automated testing on their applications using this tool. Currently the guide covers installation and use of Robotium to test your applications, given that you have the source code at your disposal. However, don’t worry too much if you don’t. EatHeat is also planning on extending his guide to cover Robotium’s ability to test apps even when source is unavailable. That’s right, all you need is the APK!

Please keep in mind that you should still actually test your application manually before launching it to the wild. In fact, we even have resources in our new App Development forums to help with that! But for those who want to do a little additional testing, Robotium may be just what you’re looking for.

To get started, first head over to the Robotium project page on Google Code. Once you’ve downloaded the required files, head over to the original thread for EatHeat’s guide.


_________
Want something on the XDA Portal? Send us a tip!

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mathew Brack · Jul 3, 2015 at 12:00 pm · 2 comments

The Atlas of XDA

A few weeks ago, we asked you "How Does Your Location Affect Your Life As A Power User?". In the days that followed, members from all over the world shared their stories and experiences of life across the globe. Allow me to introduce the true story of what it means to be a power user on this pale blue dot.   Index Africa & Oceania: Australia, Indonesia, Libya, Madagascar, New Zealand, Nigeria, South Africa, Americas: Brazil, Chile, Columbia, Costa Rica, Guatemala, Martinique, United...

XDA NEWS
Mario Tomás Serrafero · Jul 3, 2015 at 11:10 am · 3 comments

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 has had a less-than-stellar fate, be it because of overheating complaints or actual decreased sales. HTC is in a particularly worrisome situation, and Sony’s Z4 is slipping down Japanese charts just over a week after its release. The G Flex 2, Mi Note Pro and Z3+ all saw complaints as well. Even MediaTek is seemingly getting an advantage over this.   But a particularly...

XDA NEWS
Aamir Siddiqui · Jul 3, 2015 at 10:12 am · 1 comment

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were decent starter smartphones, featuring budget specs and a promise of fast updates. However, the phones did not pick up as big a response as Google hoped. Now, as per a report by The Economic Times, it appears that Google is rethinking their strategy towards Android One in India. The first gen Android One devices focused on first time smartphone users, but were flawed in...

XDA NEWS
Share This