Specification-Based Testing 1
Stuart Anderson
Stuart Anderson Specification-Based Testing 1 c 2011
Specification-Based Testing 1 Stuart Anderson Stuart Anderson - - PowerPoint PPT Presentation
Specification-Based Testing 1 Stuart Anderson Stuart Anderson Specification-Based Testing 1 2011 c 1 Overview Basic terminology A view of faults through failure Systematic versus randomised testing A systematic approach to
Stuart Anderson Specification-Based Testing 1 c 2011
1
Stuart Anderson Specification-Based Testing 1 c 2011
2
Stuart Anderson Specification-Based Testing 1 c 2011
3
Stuart Anderson Specification-Based Testing 1 c 2011
Isolation, Mock Objects 4
Stuart Anderson Specification-Based Testing 1 c 2011
Isolation 2 5
Stuart Anderson Specification-Based Testing 1 c 2011
1/2 6
“Failure regions for some of the infrequent equivalent classes” Stuart Anderson Specification-Based Testing 1 c 2011
2/2 7
“Failure sets for the equivalent classes” Stuart Anderson Specification-Based Testing 1 c 2011
8
Stuart Anderson Specification-Based Testing 1 c 2011
9
Stuart Anderson Specification-Based Testing 1 c 2011
10
Stuart Anderson Specification-Based Testing 1 c 2011
11
– Identify ITFs.
– Significant cases for each parameter
– Reduce size of test space.
– Produce test frames. – May need to return to categories and constraints.
[Textbook, P&Y p. 169: Figure 10.3] Stuart Anderson Specification-Based Testing 1 c 2011
A Systematic Approach 12
Stuart Anderson Specification-Based Testing 1 c 2011
A Systematic Approach 13
Stuart Anderson Specification-Based Testing 1 c 2011
A Systematic Approach 14
Stuart Anderson Specification-Based Testing 1 c 2011
A Systematic Approach 15
Stuart Anderson Specification-Based Testing 1 c 2011
16
Stuart Anderson Specification-Based Testing 1 c 2011
1/2 17
Stuart Anderson Specification-Based Testing 1 c 2011
2/2 18
Stuart Anderson Specification-Based Testing 1 c 2011
19
Stuart Anderson Specification-Based Testing 1 c 2011
20
Stuart Anderson Specification-Based Testing 1 c 2011
21
Stuart Anderson Specification-Based Testing 1 c 2011
22
∗ empty, [property Empty] ∗ single, [property nonEmpty] ∗ multiple, [property nonEmpty] ∗ too long, [property nonEmpty]
∗ pattern quoted, [property Quoted] ∗ pattern not quoted, [if nonEmpty]
∗ none, [if nonEmpty] ∗ one, [if nonEmpty and Quoted] ∗ several [if nonEmpty and Quoted]
Stuart Anderson Specification-Based Testing 1 c 2011
23
Stuart Anderson Specification-Based Testing 1 c 2011
24
Stuart Anderson Specification-Based Testing 1 c 2011
Specification-based Testing 25
Stuart Anderson Specification-Based Testing 1 c 2011
cat man page 26
NAME cat - concatenate files and print on the standard output SYNOPSIS cat [OPTION] [FILE]... DESCRIPTION Concatenate FILE(s), or standard input, to standard output.
equivalent to -vE
equivalent to -vT
(ignored)
With no FILE, or when FILE is -, read standard input. EXAMPLES cat f - g Output f’s contents, then standard input, then g’s contents. cat Copy standard input to standard output. Stuart Anderson Specification-Based Testing 1 c 2011
cat example 27
Stuart Anderson Specification-Based Testing 1 c 2011
cat example 28
Stuart Anderson Specification-Based Testing 1 c 2011
cat example 29
Stuart Anderson Specification-Based Testing 1 c 2011
30
Stuart Anderson Specification-Based Testing 1 c 2011
31
Stuart Anderson Specification-Based Testing 1 c 2011