Testing Flashcards
What is a Failure in SE?
any deviation/difference of observed behaviour from specified behaviour, informally also called “crash”
What is an Error in SE?
system is in a state such that further processing can lead to failure (e.g. wrong user input, null
reference errors, concurrency errors, exceptions)
What is a Fault in SE?
mechanical or algorithmic cause of an error, informally also called “bug
Which types of faults are there?
- Algorithmic fault: e.g. compass shows wrong values, missing test for null/ initialisation, incorrect branching condition, missing test for null
- Usage fault: wrong usage of compass
- Communication fault
- Mechanical fault: very hard to find, e.g. operating temperature
What is validation in SE?
activity checking for deviations between observed and specified behavior
Name the 4 types of testing.
- Unit Testing
- System Testing
- Integration Testing
- Acceptance Testing
Shortly describe Unit Testing and its goal.
- Individual components (class or subsystem) are tested
- Carried out by developers
- Goal: confirm that the component is correct and carries out the intended functionality
Shortly describe System Testing and its goal.
- The entire system is tested
- Carried out by developers
- Goal: determine if the system meets the requirements (functional and nonfunctional)
Shortly describe Integration Testing and its goal.
- test groups of subsystems and eventually the entire system are tested
- Carried out by developers
- Goal: test the interfaces of the subsystems
Shortly describe Acceptance Testing and its goal.
- Evaluates the system delivered by developers
- Carried out by the client: may involve executing typical transactions on site
- Goal: demonstrate that the system meets the requirements and is ready to use
Describe the process of Unit Tests with Easy mock.
- Create the mock object
- specify the expected behaviour with expect(…).andReturn();
- Make the mock object ready to play
- Execute the SUT
- Compare observed with expected behaviour