Monday, September 27, 2010

Explain Static Testing

In Static Testing, the requirement specification, design, code or any document may be inspected and reviewed against a stated requirement and for some standards against some guideline/checklist. It is part of verification
technique that is not necessarily restricted to testing phase of project lifecycle.


Static Testing includes:

Walk-through: Code reading and inspections with a team

• Reviews: Formal techniques for specification and design, code reading and inspections.

 Guidelines for conducting a code walkthrough:

•Have review meeting chaired by the project manager.            
•The programmer presents his/her work to reviewers.
•The programmers walk through the code in detail, focusing on the logic of the code.
•Reviewer asks to walk through specific test cases.             
•The chair resolves the disagreements if the review team cannot reach agreement among themselves
and assign duties, usually to the programmer, for making specific changes.                                               
•A second walk through is scheduled.

Many studies show that the single most cost-effective defect reduction process is the classic structural test - the
code inspection or walk-through. Code inspection is like proof-reading - it can find the mistakes the author
missed - the "typo's" and logic errors that even the best programmers can produce.