Chapt -03.ppt

Embed Size (px)

Citation preview

  • 7/29/2019 Chapt -03.ppt

    1/34

    Kanbay Incorporated - All Rights Reserved

    3/8/2013

    ISTQB Foundation Level

    Chapter- 3

    Static techniques

    Vivek Chaskar

  • 7/29/2019 Chapt -03.ppt

    2/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved2

    Software engineering

    Tool vs technique

  • 7/29/2019 Chapt -03.ppt

    3/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved3

    Agenda

    1. Static and Dynamic techniques.2. Review process

    3. Static analysis by tools

  • 7/29/2019 Chapt -03.ppt

    4/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved4

    Static and Dynamic techniques.

    Static and Dynamic testing.

  • 7/29/2019 Chapt -03.ppt

    5/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved5

    Reviews

    Review

  • 7/29/2019 Chapt -03.ppt

    6/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved6

    Review Definition

    IEEE Standard Glossary of SE Terminology:

    A process or meeting during which a work product, or a set of

    work products, is presented to project personnel, managers,users, customers, or other interested parties forcomment or

    approval.

    Types include code review, requirements review etc.

    Reviews

  • 7/29/2019 Chapt -03.ppt

    7/343/8/2013 | Kanbay Incorporated. All Rights Reserved

    7

    Review:

    Presentation of each SW Component to the Group

    in each Development PhaseDiscussion and Coordination with other components

    Goal:Clarification and Accept/Reject Decision

    Reviews

  • 7/29/2019 Chapt -03.ppt

    8/343/8/2013 | Kanbay Incorporated. All Rights Reserved

    8

    Reviews are applied at various points during software

    development and serve to uncover errors and defects

    that can then be removed.

    Software reviews are a filter for the software

    engineering process.

    Software review purify" the software engineering

    activities that we have called analysis, design andcoding.

    Reviews

  • 7/29/2019 Chapt -03.ppt

    9/343/8/2013 | Kanbay Incorporated. All Rights Reserved

    9

    A reviewany reviewis a way of using the diversity ofa group of people to :

    Point out needed improvements in the product of a single person

    or team.

    Confirm those part of the product in which improvement is either

    not desired or not needed.

    The main goal is to identify defects within the stage or phase of

    the project where they originate,rather than in later test stages;this is referred to as stage containment.

    Reviews

  • 7/29/2019 Chapt -03.ppt

    10/343/8/2013 | Kanbay Incorporated. All Rights Reserved

    10

    Roles and responsibilities

    A typical formal review will include the roles below:

    Manager: decides on the execution of reviews, allocates time inproject schedules and determines if the review objectives have been

    met. Moderator: the person who leads the review of the document orset of documents, including planning the review, running themeeting, and follow-up after the meeting. If necessary, themoderator may mediate between the various points of view and is

    often the person upon whom the success of the review rests.

  • 7/29/2019 Chapt -03.ppt

    11/343/8/2013 | Kanbay Incorporated. All Rights Reserved

    11

    Roles and responsibilities

    Author: the writer or person with chief responsibility for thedocument(s) to be reviewed.

    Reviewers: individuals with a specific technical or business

    background (also called checkers or inspectors) who, after thenecessary preparation, identify and describe findings (e.g.defects) inthe product under review. Reviewers should be chosen to representdifferent perspectives and roles in the review process and they take

    part in any review meetings.

    Scribe (or recorder): documents all the issues, problems andopen points that were identified during the meeting.

  • 7/29/2019 Chapt -03.ppt

    12/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved12

    The Players

    reviewleader

    producer

    recorder reviewer

    standards (SQA)

    user rep

  • 7/29/2019 Chapt -03.ppt

    13/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved13

    Conducting the Reviewbe preparedevaluateproduct before the review

    review the product, notthe producer

    keep your tone mild, askquestions instead ofmaking accusations

    stick to the review agenda

    raise issues, don't resolve them

    avoid discussions of style

    stick to technicalcorrectness

    schedule reviews as project tasks

    record and report all review results

    1.

    2.

    3.

    4.

    5.

    6.

    7.

    8.

  • 7/29/2019 Chapt -03.ppt

    14/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved14

    What Can You Review?

    Anything written down on paper! Code reviews are just a starting point

    Examples of things that can and should be reviewed:

    Requirements

    Catching problems here can save huge amounts of time/moneylater

    Design

    Test plans

    Test results

    Implementation

    Process plans

  • 7/29/2019 Chapt -03.ppt

    15/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved15

    Life Cycle ApplicationsTypes and methods of reviews will normally be specifiedin the Software Development Plan or ProgramManagement Plan. Some are dictated by a contract.

    Reviews consist of three parts:

    Planning

    Review Conduct

    Post-Review

    All three are very important for a successful review

    Life Cycle Applications

  • 7/29/2019 Chapt -03.ppt

    16/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved16

    Planning PhaseStating purpose of the review

    Selecting and arranging participants

    Distribution of review material

    Provide ahead of time

    Setting physical location

    Preparing an agenda

    PlanningPhase

  • 7/29/2019 Chapt -03.ppt

    17/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved17

    Conduct Phase

    Keeping to the agenda

    Remember, the purpose of the review is to identify the

    problems and assign action for their resolution, not fixing

    the problems themselves

    Review leader/moderator must maintain control

    Scribe/recorder puts proceedings into written form

    Conduct Phase

  • 7/29/2019 Chapt -03.ppt

    18/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved18

    Post-Review Phase

    Depends on the actions required

    Progress on AIs may be reported at the next review

    Unsatisfactory results of a review may require another

    one

    Post-Review Phase

  • 7/29/2019 Chapt -03.ppt

    19/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved19

    Reviews

    Types of review

    Informal review

    Walkthrough

    Technical review

    Inspection

  • 7/29/2019 Chapt -03.ppt

    20/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved20

    Informal review

    Key characteristics:

    No formal process;

    There may be pair programming or a technical lead

    reviewing designs and code;

    optionally may be documented;

    May vary in usefulness depending on the reviewer;

    Main purpose: inexpensive way to get some benefit.

  • 7/29/2019 Chapt -03.ppt

    21/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved21

    Walkthrough

    Key characteristics: Meeting led by author;

    Scenarios, dry runs, peer group;

    Optionally a pre-meeting preparation of reviewers,review report, list of findings and scribe

    (who is not the author)

    May vary in practice from quite informal to very formal;

    Main purposes: learning, gaining understanding, defectfinding.

  • 7/29/2019 Chapt -03.ppt

    22/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved22

    Technical review

    Key characteristics:Documented, defined defect-detection process that includes peers and technicalexperts;

    May be performed as a peer review without management participation;

    Ideally led by trained moderator (not the author);

    Pre-meeting preparation;

    Optionally the use of checklists, review report, list of findings and managementparticipation;

    May vary in practice from quite informal to very formal;

    Main purposes: discuss, make decisions, evaluate alternatives, find defects, solvetechnical

    problems and check conformance to specifications and standards.

  • 7/29/2019 Chapt -03.ppt

    23/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved23

    Inspection

    Key characteristics: Led by trained moderator (not the author);

    Usually peer examination;

    Defined roles;

    Formal process based on rules and checklists with entry and exitcriteria;

    Pre-meeting preparation;

    Inspection report, list of findings;

    Formal follow-up process;

    Optionally, process improvement and reader;

    main purpose: find defects.

  • 7/29/2019 Chapt -03.ppt

    24/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved24

    Review formality spectrum

  • 7/29/2019 Chapt -03.ppt

    25/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved25

    Comparison

  • 7/29/2019 Chapt -03.ppt

    26/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved26

    Review activity

  • 7/29/2019 Chapt -03.ppt

    27/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved27

    Inspection - Objectives

    Defect Detection

    Documents are checked for

    cleanness and consistency against rules

    Defect Prevention

    Learning from defects found

    Suggesting improvements

    On the Job TrainingEducation in standards and rules

  • 7/29/2019 Chapt -03.ppt

    28/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved28

    Inspection

    Inspection Process

    1. Planning 4. Meeting2. Overview 5. Rework

    3. Preparation 6. Follow-up

  • 7/29/2019 Chapt -03.ppt

    29/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved29

    Inspection

    1. Planning

    Schedules

    Participants

    Materials

  • 7/29/2019 Chapt -03.ppt

    30/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved30

    Inspection

    2. Overview

    Objectives:

    Provide educational background to

    understand materials

    Description:

    Presentation by author of work to beinspected

  • 7/29/2019 Chapt -03.ppt

    31/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved31

    Inspection

    3. Preparation

    Objectives -Prepare participants to identify

    defects.

    Description -Individually study inspection

    material.

  • 7/29/2019 Chapt -03.ppt

    32/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved32

    Inspection

    4. Inspection Meeting

    1. Introduce meeting - moderator reminds people of the roles

    2. Establish preparedness - moderator confirms inspectors

    prepared

    3. Review inspection checklist - confirms all items on check liststudied

    4. Read product and record defects - reader reads, inspectors

    raise defects, discussion, recorder records the defects

    5. Review the defect list - review the defect list for completeness

    Make final decision - accept, verify rework, re-inspect

  • 7/29/2019 Chapt -03.ppt

    33/34

    3/8/2013 | Kanbay Incorporated. All Rights Reserved33

    Staticanalysis

    Static analysis by tools

  • 7/29/2019 Chapt -03.ppt

    34/34

    3/8/2013

    Thank You