Skip to content
Related Articles
Open in App
Not now

Related Articles

Software Engineering | Seven Principles of software testing

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 30 Nov, 2022
Improve Article
Save Article

Software testing is the process of executing a program with the aim of finding the error. To make our software perform well it should be error-free. If testing is done successfully it will remove all the errors from the software. Software Testing is a process of evaluation of the software on the requirements gathered from system specifications and users. Software Testing is done at the every phase level in software development life cycle(SDLC). Can also be done at module level in the program code. Validation and Verification are two main things that are included in Software testing. also, Software Testing is very important else the software bugs can be dangerous.

Types of Software Testing:-

1. Unit Testing

2. Integration Testing

3. Regression Testing

4. Smoke Testing

5. System Testing

6. Alpha Testing

7. Beta Testing

8. Performance Testing

There are seven principles in software testing: 

  1. Testing shows the presence of defects
  2. Exhaustive testing is not possible
  3. Early testing
  4. Defect clustering
  5. Pesticide paradox
  6. Testing is context-dependent
  7. Absence of errors fallacy
  • Testing shows the presence of defects: The goal of software testing is to make the software fail. Software testing reduces the presence of defects. Software testing talks about the presence of defects and doesn’t talk about the absence of defects. Software testing can ensure that defects are present but it can not prove that software is defect-free. Even multiple testing can never ensure that software is 100% bug-free. Testing can reduce the number of defects but not remove all defects.
  • Exhaustive testing is not possible: It is the process of testing the functionality of the software in all possible inputs (valid or invalid) and pre-conditions is known as exhaustive testing. Exhaustive testing is impossible means the software can never test at every test case. It can test only some test cases and assume that the software is correct and it will produce the correct output in every test case. If the software will test every test case then it will take more cost, effort, etc., which is impractical.
  • Early Testing: To find the defect in the software, early test activity shall be started. The defect detected in the early phases of SDLC will be very less expensive. For better performance of software, software testing will start at the initial phase i.e. testing will perform at the requirement analysis phase.
  • Defect clustering: In a project, a small number of modules can contain most of the defects. Pareto Principle to software testing state that 80% of software defect comes from 20% of modules.
  • Pesticide paradox: Repeating the same test cases, again and again, will not find new bugs. So it is necessary to review the test cases and add or update test cases to find new bugs.
  • Testing is context-dependent: The testing approach depends on the context of the software developed. Different types of software need to perform different types of testing. For example, The testing of the e-commerce site is different from the testing of the Android application.
  • Absence of errors fallacy: If a built software is 99% bug-free but it does not follow the user requirement then it is unusable. It is not only necessary that software is 99% bug-free but it is also mandatory to fulfill all the customer requirements.


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!