Beruflich Dokumente
Kultur Dokumente
Testing
Background
Role of Testing
Detecting defects in
Testing
Test Oracle
Testing
11
Equivalence Class
partitioning
12
13
Equivalent class
partitioning..
14
Equivalent class
partitioning..
15
Equivalence class
16
Example
17
Example..
Input
Valid Eq Class
Invalid Eq class
1: Contains numbers
2: Lower case letters
3: upper case letters
4: special chars
5: str len between 0N(max)
1: non-ascii char
2: str len > N
Testing
18
Example
Testing
19
20
BVA...
21
BVA
Testing
22
Testing
23
24
CE-graphing
25
CE-graphing
26
CE graphing: Example
Requirements
27
Example
Causes
C1:
C2:
C3:
C4:
command is credit
command is debit
acc# is valid
amt is valid
Effects
Testing
28
Example
Testing
29
Example
#
C1
C2
C3
C4
0
0
x
x
1
x
0
x
x
1
1
0
x
1
1
1
x
x
1
1
E1
E2
E3
E4
E5
1
1
1
1
Testing 1
30
Pair-wise testing
Testing
31
Pair-wise testing
32
Pair-wise testing
33
Pair-wise testing
34
Pair-wise testing
35
Pair-wise testing
36
37
Pair-wise testing
Test case
Pairs covered
a1,
a1,
a1,
a2,
a2,
a2,
a3,
a3,
a3,
(a1,b1)
(a1,b2)
(a1,b3)
(a2,b1)
(a2,b2)
(a2,b3)
(a3,b1)
(a3,b2)
(a3,b3)
b1,
b2,
b3,
b1,
b2,
b3,
b1,
b2,
b3,
c1
c2
c3
c2
c3
c1
c3
c1
c2
Testing
38
Special cases
39
Error Guessing
file empty, file non existent, file only has blanks, contains
only one word, all words are same, multiple consecutive
blank lines, multiple blanks between words, blanks at the
start, words in sorted order, blanks at end of file, etc.
Testing
40
State-based Testing
41
State-based Testing
42
State-based Testing
43
State-based Testing
44
State-based Testing,
example
45
State-based Testing,
example
46
State-based Testing,
example
Testing
47
State-based Testing
48
State-based Testing
criteria
49
1
2
3
4
5
6
7
8
1
1
2
1
3
3
4
5
->
->
->
->
->
->
->
->
2
2
1
3
3
4
5
2
Req()
Req(); req(); req(); req();req(); req()
Seq for 2; req()
Req(); fail()
Req(); fail(); req()
Req(); fail(); req(); req(); req();req(); req()
Seq for 6; req()
Seq for 6; req(); recover()
Testing
50
State-based testing
51
52
Mutation testing
53
54
Statement Coverage
Criterion
Testing
55
Branch coverage
Testing
56
57
Testing
58
59
60
Testing
61
62
In a Project
Testing
63
Comparison
Code Review Structural
Testing
Computational
Logic
I/O
Data handling
Interface
Data defn.
Database
M
M
H
H
H
M
H
H
H
M
L
H
L
M
Testing
Functional
Testing
M
M
H
H
M
M
M
64
Testing Process
Testing
65
Testing
66
Incremental Testing
Testing
67
68
69
Levels of Testing
70
User needs
Requirement
specification
Design
code
Acceptance testing
System testing
Integration testing
Unit testing
Testing
71
Unit Testing
72
Integration Testing
73
System Testing
Acceptance Testing
Testing
75
Performance testing
Stress testing
Regression testing
Testing
76
Test Plan
77
Test Plan
78
79
80
Testing
81
to be tested
Test Data
Expected
result
Testing
successful
82
Testing
83
Testing
84
85
Defect logging
86
Defect logging
Testing
87
Defect logging
88
Defect logging
89
90
Testing
91
92
93
Testing
94
95
Metrics Reliability
Estimation
96
Reliability Estimation
97
Summary
98
Summary
Testing
99
Summary
100