Mod Iii
Mod Iii
Testing Goals
To demonstrate to the developer and
the customer that the software meets
its requirements
To discover situations in which the
behavior of the software is incorrect
and undesirable
Validation
To ensure that the software
meets the customer’s
expectations
Verification
To check that the software
meets its stated functional
and non-functional
requirements
Checks Appropriate
• argument values
• method sequence
• assertions
• Source code levels..
• Logic
COMPONENT TESTING
18PD09 SOFTWARE ENGINEERING
SYSTEM TESTING
INTEGRATION
TESTING
Techniques
1) statement coverage
2) Branch coverage
3) Path coverage
b= c * d;
d= a;
Datapath Testing
x(){
int a= 7; / * declaration of a*/
…………
while (c>5)
{
if (d < 50)
b=a*a; / * use of a*/
a=a-1; / * definition and use of a*/
…………………..
print (a);} / * use of a*/
Example : 1. a=b
2. a= a+c
DEF (1)= {a} , USES (1) = {a,b}
DEF (2) = {a} , USES (2) = {a,c}
Datapath Testing
A variable X is said to be live at statement S2 , if
X is defined at a statement S1;
There exists path from S1 to S2 not containing
any definition of X in between the path
[X, S1, S2]
• S1 and S2are statement numbers
• X in DEF(S1)
• X in USES(S2) and
• Definition of X is live at Statement S2