0

Monkey is used to test applications with activities. Is there a way to make automated tests like monkey for non-activity applications?

Ricardo Cristian Ramirez
  • 1,194
  • 3
  • 20
  • 42

1 Answers1

2

Usually, you use JUnit for that.

Also, bear in mind that nearly every application needs an activity, if you want the application to be usable on Android 3.1+. The exception might be some sort of plugin to some other app.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Thanks but the package is not mine. I am just testing an apk. Also there are too much apks. – Ricardo Cristian Ramirez Oct 09 '13 at 20:58
  • @RicardoCristianRamirez: You would use JUnit for that too. You can create a JUnit test project that is marked to test "itself", meaning that Android will not try to automatically load some other project when it runs your tests. Your test code can then use the `ContentProvider` or bound service or whatever it is you think that you are going to test of this other APK. – CommonsWare Oct 09 '13 at 21:01