Chapter 2 - 7 Principles of Software Testing
Chapter 2 - 7 Principles of Software Testing
Examples
This tutorial introduces the seven basic Software Testing Principles that every
Software tester and QA professional should know.
Background
It is important that you achieve optimum test results while conducting software
testing without deviating from the goal. But how you determine that you are
following the right strategy for testing? For that, you need to stick to some basic
testing principles. Here are the common seven testing principles that are widely
practiced in the software industry.
To understand this, consider a scenario where you are moving a file from folder A
to Folder B.
Apart from the usual scenarios, you can also test the following conditions
And the million dollar question is, how do you determine this risk?
In your opinion, Which operation is most likely to cause your Operating system to
fail?
I am sure most of you would have guessed, Opening 10 different application all at
the same time.
So if you were testing this Operating system, you would realize that defects are
likely to be found in multi-tasking activity and need to be tested thoroughly which
brings us to our next principle Defect Clustering
2) Defect Clustering
Defect Clustering which states that a small number of modules contain most of the
defects detected. This is the application of the Pareto Principle to software testing:
approximately 80% of the problems are found in 20% of the modules.
By experience, you can identify such risky modules. But this approach has its own
problems
If the same tests are repeated over and over again, eventually the same test cases
will no longer find new bugs.
3) Pesticide Paradox
Repetitive use of the same pesticide mix to eradicate insects during farming will
over time lead to the insects developing resistance to the pesticide Thereby
ineffective of pesticides on insects. The same applies to software testing. If the
same set of repetitive tests are conducted, the method will be useless for
discovering new defects.
To overcome this, the test cases need to be regularly reviewed & revised, adding
new & different test cases to help find more defects.
Testers cannot simply depend on existing test techniques. He must look out
continually to improve the existing methods to make testing more effective. But
even after all this sweat & hard work in testing, you can never claim your product is
bug-free. To drive home this point, let’s see this video of the public launch of
Windows 98
You think a company like MICROSOFT would not have tested their OS thoroughly &
would risk their reputation just to see their OS crashing during its public launch!
But what if, you work extra hard, taking all precautions & make your software
product 99% bug-free. And the software does not meet the needs & requirements
of the clients.
This leads us to our next principle, which states that- Absence of Error
To solve this problem, the next principle of testing states that Early Testing
6) Early Testing
Early Testing – Testing should start as early as possible in the Software
Development Life Cycle. So that any defects in the requirements or design phase
are captured in early stages. It is much cheaper to fix a Defect in the early stages of
testing. But how early one should start testing? It is recommended that you start
finding the bug the moment the requirements are defined. More on this principle in
a later training tutorial.
But learning testing principles is just like learning to drive for the first time.
Initially, while you learn to drive, you pay attention to each and everything like gear
shifts, speed, clutch handling, etc. But with experience, you just focus on driving
the rest comes naturally. Such that you even hold conversations with other
passengers in the car.
Same is true for testing principles. Experienced testers have internalized these
principles to a level that they apply them even without thinking. Hence the myth
that the principles are not used in practice is simply not true.