Intro to Testing Flashcards

1
Q

_________ provides a metric of software quality. However, testing well is _____

A

Testing, hard

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

Since reasoning about behaviour is difficult, we can instead define testing as…

A

Running the program to see if it behaves as expected

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

Testing is usually more than half of _______ cost

A

development

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

Testing identifies differences between observed behaviour and ________ behaviour

A

expected

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

What are some functional quality objectives?

A

Correct output, features are present, UI is functional

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

What are some nonfunctional quality objectives?

A

Performance, scalability, documentation

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

A fault/defect is a ____ in static software. This usually results from what?

A

flaw, Incorrect code

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

A ______ is an observable, incorrect behaviour as compared to the expected results

A

failure

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

An error/infection describes what?

A

In incorrect internal state (that has not yet been observed)

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

What is a latent defect?

A

Unobserved defects in delivered software that testing did not expose

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

The later a defect is found,the more it costs to fix. Why?

A

The code may have been integrated into other parts of the software, making it harder to change

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

A test case requires ______ to provide the program and an _______ ________ to check for correctness

A

input, expected output

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

Expected behavior for a test case comes from an _____

A

oracle

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

An oracle is a means of deciding what? How is this decided?

A

Whether a test passes or fails

It can be decided with technical requirements (performance, functionality) or by the consumer

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

Since it’s impossible to test with all possible inputs, we have to find a smaller test suite that is ___________ of our goals

A

representative

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

What are the 5 approaches to testing?

  1. Test until you run out of ____/_____
  2. Identify redundant inputs based in _________/ _______ ______
  3. Identify poorly tested areas by measuring how well your tests identify ______ _____
A

time/money
specification/ program structure
potential bugs