Having recently revived an android project I haven’t opened in close to 6 months, I was left scratching my head as to why I couldn’t run any of my integration tests.
Thinking back, I remembered having problems getting robotium to instrument the clicking of a button, as simple as it sounds, theres a few little gotchas involved. Firstly, I needed to modify the test code to click on text, rather than a button, as it has been suggested by various users on StackOverflow that there does tend to be odd side effects when clicking buttons:
It’s been a little while since I made any detailed posts, and it’s not through lack of wanting. I’ve been pretty busy with a new project at work, and I’m also preparing to (finally) sit my SCJP at the end of November, so I haven’t had any time to write any android tutorials.
As ever, my “to do list” is massively increasing, I have a BIG Grails/Groovy personal project coming up after my SCJP, which will be a Grails web app, along with an android mobile client, with some QR code functionality and social integration added into the mix, so I’ll have plenty of interesting things to blog about in the coming winter months.