softeare testing concepts

16
1 of 19 Software Tes ting Concepts SOFTWARE TESTING CONCEPTS

Upload: tuminh

Post on 04-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 1/16

1 of 19 Software Testing Concepts

SOFTWARE TESTINGCONCEPTS

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 2/16

2 of 19 Software Testing Concepts

SOFTWARE TESTING 

"Primary role of testing is not

demonstration of correctperformance, but the exposure

of hidden defects."

- G. J. Myers

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 3/16

3 of 19 Software Testing Concepts

• It is not sufficient todemonstrate that the software is

doing what it is supposed to do.• It is more important to

demonstrate that the software isnot doing what it is not supposedto do.

SOFTWARE TESTING 

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 4/16

4 of 19 Software Testing Concepts

TRADITIONAL DEFINITIONS OF TESTING • Establishing confidence that a program does

what it is supposed to do (Hetzel, 1973)

• Confirming that a program performs its

intended functions correctly

• THESE DEFINITIONS ARE

INCOMPLETE AND DESCRIBE ALMOST

THE OPPOSITE OF WHAT TESTING

SHOULD BE!!

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 5/16

5 of 19 Software Testing Concepts

WHAT TESTING ACTUALLY IS • Identifying the differences between

expected and actual results

• Process of executing a program (or part of it) with the intention or goal of finding

defects

• Detecting specification errors and

deviations from the specifications.

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 6/16

6 of 19 Software Testing Concept

ESSENTIALS OF SOFTWARE TESTING • TESTING IS DESTRUCTIVE PROCESS :

A CREATIVE DESTRUCTION

• If a test does not detect a defect actually

present, is it successful or unsuccessful?• Test that detects a defect is valuable

investment: it has helped in improving the

product..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 7/16

7 of 19 Software Testing Concepts

ESSENTIALS OF SOFTWARE TESTING • The quality of the test process

determines the success of testeffort

• The longer the defect remains, themore expensive it is to remove it

• Prevent defect migration by usingearly life cycle testing techniques..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 8/16

8 of 19 Software Testing Concepts

ESSENTIALS OF SOFTWARE TESTING • Use appropriate software

testing tools where required

• Testing is largely a problemof economics

• Exhaustive input testing is

impossible..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 9/16

9 of 19 Software Testing Concepts

ESSENTIALS OF SOFTWARE TESTING • Each test case should provide maximum

yield (probability that the test case will

expose a previously undetected error)

• Investment is measured by the time and

cost to produce, execute and verify test and

communicate

• Investment is limited by schedule and

budget..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 10/16

10 of 19 Software Testing Concepts

ESSENTIALS OF SOFTWARE TESTING • If sole purpose of a test is to validate

specifications were implemented, then:

» testing is an unnecessary and unproductive

activity» testing is designed to compensate for ineffectivesoftware development

• It is risky to develop software and not test it.

• High pressures to deliver software as quicklyas possible: test process must providemaximum value in shortest time..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 11/16

11 of 19 

Software Testing Concepts

ESSENTIALS OF SOFTWARE TESTING • Testing is no longer:

» after-programming evaluation

» adjunct to the SDLC

• It is:» key integral part of EACH phase of SDLC

• Highest payback comes from detecting

defects early or preventing defects:» avoid incorrect design and coding so as to avoidcorrecting defects later..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 12/16

12 of 19 

Software Testing Concepts

ESSENTIALS OF SOFTWARE TESTING • Aim is to reduce the time ‘wasted’ in defect

removal: concentrate on defect prevention.

• Misconceptions:

» Anyone can test software: no particular skill isrequired!

» Testers can test for quality at the end of aproject!

» Defects found mean blaming the developers.

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 13/16

13 of 19 

Software Testing Concepts

PRINCIPLES OF SOFTWARE TESTING

• A programmer should avoid testing his or herown program

• A team should avoid testing its own program

• Thoroughly inspect the results of each test

• Establishing that a program does what it issupposed to do is only half the battle:

»The other, more important half is

seeing whether the program is doingwhat it is not supposed to do.. 

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 14/16

14 of 19 

Software Testing Concepts

PRINCIPLES OF SOFTWARE TESTING

• Good testing MUST examine:»users’ requirements 

»design objectives

»user interface

»internal structure»AND then execute the code..

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 15/16

15 of 19 

Software Testing ConceptsSICSR MBA IT Sem 3

PRINCIPLES OF SOFTWARE TESTING

• Testing is not something done as a formalityat the end of development; it is donethroughout the SDLC to detect defects asearly as possible and prevent defect migrationto subsequent phases

• SOFTWARE TESTING =» Verification (Static Testing)

» +» Validation (Dynamic Testing).

7/31/2019 Softeare Testing Concepts

http://slidepdf.com/reader/full/softeare-testing-concepts 16/16

16 of 19 

Software Testing Concepts

ESTABLISHING A TESTING POLICY

• Good testing does not justhappen

• It must be planned

• Automation is not the onlyanswer

• Avoid ‘Anti-testing’ messages.