Professional Documents
Culture Documents
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 1 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 2 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 3
White Box Testing The testing process The Testing process Contd
White BOX Design Specs Function Performance Customer User
Input Reqs reqs reqs environment
Output = func(input) Component-1
code Unit test
Component-n
code Unit test
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 4 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 5 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 6
• 3. Traceability matrix
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 7 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 8 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 9
1
Test Descriptions (1 page each) Test Analysis (1 page) Testing Plan contd
For each Test TEST CASE PASS/FAIL FAULT DESCRIPTION SEVERITY
Test-1 PASS • Should also contain
1: requirements/functions tested subtest1 PASS • schedule for testing
2: Methods subtest2 FAIL hangs the system MAJOR
subtest3 PASS • resources needed for testing
- planned strategy for testing
Test-2 PASS
i.e. coverage of i/p, paths, statements etc
subtest1 FAIL error message pops up MINOR
with reasons
subtest .. PASS
- manual/automatic testing
3: Test procedures (note - there may be many test-cases) Total# failed
- Steps to performing the tests Total# passed
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 10 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 11 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 12
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 13 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 14 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 15
2
Pros and cons Top Down Integration Top-Down Integration
test_A()
• Pros { • Test A
A // test # 1
• many of lowest components are general
purpose UTILITIES that are used in many
prepare inputs for A
call A()
• Test A, B, C
compare outputs with
places - good to test them first. expected outputs • Test A, B, C, D, E, F, G, H
B C …………………..
• Cons }
• high-level functionality tested last - discovery of B( ) //stub
major defects postponed - whereas mundane, E F G H { trivial processing}
D
repetitive computations are tested first
C( ) // stub
{ trivial processing}
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 19 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 20 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 21
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 22 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 23 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 24
3
Cont’d Acceptance Testing Installation Testing
• Recovery tests - response to faults • Benchmark tests etc • Usually involves running tests at
and loss of data • Alpha test - pilot test run in-house customer site to verify working of
• quality tests - up-time (Mean Time • Beta test - pilot test run at customer site installed system
To Failure) • Parallel testing - both existing and new
system run in parallel (allows time to
• Usability tests - test user interfaces
build up confidence in new system)
• and so on….
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 28 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 29 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 30
4
Automated Defect Tracking PR fields
• Ex: GNATS PR-ID: (Automatic)
WORK-PRODUCT:
Automated Defect Tracking BRIEF DESCRIPTION:
• user/developer - opens web-page and enters
STATE: (open/closed/analyze/develop/suspend/feedback)
info into a form and submits Problem Report
SUBMITTER:
(PR)
RESPONSIBLE:
• defect logged and appropriate personnel
PRIORITY:
notified.
SEVERITY:
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 37 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 38 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 39
5
Advantages of Automated
Cont’d
Defect Tracking
• Management aspects • Developer Aspects
• Automated reminders • Automatic logging of e-mails regarding problem
details, analysis, solutions
When to stop testing?
• different views of the defects recorded (by
person responsible, priority, STATE, etc) • central info on a problem allows new
• graphs of # open defects, # closed etc etc developers to quickly catch up on a problem
• makes it easy to enforce defect tracking report (so as to be able to fix it)
policies
• Provides an audit trail (verify practice matches
policies)
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 46 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 47 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 48
10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 52 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 53 10/22/01 10:40:08 AM coms 309 Lecture#17 (smitra) 54