What is the difference between verification and validation?
Validation: have we built the right system?
- check all requirements are satisfied;find missing funtionality
Verification; have we built the system right?
- check system behave correctly; check for consistency and completeness
3 methods of validation?
3 goals of verification?
Describe breifly 4 different kinds of testing
What is the oracle problem?
What is the oracle test?
-assumes code must conform to some correct specification
Describe 3 different testing strategies
Manual; user written tests
Random; tools randomly generate test sequences
Model-based; test sets generate automatically
What is testing coverage?
How much of the software is validated by the test set
3 different levels of software coverage that can be achieved by white-box testing?
2 methods of black-box testing
How do we write positive and negative OCL tests using preconditions?
+ supply a test satisfying all preconditions
- supply a test violating each condition
How do we write positive and negative OCL tests using postconditions?
supply tests whose argument shsould trigger each kind of outcome
- supply tests whose inputs dont satisfy any of the postconditions
How do we write positive and negative OCL tests using invariants?
+ does invariant hold after construction?
- force object into an inconsistent state and evaluate
WHat method do we use to test from a state machine?
Generate test sequences to reach every state
Exercise every method once in every state
Check we reach the desired next state
What is meant by the state cover?
Set of shortest sequences that is guaranteed to reach every state (after reset)
What is meant by the characertization set?
smallest set of shortest sequences that will uniquely distinguish being in each state