6A: test data Flashcards

1
Q

what is test data made up of

A

sets of inputs, put into algorithms/coded solutions to check processing + outputs

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

main purpose of test data

A

makes sure all processes are checked + verified
- used efficiently when outputs are available/calculated

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

different kinds of testing w/ test data

A
  1. statement coverage testing: every statement executed to find unused code
  2. decision coverage testing: every boundary condition tested
  3. path coverage testing: checking every path to make sure no errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how are test data sets created

A

customized to the solution

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

testing all pathways through algorithm/code

A

known as path coverage testing, requires unique set for each possible path

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

testing algorithms using test data

A

compromises made:
- reduced number of test data sets
- subroutines tested independently

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

two types of algorithm testing

A
  1. bottom-up testing: tests lower-level subroutines first, using driver routines
  2. top-down testing: tests main program/higher-level subroutines first, using stubs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

extra conditions = ??

A

increased number of test data sets
- CASE tools assist w/ this for coded solutions

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

testing boundary conditions

A

selection + repetition use results of conditions to determine actions
- if conditions incorrect, major errors occur

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

decision coverage testing

A

each condition checked in all conditions
- if too many conditions, some can be isolated + tested separately

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

process of using test data

A
  1. inconsistencies found when comparing test data results + expected results further investigated
  2. errors corrected, tests continued
    - in large projects: test report from specialists sent to developers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

desk checking

A

process of evaluating each statement by hand and recording results in table
- fluctuating values of identifiers recorded
- if too many changes in a repetition, first and last ones usually prioritized

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

special consideration for data types

A

arrays: column for array index to determine element being accessed
records: separate column for each field relevant to occurring processing

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

stepping through a coded solution

A
  • automated desk check
  • function provided by IDEs
  • usually possible to change value of identifiers + check code before execution is recommenced
How well did you know this?
1
Not at all
2
3
4
5
Perfectly