02 Section 6 - Testing Flashcards
What types of programming errors can occur?
Syntax errors
Logic errors
What is a syntax error?
When the compiler or interpreter doesn’t understand something you’ve typed because it’s doesn’t follow the grammar or rules of the programming language
What is a logic error?
When the compiler or interpreter is able to run the program, but the program does something unexpected
What can diagnose syntax errors?
Compilers or interpreters
-they’ll be unable to turn the source code into machine code and a syntax error will be returned
What can diagnose a logic error?
More difficult to diagnose since compiler and interpreters won’t pick them up
-they are found through the general use of the program and by systematically testing it using a test plan
What is the aim of testing a program before it is released?
To see if the program actually meets its initial requirements
What are the different types of testing?
Functionality testing Performance test Usability test Security test Load/Stress test
What is functionality testing?
Seeing whether their is logic errors and whether the program works as you’d expect
-this shouldn’t be left until the end of the process
What is performance testing?
Tests how quickly certain features run and their impact on computer resources
What is usability testing?
Tests how user-friendly the interface and features are
What is security testing?
Tests vulnerability to attacks and how securely data is stored
What is load/stress testing?
Tests how it copes under extreme conditions (e.g. loads of users at one time)
What are the stages of the software development cycle?
- Requirements
- Design
- Implementation
- Testing
- Maintenance
What happens at the requirements stage of the software development cycle?
What does the consumer want the program to do?
What happens at the design stage of the software development cycle?
How will the program meet the requirements?