Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 1.4: Static vs Dynamic

Lesson 5 of 16 in the free Software Testing notes on Siksha Sarovar, written by Rohit Jangra.

Unit 1.4: Static and Dynamic Testing

1. Definitions

Static Testing:

  • Testing involves verifying the software without executing the code.
  • It involves reviewing documents, code, and design.
  • Goal: To find defects early in the life cycle (typos, bad logic, missing requirements).

Dynamic Testing:

  • Testing involves executing the code and validating the output.
  • This is what we traditionally call "testing" (clicking buttons, running scripts).
  • Goal: To validate functional behavior and performance.

2. Types of Static Testing

A. Inspection (Formal):

  • Most formal type of review.
  • Led by a trained "Moderator".
  • Involves a team (Author, Reader, Recorder, Inspector).
  • Follows a strict checklist and entry/exit criteria.

B. Walkthrough (Informal):

  • Led by the Author of the code/document.
  • The author guides the team through the document to gather feedback.
  • No strict process; aimed at learning and understanding.

C. Technical Review:

  • A peer review focused on technical correctness.
  • Less formal than inspection but more structured than a walkthrough.
  • Ensures adherence to coding standards.

3. Comparison Table

FeatureStatic TestingDynamic Testing
CostCheaper (Finds bugs early).Costly (Fixing bugs later is hard).
ScopeCovers Requirements, Design, Code.Covers only the functionality of run code.
Defects FoundStructural defects, missing specs, syntax errors.Functional failures, runtime errors, memory leaks.
ExampleCode Review, Proofreading.Unit Test, Penetration Test.

4. Limitations of Testing

  • Cannot prove absence of defects: (Principle 1).
  • Time Constraints: We always have a deadline; we can't test forever.
  • Resource Constraints: Limited budget and hardware.
  • Logical Limitations: We cannot test every possible input (e.g., a calculator adding all numbers).
  • Oracle Problem: Sometimes it is difficult to know what the "correct" output should be.