Published online by Cambridge University Press: 06 September 2009
As we strive to implement the new features of our applications, there is one thing we can say with absolute certainty – that at the same time, we also introduce new defects.
Introduction
This chapter gives an overview of testing in order to provide an understanding of what testing is and why it is such a challenge, and to emphasize that whenever we test software, the process must be made to be as efficient and effective as possible.
Readers familiar with the need for efficient and effective testing may not find it necessary to read this chapter.
The Challenge of Testing
So, just how difficult is testing? To help answer this question, consider the following example:
Imagine we have a requirement to test a simple function, which adds two thirtytwo–bit numbers and returns the result. If we assume we can execute 1000 test cases per second, just how long will it take to thoroughly test this function?
If you guessed seconds, you are way out. If you guessed minutes, you are still cold. If you guessed hours or days or even weeks, you are not even slightly warm. The actual figure is 585 million years.
To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.