Cargando…

Learning Android application testing : improve your Android applications through intensive testing and debugging /

If you are an Android developer looking to test your applications or optimize your application development process, then this book is for you. No previous experience in application testing is required.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Blundell, Paul (Autor), Torres Milano, Diego (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Edición:Second edition.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Authors
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with Testing
  • Why, what, how, and when to test
  • What to test
  • Activity life cycle events
  • Database and file system operations
  • Physical characteristics of the device
  • Types of tests
  • Unit tests
  • The setUp() method
  • The tearDown() method
  • Outside the test method
  • Inside the test method
  • Integration tests
  • UI tests
  • Functional or acceptance tests
  • Test case scenarioPerformance tests
  • System tests
  • Android Studio and other IDE support
  • Java testing framework
  • Android testing framework
  • Instrumentation
  • Gradle
  • Test targets
  • Creating the Android project
  • Package explorer
  • Creating a test case
  • Test annotations
  • Running the tests
  • Running all tests from Android Studio
  • Running a single test case from your IDE
  • Running from the emulator
  • Running tests from the command line
  • Running all tests
  • Running tests from a specific test case
  • Running a specific test by nameRunning specific tests by category
  • Running tests using Gradle
  • Debugging tests
  • Other command-line options
  • Summary
  • Chapter 2: Understanding testing with the Android SDK
  • The demonstration application
  • Assertions in depth
  • Custom message
  • Static imports
  • View assertions
  • Even more assertions
  • The TouchUtils class
  • Mock objects
  • MockContext overview
  • The IsolatedContext class
  • Alternate route to file and database operations
  • The MockContentResolver class
  • The TestCase base class
  • The default constructorThe given name constructor
  • The setName() method
  • The AndroidTestCase base class
  • The assertActivityRequiresPermission() method
  • Description
  • Example
  • The assertReadingContentUriRequiresPermission method
  • Description
  • Example
  • The assertWritingContentUriRequiresPermission() method
  • Description
  • Example
  • Instrumentation
  • The ActivityMonitor inner class
  • Example
  • The InstrumentationTestCase class
  • The launchActivity and launchActivityWithIntent method
  • The sendKeys and sendRepeatedKeys methods
  • The runTestOnUiThread helper methodThe ActivityTestCase class
  • The scrubClass method
  • The ActivityInstrumentationTestCase2 class
  • The constructor
  • The setUp method
  • The tearDown method
  • The ProviderTestCase2 class
  • The constructor
  • Example
  • The ServiceTestCase
  • The constructor
  • The TestSuiteBuilder. FailedToCreateTests class
  • Using libraries in test projects
  • Summary
  • Chapter 3: Baking with Testing Recipes
  • Android unit tests
  • Testing activities and applications
  • Mocking applications and preferences