Testdroid might be a solution. I was hoping to write automated tests
using their Eclipse plugin but haven't had the time yet. If you do
give it a try I'd be curious to hear about your experience using it.
Till then I've just been using a few simple javascript snippets that
will navigate through my app automatically. Its not perfect but at
least it allows me to sit back and watch instead of clicking the
same button a thousand times. Here's a sample of what I use for the
login screen. It fills in the input boxes for me and then clicks the
login button 2 seconds after loading (the delay gives me a chance to
visually confirm everything is correct and let any animations
finish). I use "one" so that I can logout when the tests are
finished and have the option of entering different credentials
without the screen being bypassed (again)...
$(document).live("pagebeforeshow", function() {
$("#login input#email").val(
"la...@lavabit.com");
$("#login input#password").val("example");
});
$(document).one("pageshow","#login", function() {
setTimeout(function() {
if ($.mobile.activePage.attr("id") == "login") {
$("#login .btn-login").trigger("click");
}
}, 2000);
});