May 28, 2013 By: Will Verduzco
You may recall that just two days ago, we covered a guide showing you how to use Robotium for automated application testing. Now, it looks like XDA Senior Member EatHeat‘s handly little thread has received a rather significant revision.
When the previous article went live, we noted that EatHeat was planning an addition to his post to cover Robotium’s ability to test apps using only the APK, rather than source code. They say that good things come to those who wait, but apparently they didn’t specify how long you’d be waiting. The update has now been added to the guide.
As with before, the mojo behind this is the open source Robotium project. If you would like to learn more about Robotium, visit their Google Code page. If you’d like to take a peek at their source and/or fork some of that action, head over to their GitHub page. And finally, if you wish to learn how to use Robotium’s APK testing functionality, head over to the guide thread‘s second post.
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.