Software verification
Software verification is a discipline of software engineering, programming languages, and theory of computation whose goal is to assure that software satisfies the expected requirements.
Broad scope and classification
A broad definition of verification makes it related to software testing. In that case, there are two fundamental approaches to verification:- Dynamic verification, also known as experimentation, dynamic testing or, simply testing. - This is good for finding faults.
- Static verification, also known as analysis or, static testing - This is useful for proving the correctness of a program. Although it may result in false positives when there are one or more conflicts between the process a software really does and what the static verification assumes it does.
Dynamic verification (Test, experimentation)
Dynamic verification is performed during the execution of software, and dynamically checks its behavior; it is commonly known as the Test phase.Verification is a Review Process.
Depending on the scope of tests, we can categorize them in three families:
- Test in the small: a test that checks a single function or class
- Test in the large: a test that checks a group of classes, such as
- * Module test
- * Integration test
- * System test
- Acceptance test: a formal test defined to check acceptance criteria for a software
- * Functional test
- * Non functional test
Static verification (Analysis)
Static verification is the process of checking that software meets requirements by inspecting the code before it runs. For example:- Code conventions verification
- Bad practices detection
- Software metrics calculation
- Formal verification
Narrow scope
When it is defined more strictly, verification is equivalent only to static testing and it is intended to be applied to artifacts. And, validation would be equivalent to dynamic testing and intended to be applied to the running software product. Notice that requirements validation can be performed statically and dynamically.Comparison with validation
Software verification is often confused with software validation. The difference between verification and validation:- Software verification asks the question, "Are we building the product right?"; that is, does the software conform to its specifications?
- Software validation asks the question, "Are we building the right product?"; that is, does the software do what the user really requires?