Testing

Cards (12)

  • The purpose of testing is to ensure that for any input, the program always works correctly.
  • Types of testing:
    • Iterative
    • Final/terminal
  • Iterative testing
    The program is tested while it is being developed.
  • Final/terminal testing
    The program is tested at the end of the development process. The whole program is tested at the same time to check that it's working correctly
  • Syntax error
    Errors which break the grammatical rules of the programming language and stop it from being run/translated
  • Logic error
    Errors which produces an unexpected output
  • Tests should include:
    • Normal data
    • Boundary data
    • Invalid data
    • Erroneous data
  • Normal test data
    Data which should be accepted by a program without causing errors
  • Boundary test data
    Data of the correct type which is on the very edge of being valid
  • Invalid test data
    Data of the correct data type which should be rejected by a computer system
  • Erroneous test data
    Data of the incorrect data type which should be rejected by a computer system
  • PRINt("hello)
    What type of error is this an example of?
    Syntax