Difference between Static and Dynamic Testing

Static Testing:
Static Testing is a type of a Software Testing method which is performed to check the defects in software without actually executing the code of the software application.

Static testing is performed in early stage of development to avoid errors as it is easier to find sources of failures and it can be fixed easily. The errors that can’t not be found using Dynamic Testing, can be easily found by Static Testing.

Dynamic Testing:
Dynamic Testing is a type of Software Testing which is performed to analyze the dynamic behavior of the code. It includes the testing of the software for the input values and output values that are analyzed.



Difference between Static Testing and Dynamic Testing:

Static Testing Dynamic Testing
It is performed in the early stage of the software development. It is performed at the later stage of the software development.
In static testing whole code is not executed. In dynamic testing whole code is executed.
Static testing prevents the defects. Dynamic testing finds and fixes the defects.
Static testing is performed before code deployment. Dynamic testing is performed after code deployment.
Static testing is less costly. Dynamic testing is highly costly.
Static Testing involves checklist for testing process. Dynamic Testing involves test cases for testing process.
It includes walkthroughs, code review, inspection etc. It involves functional and nonfunctional testing.
Example:

Verification
Example:

Validation



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.