SIT323 ‐ Programming Task 1 Rubric ‐ 2021
Very
VALID FILES Unsatisfactory More work
(MarkingA.taff and MarkingA.cff) Unsuccessful (0) (1) Unsatisfactory (2) required (3) Good (4) Very Good (5) Excellent (6)
displayed correct outputs for Allocation ID = 0 (from allocation, runtime, all 6 outputs are 1 output is correctly 2 outputs are correctly 3 outputs are correctly 4 outputs are 5 outputs are 6 outputs are energy consumed, RAM, download speeds, and upload speeds) incorrectly displayed displayed displayed displayed correctly displayed correctly displayed correctly displayed
displayed correct outputs for Allocation ID = 1 (from allocation, runtime, all 6 outputs are 1 output is correctly 2 outputs are correctly 3 outputs are correctly 4 outputs are 5 outputs are 6 outputs are energy consumed, RAM, download speeds, and upload speeds) incorrectly displayed displayed displayed displayed correctly displayed correctly displayed correctly displayed
invalidated allocations (both TAFF and CFF files are valid) 0 violations detected or 1 violation detected 2 violations detected 3 violations detected 4 violations 5 violations 6 or more
logged and logged and logged and logged detected and detected and violations detected
Very
INVALID FILES Unsatisfactory More work
(MarkingC.taff and MarkingC.cff) Unsuccessful (0) (1) Unsatisfactory (2) required (3) Good (4) Very Good (5) Excellent (6)
Invalidated TAFF allocation file 0 violations detected or 1 violation detected 2 violations detected 3 violations detected 4 violations 5 violations 6 or more
logged and logged and logged and logged detected and detected and violations detected
Invalidated CFF configuration file 0 violations detected or 1 violation detected 2 violations detected 3 violations detected 4 violations 5 violations 6 or more
logged and logged and logged and logged detected and detected and violations detected
UNIT TESTING IMPLEMENTATION Unsuccessful (0) Poor (2) Good (4) Very Good (6)
Determining whether the amount of RAM required by a task is less than or equal to the amount of RAM associated with a processor.
Test for:
1. task RAM required < processor RAM 2. task RAM required = processor RAM 3. task RAM required > processor RAM
You might test a method such as
public Boolean aProcessor.IsRamSufficient(Task aTask)
Determining whether the amount of download speed required by a task is less than or equal to the amount of download speed provided by a processor.
Test for:
1. task download speed required < processor download speed 2. task download speed required = processor download speed 3. task download speed required > processor download speed
You might test a method such as
public Boolean aProcessor.IsDownloadSufficient(Task aTask)
Determining whether the amount of upload speed required by a task is less than or equal to the amount of upload speed provided by a processor.
Test for:
1. task upload speed required < processor upload speed 2. task upload speed required = processor upload speed 3. task upload speed required > processor upload speed
You might test a method such as
public Boolean aProcessor.IsUploadSufficient(Task aTask)
Determining whether the contents of a TAFF file conform to the TAFF format.
Test for:
1. First TAFF file is valid
2. Second TAFF file is valid 3. Third TAFF file is invalid
You might test these 3 files using a static method such as
public Boolean Allocations.Validate(String taffFilename, out Allocations myAllocations, out List
Determining whether the contents of a CFF file conform to the CFF format.
Test for:
1. First CFF file is valid
2. Second CFF file is valid 3. Third CFF file is invalid
You might test these 3 files using a static method such as
public Boolean Configuration.Validate(String cffFilename, out Configuration aConfiguration, out List
For an invalid TAFF file, determine whether errors in that TAFF file are detected by your code.
Test to ensure that:
1. an expected error is part of all errors collected by your validate method
2. a 2nd expected error is part of all errors collected by your validate method 3. a 3rd expected error is part of all errors collected by your validate method
You might test for these 3 expected errors using a static method such as public Boolean Allocations.Validate(String taffFilename, out Allocations myAllocations, out List
For an invalid CFF file, determine whether errors in that CFF file are detected by your code.
Test to ensure that:
1. an expected error is part of all errors collected by your validate method
2. a 2nd expected error is part of all errors collected by your validate method 3. a 3rd expected error is part of all errors collected by your validate method
You might test for these 3 expected errors using a static method such as public Boolean Configuration.Validate(String cffFilename, out Configuration aConfiguration, out List
ignored or unacceptable
ignored or unacceptable
ignored or unacceptable
ignored or unacceptable
ignored or unacceptable
ignored or unacceptable
ignored or unacceptable
1 test is acceptable
1 test is acceptable
1 test is acceptable
1 test is acceptable
1 test is acceptable
1 test is acceptable
1 test is acceptable
2 tests are acceptable
2 tests are acceptable
2 tests are acceptable
2 tests are acceptable
2 tests are acceptable
2 tests are acceptable
2 tests are acceptable
3 tests are acceptable
3 tests are acceptable
3 tests are acceptable
3 tests are acceptable
3 tests are acceptable
3 tests are acceptable
3 tests are acceptable
1 2
INVALID ALLOCATIONS ngB(MarkingB.taff and MarkingB.cff)
3
4 5
6
7
8
9
10
11
12
Very
Unsatisfactory Unsuccessful (0) (1)
Unsatisfactory (2)
More work required (3)
Good (4)
Very Good (5)
Excellent (6)
1 of 2
SIT323 ‐ Programming Task 1 Rubric ‐ 2021
CODE Unsuccessful (0)
Poor (1)
Good (3)
Very Good (5)
Layout
ignored
layout appears confusing
layout is acceptable but one or more portions need improving
layout is very logical
Layout ‐ Unit Tests
ignored
The layout (Arrange, Act and Assert) appears confusing
The layout (Arrange, Act and Assert) but one or more portions need improving
The layout (Arrange, Act and Assert) is very logical
Naming ‐ identifiers have meaningful names
ignored
some names are unacceptable
most names are acceptable but some need improving
names are meaningful
Comments
ignored
some comments are unacceptable
no /// comments used but // comments used, however one or more need improving
/// and // comments used and are very helpful
Magic Numbers
more than 2 magic numbers used
2 magic numbers found
1 magic numbers found
0 magic numbers found
Regular Expressions
ignored
regex correctly used 1 or 2 times
regex correctly used 3 or 4 times
regex correctly used 5 or more times
13 14
15 16
17 18
2 of 2