White Box Testing Part 1

White Box Testing 

Software Testing

The process of identifying or catching defects in the software is called as software testing.
                                                                OR
Verifying / Testing the functionality or behaviour of an application against customer requirement specification is called as software testing.

Types of Software Testing

  1. White Box Testing
  2. Black Box Testing

NOTE

  1. There is mainly two type of testing is present. But beside these two one more type is there    that is Gray Box Testing actually it is a combination of white box and black box testing.
  2. White box testing is also called as open box testing, glass box testing, transparent testing, structural testing and mutation testing.
  3. Black box testing is also called as closed box testing, functionality testing and behavioural testing.

In how many ways software can be tested ?

Software can be tested in two ways.
  1. Manual Testing
  2. Automation Testing

To do software testing programming knowledge is not required ?

  1. True
  2. False

What will happen  if  test engineer tries to fix the defect ?

  1. Chances are there test engineer will utilize testing time in fixing the defect.
  2. Chances are there fixing one defect might create 'N' number of defects.
  3. Time taken to fix one defect will be more when compare to the developers.

White Box Testing


              Testing each and every line of the code is called as white box testing.
                                                             OR
Looking into the source code check whether each and every line of the code working as expected or not is called as white box testing.

Who will do White Box Testing ?

Developer will do White Box Testing.

Why it is called White Box Testing ?

Since the code is visible that's why it is called white box testing.

What do you mean by fixing the defect ?

Developer will open the source code identify the wrong code and correct the code this is called fixing the defect.

Types of White Box Testing

1. Path Testing  

  1. Here developers will write the flow chart and test each and every individual path this is called path testing.
  2. It is also called as cyclomatic complexity as per international software testing qualification board (ISTQB).
White Box Testing Part 1

Advantages

  1. Developer can find the defect in the early stage itself.
  2. Developer can make sure that there are no duplicate paths.

2. Conditional Testing

  1. Here developer will test the code for logical conditions i.e. for both true and false condition this is called conditional testing.
  2. It is also called as predicate testing as per international software testing qualification board (ISTQB).
Syntax:
                    If(Condition)
                    {
                            ---        
                            ---
                    }
                 Else
                   {
                           ---
                           ---
                   }
Eg:-
         
Public static void main(String[]args)
{
int x;
if(x==10)
{
    System.out.println("The value of x is 10");
}
else if(x==30)
{
System.out.println("The value of x is 30");
}
else
{
System.out.println("Invalid input");
}
}


Previous
Next Post »