18
1 Software Testing & Quality Assurance Created by: Paulo Alencar

Software Testing & Quality Assurance Created by: Paulo Alencar

  • Upload
    sileas

  • View
    70

  • Download
    1

Embed Size (px)

DESCRIPTION

Software Testing & Quality Assurance Created by: Paulo Alencar. Welcome. Welcome to the Software Testing and Quality Assurance course Demanding, challenging and rewarding course A glimpse of what software testing in theory and practice is all about. Outline for today. Introduction - PowerPoint PPT Presentation

Citation preview

Page 1: Software Testing &  Quality Assurance Created by: Paulo Alencar

1

Software Testing & Quality Assurance

Created by: Paulo Alencar

Page 2: Software Testing &  Quality Assurance Created by: Paulo Alencar

2

Welcome

• Welcome to the Software Testing and Quality Assurance course

• Demanding, challenging and rewarding course• A glimpse of what software testing in theory and

practice is all about

Page 3: Software Testing &  Quality Assurance Created by: Paulo Alencar

3

Outline for today

Introduction

• Course description

• Software Testing Basics

Page 4: Software Testing &  Quality Assurance Created by: Paulo Alencar

4

Course Resources

• Schedule• Lecture notes & slides• Recommended book

– Software Testing A Craftsman's Approach4th edition, Paul C. Jorgensen, CRC Press

• Project description

Page 5: Software Testing &  Quality Assurance Created by: Paulo Alencar

5

Project component

• Design and implement software enhancements and testing

• Groups of 4 • 30% of total grade• Two parts:

– System Enhancements• Requirements• Design• Implementation

– Testing• Black Box• White Box

Page 6: Software Testing &  Quality Assurance Created by: Paulo Alencar

6

Goals of this course

• Become familiar with software testing and quality assurance concepts and methods

• Learn how to design and plan software testing activities

• Experience software testing in a project that uses several components

Note:– “Scratching the surface of software testing and QA”– “Fitting you to become an amateur software tester”

Page 7: Software Testing &  Quality Assurance Created by: Paulo Alencar

7

Course outline

Unit 1: Overview of Software Testing (Chapter 1-2)• Unit 2: Mathematics for S/W Testers (Chapters 3-4)• Unit 3: Black Box / Functional Testing (Chapters 5-7)• Unit 4: White Box / Structural Testing (Chapters 8-12)• Unit 5: Integration and System Testing (Chapter 13-14)• Unit 6: Object-oriented Testing (Chapter 15)• Unit 7: Test Automation

Page 8: Software Testing &  Quality Assurance Created by: Paulo Alencar

8

Outline for today

• Introduction

• Course descriptionSoftware testing basics

Page 9: Software Testing &  Quality Assurance Created by: Paulo Alencar

9

MotivationSoftware problems and related faults:

• Ariane 5 rocket – cost $500M Data conversion (64-bit to 16-bit format)

• Therac 25 – cost 6 livesOverdosing patients during radiation

• Mars missions – orbital explores & polar lander – cost $300MMixture of pounds and kilograms

• NASA Mariner 1 probe –Period instead of a comma in FORTRAN do-loop

• AT&T long distance service fails for 9 hoursWrong break statement in C-code

• USS Yorktow cruiserInput division by zero

Page 10: Software Testing &  Quality Assurance Created by: Paulo Alencar

10

Software Lifecycle

• Requirements phase• Analysis phase• Design phase (System and Object)• Implementation phase• Testing phase• Integration phase• Maintenance phase• Retirement

Page 11: Software Testing &  Quality Assurance Created by: Paulo Alencar

11

Software Lifecycle Activities

Subsystems

Structured By

class...class...class...

SourceCode

Implemented By

Solution Domain Objects

Realized By

SystemDesign

ObjectDesign

Implemen-tation

Testing

Application

Domain Objects

Expressed in Terms Of

Test Cases

?

Verified By

class....?

RequirementsElicitation

Use CaseModel

Analysis

...and their models

Page 12: Software Testing &  Quality Assurance Created by: Paulo Alencar

12

Software Testing: Definition

“The process of devising a set of inputs to a given piece of software that will cause the software to exercise some

portion of its code.

The developer of the software can then check that the results produced by the software are in accord with his or her

expectations.”

www.reactive-systems.com/esda-glossary.msp

Page 13: Software Testing &  Quality Assurance Created by: Paulo Alencar

13

A Testing CycleAlthough testing varies between organizations, there is a cycle

to testing:

1. Requirements Analysis: Testing should begin in the requirements phase of the software life cycle (SDLC).

2. Design Analysis: During the design phase, testers work with developers in determining what aspects of a design are testable and under what parameter those testers work.

3. Test Planning: Test Strategy, Test Plan(s), Test Bed creation. 4. Test Development: Test Procedures, Test Scenarios, Test Cases,

Test Scripts to use in testing software. 5. Test Execution: Testers execute the software based on the plans and

tests and report any errors found to the development team. 6. Test Reporting: Once testing is completed, testers generate metrics

and make final reports on their test effort and whether or not the software tested is ready for release.

7. Retesting the Defects

Page 14: Software Testing &  Quality Assurance Created by: Paulo Alencar

14

Some Software Testing Objectives

• Find as many defects as possible.• Find important problems fast.• Assess perceived quality risks.• Advise about perceived project risks.• Advise about perceived quality.• Certify to a given standard.• Assess conformance to a specification

(requirements, design, or product claims).

Page 15: Software Testing &  Quality Assurance Created by: Paulo Alencar

15

Software Quality Assurance: Definition

“The function of software quality that assures that the standards, processes, and procedures are appropriate for

the project and are correctly implemented.”

www.hq.nasa.gov/office/codeq/software/umbrella_defs.htm

Page 16: Software Testing &  Quality Assurance Created by: Paulo Alencar

16

Software Maintenance: Definitions

Software Evolution:

“A continuous change from a lesser, simpler, or worse state to a higher or better state [for a software system]”

www.cc.gatech.edu/reverse/glossary.htm

Software Maintenance:

“Software maintenance is one of the activities in software engineering, and is the process of enhancing, porting, and

optimizing deployed software, as well as remedying defects”

Page 17: Software Testing &  Quality Assurance Created by: Paulo Alencar

17

Average cost distribution(1976–1981 data)

Object-Oriented and Classical Software Engineer, 5th Edition, Schach (2002)

Page 18: Software Testing &  Quality Assurance Created by: Paulo Alencar

18

Summary

• Testing is an important part of the Software Lifecycle

• Highly technical and challenging• It is affected by the selected process• Quality Assurance is paramount both for mission

critical and non-critical systems• Software Evolution aims to keep systems

operational when environment changes occur