Pages

Structural vs Functional Testing


Structural and Functional Testing

        Structural testing is considered white-box testing because knowledge of the internal logic of the system is used to develop test cases. Structural testing includes path testing, code coverage testing and analysis, logic testing, nested loop testing, and similar techniques. Unit testing, string or integration testing, load testing, stress testing, and performance testing are considered structural. 

     Functional testing addresses the overall behavior of the program by testing transaction flows, input validation, and functional completeness. Functional testing is considered black-box testing because no knowledge of the internal logic of the system is used to develop test cases. System testing, regression testing, and user acceptance testing are types of functional testing. 

    Both methods together validate the entire system. For example, a functional test case might be taken from the documentation description of how to perform a certain function, such as accepting bar code input.

    A structural test case might be taken from a technical documentation manual. To effectively test systems, both methods are needed. Each method has its pros and cons, which are listed below: 

Structural Testing
Advantages
The logic of the software’s structure can be tested.
Parts of the software will be tested which might have been forgotten if only functional testing was performed.

Disadvantages
Its tests do not ensure that user requirements have been met.
Its tests may not mimic real-world situations.

Functional Testing
Advantages
Simulates actual system usage.
Makes no system structure assumptions.

Disadvantages
Potential of missing logical errors in software.
Possibility of redundant testing.

9 comments:

  1. Excellent read. Thanks for sharing information software testing Jobs. Now Indium software hiring Mobile App Testing Engineers (while you can)

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. realme air buds https://androidfreeks.com/

    ReplyDelete
  4. Thanks for sharing this blog on structural testing and functional testing.
    Here are a few useful links for software testers,
    QA Job Board
    Search QA Jobs
    Software Testing Blog
    Software Testing Videos

    ReplyDelete

please leave comments...