Intro to Testing Flashcards
_________ provides a metric of software quality. However, testing well is _____
Testing, hard
Since reasoning about behaviour is difficult, we can instead define testing as…
Running the program to see if it behaves as expected
Testing is usually more than half of _______ cost
development
Testing identifies differences between observed behaviour and ________ behaviour
expected
What are some functional quality objectives?
Correct output, features are present, UI is functional
What are some nonfunctional quality objectives?
Performance, scalability, documentation
A fault/defect is a ____ in static software. This usually results from what?
flaw, Incorrect code
A ______ is an observable, incorrect behaviour as compared to the expected results
failure
An error/infection describes what?
In incorrect internal state (that has not yet been observed)
What is a latent defect?
Unobserved defects in delivered software that testing did not expose
The later a defect is found,the more it costs to fix. Why?
The code may have been integrated into other parts of the software, making it harder to change
A test case requires ______ to provide the program and an _______ ________ to check for correctness
input, expected output
Expected behavior for a test case comes from an _____
oracle
An oracle is a means of deciding what? How is this decided?
Whether a test passes or fails
It can be decided with technical requirements (performance, functionality) or by the consumer
Since it’s impossible to test with all possible inputs, we have to find a smaller test suite that is ___________ of our goals
representative