Page 199 - DCAP405_SOFTWARE_ENGINEERING
P. 199

Software Engineering




                    Notes                   Compliance Acceptance Testing
                                            Alpha Testing
                                            Beta Testing
                                   Often when validation testing interview questions are asked, they revolve around the different
                                   types of validation testing. The difference between verification and validation is also a common
                                   software validation testing question. Some organizations may use different terms for some of
                                   the terms given in the article above. As far as possible, we have tried to accept the alternate
                                   names as well.

                                   11.7.2 Testing Strategies for Object Oriented Software

                                   In testing object oriented software, the objective of testing remains the same. The nature of
                                   object oriented software changes both testing strategy and testing tactics.

                                   Unit Testing in Object Oriented Context

                                   In object oriented software, an encapsulated class is the focus of unit testing. Encapsulation
                                   means that class and class object packages the attributes and operations that manipulate the data.
                                   A class contains many operations so unit testing these operations must also vary.
                                   Class testing for object oriented software is analogous to module testing for conventional
                                   software. It is not advisable to test operations in isolation. Unit testing of conventional software
                                   focus on algorithmic detail of module and the data that flows across module whereas unit
                                   testing for object oriented software focus on operations encapsulated by class.

                                   Integration Testing in Object Oriented Context

                                   An important strategy for integration testing of object oriented software is thread based testing.
                                   Threads are set of classes that respond to an input or event. Each thread is integrated and tested
                                   individually. Regression testing is done.
                                   Another strategy is the use based tests that focus on classes that do not collaborate heavily with
                                   other classes.

                                   The behavior of drivers and stubs also changes during integration testing of object oriented
                                   software. Drivers test operations at lowest level and for testing whole group of classes.


                                                What are the uses of stubs?
                                     Did u know?

                                     Stubs are used where collaboration between classes is required but one or more
                                     collaborating class is not fully implemented.

                                   Self Assessment

                                   Fill in the blanks:
                                   1.  ……………………….. analysis or profiling tools that can help to highlight hot spots and
                                       resource usage.
                                   2.  ………………………. for object oriented software is analogous to module testing for
                                       conventional software.





          192                               LOVELY PROFESSIONAL UNIVERSITY
   194   195   196   197   198   199   200   201   202   203   204