Beruflich Dokumente
Kultur Dokumente
Static
Testing
1 Principles
2 Lifecycle
4 Dynamic test
5 Management
techniques
3 Static testing
6 Tools
Chapter 3
Contents
Types of review
Static analysis
People techniques
individual:
desk-checking,
data-stepping, proof-reading
group:
Reviews
Benefits of reviews
Development productivity improvement
Reduced development timescales
Reduced testing time and cost
Lifetime cost reductions
Reduced fault levels
Improved customer relations
etc.
Walkthroughs - Yourdon
25% reduction in schedules, remove 80% 95% of faults at each stage, 28 times
reduction in maintenance cost, many others
Software
work
Accept. Test
Tests
Functions
Design
Code
Tests
Tests
System Test
Integration T
Unit Test
Costs of reviews
Static testing
1
Contents
Reviews and the test process
Types of review
Static analysis
Technical Review:
Decision-making Review:
Inspection:
Reviews in general 1
Objectives / goals
validation
standards
achieve consensus (excluding Inspection)
process improvement (ideal, included in
Inspection)
Reviews in general 2
Activities
planning
overview
Reviews in general 3
Reviewers
Reviews in general 4
Deliverables
Changes
Metrics
Reviews in general 5
Lack
Inspection is different
the document to be
reviewed is given out in
advance
typically dozens of
pages to review
chunk or sample
training, roles
Inspection is different
entry criteria to
meeting, may not be
worth holding
Inspection is different
no discussion, highly
focused, anti-trivia
only do it if value is
proven (continually)
process improvement
entry criteria
exit criteria
training
quantified estimates of
optimum checking rate
remaining major faults
prioritising the words
per
page
standards
effectiveness return on investment
typical review
10 - 20%
unknown
early Inspection
30 - 40%
6 - 8 hrs / Insp hr
mature Inspection
80 - 95%
8 - 30 hrs / Insp hr
Software
Development
Stage
Process
Improvement
.
Entry
Planning
Kick
off
Exit
Ind
Chk
Meet
Edit
.
Next Software
Development
Stage
Time
100 pages?
Checking
Rate
50 pages per hour
Size
?Review Thoroughness
minor
major
minor
Time
Optimum:
1 page*
per hour
Checking
Rate
Size
2 pages (at optimum rate)
Inspection Thoroughness
Inspection surprises
agreed as applying
define major issues / faults
Contents
Types of review
Static analysis
Highlights:
nodes
Macro definitions
(different for different platforms the code runs on)
Buffsize: 1000
Mailboxmax: 1000
IF Buffsize < Mailboxmax THEN
Error-Exit
ENDIF
Cyclomatic complexity
complexity
= number of decisions + 1
init
do
if
r=r+1
Right = 0
DO WHILE more Questions
IF Answer = Correct THEN
end
Right = Right + 1
ENDIF
res
END DO
Result = (Right / Questions)
IF Result > 60% THEN
Print "pass"
ELSE
if
fail
Print "fail
ENDIF
end
pass
Limitations:
cannot
Advantages:
can