Ch 4 Input Space Partitioning Flashcards

1
Q

What is the “Input Domain”?

A

The possible values that the input parameters can have

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What qualifies as an input parameter?

A
  • method parameters
  • global variables
  • objects representing current state
  • User-level inputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a partition?

A

Breaking a characteristics into a set of values that are disjoint and complete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are partitions defined?

A

A set of equivalence classes (blocks) that are pairwise disjoint and together the blocks cover the domain of a characteristic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In terms of Input Domain Modeling, what is the interface based approach?

A

It considers each particular parameter in isolation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In terms of Input Domain Modeling, what is the functionality based approach?

A

Identifying characteristics that correspond to the intended functionality of the system under test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the pros of using IDM interface-based approach?

A

It is easy to identify characteristics and it is easy to translate abstract tests into executable test cases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the cons to using IDM interface-based approach?

A

Ssome parts of the functionality may depend on combinations of specific values of several interface parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the pros to using IDM functionality-based approach?

A

It transfers more semantic information from the specification to the IDM making it more likely to generate expected results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the cons to using IDM functionality-based approach?

A

Designing reasonable characteristics and generating tests can be difficult nn large and complex systems, or if the specs are informal and incomplete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are good starting points to identify characteristics using functionality?

A
  • Preconditions
  • Postconditions
  • Variable relationships
  • Missing Factors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How should testers develop ISP characteristics?

A

By using domain knowledge about the problem, not the implementation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a block in Input Domain modeling?

A

A value among a partitioned set of values that make up the domain of a characteristic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are some general strategies for identifying block values?

A
  • Valid Values
  • Boundaries
  • Normal Use
  • sub partitions (subpartitioning valid values)
  • Invalid Values
  • Checking for Missing / overlapping partitions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is “All Combinations Coverage” (ACoC)?

A

All combinations of blocks from all characteristics must be used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why is “All Combinations Coverage” generally considered infeasible?

A

Because with more than 2 or 3 partitions, it quickly becomes impracticle to get all combinations.

17
Q

What is “Each Choice Coverage”(ECC)?

A

One value from each block for each characteristic must be used in at least one test case

18
Q

What is a weakness of “Each Choice Coverage”?

A

Certain important combinations of block values may be missed

19
Q

What are the min number of tests to get All Combinations Coverage?

A

The product of the lengths of each block

20
Q

What are the min number of tests to get Each Choice Coverage?

A

The length of the largest block

21
Q

What is “Pair-wise Coverage”(PWC)?

A

A value from each block for each characteristic must be combined with a value from every block for each other characteristic.

22
Q

What is “T-wise Coverage”(TWC)?

A

A value from each block for each group of t characteristics must be combined

23
Q

What is the biggest weakness of TWC and PWC?

A

They pair values blindly, without regard for which value pairs / combos are critical or likely.

24
Q

What is “Base Choice Coverage”(BCC)?

A

A base choice block is chosen for each characteristic, and a base test is formed by using the base choice for each characteristic.
Subsequent tests are chosen by holding all but one base choice constant and using each non-base choice in each other characteristic

25
Q

In Base Choice Coverage, what are some methodologies for choosing the Base?

A

It can be the simplest, the smallest, the first in some ordering, or the most likely from an end-user point of view

26
Q

Why is it not preferable to choose multiple invalid blocks for Base Choice Coverage?

A

Because it will catch the first bad value, and usually not reach the others

27
Q

What is “Multiple Base Choices Coverage”(MBCC)?

A

At least one base choice blocks is chosen for each characteristic.
Subsequent tests are chosen by holding all but one base choice constant for each base test and using each non-base choice in each other characteristic.

28
Q

In ISP, what are constraints?

A

Relations between blocks of different characterstics.

29
Q

What are the two broad categories of constrainsts in ISP?

A
  • Two blocks that can never be combines (zero length list, and multiple instances of element)
  • Two blocks that must always be paired (non-null list, list of great than zero length)