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?
What happens at the implementation stage of the software development cycle?
Writing the program for the specific design
What happens at the testing stage of the software development cycle?
Does the program meet the requirements?
What happens at the maintenance stage of the software development cycle?
Program is output but continued updates are needed
What types of testing will impact the software development cycle?
Final testing
Iterative testing
What is final testing?
Program only goes through the development cycle once
- all the required features of the program are added at the same time
- program is tested against their initial requirements
What is iterative testing?
The program will go through the development cycle a few times
- idea is to match what the customer really wants
- the requirements at the first cycle might only include the main features, at the start of each cycle the requirements are adjusted
What is a test plan?
A test plan will outline exactly what you are going to test and how you are going to test it. It should cover all possible paths through a program.
-Should be made before implementation
What three categories should appear on a test plan?
Normal data
Extreme(boundary) data
Erroneous data
What is normal data?
things that a user is likely to input into a program
What is extreme data?
values at the limit of what the program should be able to handle
What is erroneous data?
inputs that the program should not accept
What columns should you have on a test plan table?
Type of data
Test data
Reason for testing
Expected outcome
What columns should you have on an actual testing table?
Type of data Test data Reason for testing Expected outcome Actual outcome Pass or Fail