Logic Based Criteria Flashcards

1
Q

Why isn’t branch coverage enough for logical conditions?

A

Some combinations of predicates will not be tested using branch coverage

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

Why should we not use path coverage for logical conditions?

A

Scalability
No paths if short-circuiting is not present
Languages may not have short-circuiting at all

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

What is the basis for logic based coverage?

A

We want to reason about the logical expressions and how inputs affect their outcomes

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

________ ______ requires each predicate to be true in one test and be false in one test

A

Predicate coverage

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

________ ______ requires each clause to be true in one test and be false in one test

A

Clause Coverage

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

Why is predicate and clause coverage bad testing?

A

Both can have a minimum of 2 test cases (since clauses and predicates can only have 2 values). There is no requirement to test different combinations

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

What does Combinatorial/Multiple Condition Coverage testing require?

A

It requires each possible combination of clauses to be tested

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

How do we test the impact of a clause?

A

Changing the clause value and seeing if the predicate changes

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

What are the 4 requirements for Modified Condition/Decision Coverage?

A
  1. Each entry and exit is used
  2. Each decision/branch takes every possible outcome
  3. Each clause takes every possible outcome
  4. Each clause independently impacts outcome
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When generating a test suite with MC/DC, we should try to add tests based on ________ tests

A

existing

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

What is the recommended use for MC/DC. It’s not generating tests.

A

Evaluate test suites generated by other means

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