Testing Flashcards

1
Q

Testing levels

A
  • Unit testing
  • Integration testing
  • System testing
  • Acceptance testing
  • Regression testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Integration testing

A
  • Accessing the interface between the software components
    read more on this…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

System testing

A

Overall testing of the system
- after components are developed and working together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Regression testing

A
  • Checking that after a defect has been fixed, we havent broken something new
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Testing with j unit

A
  • Within a test class
  • Using @Test
  • Normally each class has a seperate unit test class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly