Welcome To User Friendly Software Technical concepts

This Blog contains information of various technical concepts,The concepts are precise,informative with examples.visitors can easily understand the concepts of different technical related subjects like software Testing concepts , practice questions on sql And JMeter(Open source automation tool ) for Performance testing of an web application and about selenium tool used for functional testing of an web application

Friday, August 6, 2010

White Box testing

      White Box :

  • It is testing the source code
  • It is Done by developers.
  • It is also called Glass Box,Clear Box,Structural Box.
     After coding ,developers checks each and every line of the
program whether its working or not.


       Types

 Conditional Testing
      Here programmer runs the programs and check all
logical conditions (done by developer) in source code.
      example
      .If amount >100 & < 5000 then
                  Transfer amount
         else
                 Throw error MSG
         end if      

      Loop testing
       Here the programmer checks whether  loop is executed
       for all cycles or not
       example
       for i=1 to 10
        __    
        __
        __
        __
       Next 

      Path Testing
      This is a test for the flow of execution of the source code.
      When the program is executed ,it should run a specific path.
      Here the developer checks whether it is flowing in a particular
       path or not.


                        P1
             
              P2              P3
    
          P4     P5     P6     P7
      path testing is a structural testing strategy whose objective is to
      exercise every independent execution path through a component
      or program.
      If every independent path is executed then all statement in the
      component must have been executed at least once.


      conditional testing
       Test all the logical conditions for both true and false values
       conditions
       example
       if(cond)
       {                          when cond=true only if loop  is tested
       ---                        but not false .so for true and false program
       ---                         should be tested
        }
        else
        {
        ---
        ---
         }

Memory testing
1)Here programmer tries to eliminate the variables that are
 unused and  also eliminates unwanted lines of code to optimize
 the memory utilization system.

 2)some inbuilt functions will there in the library but developers
  may not use them and and write same function again.

 3)If there are 5 programs ,each program may contain
10 lines  so he can write a function and can call that function

white box testing means it should also reduce 
the size of the program

 Performance testing
Here programmer tries to eliminate some of the
unwanted loops and unwanted conditions which will take lesser
executing of program.

No comments:

Post a Comment

You Can Post Your Comment Here