static testing

26
Static Testing What’s Static testing? Testing of Software / document / code without execution to Find defects Why Static testing? Early testing Prevents Fault Migration & Fault multiplication

Upload: duby86

Post on 19-Jul-2016

9 views

Category:

Documents


1 download

DESCRIPTION

STATIC TESTING FOR ISTQB EXAM

TRANSCRIPT

Page 1: Static Testing

Static Testing

What’s Static testing?Testing of Software / document / code without execution to Find defects

Why Static testing?Early testingPrevents Fault Migration & Fault multiplication

Page 2: Static Testing

Static Testing

Typical defects that are easy to identify during Static Testing are:

Deviation from standardsMissing requirementsDesign DefectsNon maintainable code andInconsistent interface specifications

Page 3: Static Testing

Static Testing

Benefits of Static Testing

Identifies causes (of potential failure) rather than failures

Early feedback on quality issues can be established

Detecting defects at an early stage, rework cost & time are significantly reduced

Page 4: Static Testing

Static Testing

Benefits of Static Testing

Development productivity will be increased

Testing efficiency is improved

Page 5: Static Testing

Static Testing

Testing

Static Testing Dynamic Testing

Review Static Analysis

Page 6: Static Testing

Static Testing

Static Testing

Review Static Analysis

Informal Review

Walkthrough

Tech Review

Inspection

Control Flow Analysis

Data Flow Analysis

Compliance to Standards

Code Structure Metrics

Page 7: Static Testing

Static Testing

Re-View or Second look

Systematic examination of Software / Code / Documents / Interfaces

to- Find defects- Gain understanding- Discuss & decide on best choice of solution

Page 8: Static Testing

Static Testing

Informal Review

A Review without following any defined (formal) procedures No documentationNo prior preparation for the reviewersQuick & inexpensive way of deriving benefit

Eg: Pair Programming

Page 9: Static Testing

Static Testing

WalkthroughAuthor led presentationAuthor systematically guiding reviewers through his workReviewers & participants Gain understandingReviewers need to be familiar with the topicSome level of documentation is maintained

Eg: Knowledge Transfer sessions (KT), Dry Runs, Scenarios

Page 10: Static Testing

Static Testing

Technical ReviewDiscussion on Technical issues / problemsDiscussion on possible solutions and decision by consensusReview leader (Moderator) is presentAuthor can not be the Review leaderNo Management participationDocumentation is maintained

Page 11: Static Testing

Static Testing

Formal Review / Inspection

Formal review follows a formal & defined process of review

It involves six phases

Page 12: Static Testing

Static Testing

Formal Review / Inspection phases

1. Planning2. Kick-off3. Individual Preparation4. Review Meeting5. Rework6. Follow-up

Page 13: Static Testing

Static Testing

PlanningSelection of personnel

-Moderator-Reviewers / Inspectors

Selection of Roles for ReviewersDefining Entry / Exit criteriaDefining Review objective

Page 14: Static Testing

Static Testing

PlanningModerator Checks for Entry criteriaEx: i) after 30 minutes of checking no more than 3 major

defects are found on a single pageii) The document to be reviewed is available with line numbers.

iii) References needed for inspection are stable and available.

iv) Author of the document is ready to involve with review team.

Page 15: Static Testing

Static Testing

Kick OffA formal meeting of all concerned with InspectionDocuments distributedRoles explainedReview objectives are explained

Page 16: Static Testing

Static Testing

Kick OffReview objectivesEx: i) does the design fulfills the requirements

ii) compliance to coding standards, naming conventions etciii) maintainability and testability

Page 17: Static Testing

Static Testing

Individual PreparationEach of the reviewers must spend time in analyzing the document under reviewPoints of conflict, issues, questions & comments to be notedA list is compiled

Page 18: Static Testing

Static Testing

Review MeetingBusiness like meetingDiscussion is held on the list of issues identified by each of the reviewerAuthor participates and provides clarificationIf necessary Author agrees to make modificationsModerator ensures discussion is focusedScribe / Recorder records the details of discussion

Page 19: Static Testing

Static Testing

ReworkModification / corrections are implemented for the agreed issues by the Author

Author should follow change control to trace the documents for follow-up

Page 20: Static Testing

Static Testing

Follow-upModerator verifies whether the corrections have been achieved and correctly achieved

Moderator checks for fulfillment of the exit criteria

Moderator collects metrics related to Inspection

Page 21: Static Testing

Static Testing

Participants in a Formal review are:ModeratorAuthorScribeReviewers andManager

Page 22: Static Testing

Static Testing

Moderator:Moderator leads the review process

Moderator ensures discussion is focused

Moderator ensures that all reviewers participate effectively in review meeting

Moderator verifies whether or not the reviewers are adequately prepared on the documents before the review meeting

Moderator performs the entry check and the follow-up on the rework

Page 23: Static Testing

Static Testing

Author:As the writer of the document he/she should learn as much as possible to improve the quality of the documents

Clarify unclear areas to the reviewers

Understand the defects found

Implement agreed corrections

Page 24: Static Testing

Static Testing

Scribe :The scribe has to record details of discussion during review meeting and also note defects identified

Develops ‘List of Corrections’, Minutes of Meeting etc

Reviewers :Checks for defects in the documents under review

Page 25: Static Testing

Static Testing

Manager:

Doesn’t participate in a review process unless Management documents are being reviewed

Allocate time & resources in project schedules

Involves in selection of Moderator

Page 26: Static Testing

Static Testing

Factors contributing to the success of Reviews

Review must have clear objective

Defects found must be welcomed

Proper personnel must be involved with reviews

Proper level of review must be selected

Use of Check list & Role-play must be encouraged

Adequate resources & time must be provided