27 Principles of Software Testing - Learn With Examples
27 Principles of Software Testing - Learn With Examples
This tutorial introduces the seven basic Software Testing Principles that every Software
tester and QA professional should know.
Let’s learn the testing principles with the following video example-
Cli k h
https://www.guru99.com/software-testing-seven-principles.html if th id i t ibl 1/6
10/27/21, 10:57 PM 7 Principles of Software Testing: Learn with Examples
Click here if the video is not accessible
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
If you were to test the entire possible combinations project EXECUTION TIME & COSTS would
rise exponentially. We need certain principles and strategies to optimize the testing effort
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
https://www.guru99.com/software-testing-seven-principles.html 2/6
10/27/21, 10:57 PM
g g
7 Principles of Software Testing: Learn with Examples
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!
undiscovered defects remaining in the software but even if no defects are found, it is not a
proof of correctness.
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.
Myth: “Principles are just for reference. I will not use them in
practice ”
https://www.guru99.com/software-testing-seven-principles.html 4/6
10/27/21, 10:57 PM 7 Principles of Software Testing: Learn with Examples
practice .
This is so very untrue. Test Principles will help you create an effective Test Strategy and draft
error catching test cases.
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.
AD
Ai studii superioare tehnice?
Târgul de Cariere recrutează pentru una dintre cele
Deschideți
mai mari companii din Zalău.
About
About Us
Advertise with Us
https://www.guru99.com/software-testing-seven-principles.html 5/6