Академический Документы
Профессиональный Документы
Культура Документы
TESTING
PREPARED BY : HETA J DESAI - BCA -SDJIC
TESTING
Testing is executing a program with an indent
to finding error/fault and failure.
IEEE defines testing as An examination of the
behavior of the program by executing on
sample data set.
OBJECTIVES
Uncover as many as errors (or bugs) as possible in a given product.
Demonstrate a given software product matching its requirement
specifications.
Testing Principles
Davis suggests a set of testing principles.
1. All tests should be traceable to customer
requirements. As we have seen, the objective
of software testing is to uncover errors. It
follows that the most severe defects (from
the customers point of view) are those that
cause the program to fail to meet its
requirements.
PREPARED BY : HETA J DESAI - BCA -SDJIC
6.
10
Testing Fundamental
11
12
2.Test oracle
Test oracle is a method, different from
program itself, that is use to test out the
output produced by any program or module
for test cases. Test oracle are essential for
testing.
As testing any program or module test case
are submitted to oracle and program under
testing. The output of two is than compared
PREPARED BY : HETA J DESAI - BCA -SDJIC
13
3.Test plan
It is a document that describes the objectives ,
scope , approach and focus of software testing
effort.
Test plan are formed using following inputs :
1.Project plan
2.Requirement Document
3.Software design Document
14
4.Test Case
IEEE defines test case as set of input values,
execution precondition ,expected result and
execution post conditions developed for a
particular objective or test condition , such as
to exercise a particular program path or to
verify compliance with a specific requirement.
15
16
17
18
19
TESTING PROCESS
20
Testing strategies
21
Levels of testing
22
input
events
23
Tests
Derives
Component
code
Test
outputs
24
25
26
27
Disadvantages
Do not full fill all testing goals since it only
focus on examination of code.
Many other system problems may left out
Test case needs to be changed for
implementation of changes
28
29
30
Independent path
A path through the program which specifies a
new condition or a minimum of a one new set
of processing statement is known as
independent path.
31
Cyclomatic Complexity
It is used to calculate number of independent
path present in the program. It is software
matric that provides a quantitative measures
of the logical complexity of the program.
32
33
34
Condition testing
All logical condition contained in the program
module should be tested. It examines logical
conditions.
EX : <,>,AND ,OR
35
36
37
38
Category of errors
In correct or missing functions
Interface errors
Errors in data structure or external
database access
Behavioral performance error
Initialization and termination errors
PREPARED BY : HETA J DESAI - BCA -SDJIC
39
Advantages
Tester can be non-technical
Used to verify contradiction in actual
statement and specifications
40
Disadvantages
Test input needs to be from large sample
space
Difficult to identify all possible inputs
41
42
Equivalence Class
It divides the input domain of program in to
classes of data from which test cases can be
derived.
It labels classes as valid and invalid inputs
EX : Area code : Blank or three digit no only
Password : six digit alphanumeric string
43
44
Error guessing
This is simply based on prior experience and
judgment of tester.
Guessing is the art of guessing where error
can be hidden
45
Verification vs Validation
46
Unit Testing
It is a level of the software testing
process where individual
units/components of a software/system
are tested. The purpose is to validate
that each unit of the software performs
as designed.
47
48
Due to the modular nature of the unit testing, we can tests parts of project
without waiting for others to be completed.
49
50
Integration Testing
The testing of combined parts of
an application to determine if
they function correctly together
is Integration Testing.
51
52
53
SYSTEM TESTING
The system as a whole is tested to uncover
requirement errors.
Verifies that all system elements work properly
and that overall system function and
performance has been achieved.
Types:
Alpha Testing
Beta Testing
Acceptance Testing
Performance Testing
54
* Alpha Testing
It is carried out by the test team within the developing organization
* Beta Testing
It is performed by a selected group of friendly customers.
* Acceptance Testing
It is performed by the customer to determine whether to accept or
reject the delivery of the system.
* Performance Testing
It is carried out to check whether the system meets the nonfunctional
requirements identified in the SRS document.
PREPARED BY : HETA J DESAI - BCA -SDJIC
55