Tuesday, July 24, 2012

Difference between Static Testing and Dynamic Testing


NO Static Testing Dynamic Testing
1 It's testing of without executing of the Software. It's testing that involves the execution of the Software.
2 In Static Testing software are examined manually and some Static analysis tool used. In Dynamic Testing software executed by giving set of inputs,examined  it's output and compared what is expected.
3 Static Testing can start early in the life cycle.Eg: By Verifying User Requirements. Dynamic testing can start after development of software components.
4 Types of defect find in Static testing are : Missing requirements, Desgin defect ,Syntax Error etc. Types of defect find in dynamic testing are : Variables not constant ,checking if output from the expected values.
5 Types of Static Testing : Review ,Inspection , Walk-through. Types of Dynamic Testing: Unit testing,Integartion testing, System Testing, Acceptance Testing.
6 Static Testing find bug before you compile. Dynamic testing find bug after compilation, linking.
7 Static Testing is about prevention. Dynamic Testing is about cure.
8 Static Testing is most cost effective than Dynamic Testing. Dynamic Testing not Cost effective as compare to Static Testing
9 Static Testing done in the verification stage. Dynamic Testing done in validation stage.
10 Static Testing gives 100% statement coverage. Dynamic Testing does not give 100% statement coverage.

2 comments:

  1. Static testing is the testing of the software work products manually, or with a set of tools, but they are not executed. It starts early in the Life cycle and so it is done during the verification process. It does not need computer as the testing of program is done without executing the program.


    while...

    Dynamic testing (or dynamic analysis) is a term used in software engineering to describe the testing of the dynamic behavior of code. That is, dynamic analysis refers to the examination of the physical response from the system to variables that are not constant and change with time.

    ReplyDelete
  2. Good one! Very nice comparison of Static Testing and Dynamic Testing. Thanks for sharing

    ReplyDelete