structural and functional testing

15

Click here to load reader

Upload: himanshu-hora

Post on 18-Nov-2014

2.033 views

Category:

Education


3 download

DESCRIPTION

Structural and functional testing

TRANSCRIPT

Page 1: Structural and functional testing

STRUCTURAL AND

FUNCTIONAL TESTING

Dr. Himanshu Hora

SRMS College of Engineering & Technology

Bareilly (INDIA)

Page 2: Structural and functional testing

CONTENTS

What is testing? Goals of testing Principles of Testing Structural and Functional Testing Types of Structural and Functional Testing Limitations

Page 3: Structural and functional testing

TESTING

According to the glossary of the IEEE standardization , testing is defined as:

“The process of analyzing a software

item to detect the differences between existing and required conditions (that is, bugs) and

to evaluate the features of

the software item”

Page 4: Structural and functional testing

GOALS OF TESTING

Goal of testing:

finding faults in the software

producing a zero defect software

testing should be traceable

it should be deterministic

Page 5: Structural and functional testing

PRINCIPLES OF TESTING

Test a program to try to make it fail Start testing early

Page 6: Structural and functional testing

Testing must be done by different persons at different levels

Cont…

Page 7: Structural and functional testing

Test a program innovatively Use both static and dynamic testing

Cont…

Page 8: Structural and functional testing

STRUCTURAL TESTING

Generates test cases based on the structure of the program

Also known as white box testing

The internal structure of the program is taken into account

Page 9: Structural and functional testing

FUNCTIONAL TESTING

Generates test cases based on the functionality of the software

Also known as black box testing

The internal structure of the program is hidden from the testing process

Page 10: Structural and functional testing

Identify the functions which software is expected to perform

Treats the software as a "black box", examining functionality without any knowledge of internal implementation

Cont…

Page 11: Structural and functional testing

TYPES OF STRUCTURAL TESTING

The different types of structural testing are :

Statement coverage: all statements in the programs should be executed at least once

Branch coverage: all branches in the program should be executed at least once

Page 12: Structural and functional testing

Path coverage: all execution paths in the program should be executed at lest once

Conditional coverage: For conditional branches, this means that, we execute the TRUE branch at least once and the FALSE branch at least once

Cont…

Page 13: Structural and functional testing

TYPES OF FUNCTIONAL TESTING

The different types of functional testing are:

Equivalence class partitioning: In this approach, the domain of input values to a program is partitioned into a set of equivalent classes

Boundary value analysis: It is the analysis of the programming error that frequently occurs at the boundaries of different equivalence classes of inputs

Page 14: Structural and functional testing

LIMITATIONS

Testing can be used to show the presence of errors, but never to show their absence

Software testing does not help in finding root causes

It can only identify the known issues or errors. It gives no idea about defects still uncovered.

Page 15: Structural and functional testing

THANK YOU

Dr. Himanshu Hora

SRMS College of Engineering & Technology

Bareilly (INDIA)