Developing test plans and testing a solution - CCEATest plans

Once software has been created, it must be tested under different conditions to make sure it works. This can be achieved with white box, black box, unit, integration and system testing, as well as thorough planning and evaluation.

Part of Digital Technology (CCEA)Digital development concepts (programming)

Test plans

Purpose of a test plan

A test plan keeps track of possible tests that will be run on the system after coding. It ensures all requirements are implemented as laid out in the requirements specification.

To avoid bias, a test plan should be created by a member of the design team not involved in the programming or authoring of the project. The plan should be created prior to the creation of the code or application.

For example, an effective test plan for the square function in our coded example would look like this:

Test NumberTest DescriptionTest DataTest TypeExpected result
1Testing the input for the square function accepts an integer data type4, 8, 5ValidData will be accepted and return 16, 64, 25
2Testing the input for the square function rejects decimal numbers2.2InvalidData will be rejected with a custom error message
3Testing the input for the square function accepts negative numbers-4ValidData will be accepted and return 16
4Testing the input for the square function rejects a string'test'InvalidData will be rejected and custom error message appears
5Testing the time it takes to square a large integer120 000, 000 000, 000Extreme - Valid Data will be accepted and result returned
Test Number1
Test DescriptionTesting the input for the square function accepts an integer data type
Test Data4, 8, 5
Test TypeValid
Expected resultData will be accepted and return 16, 64, 25
Test Number2
Test DescriptionTesting the input for the square function rejects decimal numbers
Test Data2.2
Test TypeInvalid
Expected resultData will be rejected with a custom error message
Test Number3
Test DescriptionTesting the input for the square function accepts negative numbers
Test Data-4
Test TypeValid
Expected resultData will be accepted and return 16
Test Number4
Test DescriptionTesting the input for the square function rejects a string
Test Data'test'
Test TypeInvalid
Expected resultData will be rejected and custom error message appears
Test Number5
Test DescriptionTesting the time it takes to square a large integer
Test Data120 000, 000 000, 000
Test TypeExtreme - Valid
Expected resultData will be accepted and result returned