CS 5150 Software Engineering

Slides:



Advertisements
Similar presentations
Lecture 8: Testing, Verification and Validation
Advertisements

1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 21 Reliability 3.
Chapter 4 Quality Assurance in Context
CS CS 5150 Software Engineering Lecture 21 Reliability 2.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 23 Slide 1 Software testing.
CS CS 5150 Software Engineering Lecture 22 Reliability 2.
CS CS 5150 Software Engineering Lecture 22 Reliability 3.
1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 24 People 2.
1 CS 501 Spring 2007 CS 501: Software Engineering Lecture 21 Reliability 3.
1 CS 501 Spring 2007 CS 501: Software Engineering Lecture 26 People 1.
CS CS 5150 Software Engineering Lecture 25 People 1.
1 CS 501 Spring 2007 CS 501: Software Engineering Lecture 20 Reliability 2.
CS CS 5150 Software Engineering Lecture 21 Reliability 3.
1 CS 501 Spring 2006 CS 501: Software Engineering Lecture 20 Reliability 2.
CS 501: Software Engineering Fall 2000 Lecture 21 Dependable Systems I Reliability.
CS 501: Software Engineering Fall 2000 Lecture 22 Dependable Systems II Validation and Verification.
1 CS 501 Spring 2008 CS 501: Software Engineering Lecture 21 Reliability 3.
H-1 Network Management Network management is the process of controlling a complex data network to maximize its efficiency and productivity The overall.
CSCI 5801: Software Engineering
Software Testing Verification and validation planning Software inspections Software Inspection vs. Testing Automated static analysis Cleanroom software.
1 Software Testing (Part-II) Lecture Software Testing Software Testing is the process of finding the bugs in a software. It helps in Verifying and.
CompSci 230 Software Design and Construction
University of Palestine software engineering department Testing of Software Systems Fundamentals of testing instructor: Tasneem Darwish.
CS 501: Software Engineering Fall 1999 Lecture 16 Verification and Validation.
OHTO -99 SOFTWARE ENGINEERING “SOFTWARE PRODUCT QUALITY” Today: - Software quality - Quality Components - ”Good” software properties.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 23 Reliability III.
Dr. Tom WayCSC Testing and Test-Driven Development CSC 4700 Software Engineering Based on Sommerville slides.
University of Palestine software engineering department Testing of Software Systems Testing throughout the software life cycle instructor: Tasneem.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 22 Slide 1 Software Verification, Validation and Testing.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 20 Slide 1 Critical systems development 3.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 24 Delivering the System.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 22 Reliability II.
Chapter 8 Lecture 1 Software Testing. Program testing Testing is intended to show that a program does what it is intended to do and to discover program.
1 SWE 513: Software Engineering People II. 2 Future Experience What will you be doing one year from now? Ten years from now?
CS 360 Lecture 17.  Software reliability:  The probability that a given system will operate without failure under given environmental conditions for.
Chapter 1: Fundamental of Testing Systems Testing & Evaluation (MNN1063)
Software Engineering1  Verification: The software should conform to its specification  Validation: The software should do what the user really requires.
Requirements Engineering Requirements Engineering in Agile Methods Lecture-28.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 26 Delivering the System.
HNDIT23082 Lecture 09:Software Testing. Validations and Verification Validation and verification ( V & V ) is the name given to the checking and analysis.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 23 Slide 1 Software testing.
CS CS 5150 Software Engineering Lecture 26 Professionalism.
CS 5150 Software Engineering Lecture 22 Reliability 3.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 21 Reliability II.
Lecturer: Eng. Mohamed Adam Isak PH.D Researcher in CS M.Sc. and B.Sc. of Information Technology Engineering, Lecturer in University of Somalia and Mogadishu.
Week # 4 Quality Assurance Software Quality Engineering 1.
What is a software? Computer Software, or just Software, is the collection of computer programs and related data that provide the instructions telling.
CS223: Software Engineering Lecture 25: Software Testing.
1 CS 501 Spring 2004 CS 501: Software Engineering Lecture 20 Reliability 2.
SOFTWARE TESTING Date: 29-Dec-2016 By: Ram Karthick.
Software Engineering (CSI 321)
Chapter 18 Maintaining Information Systems
Chapter 8 – Software Testing
Chapter 18 Software Testing Strategies
Software testing strategies 2
Lecture 09:Software Testing
Chapter 2 – Software Processes
Testing and Test-Driven Development CSC 4700 Software Engineering
Fault Tolerance Distributed Web-based Systems
Software testing.
Critical Systems Development
Software Testing & Quality Management
Baisc Of Software Testing
Welcome to Corporate Training -1
Software System Testing
Software Verification, Validation, and Acceptance Testing
System Testing.
CS310 Software Engineering Dr.Doaa Sami Khafaga
CS 501: Software Engineering
Chapter 7 Software Testing.
Presentation transcript:

CS 5150 Software Engineering Lecture 21 Reliability 3

Administration Final presentations Sign up for your presentations now.

Failures and Faults Failure: Software does not deliver the service expected by the user (e.g., mistake in requirements, confusing user interface) Fault (BUG): Programming or design error whereby the delivered system does not conform to specification (e.g., coding error, interface error)

