You have learned how to create secure applications. Now, you want to ensure the quality of your Android application. What elements can be tested in Android? How test cases are developed? Does Android Studio support testing?
This chapter introduces the ways of testing an application in Android. In Android, we can design tests to evaluate the user interface (UI), activities, services, and content providers. In this chapter, we will learn about UI testing.
The topics that will be covered in the chapter are as follows:
Testing in Android
The uiautomator API
The uiautomatorviewer tool
The UI test project
Running UI test cases