Model-Based Testing (ISTQB Chapter 4)
Arie van Deursen
1
Model-Based Testing (ISTQB Chapter 4) Arie van Deursen 1 4.1 - - PowerPoint PPT Presentation
Model-Based Testing (ISTQB Chapter 4) Arie van Deursen 1 4.1 ISTQB Test Design Test Scripts Test Basis 4.1.2: Test Analysis 4.1.4: Test Implementation Test Selected Test Cases Test Conditions Conditions 4.1.3: Test Design 2 Test
Arie van Deursen
1
Test Basis Test Conditions Selected Test Conditions Test Cases Test Scripts
4.1
4.1.4: Test Implementation 4.1.2: Test Analysis 4.1.3: Test Design
2
Test condition: An item or event of a component or system that could be verified by one or more test cases, e.g. a function, transaction, feature, quality attribute, or structural element. Test case: A set of input values, execution preconditions, expected results and execution postconditions, developed for a particular objective or test condition, such as to exercise a particular program path
[After IEEE 610] Test basis: All documents from which the requirements of a component or system can be inferred. Documentation on which the test cases are based
3
and implementation
4
4.1.2
Agile (modern)
High ceremony (traditional)
Low tech (high maintenance)
5
(QMS), you cannot guarantee safety & effectiveness.
sites in the USA.
Jail for upper mgt.
6
6
“Software that applies a pass/fail criterion to a program execution is called a (test) oracle”. Approaches
“Reasonableness check”)
4.1.3
7
Testing a Sudoku generator/solver? You can’t predict full output But you can check validity of any solution (9 unique digitis on very row, column, square)
8
4.2
9
Model:
10
11
12
provider?
13
Decision Table: models how combinations of conditions lead to given actions (or outputs)
14
With “don’t care” values With duplicate variants removed With “don’t care” values expanded
15
16
All explicit variants: 6 All possible variants: 2^3 = 8 (= all combinations) All decisions / every unique outcome: 4 Each condition T/F: 2 cases (TTT, FFF) Each condition AND all decisions = (M)C/DC
17
and that condition
18
19
20
21
22
suffice to obtain an MC/DC cover
23
24
25
26
Decision Table Conditions Actions
27
techniques may be more suitable (e.g. “pairwise testing”).
Three possible values: 0Gb, 8Gb, or no limit. Table has 2*2*3 = 12 choices Not listed => impossible
4.3.2
28
29
30
31
CollisionMap
collide(…)
Player Collisions Collision Interaction Map Default Interaction Map
First: Test this nice & simple implementation Then: Reuse initial tests for this tricky class
32
CollisionMapTest
CollisionMap cmap
Player Collisions Test Collision Interaction Map Default Interaction Test
@BeforeEach: cmap instance of PlayerCollisions @BeforeEach: cmap instance of …
33
When should Slack send you a push notification?
preferences (nothing, everything, mentions, default)
condition affects the outcome. If possible.
beneficial.
34
35
36
37
38