In other words, you can do button presses in a "sample" Android app from a test package, but you can't do them from your app's test package to the app under test. (The test package is the same as the "test app" and the "app under test" is the application you're trying to build.)
Are you using ActivityInstrumentationTestCase2 as your test case class? I assume that you're calling TouchUtils.clickView(t,v) where t is the test case object (probably _this_), and v is the Button object you want to click, in the Activity you're testing in the app under test. On Aug 5, 9:24 am, Fabrizio Giudici <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 8/5/10 17:56 , Brion Emde wrote:> Did you try working with the testing > tutorial? > > >http://developer.android.com/resources/tutorials/testing/activity_tes... > > That gives an example of using the Instrumentation to send key presses > > > to an Activity. > > Yes, I've been able to run example tests both from vanilla Android and > from Robotium - they work. For what I've checked (multiple times) the > set up, manifest, etc... are properly configured in my app. I don't > know what to check more, that's why I'd like to know whether there's > some kind of system diagnostics to understand what's happening. > > - -- > Fabrizio Giudici - Java Architect, Project Manager > Tidalwave s.a.s. - "We make Java work. Everywhere." > java.net/blog/fabriziogiudici -www.tidalwave.it/people > [email protected] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iEYEARECAAYFAkxa5cYACgkQeDweFqgUGxee1ACfYErl7SuHOHq9GXAWO8A1Gwjx > GVkAn27QZt7aZTV8qWxYgJs1Ze4u2UGv > =lvr2 > -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

