Presentation is loading. Please wait.

Presentation is loading. Please wait.

This chapter is extracted from Sommerville’s slides. Textbook chapter 22 1 Chapter 8 Validation and Verification 1.

Similar presentations


Presentation on theme: "This chapter is extracted from Sommerville’s slides. Textbook chapter 22 1 Chapter 8 Validation and Verification 1."— Presentation transcript:

1 This chapter is extracted from Sommerville’s slides. Textbook chapter 22 1 Chapter 8 Validation and Verification 1

2 Objectives 2 To introduce software verification and validation and to discuss the distinction between them. To describe the program inspection process and its role in V & V. 2

3 3 Costs of Finding and Fixing Late Delays in identifying and fixing defects gets geometrically more expensive as the lifecycle progresses! $1 $10 $100 $1000 Cost of Fixing a Defect Defects Time in (Phase of) Development

4 4 What would happen to the total quality cost if validation and verification is delayed? Answer: By delaying verification and validation efforts, the cost of fixing each defect is increased, thus total quality cost is increased.

5 V and V Goals 5 Verification and validation should establish confidence that the software is fit for purpose. This does NOT mean completely free of defects. Rather, it must be good enough for its intended use and the type of use will determine the degree of confidence that is needed.

6 V & V confidence Depends on system’s purpose, user expectations and marketing environment Software function The level of confidence depends on how critical the software is to an organisation. User expectations Users may have low expectations of certain kinds of software. Marketing environment Getting a product to market early may be more important than finding defects in the program.

7 V and V Process 7 Is a whole life-cycle process - V & V must be applied at each stage in the software process. Has two principal objectives The discovery of defects in a system; The assessment of whether or not the system is useful and useable in an operational situation.

8 What’s the difference? 8 Verification "Are we building the product right”. The software should conform to its specification. Validation "Are we building the right product”. The software should do what the user really requires. (Fit for use)

9 Verification 9 Verification is any checking process conducted on software artifacts in an attempt to determine if they work as specified by the designers of the system. Includes reviews, inspections, walkthroughs, unit testing and integration testing.

10 Validation 10 Validation is the process of evaluating software artifacts during the software development process in an attempt to determine if the system works as required by the customers. Includes program reviews, system testing, customer acceptance testing.

11 A comparison 11 Verification Main purpose is to detect defects in the artifacts of the system under development. Validation Main purpose is to show that the system under development meets user needs, requirements, and expectations.

12 V and V Techniques 12 Techniques Static Methods Techniques applied to artifacts without execution. Inspections and Reviews Dynamic Methods Techniques applied to artifacts through execution. Testing

13 Static and Dynamic V&V 13

14 Inspections or Reviews 14 Concerned with analysis of the static system representation to discover problems (static verification) May be supplement by tool-based document and code analysis

15 Inspections 15 These involve people examining the source representation with the aim of discovering anomalies and defects. (using checklists) Inspections do not require execution of a system so may be used before implementation. They may be applied to any representation of the system such as the requirements or design. They have been shown to be an effective technique for discovering program errors.

16 Testing 16 Concerned with exercising and observing product behaviour (dynamic verification) The system is executed with test data and its operational behaviour is observed

17 Testing 17 Can reveal the presence of errors NOT their absence. The only validation technique for non-functional requirements as the software has to be executed to see how it behaves. Should be used in conjunction with static verification to provide full V&V coverage.

18 Types of Testing 18 Defect testing & Validation testing What’s the difference? What’s a successful defect test? And what’s a successful validation test? ◦ Tests designed to discover system defects. Intended to show that the software meets its requirements. ◦ A successful defect test is one which reveals the presence of defects in a system. ◦ Covered in Chapter 10 A successful test is one that shows that a requirements has been properly implemented.

19 Defect Testing and Debugging 19 What do you think is the difference?

20 A comparison 20 Testing Concerned with establishing the existence of defects in a program. Debugging Concerned with locating and repairing errors.

21 The Debugging Process 21

22 Validation and Verification Planning 22 Careful planning is required to get the most out of testing and inspection processes. Planning should start early in the development process. The plan should identify the balance between static verification and testing. Test planning is about defining standards for the testing process rather than describing product tests.

23 The V-Model of Development 23

24 Advantages of Inspections over Testing 24 Many different defects may be discovered in a single inspection. In testing, one defect,may mask another (interaction between errors) so several executions are required. Incomplete versions of the software can be inspected without additional costs. Inspections consider broader SW quality attributes such as compliance with standards, poor programming style, inappropriate algorithms, etc.

25 Inspections and Testing 25 Inspections and testing are complementary and not opposing verification techniques. Both should be used during the V & V process. Inspections can check conformance with a specification but not conformance with the customer’s real requirements. Inspections cannot check non-functional characteristics such as performance, usability, etc.

26 Reading for next lecture 26 For the next lecture, please read your assigned topic from the textbook. Chapter 23 (23.1-23.4) We will have a discussion next session and it is important that you read your section.


Download ppt "This chapter is extracted from Sommerville’s slides. Textbook chapter 22 1 Chapter 8 Validation and Verification 1."

Similar presentations


Ads by Google