7.2.2
Testing
Purpose of Testing
Purpose of Testing
Errors in software are often called bugs. Testing helps to identify bugs. Debugging gets rid of bugs.
Bugs
Bugs
- Bugs are mistakes in the programming of a system.
- Bugs are not deliberate attempts to bring down systems.
Testing
Testing
- The purpose of testing is to check that a program:
- Works as intended under good conditions.
- Copes with errors when given bad data.
- Different types of testing take place at different points in the development and deployment of a solution.
Debugging
Debugging
- Once a bug has been identified in testing then it can be debugged.
- Debugging means finding the cause of the bug, and fixing it.
Types of Testing
Types of Testing
Different types of testing take place at different points in the development of a solution, including performance and load testing, usability testing, functionality testing, and security testing.
Iterative testing
Iterative testing
- Iterative testing involves testing code as it is written.
- The results of this continual testing are fed back into the development process.
Terminal testing
Terminal testing
- Terminal testing happens at the end of development:
- The results of this final testing are used to check how the software performs when given a certain set of test data.
Test Plans
Test Plans
It is important to make sure that tests are planned carefully to make sure that as many bugs as possible are fixed before deployment.
Test data
Test data
- To make sure that testing is thorough, both expected and unexpected data should be used in testing:
- Valid data is correct and of the right format.
- Extreme data is correct but on the edge of the valid range.
- Invalid data is not within the acceptable range or is an invalid format.
- Null data is where no data is entered to see what happens.
- Erroneous data is of the wrong type altogether.
Test plans
Test plans
- Test plans make sure that testing is effective by detailing exactly which tests will be performed, what test data will be used, and what the system's intended outcome should be.
- A test plan should be created before development. It is part of the design stage.
- Testing should cover all of the success criteria of the project.
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Jump to other topics
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Unlock your full potential with GoStudent tutoring
Affordable 1:1 tutoring from the comfort of your home
Tutors are matched to your specific learning needs
30+ school subjects covered