Task d: part 1 - Produce test plans
using data you have been given
An important stage in design is to create a test plan which
you can follow when the program is implemented. It is vital that the
program gives the correct results and so you use a test plan to check if it
works properly.
In order to complete Assignment2Taskd, you
need to produce a record of
how you will test the program using the data provided and using data
that you have created.
Lets look at the data provided...
Data Provided:
Lawn 1:
Lawn 1 is a rectangle measuring 18 metres by 12 metres.
Lawn 2:
Lawn 2 is a circle with a diameter of 16 metres. The
radius is half the diameter.
Field 1:
The big rectangle measures 120 metres by 100 metres, and
the small rectangle (the bit missing) measures 55 metres by 50 metres.
Field 2:
The field is 100 metres by 75 metres and the pond has a
diameter of 25 metres. The radius is half the diameter.
Stored Data:
For lawn seed,
30 grams of seed covers one
square metre of lawn
For hay meadow seed,
20 grams of seed covers one
square metre of lawn
Lawn seed is purchased in
1
kilogram bags
Hay meadow seed is purchased in
5 kilogram bags
We can produce a test table with a column of expected
results calculated manually. We would also create an empty column -
ready to be filled in when we test the program with actual
results.
Have a look at my example below. (I have only included the
lawn calculations - you have to include the hay meadow calculations.)
Test
No.
Dimensions
Calculation
Expected Result
Actual
Result
Comment
Area Calculations
1
Length = 12m
Width = 18m
Area of Rectangular Lawn
216m2
2
Radius = 8m
Area of Circular Lawn
201m2
Seed Amount Calculations
5
Total Area = 417m2
Amount of Lawn Seed
12510 g
Number of Bags Calculations
6
Amount of seed needed = 12510g
Number of Bags of Lawn Seed
12.5 bags
~~Activity~~
Activity A
Download my template
Word Document
with the table above included.
Complete the table by adding rows and
including tests for the hay meadows.
Now you have produced a test plan
using the data provides, you need to create another test plan using your own
data. This means you have to make up your own lengths, widths
etc. for the different lawn and field shapes. You will have to
calculate the areas, amount of seeds and number of bags using your chosen
lengths/widths.
Have a look at my example below. (I have made up different
dimensions for the lawns. You need to make up your own
measurements.)
Test
No.
Dimensions
Calculation
Expected Result
Actual
Result
Comment
Area Calculations
1
Length = 10m
Width = 15m
Area of Rectangular Lawn
150m2
2
Radius = 5m
Area of Circular Lawn
79m2
Seed Amount Calculations
5
Total Area = 229m2
Amount of Lawn Seed
6870 g
Number of Bags Calculations
6
Amount of seed needed = 6870g
Number of Bags of Lawn Seed
6.9 bags
~~Activity~~
Activity B
Using the template
Word Document
with the table above included, make up
your own test data and complete the table by adding rows and
including tests for the hay meadows.