Test Generation Strategies Flashcards
What type of test generation needs requirements modeled using a formal notation?
Model-based test generation
Name some test generation strategies for requirements
- finite-state machines
- statecharts
- Petri nets
- timed I/O automata
- algebraic and logic specifications
- code + run-time data -> test selection
An informal process to review a work product
Walkthroughs
a formal review process with defined roles
Inspections
__% of software errors can be found by inspections
before the first test case is run
90
T/F Inspections are the least useful, least cost-effective form of error removal
F, most useful and most cost-effective
T/F At the inspection, specific metrics should be collected and tracked which will describe defects, defect removal efficiency, and efficiency of the inspection process
T
T/F The program needs to fund inspections and track rework savings
T
T/F Inspections are the most useful, most cost-effective form of error removal
T
T/F You should prioritize more complex modules for peer review
T
T/F cyclomatic complexity <10 good, >20 bad
T
Generation of tests from a formal model of program behavior
Model-based testing
List some sources of test generation
Black-box testing
White-box testing
Model-based or specification-based testing
Interface testing
List some test process models
Waterfall V-model Spiral Agile Test driven development (TDD)
T/F Testing is an economic activity
T
Measuring the goodness of a test set T, a collection of test inputs, based on one or more test adequacy criteria
Test assessment
Measuring test adequacy and improving a test set against a sequence of well defined, increasingly strong, coverage domains leads to improved reliability of the system under test
Coverage Principle
List some coverage domains
- requirements
- classes
- mutations
- exceptions
- data flows
List the hierarchy of coverage criteria from lowest to highest
- requirements
- function/method
- statement
- decision
- conditions
- modified paths
- data flow
- mutation
What is the saturation region?
A region where no new defects are found and fixed
Finding and fixing previously undiscovered defects leads to greater ____ in the program
Confidence
T/F Any method of constructing functional tests is inadequate in comparison to code-based coverage criteria
T
T/F In the software development life cycle testing activities should start as early as possible and should be focused on defined objectives
T
If the same kinds of tests are repeated again and again, eventually the same set of test cases will no longer be able to find any new bugs
Saturation Region