Professional Documents
Culture Documents
C1-Defect Reporting, Metrics, Tools
C1-Defect Reporting, Metrics, Tools
Sep 2014
NTT DATA Corporation
• Defect is:
– An incorrect or incomplete implementation of the functionality mentioned
in the requirement specification document (FS or Use case)
– A missing functionality mentioned in the requirement specification
document (FS or Use case)
– Any deviation made in the screen layout from that mentioned in the GUI
Standards document
– Nonconformance to the requirements mentioned in the requirement
specification document (FS or Use case)
Defect Classification
Critical Urgent
Major High
Minor Medium
Cosmetic Low
Priority - Priority of the defect indicates the importance and order in which the defect
should be fixed.
The priority classification is as follows:
Urgent: Must be fixed in the next build.
High: Must be fixed in any of the upcoming builds but should be included in the release.
Medium: May be fixed after the release / in the next release.
Low: May or may not be fixed at all.
• Summary
– One or two sentence description of the bug
• Put a short “tag line” on each report Capture failure and impact on
customer
• Advantages of good summaries
• Get management attention
• Name bug report for developers
• Help set priorities
• Steps to Reproduce
– Always check reproducibility of the failure as part of writing defect report
– Document a crisp sequence of actions that will reproduce the failure
– Note: Failure incidence rate (that is., 1 in 3 tries)
• Isolate
– Change variables that may alter symptom make changes one by one
– Can be extensive match amount of effort to severity of problem
– Avoid getting into debugging activities
• Generalize
– Look for related failures in SUT Does the same failure occur in other
modules or locations?
– Are there more severe occurrences of the same fault?
– Avoid confusing unrelated problems
– Same symptom can arise from different bugs
• Compare
– Examine results for similar tests
– Same test run against earlier versions
Copyright © 2012 NTT DATA, Inc.
Bug Report
• Condense
– Eliminate extraneous words or steps
• Neutralize
– Deliver bad news gently
– Avoid Attacking developers
– Avoid Criticizing the underlying error
– Confine defect reports to statements of fact
• Disambiguate
– Remove, rephrase, or expand vague, misleading, or subjective words
and statements
– Make sure report is not subject to misinterpretation
• Summary:
– Speedy Writer has trouble with Arial
• Steps to reproduce:
– Open Speedy Writer
– Type in some text
– Select Arial
– Text gets screwed up
• Isolation
• Summary:
– Speedy Writer for Windows 98 scribbles on the open file if Arial Font is
selected
• Steps to reproduce:
– Open Speedy Writer and create a new file
– Type in two or more lines of random text. (It doesn't matter what)
– Highlight the text, pull down the font menu, and select Arial
– Text is transformed into meaningless garbage
– Able to reproduce this problem three out of three times
• Isolation:
– On the suspicion that this was just a formatting problem, I saved the file,
Closed Speedy Writer and reopened the file. The garbage remained
– If you save the file before Arial zing the contents, the bug does not occur
– The bug does not occur with existing files
– This happens only under Windows 98
– This bug doesn't occur with other fonts
• Defects are everywhere! How do you keep track of them and ensure
that the bugs get fixed?
• Defect Tracking
– Tracking all the defects found in each phase of the project life cycle to
ensure that it is tracked to closure i.e. either fixed or rejected with
reason
Valid defect
Accept Defect
Record Defect Check defect Assign/Reassign
Fix/Reject Defect Accept defect Verify Defect
(Recorder) (Controller) Valid Defect
(Assignee) (Recorder) (Controller)
(Controller)
Invalid defect
Defect Closed
(End of Process)
Reject Defect
Fix/Reject Invalid
Re-open Defect
(Recorder)
Role Description
Administrator • Set-up & Manage the project.
• Acts as a super user
Recorder / Submitter • Record or submit (raise) a Defect
• View Reports
Assignee • Person to whom the defect is assigned for fixing
• View Reports
Reviewer / Validator • Verify the Defect
• View Reports
• Purpose:
– To Quantitatively Monitor, Control and Improve the following:
– Project Planning / Performance
– Defect Containment
– Increase Review / Test Efficiency
– Increase Defect Detection Efficiency
– Improve Product Quality
– Monitor Process Improvement
– Optimize Effort Utilization
Sl.
Baselin Baselin Baselin Baselin Baselin Remarks
No Metric Goal
e 28 e 29 e 30 e 31 e 33
1 Effort Variance +/- 5% 0.12% 0.03% 0.25% -0.44% -0.22% Within the goal & Shows an
improvement trend
2 Schedule Variance +/- 2% 0.44% 0.00% -0.02% 0.01% 0.01% Within the goal and shows an
improvement trend
3 Testing Defect 10% 1.67% 0.15% 1.19% 1.02% 0.83% Within the goal and shows an
Rejection Rate improvement trend
4 Review Efficiency 95% 94.93% 92.14% 92.67% 92.96% 96.57% Lesser than the goal, shows an
improvement trend
5 Cost Of Quality 10- 15.38% 12.69% 6.19% 7.75% 7.17% Lesser than the goal, shows
15% decreasing trend
Manual Testing
Automation Testing
Sl Legacy Tech Non ERP ERP
Metric
No
LCL Mean UCL LCL Mean UCL LCL Mean UCL LCL Mean UCL
Test Development
1 Productivity 0.00 1.44 5.92 0.00 3.74 12.48 0.00 1.49 5.42 NA NA NA
2 Test Execution Productivity 0.00 0.37 1.00 0.00 4.79 15.52 0.00 1.15 4.04 NA NA NA
3 Testing Defect Density 0.00 0.69 2.11 0.00 0.082 0.34 0.00 0.27 0.89 NA NA NA
• While carrying out testing process the values of MTBF, MTTR and MTTF
need to be recorded and if these values are within the limits only, the
product can be considered as ‘ready for release’.
A. Test Management
B. Configuration Management
C. Requirement Management
D. Defect Tracking