The Google Play Store, weighing in with more than 1.4 million apps at last count, is a vast expanse of quality content and APK duds alike. To put this into context, it would take the average user more than 8 days of continuous scrolling to make it through the whole list at two per second, let alone the added months to click through and check out screenshots, or years to separate the wheat from the chaff via thorough review. Blogs...
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.
Want something on the XDA Portal? Send us a tip!
Join us in a fun Sunday Debate on New vs. Old. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below! Smartphone purchases make for some of the sweetest times of the year for many of us. After all, we are hobbyists of Android and a new...
Android and openness is something we talk about all the time, but the recent developments in the industry point towards inherent flaws with this very premise. Be it from bloggers, political institutions or corporations, Android is seemingly not open enough. The “War on Openness” is ironically becoming an open war, where many players are increasing their stakes and scope to try and land a bigger hold - or at the very least, restrict Google’s - on what is the world’s...