Docsity

Software Quality-Software Engineering-Lecture Slides, Slides of Software Engineering

Partial preview of the text

Download Software Quality-Software Engineering-Lecture Slides and more Slides Software Engineering in PDF only on Docsity!

Software

Quality

Software

Verification

Validation

-^ VerificationDoes

the

product

meet

system

specifications?

Have

you

built

the

product

right?

-^ ValidationDoes

the

product

meet

user

expectations?

Have

you

built

the

right

product?

(Boehm)

Software

Defects

-^ From

Specification

to

Design

and

Implementation. • Gold

plating.

Software

Testing

-^ The

correct

approach

to

testing

a^ scientific

theory

is^

not

to

verify

it,

but

to

seek

to

refute

the

theory

  • that

it^

has

errors.

(Popper

The

goal

of

testing

is^

to^

expose

latent

defects

in^ a

software

system

before

it^

is^ put

to

use.

Limitations

of

the

Testing

•^ A

function

to

compare

two

strings

of

characters

for

equality.

bool

isStringEqual(char

a[],

char

b[]);

Limitations

of

the

Testing

a^

b^

Result

a^

b^

Result

“cat”

“dog”

false

“”^

“”^

true

“hen”

“hen”

true^

“hen”

“heN”

false

“”^

“^ “^

false

“”^

“ball”

false

“cat”

””^

false

“rat”

“door”

false

“^ ”^

“^ ”^

true^

“cat”

“rat”

true

Limitations

of

the

Testing

-^ In

order

to

prove

that

a^ formula

or

hypothesis

is^ incorrect

you

have

to

show

only

one

example. • To^

prove

that

a^ formula

or

hypothesis

is

correct

any

number

of

examples

are

insufficient.

Limitations

of

the

Testing

-^ These

examples

only

help

you

in^

coming

up

with

as

hypothesis

but

they

are

not

proofs

by

themselves. • They

only

enhance

your

comfort

level

in^

that

particular

hypothesis,

i.e.,

in^

your

piece

of

software.