Chapter 2:types of Testing
Chapter 2:types of Testing
Of Testing
White-box testing
White-box testing (also known as clear box
testing, glass box testing, transparent box
testing, and structural testing) is a method of
testing software that tests internal structures
or workings of an application.
In white-box testing an internal perspective
quality issues.
Disadvantages Of Static Testing
Demand great amount of time when done
manually
Automated tools works with only few
programming languages
Automated tools may provide false positives
document.
Study and discuss the validity of possible
interchanging information.
Technical Review
technical expert.
Goals of technical review
The goal is to evaluate the value of technical
concept in the project environment.
Build the consistency in the use and
1 0 0 0
2 0 1 1
3 1 0 1
4 1 1 1
02. {
03. int i,j,k;
06. {
07. k = p[i];
08. j = 1;
10. p[j] = k;
11. }
12. }
Flow graph notation for a program:
Flow graph for this program will be
Example :
IF A = 10 THEN
IF B > C THEN
A=B
ELSE
A=C
ENDIF
ENDIF
Print A
Print B
Print C
Advantages of Structural Testing:
automated.
Disadvantages of Structural Testing:
EXAMPLE :
A tester, without knowledge of the internal structures
of a website, tests the web pages by using a browser;
providing inputs (clicks, keystrokes) and verifying the
outputs against the expected outcome.
BLACK BOX TESTING ADVANTAGES
Tests are done from a user’s point of view and
will help in exposing discrepancies in the
specifications.
Tester need not know programming languages
or how the software has been implemented.
Tests can be conducted by a body independent
from the developers, allowing for an objective
perspective and the avoidance of developer-
bias.
Test cases can be designed as soon as the
specifications are complete.
BLACK BOX TESTING DISADVANTAGES
Only a small number of possible inputs can be
tested and many program paths will be left
untested.
Without clear specifications, which is the
4.Decision Tables
5. Equivalence Partitioning
business rules
5. Equivalence Partitioning
1.Any Number greater than 10 entered in the reservation column (let say 11) is
considered invalid.
2.Any Number less than 1 that is 0 or below, then it is considered invalid.
3.Numbers 1 to 10 are considered valid
4.Any 3 Digit Number say 100 is invalid.
6.User Documentation Testing
It is a type of non-functional testing.
Any written or pictorial information describing, defining, specifying, reporting,
or certifying activities, requirements, procedures, or results’. Documentation is
as important to a product’s success as the product itself. If the documentation
is poor, non-existent, or wrong, it reflects on the quality of the product and the
vendor.
As per the IEEE Documentation describing plans for, or results of, the testing of
documentation is not right: there will be major and costly problems. The
documentation can be tested in a number of different ways to many different
degrees of complexity. These range from running the documents through a
spelling and grammar checking device, to manually reviewing the
documentation to remove any ambiguity or inconsistency.
Documentation testing can start at the very beginning of the software process
and hence save large amounts of money, since the earlier a defect is found the
less it will cost to be fixed.
BENEFITS
Removes Uncertainties
Offer good training material to fresher’s
Good Marketing Strategy
Good Coverage and Estimating the Project’s
Deadline
7.Graph Based Testing