Loading

Static Testing vs. Dynamic Testing


Introduction: Static vs.Dynamic Testing

In the software field, testing is a large term that encompasses various types of testing activities, carried out on the software product. The task of testing the software product, may be seen and categorized into two different categories, static testing and dynamic testing.

Static testing concerns with the documentation part, associated with the software product, without touching the actual software program or code, whereas dynamic testing, involves the physical interaction of the testers with the software product or programming code.

Professionalqa static vs dynamic testing image


Let us see the differences between the static testing and the dynamic testing:

Sl.No Static testing Dynamic testing
1. Involves the testing of the documented artefacts. Involves the execution of the test cases over actual software product or programming code.
2. Analyze and evaluate the software product in non-operational mode. It performs the testing in the run time environment.
3. It is usually done, at an early stage of the development life cycle. Comes into action, at a later stage of the development life cycle.
4. The main motive is to verify all types of requirements, such as business requirement, functional requirement, etc. Primary purpose behind the dynamic testing is to validate the pre-specified requirements in the software product, at each level of the development.
5. Works as the preventive measure, to avoid defects in the software product. Responsible for the corrective actions, to remove and fix defects in the developed or under-developed software product.
6. Usually, Checklists are prepared, to perform testing. Test cases are prepared, to carry out the testing activities.
7. Techniques covered under static testing may consists of
  • Analysis
  • Code Inspection
  • Reviews
  • Walkthroughs
It mainly comprises of following testing activities.
  • Unit testing
  • Integration testing
  • System testing
  • Acceptance testing

Apart from above testing types, dynamic testing covers, all types of functional & non-functional testing.

8. It requires less amount of time and cost. Time and cost, is comparatively higher than the static testing.
9. It requires manual approach. May be manual or automation.
10. Low level activity. High level activity.
11. Statement Coverage is higher and almost near to 100% It does not guarantees the 100% statement coverage.
12. Static testing is followed by the dynamic testing. Dynamic testing is done after the completion of the static testing, and on the availability of the software product, after being developed.