Book Image

Android Application Testing Guide

By : Diego Torres Milano
Book Image

Android Application Testing Guide

By: Diego Torres Milano

Overview of this book

<p>It doesn't matter how much time you invest in Android design, or even how careful you are when programming; mistakes are inevitable and bugs will appear. This book will help you minimize the impact of these errors in your Android project and increase your development productivity. It will show you the problems that are easily avoided, to help get you quickly to the testing stage.<br /><br />Android Application Testing Guide is the first and only book providing a practical introduction to the most common available techniques, frameworks, and tools to improve the development of your Android applications. Clear, step-by-step instructions show how to write tests for your applications and assure quality control using various methodologies.<br /><br />The author's experience in applying application testing techniques to real world projects enables him to share insights on creating professional Android applications. <br /><br />The book starts by introducing Test Driven Development, which is an agile component of the software development process and a technique where you will tackle bugs early on. From the most basic unit tests applied to a sample project to more sophisticated performance tests, this book provides a detailed description of the most widely used techniques in the Android testing world in a recipe-based approach.<br /><br />The author has extensive experience of working on various development projects throughout his professional career. All this research and knowledge has helped create a book that will serve as a useful resource to any developer navigating the world of Android testing.</p>
Table of Contents (17 chapters)
Android Application Testing Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The TestSuiteBuilder.FailedToCreateTests class


The class TestSuiteBuilder.FailedToCreateTests is a special TestCase used to indicate a failure during the build() step.

That is, if during the test suite creation an error is detected, you will be receiving an exception like this one indicating the failure to construct the test suite:

01-02 06:31:26.656: INFO/TestRunner(4569): java.lang.RuntimeException: Exception during suite construction
01-02 06:31:26.656: INFO/TestRunner(4569):     at android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests.testSuiteConstructionFailed(TestSuiteBuilder.java:239)
01-02 06:31:26.656: INFO/TestRunner(4569):     at java.lang.reflect.Method.invokeNative(Native Method)
[...]
01-02 06:31:26.656: INFO/TestRunner(4569):     at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:520)
01-02 06:31:26.656: INFO/TestRunner(4569):     at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)