Android - Testing Tutorial
The Android framework includes an integrated testing framework that helps you test all aspects of your application and the SDK tools include tools for setting up and running test applications. Whether you are working in Eclipse with ADT or working from the command line, the SDK tools help you set up and run your tests within an emulator or the device you are targeting. Test Structure Android's build and test tools assume that test projects are organized into a standard structure of tests, test case classes, test packages, and test projects. Testing Tools in android There are many tools that can be used for testing android applications. Some are official like Junit,Monkey and some are third party tools that can be used to test android applications. In this chapter we are going to explain these two tools to test android applications. JUnit Monkey JUnit You can use the JUnit TestCase class to do unit testing on a class that doesn't call Android APIs. TestCase...