Android provides various packages for testing like
AndroidTestCase
ApplicationTestCase
InstrumentationTestCase
ActivityInstrumentationTestCase2 ActivityTestCase
I need to know how to decide which package is best suitable for testing my app. Some info is provided in this link
http://developer.android.com/reference/android/test/package-summary.html
But I need more clarity on this…
TestCase – Plain old JUnit test case. It can be extended to test utility classes that are not tied to the Android framework.
ActivityInstrumentationTestCase2 – It’s the newer version of ActivityInstrumentationTestCase. ActivityInstrumentationTestCase is deprecated in Android SDK 1.5. It’s a heavier testing class compared to AndroidTestCase. It provides UI and functional testing for a single activity. You can get an injected activity that you are testing on by calling its getActivity() method. The activity being tested is launched and finished before and after each test.
ApplicationTestCase – It provides testing for Application classes. It can be used to test the life cycle of an application.
I just found this..Hope this helps for others…If u want more details like when and how to use, see the APIDemos test application in the samples directory within android SDK.