3.2 Testing Flashcards
What are the purposes of testing
‘The main purpose of testing is to ensure that a program works correctly no matter what input has been entered by the user.
Other reasons to test a program include ensuring the user requirements have been met, errors have been removed and the program
doesn’t crash while running.
What are the two types of program testing
. Iterative testing
. Final Testing
Iterative Testing
Iterative testing takes place during
program development.
The programmer develops a module,
tests it and repeats this process until the
module works as expected.
Final Testing
Final testing, also known as terminal
testing, takes place after development
and before the program is released to
the end user.
This testing takes place once all modules
have been individually tested to ensure
the whole program works as originally
expected.
Syntax Error
A syntax error is a mistake in the grammar or spelling of the
program.
A syntax error will prevent the program from being compiled.
Logic Error
A logical error is a mistake made by the programmer - the program
still works but displays the wrong output.
What is Test Data
Test data is used to test whether a program is functioning correctly.
It should cover a range of possible and incorrect inputs, each designed to prove a program works or to highlight any flaws.
What are the three types of Test Data
. Normal data
. Boundary data
. Invalid data
Normal data
Sensible data that the program should accept and be able to process.
Boundary data
Data at the extreme boundary of any data ranges.
Invalid data
Data that the program cannot process and should not accept.