Failure of Requirements An actual example • The head of an organization is not paid his salary because it is greater than the maximum allowed by the program. (Requirements problem.)

Terminology Fault avoidance Build systems with the objective of creating fault-free (bug-free) software Fault tolerance Build systems that continue to operate when faults (bugs) occur Fault detection (testing and validation) Detect faults (bugs) before the system is put into operation or when discovered after release.

Defensive Programming Murphy's Law: If anything can go wrong, it will. Defensive Programming: • Redundant code is incorporated to check system state after modifications. • Implicit assumptions are tested explicitly. • Risky programming constructs are avoided.

Fault Tolerance Aim: A system that continues to operate when problems occur. Examples: • Invalid input data (e.g., in a data processing application) • Overload (e.g., in a networked system) • Hardware failure (e.g., in a control system) General Approach: • Failure detection • Damage assessment • Fault recovery • Fault repair

Fault Tolerance: Recovery Backward Recovery • Record system state at specific events (checkpoints). After failure, recreate state at last checkpoint. • Combine checkpoints with system log (audit trail of transactions) that allows transactions from last checkpoint to be repeated automatically. Recovery Software is Difficult to Test Example After an entire network is hit by lightning, the restart crashes because of overload. (Problem of incremental growth.)

Fixing Bugs Isolate the bug Intermittent --> repeatable Complex example --> simple example Understand the bug and its context Root cause Dependencies Structural interactions Fix the bug Design changes Documentation changes Code changes

Moving the Bugs Around Fixing bugs is an error-prone process! • When you fix a bug, fix its environment • Bug fixes need static and dynamic testing • Repeat all tests that have the slightest relevance (regression testing) Bugs have a habit of returning! • When a bug is fixed, add the failure case to the test suite for future regression testing. Persistence Most people work around problems. The best people track them down and fix them!

Difficult Bugs Some bugs may be extremely difficult to track down and isolate. This is particularly true of intermittent failures. • A large central computer stops a few times every month with no dump or other diagnostic. • A database load dies after running for several days with no diagnostics. • An image processing system runs correctly, but uses huge amounts of memory. Such problems may require months of effort to track down. For a fictional example, see: Ellen Ullman, The Bug: a Novel, (Doubleday 2003).

Tracking Down a Difficult Bugs: The Heisenbug

Tracking Down a Difficult Bugs: Make3D cv::fastmalloc Memory usage by function

Bugs in System Software Even system software from good manufacturers may contain bugs: • Built-in function in Fortran run-time environment (e0 = 0) • The string-to-number function that was very slow with integers • The preload system with the memory leak

Bugs in Hardware Three times in my career I have encountered hardware bugs: • The microfilm plotter with the missing byte (1:1023) • Microcode for virtual memory management • The Sun page fault that IBM paid to fix Each problem was actually a bug in embedded software/firmware

Deciding whether to Fix a Bug: Creating a Problem for Customers Sometimes customers will build applications that rely upon a bug. Fixing the bug will break the applications. • An application crashes with an emulator, even though the emulator is bug free. (Compensating bug problem.) • The graphics package with rotation about the Z-axis in the wrong direction. • The 3-pixel rendering problem with Internet Explorer. With each of these bugs the code was easy to fix, but releasing it would cause problems for existing programs.

Deciding whether to Fix a Bug: Bugs and Features Validation: Are we building the right product? Verification: Are we building the product right? It is sometimes difficult to distinguish between the two. That's not a bug. That's a feature! Often users will report that a program behaves in a manner that they consider wrong, even though it is behaving as intended. The decision whether this is a bug should be made by the client not by by the developers.

Reliability: Adapting Small Teams to Large Projects Small teams and small projects have advantages for reliability: • Small group communication cuts need for intermediate documentation, yet reduces misunderstanding. • Small projects are easier to test and make reliable. • Small projects have shorter development cycles. Mistakes in requirements are less likely and less expensive to fix. • When one project is completed it is easier to plan for the next. Improved reliability is one of the reasons that Agile development has become popular over the past few years.

An Old Question: Safety Critical Software A software system fails and several lives are lost. An inquiry discovers that the test plan did not consider the case that caused the failure. Who is responsible? (a) The testers for not noticing the missing cases? (b) The test planners for not writing the complete test plan? (c) The managers for not having checked the test plan? (d) The client for not having done a thorough acceptance test?

Software Developers and Testers: Responsibilities • Carrying out assigned tasks thoroughly and in a professional manner • Being committed to the entire project -- not just tasks that have been assigned • Resisting pressures to cut corners on vital tasks • Alerting colleagues and management to potential problems early

Computing Management Responsibility • Organization culture that expects quality • Appointment of suitably qualified people to vital tasks (e.g., testing safety-critical software) • Establishing and overseeing the software development process • Providing time and incentives that encourage quality work • Working closely with the client Accepting responsibility for work of team

Client Responsibility • Organization culture that expects quality • Appointment of suitably qualified people to vital tasks (e.g., technical team that will build a critical system) • Reviewing requirements and design carefully • Establishing and overseeing the acceptance process • Providing time and incentives that encourage quality work • Working closely with the software team Accepting responsibility for the resulting product