Improve your Android applications through intensive testing and debuggingAbout This BookFocus on Android instrumentation testing to ensure full application coverageApply testing techniques and utilize tools to improve Android application developmentBuild intensively tested and bug free Android applicationsWho This Book Is ForIf 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.
What You Will LearnApply testing techniques and utilize tools to improve Android application developmentGet to grips with the nuances of testing on Android, including how to architect an application to facilitate better testingExplore the Android instrumentation testing framework to optimize your activities, services, content providers, and usage of other Android componentsUnderstand different development methodologies including Test-driven Development and Behavior-driven DevelopmentApply the continuous integration technique for ultimate application quality controlImprove application performance by analyzing the results returned from performance testsExpose your application to a wide range of conditions and configurations to simulate real-life network conditions and detect problems in the applicationExplore further tools to improve application quality such as micro benchmarks and code coverageIn DetailThis book is a practical introduction to readily available techniques, frameworks, and tools to thoroughly test your Android applications and improve project development.
You will learn the Java testing framework, how to create a test case and debug it. Next, you'll be walked through using the Android SDK to test using the ActivityTestCase and ActivityUnitTest classes as well as discussing popular testing libraries. Through examples you will test files, databases, ContentProviders, exceptions, services, and test your app using Espresso. You will discover how to manage your Android testing environment using Android emulators, deep dive into how adb and the emulator can super charge your testing automation, and also test user interactions with monkeyrunner. You will be guided through different testing methodologies including Test-driven Development and Behavior-driven Development and will learn how to perform Unit and Functional testing applying them to your Android projects. You will also use continuous integration techniques for ultimate application quality control using Gradle and Jenkins.
By the end of the book, you'll be looking through alternative testing tactics including Fest and Spoon to build upon and expand your Android testing range and finesse.