Testing Flashcards
1
Q
Testing levels
A
- Unit testing
- Integration testing
- System testing
- Acceptance testing
- Regression testing
2
Q
Unit testing
A
- A unit test targets a small unit of code (method or class)
- Percentage of unit tests known as test coverage
- Ensure the code works as intended or whether any modifications are required
- High test covered of your code allows you to develop features without lots of manual testing
3
Q
Integration testing
A
- Accessing the interface between the software components
read more on this…
4
Q
System testing
A
Overall testing of the system
- after components are developed and working together
5
Q
User acceptance testing (UAT)
A
- Performed by customers
- Includes Alpha and Beta testing
- Alpha is early on in development and limited group, lacks non functional attributes like performance
- Beta is closer to final product and
6
Q
Regression testing
A
- Checking that after a defect has been fixed, we havent broken something new
7
Q
Testing with j unit
A
- Within a test class
- Using @Test
- Normally each class has a seperate unit test class
8
Q
Characteristics of a good unit test
A
- Runs fast
- Separates or simulates environmental dependencies, such as databases, file systems, networks, queues and so on
- Is limited in scope
- Clearly reveals intention
- Should run an pass in isolation
- Often uses stubs and mock objects