Week 2 - Functional testing Flashcards

(16 cards)

1
Q

What is functional testing?

A

Functional testing treats a program as a black box, testing the mapping of inputs (domain) to outputs (range).

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

boundary value testing

A

focuses on testing edges of input domains

this is because at boundaries developers are more likely to make mistakes

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

Advantages of boundary testing

A

simple test case generation

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

disadvantage of boundary testing

A

Does not guarantee input domain coverage - as focuses on boundaries probably not testing values that have different behaviour

awkward for logical - cant do nominal , maximal of booleans and conditions

domains must be independent

no whitebox knowledge

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

What is weak normal equivalence testing

A

type of testing where we partition input domain into equivalence classes and ensure each equivalence class covered at least once

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

maximum no of test case

A

Number of test cases: max x ∣Sx∣

or in english

if 2 variables - x and y

max(no of equivalence classes x , no of equivalence classes y)

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

define strong normal

A

strong normal – partition input domain into equivalence classes – cover every combination of valid equivalence classes across all input domains

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

no of test cases for strong normal

A

Number of test cases: ∏x∣Sx∣
multiply the number of each class

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

weak robust

A

Weak Robust ECT: Includes weak normal ECT plus out-of-range values.

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

no of test cases for weak robust

A

max x |Sx| ( weak normal part) + 2 x n ( no of variables)

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

strong robust

A

takes all combinations of valid and invalid equivalence classes across all input domains

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

no of test cases for strong robust

A

Number of test cases: ∏x(∣Sx∣+2) (add two to each class)

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

Functional Testing advantages ( look in structural testing notes for explanations)

A

.straightforward testcase generation
.based on specification

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

Functional Testing disadvantages ( look in structural testing notes for explanations)

A

.no white box knowledge
. Gaps and redundancies

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

Gaps and redundancies explained:

A

.Gaps :
- functional uses spec to group inputs
into broad partitions
- in the actual code these broad
may be split further into finer partitions
- if we test with value from broad
partition may miss behaviour from
from finer code level partitions creating
gaps in coverage}

. redundandcies:
- spec might detail multiple equivalence classes and so would test for each but if someone actually looked at code theyd see these equivalnce classes trigger same behaviour and would collapse it into one ( now only one test cases)

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