A student guide to the AQA 7517 non-exam assessment (NEA). Part 4 of 5: Technical solution (42 marks) and Testing (8 marks).
This is the heart of the project: 50 of the 75 marks are for the program you build and the evidence that it works. The technical solution is marked in two parts:
| Part | Marks | What it rewards |
|---|---|---|
| Completeness of solution | 15 | How many of your objectives the system meets, especially the most important ones |
| Techniques used | 27 | The level of technical skill you demonstrate, and the quality of your coding style and the effectiveness of the solution |
| Testing | 8 | Evidence, in carefully selected samples, that your solution works and is robust |
For general background see 4.13.1.3 (implementation) and 4.13.1.4 (testing).
Part A: Building the solution
Start early, and do the critical path first
- Don't wait until the analysis and design are "finished". The project is iterative, and you should start prototyping and writing code early.
- Identify the critical path: the part that everything else depends on. In the bus planner, that is loading the network and finding a route. Build it first, so you have a working core.
- Then add features in order of priority, from your objectives list.
- After each stage, keep a working version, and use version control (such as Git) or dated copies.
Choose techniques that fit the problem and show skill
The "techniques used" mark is about the level of demand of the techniques you use successfully (see the groups in Guide 1). The emphasis is on what you have actually achieved and shown to work, not on what you attempted.
- Aim for Group A style techniques that the project needs: for example, several interlinked database tables with parameterised SQL, graph or tree traversal, recursion, hash tables, stacks or queues, OOP with inheritance and polymorphism, or a client-server design.
- Do not just list techniques. A technique only counts if it's used properly and does something useful. A recursive function that isn't needed, or an unused class, won't earn credit.
- If a technique isn't working, a simpler technique done well is better than a complex one that fails.
- Explain your key techniques in annotations or in a short written commentary (what it does, and why you chose it).
Write good quality code
The exact mark within a band also depends on coding style. Good style is cumulative: the higher levels need everything from the lower ones.
| Level | Characteristics |
|---|---|
| Basic | Sensible names for variables and subroutines, and comments where they help a reader |
| Good | A well thought-out screen layout for the user; the code split into subroutines; variables kept local wherever possible, with very few globals; named constants for fixed values; type conversions handled carefully; tidy, consistent indentation; code that reads clearly by itself; one style throughout; file locations set in a single place |
| Excellent | Subroutines with clear parameters and return values; each module depends on the others only through its interface; each subroutine does a single job; related subroutines grouped together (in a class or file); code that expects bad input and guards against it; sound exception handling |
MAX_MINUTES = 120 # constant, not a magic number
def add_link(from_id, to_id, minutes):
"""Add a link between two stops. Returns True if it was added."""
if from_id == to_id:
return False # defensive: no link to itself
if not 1 <= minutes <= MAX_MINUTES:
return False
try:
db.insert_link(from_id, to_id, minutes) # parameterised query
except DatabaseError:
return False # good exception handling
return True
This function is cohesive (one job), has a clear interface, uses a constant, validates input defensively, and handles exceptions.
Keep records of your development
You will need to show how the solution works. As you build, collect:
- annotated code extracts of the key parts (the algorithms and data structures), explaining how they work;
- screenshots of the working program;
- notes on problems and how you fixed them (a short development log);
- evidence of iteration: how the program improved after testing or feedback.
Don't paste all your code into the report. Show representative, annotated extracts.
Check completeness against your objectives
Keep going back to your objectives table. At the end, you need to be able to say, for each, whether it is met. Marks for completeness depend on how many requirements the system meets, and the most important objectives count most.
Part B: Testing
Testing carries 8 marks. You need clear evidence that you tested the program, and that the evidence shows it meets the requirements and is robust.
Plan your tests
A test plan lists each test, why you are doing it, the data, the expected result, and later the actual result. Link each test to an objective, so you can show every important requirement has been tested.
| Test | Objective | Purpose | Test data | Expected result | Actual result | Evidence |
|---|---|---|---|---|---|---|
| 1 | O2 | Normal route | Market to School | Market, Church, School (14 min) | As expected | Screenshot 1 |
| 2 | O2 | Start equals destination | Market to Market | Message: choose different stops | As expected | Screenshot 2 |
| 3 | O7 | Blank field | (no start chosen) | Message, no crash | As expected | Screenshot 3 |
| 4 | O6 | Add a link, boundary | 120 minutes | Accepted | As expected | Screenshot 4 |
| 5 | O6 | Add a link, just outside | 121 minutes | Rejected with message | Crashed | Screenshot 5 |
| 6 | O6 | Retest after the fix | 121 minutes | Rejected with message | As expected | Screenshot 6 |
Use the three types of test data
- Normal: typical valid data, to show it works in ordinary use.
- Boundary: values on the limits, and just outside them.
- Erroneous: invalid data that should be rejected sensibly (wrong type, blank, absurdly large).
Test the whole system too: the main features working together and robustness (it doesn't crash on unexpected use).
Show the evidence
- Give screenshots (or short screen recordings, depending on your school's rules) of inputs and outputs, labelled with the test number.
- Add a short explanation of what each shows, and whether it passed.
- Show failures and fixes: a test that failed, was fixed and passed on retest shows genuine testing.
- Carefully selected representative samples are enough. You don't need to show every test.
You can test as you code or after the system is built. Evidence from either is fine, as long as it's explained.
Link back to the objectives
At the end, show that each important objective was tested and achieved. A simple table helps:
| Objective | Tested by | Result |
|---|---|---|
| O1 | Tests 1, 7 | Met |
| O2 | Tests 1, 2, 8 | Met |
| O4 | Test 9 (timed with 200 stops) | Met: 1.4 seconds |
| O8 | Test 12 | Not met (see evaluation) |
Checklist before you move on
Technical solution
- A working core exists, and most or all essential objectives are met.
- You use techniques of an appropriate level for the project, and they work.
- Code has meaningful names, comments, modules with interfaces, constants, consistent layout, defensive programming and exception handling.
- You have annotated code extracts and screenshots to show how it works.
Testing
- A test plan with expected results, linked to objectives.
- Normal, boundary and erroneous data.
- Clear, labelled evidence, with explanation.
- Some robustness testing, and retests after fixes.
Common mistakes
- Leaving the coding until late, so there is no time for the hard parts.
- Listing techniques that aren't really used, or don't work.
- Giant functions that do many jobs, with global variables everywhere.
- No validation or exception handling, so the program crashes on bad input.
- Tests with no expected results, or tests that only show the program working on easy data.
- Screenshots with no explanation, or that can't be read.
- Testing only the easy parts, and ignoring the objectives that matter.
Tip: write each test as you finish a feature, take the screenshot immediately, and label it. Collecting evidence at the end is much harder and less accurate.
Check yourself
What is the critical path, and why build it first?
It is the part of the project that everything else depends on for a working system. Building it first gives you a working core early, and exposes the biggest problems while there is time to fix them.
Why isn't it enough to list the techniques you used?
The marks reward the techniques you actually demonstrate working properly, and that are appropriate to the problem. A technique that is unused, unnecessary or doesn't work earns little or nothing.
What three types of test data should your test plan include?
Normal, boundary and erroneous data.
Why link each test to an objective?
It shows that the requirements have been tested and achieved, and that the testing is thorough, instead of random.
Give two characteristics of excellent coding style
Any two of: modules with appropriate interfaces; loosely coupled modules; cohesive modules that each do one thing; grouping subroutines with a common purpose; defensive programming; good exception handling.