6A: test data Flashcards
what is test data made up of
sets of inputs, put into algorithms/coded solutions to check processing + outputs
main purpose of test data
makes sure all processes are checked + verified
- used efficiently when outputs are available/calculated
different kinds of testing w/ test data
- statement coverage testing: every statement executed to find unused code
- decision coverage testing: every boundary condition tested
- path coverage testing: checking every path to make sure no errors
how are test data sets created
customized to the solution
testing all pathways through algorithm/code
known as path coverage testing, requires unique set for each possible path
testing algorithms using test data
compromises made:
- reduced number of test data sets
- subroutines tested independently
two types of algorithm testing
- bottom-up testing: tests lower-level subroutines first, using driver routines
- top-down testing: tests main program/higher-level subroutines first, using stubs
extra conditions = ??
increased number of test data sets
- CASE tools assist w/ this for coded solutions
testing boundary conditions
selection + repetition use results of conditions to determine actions
- if conditions incorrect, major errors occur
decision coverage testing
each condition checked in all conditions
- if too many conditions, some can be isolated + tested separately
process of using test data
- inconsistencies found when comparing test data results + expected results further investigated
- errors corrected, tests continued
- in large projects: test report from specialists sent to developers
desk checking
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
special consideration for data types
arrays: column for array index to determine element being accessed
records: separate column for each field relevant to occurring processing
stepping through a coded solution
- automated desk check
- function provided by IDEs
- usually possible to change value of identifiers + check code before execution is recommenced