Main Difference between Static testing and Dynamic Testing:
Static testing is about prevention whereas dynamic testing is about cure.
Static testing is more cost-effective than dynamic testing.
Static testing tools provide greater marginal benefits as compare to dynamic testing.
Static testing gives comprehensive diagnostics for code than dynamic testing.
Dynamic testing finds fewer bugs as compare to static testing.
Dynamic testing usually takes longer time as compare to static testing as it test each case separately.
Static testing covers more areas than dynamic testing in shorter time.
Static testing is done before the code deployment whereas dynamic testing is after the code deployment.
Static testing is done in verification stage whereas dynamic testing is done in validation stage.
In static testing code is being examined without being executed whereas In dynamic testing, code is being executed and tested without necessarily being examined.