Page 37 - SOFTWARE TESTING & QUALITY ASSURANCE
P. 37

Software Testing and Quality Assurance




                                             A test case to check for bugs in the loops that are used in a software application,
                                             should include the following situations:
                                              1.   If the loop iterates zero times.
                                              2.   If the loop iterates once.
                                              3.   If the loop iterates twice.

                                              4.   If the loop iterates several times.
                                              5.   If the loop iterates n - 1 times.
                                              6.   If the loop iterates n times.
                                              7.   If the loop iterates n + 1 times.
                                              8.   If the loop iterates infinite times.

                          Disadvantage of White Box Testing
                           1.   It is highly impossible to check every code to find out  the hidden errors or bugs, which may
                               cause problems that lead to failure of the software.
                           2.   Skilled testers are required to carry out this test, which increases the cost.
                           3.   The time required to carry out this test for complex software is very high.
                          Both black and white box testing has its pros and cons. It is very important to understand the need for
                          the kind of testing before selecting any of them. Experts believe that, if black and white testing is carried
                          out together, it would yield better results. Therefore, the testing team must strike a balance depending
                          on the project requirement to adopt both black and white box testing to test the software.


                                      Selecting the right testing method for testing the software is very important, since both
                                      black and white box  testing methodologies have  their  merits.     Following are a  few
                                      questions which can help you in taking the right approach:
                                          1.     Who will be the users of the application?
                                          2.      Prior to release, which parts of the application must be tested and why?
                                          3.     When  do we make  significant changes to the User  Interfaces  and will this
                                             affect the actual code of the application?
                                          4.     Where is the application likely to be installed?
                                          5.     How will end users be using the application?
                                          6.     Which platforms does the application need to support after installation?



                          3.2   Static Black Box Testing and Dynamic Black Box Testing Techniques
                          Black box testing techniques  can be broadly classified into two types,  static and dynamic black box
                          testing.
                          Static Black Box Testing Techniques
                          Static testing, as the name suggests, is used to test the software without compilation. When the test is
                          performed to check the specifications, it is called static black box testing. Usually the specification is a
                          document that provides information of the software functionalities. This document is created during the
                          initial stages of the Software Development Life Cycle (SDLC) based on the input from the customer and
                          designer. The tester carefully performs static black box testing and checks for bugs. The focus of static




                          30                      LOVELY PROFESSIONAL UNIVERSITY
   32   33   34   35   36   37   38   39   40   41   42