want to contact me login to

16
Software Testing

Upload: nazeer-pasha

Post on 13-May-2015

472 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: want to contact me login to

Software Testing

Page 2: want to contact me login to

What is Testing?

• A process of demonstrating that errors are not

present

• A process of establishing confidence that a

program does what it is supposed to do.

• A process of finding errors in a program

Page 3: want to contact me login to

Objectives of Testing

To greatest possible number of errors with a

manageable find the amount of efforts applied

over a realistic time span with a finite number of

test cases.

Page 4: want to contact me login to

What Does Software testing Reveal?

errorserrors

requirements conformance or the lack of itrequirements conformance or the lack of it

performanceperformance

an indicationan indicationof qualityof quality

Page 5: want to contact me login to

Testing – Why?

• Contribute to the delivery of higher quality

software product

• Undetected errors are costly to detect at a

later stage

• Satisfied users and to lower maintenance cost

Page 6: want to contact me login to

Testing – How?

• By examining the internal structures and

design

• By examining the functional user interface

• By examining the design objectives

• By examining the users’ requirements

• By executing code

Page 7: want to contact me login to

Verification and Validation

Verification refers to a set of activities that

ensure that software correctly implements a

specific function.

Validation refers to a different set of activities

that ensure that the software that has been

built is traceable to customer requirements.

Page 8: want to contact me login to

Verification and Validation

Verification – Are we building the product right?

Validation – Are we building the right product?

Page 9: want to contact me login to

Test Case

• “A set of test inputs, execution conditions,

and expected results developed for a

particular objective, such as to exercise a

particular program path or to verify

compliance with a specific requirement.”

(…IEEE)

In other words, a planned sequence of actions

(with the objective of finding errors)

Page 10: want to contact me login to

A Good Test-Case

• Has a high probability of detecting error(s)

• Test cases help us discover information (.. Kaner)

e.g. of information objectives

• Help managers make ship / no-ship decisions.

• Minimize technical support costs.

• Assess conformance to specification.

• Minimize safety-related lawsuit risk.

• Verify correctness of the product.

Page 11: want to contact me login to

Other Terminologies

Test Scenarios - Explains which test cases to process

and how to process them.

Test Suite – A set of individual test cases/scenarios that

are executed as a package, in a particular sequence.

Test Cycle – A test cycle consists of a series of test

suites which comprises a complete execution set from

the initial setup to the the test environment through

reporting and clean up.

Page 12: want to contact me login to

What Do We Test

Fundamental issues : Functions, Portability, Usability, Reliability, Security, Availability

Real-time issues : Timing, Capacity, Throughput,Performance

System management issues: Overload, Backup & Recovery,

Start-up and shut-down

Purchased software Operating systems, DBMS, Communications, Graphics

Page 13: want to contact me login to

Testing Techniques (Coverage)

White Box Test Techniques• Code Coverage

• Statement Coverage • Decision Coverage• Condition Coverage

• Code complexity• Memory Leakage

Black Box Test Techniques•Equivalence Partitioning •Cause-Effect Graphing• Boundary Value Analysis • Use Case / UMl• Error Guessing

Page 14: want to contact me login to

Test Case Design

• Complete testing is impossible.

• The key issue of testing is to design test cases

that has the highest probability of detecting

the maximum errors.

• One can develop a reasonably rigorous test by

using certain black box oriented test case

design methods and then supplementing them

with those of white box.

Page 15: want to contact me login to

Black Box Test Techniques

• Black box is data-driven, or input/output-driven

testing

• The Test Engineer is completely unconcerned about

the internal behavior and structure of program

• Black box testing is also known as behavioral,

functional, opaque-box and closed-box.

Input Output

Page 16: want to contact me login to

White Box Test Techniques

• White Box Test Techniques

• Code Coverage

Statement Coverage

Decision Coverage

Condition Coverage

• Code complexity

• Memory Leakage