Verification vs Validation: Do You know the Difference?

Mar 20, 2018

In the world of testing, the differences between Verification and Validation can cause confusion. While the distinction may seem trivial, the two fulfill very separate purposes.

Imagine being asked to do a verification on a certain project but hold off on the validation. Our first question might be how are they different? When would you start, and what would that work look like?

If the difference between them is a little confusing, you’re not alone –countless development and testing professionals are in the same boat. So, whether you are completely confused or just fuzzy on the details, hopefully we’ll make it crystal clear.

The differences between them are significant.

Verification

Software Engineering standards known as IEEE-STD-610 defines “Verification” as:

“A test of a system to prove that it meets all its specified requirements at a particular stage of its development.”

The last phrase of the definition, “at a particular stage of its development” is the key part of verification. Before coding begins on any application, a set of specifications will have been outlined. The verification of development refers to checking application that is still being developed to ensure that it adheres to these specifications. These checks could be something as simple as reading the specifications and comparing them against the code logic to make sure they line up. The verification process will include activities like code reviews, walkthroughs, inspections but little, if any, actual testing.

Consider someone driving to a distant location using directions. Those directions would be regularly checked and compared against the various landmarks along the route. For example, head west until you cross the river, turn north at the store and so forth.

With instructions like this, the driver is verifying the route against the directions that were provided.

Here’s another example. During the development of a spreadsheet, the basic mathematical functions need to be verified that their individual calculations are accurate before they can be applied to more complex code and eventually formulas. This type of testing is done alongside of the development to ensure that each new step meets the predefined specifications. The value of verification testing is realized when development is complete, and the application functions as expected.

This type of testing helps to shift the identification and resolution of any bugs further left (earlier on in the application lifecycle). This means significant cost and time savings on the overall project. The reasoning is simple – it is far easier and more efficient to fix a small bug as it’s created, than later on when hundreds of lines of code have to be searched to find the same issue.

Validation

Validation, on the other hand, is quite different and serves a very different purpose. The definition of Validation according to IEEE-STD-610 is:

“An activity that ensures that an end product stakeholder’s true needs and expectations are met.”

Whereas verification takes place while the product is still under development, validation is performed upon the completion of a given module, or even the completion of the entire application. Validation focuses on ensuring that the stakeholder gets the product they wanted.

The Validation effort doesn’t care how you got there, only that you have arrived, and that everything is as expected. Going back to our example of the driver: if your planned destination was the beach, to validate your arrival at this location, you might ask some questions:

  • Can I feel sand underfoot?

  • Can I see the ocean and waves?

  • Does this location meet my expectation of a beach?

These type of validation tests ensures only that your current location meets your expected criteria.

Using our example of creating a spreadsheet, once the development of the spreadsheet is complete, we would run validation tests to ensure that the finished product will meet the needs of the customer.

This is high-level testing and typically consists of regression testing, user testing, performance testing and so on.

Summary


Now, let’s go back to the original question. If you were asked to do a verification on a certain project but hold off on the validation, the answer now would be much clearer.

To start with, you would pull the original project specifications and then proceed to do a code review, walkthrough or code inspection to ensure that the pieces are being created as planned. Then, once the application development is completed, you would validate that the end product is in fact what the customer had requested.

This is one of those scenarios where words get easily confused because they look similar. So, to further assist in keeping them straight, we’ve created the chart below for a quick reference. Feel free to print it and pin it up over your desk.

 VerificationValidationAs per IEEE-STD-610: Definition:“A test of a system to prove that it meets all its specified requirements at a particular stage of its development.”“An activity that ensures that an end product stakeholder’s true needs and expectations are met.”The Process of:Ensuring we are developing the product according to specifications.Testing and validating the actual product to ensure we have developed it correctly.Involves:Little or no code executionCode ExecutionActivities Include:Reviews, Walkthroughs, Inspections, Desk-checking, etc.Black box testing, white box testing, non-functional testing, etc.Activity Type:Low-levelHigh-levelMethod/Process Type:A static method of checking documents and filesA dynamic process of testing the real product.Target:Application, software architecture, specifications, complete design, high level and database design, etc.Actual productAnswers the Question:Am I building the product right?Am I building the right product?

Verifying or Validating?

Regardless of whether you are verifying, validating or somewhere between the two, Plutora is a value stream management solution that will help you track test metrics across the entire enterprise. User information, versions, builds, test environments, test cases, requirements coverage, change management, defect management, automation, audit trails and even results and events from your favorite integrated tools – everything is captured to a data mart that decision makers can confidently use to release the product to production.

Streamline your software delivery with Plutora!

Streamline your software delivery with Plutora!

Imagine a single dashboard managing all enterprise software delivery, boosting visibility, efficiency, and cutting costs. Experience Plutora's solutions today!

Imagine a single dashboard managing all enterprise software delivery, boosting visibility, efficiency, and cutting costs. Experience Plutora's solutions today!

Download our free eBook

Mastering Software Delivery with Value Stream Management

Discover the key to optimizing your software delivery process with our comprehensive eBook on Value Stream Management (VSM). Learn how leading organizations are streamlining their software pipelines, enhancing quality, and accelerating delivery.

Deliver Better Software Faster with Plutora

Deliver Better Software Faster with Plutora

Deliver Better Software Faster with Plutora