chapter 8 Flashcards

1
Q

why does software fail?

A
wrong reqs
missing reqs
impossible reqs
faulty design
faulty code
bad implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the objective of testing?

A

discover faults and fixing them.

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

what is fault identification?

A

determining what fault caused a failure.

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

what is fault correction?

A

making changes to remove faults.

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

Name the seven types of faults.

A
  1. algorithmic fault.
  2. precision fault (formula implementation is wrong)
  3. documentation fault. (docs incorrectly describe prog)
  4. capacity or boundary. (system performance)
  5. timing or coordination faults. idk
  6. performance faults. (not operating at prescribed speed.)
  7. standard and procedure faults.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an algorithmic fault?

A

algorithm does not produce desired results.

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

page 8.

A

idk

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

What are the different types of test (in order).

A
  1. unit testing.
  2. integration testing.
  3. functional testing.
  4. performance testing.
  5. acceptance testing.
  6. installation testing.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is egoless programming?

A

there is not individual tie or ownership to any program.

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

Who performs the tests?

A

independent test team.

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

What is closed or black-box testing?

A

assertion testing with a wide rage of inputs.

advantage: free of internal constraints.
disadvantage: cannot test all inputs.

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

What is clear or white-box testing?

A

test cases that execute all statements or all control paths.

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

What factors to consider when choosing tests?

A

Number of possible logical paths.
Nature of the input.
Amount of computation.
Complexity of algorithms.

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

What is code walkthrough (code review)?

A

present code and documentation to review team for comments.

informal process.

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

What is code inspection (code review)?

A

more formal process than code walkthrough.

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

preparation and meeting times…

fault discovery rate.

A

page 18. take the L if its on the test.

page 19. sigh.

17
Q

What is test thoroughness?

A
  1. statement testing
    - all statements in component are executed at least once.
  2. branch testing
    each branch is tested at least once.
  3. path testing
    each distinct path is tested at least once.
  4. definition-use testing
    declared variable usage testing.
  5. all-uses testing
    no dead paths. all defined paths are reachable.
  6. all-predicate-uses
    test all uses of each variable.
  7. all-computational-uses
    test all computational use of every variable.
18
Q

What are the 6 methods for integration testing?

A
  1. bottom-up
  2. top-down
  3. big-bang
  4. sandwich testing
  5. modified top-down
  6. modified sandwich
19
Q

what is component driver (integration testing)?

A

a routine that calls a particular component and passes a test case to it.

mocha “users create” test a particular portion of a unit.

20
Q

what is stub (integration testing)?

A

special-purpose program that simulates activities of missing components.

21
Q

what is bottom up testing (integration testing)?

A

when a system is decomposed.

test from the lowest level to the highest level.

22
Q

what is top down testing (integration testing)?

A

when a system is decomposed.

test from the highest level to the lowest level.

23
Q

what is modified top-down (integration testing)?

A

from the top.
each component is unit tested before merging.
after merging, test again.

24
Q

what is big-bang (integration testing)?

A

uses stubs and drivers to test individual components.

then everything is combined and tested again.

25
Q

what is sandwich testing (integration testing)?

A

bottom-up wannabe

26
Q

what is modified sandwich testing (integration testing)?

A

allows upper level components to be tested without merging with lower level ones.