Testing Flashcards
(15 cards)
Purposes of testing
- Ensure a program works correctly, no matter what input has been entered by the user
- Ensuring the user requirements have been met
- Ensuring errors have been removed
- Ensure the program doesn’t crash while running
What are the types of testing?
Iterative testing and Final testing
Iterative testing
- Takes place during program development
- Programmer develops a module, tests it and repeats this process until the module works as expected
Final Testing
- Takes place after development, before the program is released to the end user
- Commences once all modules have been individually tested to ensure the whole program works as originally expected
What are the types of programming errors?
Syntax error and Logic error
Syntax Error
Mistake in the grammatical rules of the programming language e.g. incorrect spelling of a command word
Effect of a syntax error
Prevents the program from being compiled and executed
Logical Error
Mistake made by the programmer, where the program runs without crashing but will display the wrongly intended output
Test Data
Used to test whether a program is functioning correctly
Criteria of Test Data
Should cover a range of possible and incorrect and inputs, each designed to prove a program works or to highlight any flaws
What are the 4 types of test data?
Normal, boundary, invalid, erroneous
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 of the correct data type that does not meet the validation rules, e.g. out of range, it should not be accepted
Erroneous data
Data of the wrong data type that the program cannot process and should not accept