-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/9/10 23:19 , Indicator Veritatis wrote:
> That depends on where you draw your line to decide what is in and
> outside of the "black box". If you use JUnit, and have all your
> Applications under test inherit from the basic test (TestCase),
> can't you get the "black box" test effect you desire?

"Black box" to me means using the minimum or not at all the APIs of
the application, but driving instead the tests emulating user gestures
to the UI. The reason for that is that I want to test what my users
will see, and everything done outside the black-box approach would
break that constraint.

This can be done with JUnit and the Android API; the problem is that
if you need that tests are run in isolation, e.g. every test starts
from scratch, this is not possible from a single adb invocation,
because you can't force unloading stuff (of course I could call some
of my application methods to force a clean up of the app status, but
it wouldn't be black-box). The only resort is multiple invocation of
adb, which seems to do the required clean up.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxhO1kACgkQeDweFqgUGxdbnACghaUY3YU0zLGrkG+kkHYXz32g
r7gAoIGRc6TNqlLPuIF5rlIij/wKjL/F
=/UOF
-----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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to