Week 9 Flashcards

1
Q

What is the difference between validation testing and defect testing?

A

Validation testing: ensures system meets clients expectations

Defect testing: detects defects and problems

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

What is the difference between black and white box testing?

A

Black-box: from outside, just public methods (user view)

White-box: from inside, considering all aspects (programmer view)

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

what are 3 examples of algorithmic faults?

A

Missing initialization

Incorrect branching condition

Missing test for null

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

What is an example of a mechanical fault?

A

Operating temperature outside equipment specification

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

What are 3 examples of an error?

A

Null reference error

Concurrency errors

Exceptions

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

What are the 3 levels of testing?

A

Level 1 - Test modules (classes), programs and “suites”

Level 2 - “Alpha” - Execute programs in simulated environment and test input and output

Level 3 - “Beta” - Test in a live user environment and test for response times, performance under load and recovery from failure

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

What are the 6 types of test in the hierarchy?

A

Unit test

Integration test

Function test

Performance test

Acceptance test

Installation test

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

The only type of testing that is not undertaken by the programmers is _____ testing.

This is done by _____________.

A

Acceptance testing

The client

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

What is the difference between unit testing and integration testing?

A

Unit testing tests individual methods with stubs for any interfaces - white box

Integration testing tests a system of integrated components up to the whole program - black box

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

What are the two approaches to integration testing?

A

Top-down testing - start with high level and replace individual components with stubs where appropriate

Bottom-up testing - Integrate individual components, replacing the stubs until the complete system has been tested

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

What is functional testing?

A

Tests each function against its functional requirement. Not concerned with internals as long as it works.

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

What is performance testing?

A

Test the program’s use of resources and time

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

What is stress testing?

A

Test the system beyond its maximum design load

See how it copes/recovers if things fail

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

What is regression testing?

A

Rerunning all previous tests after applying changes

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

What is acceptance testing?

A

Tests against the client’s requirements in a test facility

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

What is installation testing?

A

Execute in target environment with configuration etc.

Re run all previous tests

17
Q

What is the goal of unit testing and integration testing?

A

Unit testing - to ensure the component is correctly coded

Integration testing - test the interfaces between the subsystems

18
Q

What type of behaviour is the focus of black box testing?

A

I/O behaviour - testing to ensure input gives correct output

19
Q

How can the number of test cases in black box testing be reduced?

A

Equivalence partitioning - dividing inputs into equivalence classes and testing from each class

e.g. one negative number is enough to test that negative numbers work

20
Q

If an input is valid across a range of values, 3 types of value should be tested:

A

Below the range

Within the range

Above the range

21
Q

What are the 4 elements in unit testing

A

Cases

Driver

Oracle

Stubs

22
Q

What are the components of a test case?

A

Set of input data

Expected results

23
Q

What are the steps in test driven development?

A

Add a test

Run test to ensure it fails

Update functional code to ensure it passes

re run and keep updating functional code until tests pass

refactor and move on

24
Q

What are the benefits of Test driven development?

A

Shortens programming feedback

Provides detailed executable specifcations

promots high quality code

provides concrete evidence the code works

requires developers to prove it with code

provides finely grained feedback within minutes

ensures design is clean

supports evolutionary development

25
Q

Test driven development implies ________________ methodology

A