Book Image

Testing and securing android studio applications

Book Image

Testing and securing android studio applications

Overview of this book

Table of Contents (18 chapters)
Testing and Securing Android Studio Applications
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Unit and Functional Tests

You already learned about Android testing in the previous chapter. You know how to develop a black-box test of the UI of your application. Now you want to learn how to implement the white-box testing for your application. Are there different types of activity testing? Does Android Studio support activity testing? How can you get the results of your test cases? We will be covering these points in this chapter.

In this chapter, you will learn how to use unit tests that allow developers to quickly verify the state and behavior of an activity on its own. The chapter will also cover functional tests; their main purpose is to check the interaction between components.

The topics that will be covered in this chapter are as follows:

  • Differences between unit and functional tests

  • Android testing API

  • Creating a simple unit test case

  • Creating a simple functional test

  • Getting the test results