software testing Flashcards
what is test data
inputs which have been devised to test the system
test cases
input and predicted output
what is black box testing
programs test cases are based on the system specification. Test planning can begin early
what is equivalence partitioning
classes for input dat and output. Generally choose test cases at the boundary of the sets in the classes coz these are more likly erroneous behaviour and choosing random values.
what is another name for structural testing
white box testing
what does structural testing entail?
derivation of test cases according to program structure. Objective is to exercise all program statements(not all program combinations).
difference between black and white box testing
Programming knowledge and implementation knowledge is needed in white box
what is path testing
ensure that the set of test cases is such that each path through the program is executed atleast once.
what is program flow graphs
describes the program control flow. each branch is shown as a seperate path and loops are shown by arrows looping back to the loop condition node. Used for computing cyclomatic complexity
what is the cyclomatic complexity
number of edges - number of nodes + 2 in the program flow graph
what does the cyclomatic complexity involve
number of tests to test all control statements equals the cyclomatic complexity. Equals the the number of conditions of a program +1.
Disadvantage of cyclomatic complexity
all combinations of paths are not executed.
apart from the cyclomatic complexity, what else can be used to check that paths have been executed?
a dynamic program analyser
is integration testing black or white box
black- tests complete or subsystems of ingrated components.
what is the problem of integration error
localising errors