Final Material - Testing Flashcards

1
Q

What is the difference between verification and validation?

A

Verification checks if we are building the product right and it conforms to specifications
Validation checks if we are building the right product that does what the user really requires

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between inspection and testing?

A

Inspection is concerned with analysis of the static system representation to find problems.
Testing is concerned with exercising and observing product behaviour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between white box and black box testing?

A

Black box testing is tests in which the tester cannot see the code of the item being teste
White box testing is tests in which the tester is aware of the inner workings of the item being tested

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is development testing?

A

The system is tested during development to find bugs and defects. It is performed by developers and the testing team and includes unit testing, integration testing, and system testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is release testing?

A

Testing a particular release of a system intended for use outside of the development team. It is a form of black box testing that checks if the system meets requirements and is good for external use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is user testing?

A

Users or potential users are involved in testing the system. Involves alpha testing, beta testing, and acceptance testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is unit testing?

A

Testing individual components in isolation. It is performed by the development team and is a form of white box testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is integration testing?

A

Individual software modules are combined and tested as a group. it is performed by the SQA team and is a form of black box testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is system testing?

A

Testing of the whole system after all modules are combined. It is performed by the SQA team and is a form of black box testing. It tests both functional and non-functional requirements whereas unit and integration testing only cover functional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is regression testing?

A

Testing the system to check that changes haven’t broken previously working code. This is expensive for manual testing but simple with automated testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the benefits of test automation?

A
  1. Automated tests have a lower chance of being wrong
  2. Tests are readily available for the rest of the project
  3. Automated tests can be run frequently
  4. Most useful in test-intensive practices like extreme programming
  5. Automated tests improve chances of detecting problems at the earliest possible moment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between alpha and beta testing?

A

Alpha testing is when users work with the dev team to test at the dev site
Beta testing is when a release is made available to users to experiment in the environment and raise problems they discover

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is acceptance testing?

A

Customers test the system to decide whether or not it is ready to be accepted from developers and deployed in the customer environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is structured basis testing?

A

A method that tests each statement in a program at least once. We identify a set of linearly independent paths of execution and write a test case for each path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do we calculate the number of tests necessary for structured basis testing?

A
  1. Start with 1 for the straight path through the routine
  2. Add 1 for each keywork: if, while, repeat, for, and, or
  3. Add 1 for each case in a case statement, if it doesn’t have a default case, add 1 more
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a control flow graph

A

Gives a graphical representation of the structure of a program

17
Q

What is cyclomatic complexity and how do we calculate it?

A

It is a metric to calculate the complexity of a program

M = E - N + 2 where M is complexity, E is number of edges, and N is number of nodes

18
Q

What is equivalence partitioning?

A

Allows us to reduce the number of total test cases by partitioning input and output into different classes where the program behaves in the same way for each class member

19
Q

What is boundary analysis?

A

Choose test cases on each side of the boundaries for partitions discovered in equivalence partitioning. We also include cases close to the midpoint of the partition

20
Q

What is a mock object?

A

A class that is dummied so it can be used by another class being tested

21
Q

What is a stub routine?

A

A dummy low level routine used by other routines being used

22
Q

What are some possible actions of mock objects and stub routines?

A
  1. Return control immediately with no action
  2. Test data fed into it
  3. Print diagnostic messages
  4. Return standard answer regardless of input
  5. Burn up number of clock cycles allocated to the object or routine
  6. Function as a simple or less accurate version of the real object or routine