Path Testing Flashcards

1
Q

Primary applicable to

A

Component testing

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

When a program is executed

A

It follows various paths

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

What are we concerned with in path testing

A

Identifying possible paths through code and identifying test cases with knowledge of possible paths in advance

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

Bug assumption path testing

A

Assume program either makes right decision at wrong time or makes wrong decision at right time , the wrong path

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

Statement coverage

A

Most basic
Every statement executed at least once

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

Branch coverage

A

More refined
Every outcome of every decision executed at least once

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

Coverage measured as percentage

A

Statement coverage (statements executed / total statements) x 100 easiest to achieve
Branch coverage = (branch outcomes executed / total branch outcomes) * 100
Path coverage = (paths executed / total number of paths) x 100 hardest to achieve

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

Procedure for statement testing

A

Identify all executable statements
Trace execution from first statement
For each decision encountered choose the true outcome first
Make sure all statements covered, if not keep covering
Repeat above until all statements covered by at least one test case
Record. Variable values required to force execution path you take

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

From paths to test cases

A

Process of choosing input values is called sensitising the path
Choose easiest pasty’s

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

Statement testing

A

Executable statements do something
Statement coverage requires you to exercise each statement at least once
Every statement of code executed at least once

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

Decision testing

A

Excercise all outcomes of decision in code
Reuse test cases for statement and add new ones
Trace on path through code then pick off remaining decisions with new tests

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

Path coverage

A

Ensures covering all paths from start to end

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