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.
Aamir Siddiqui · May 27, 2015 at 02:12 pm · 1 comment

Samsung Galaxy S6 To Receive Major Camera Update

When the Samsung Galaxy S6 and S6 Edge were launched, they became the prime focus for all discussions as Samsung took a break on their traditional design philosophy and opted for something that their flagship lineup hadn't seen before. But along with the design, a lot of Android enthusiasts were also impressed by another aspect of the flagship duo: their camera. Even traditionally, the primary camera on Samsung's flagship lineup has been one of its stronger points as compared to other...

XDA NEWS
Faiz Malkani · May 27, 2015 at 01:34 pm · 4 comments

Tactile: An Addicting Game with Beautiful Material Design

The game industry has been around for decades, catering to a wide spectrum of people, young gamers and elder ones, casual gamers and serious ones, and for an industry with such specifications, innovation isn't the only fuel for success. An increasingly large number of games draw inspiration from another and build on top of that idea, and Tactile is one such product, an excellently executed brainchild of a mashup between Tetris and 2048. For 2048 veterans, the game will come across as relatively familiar....

XDA NEWS
Mario Tomás Serrafero · May 27, 2015 at 12:27 pm · 3 comments

Android’s Consistency and The User Experience

This is a site of power users, and it is fair to say that most of us are more knowledgeable about Android than the average Joe. We tinker and tweak by customizing every corner for endless hours, until we arrive at a comfortable software configuration. In contrast, a large chunk of Android users don’t even use a different launcher - and many don’t know what a launcher is in the first place!   When we get so involved in our...

XDA NEWS
Share This