2.3.2 - Testing Flashcards
What is the purpose of testing?
To ensure that a program runs without errors, does what is expected and meets user requirements.
Iterative testing is…
regular testing a small section of the code during development to see if it works. Done during development of the code until it works exactly how the programmer wants it to
Final/Terminal testing is…
Carried out during the end of development once the code is believed to be complete and iterative tesing has been done on all the parts
What is a syntax error?
Not following the grammatical rules of the programming language. This means the program can’t be run and an error is reported by the IDE
What can a syntax error be caused by
- Missing brackets
- Misspelling terms e.g print as pint
- Not declaring variables
What is a logical error?
A mistake in a calculations or comparison that leads to an unexpected output. The program will still run however.
What is normal test data?
Sensible data that lies within the test range. It should be accepted into a program with no errors.
What is boundary test data?
The upper and lower limits of valid data (data on the edges of the valid range)
What is invalid test data?
Data of the correct type, but outside the validation limit (range)
What is erroneous data?
Data of the incorrect type, which will be rejected by the system e.g. a string in an integer input
examples of logic errors
- Using AND and OR wrong
- Using < and > wrong
- MAking an infinite loop