7.2.2

Testing

Test yourself

Purpose of Testing

Errors in software are often called bugs. Testing helps to identify bugs. Debugging gets rid of bugs.

Bugs

  • Bugs are mistakes in the programming of a system.
  • Bugs are not deliberate attempts to bring down systems.

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

  • 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

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.

Illustrative background for Iterative testingIllustrative background for Iterative testing ?? "content

Iterative testing

  • Iterative testing involves testing code as it is written.
    • The results of this continual testing are fed back into the development process.
Illustrative background for Terminal testingIllustrative background for Terminal testing ?? "content

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

It is important to make sure that tests are planned carefully to make sure that as many bugs as possible are fixed before deployment.

Illustrative background for Test dataIllustrative background for Test data ?? "content

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.
Illustrative background for Test plansIllustrative background for Test plans ?? "content

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.

Jump to other topics

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Procedurally

6.3Thinking Logically

7Problem Solving & Programming

8Algorithms

Go student ad image

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

Book a free trial lesson