Testing & Test Data Flashcards
All 8 cards in this deck
What is the purpose of testing a program?
To check the program works as expected and gives the correct output for all inputs, and to find and remove errors before release.
What columns should a test plan contain?
The type of test (normal, boundary or erroneous), the test data, the expected result and the actual result.
What is normal (typical) test data?
Typical data that the program should accept and process correctly, e.g. 5 when the allowed range is 1 to 10.
What is boundary (extreme) test data?
Data at the limits of the allowed range and just either side of them. For an allowed range of 1 to 10, the boundary data is 0, 1, 10 and 11.
What is erroneous test data?
Data that the program should reject, e.g. data of the wrong type such as letters where a number is needed, or a value well outside the allowed range.
A program accepts whole-number heights from 40 cm to 180 cm. What is the boundary test data, and what should happen to each value?
39, 40, 180 and 181. 40 and 180 should be accepted; 39 and 181 should be rejected.
True or false? Writing "a value between 40 and 180" in the test data column of a test plan is acceptable.
False. Test data must be actual data, e.g. 50, not a description of the data.
What is a test plan?
A document, written before testing begins, that sets out how a program will be tested and which test data will be used.