Sub topic 16
Testing everything before launch
This chapter assumes you have already written quizzes, exercises, and downloadable files, and you know how to set pass marks and attempt limits on your platform. It covers how to find defects in that material before learners do.
Why test separately from proofreading
Proofreading checks whether the content reads well. Testing checks whether the course behaves correctly: scores add up, files open, locked content stays locked, and a learner can finish every path. Many defects only appear when you act as a learner, such as a correct answer marked wrong, a download that returns a login page, or a quiz that cannot be passed.
Test as a learner account, not as an administrator. Administrator views often bypass access rules, hide attempt limits, and skip prerequisites, so they can make a broken course look fine.
Build a test plan from the course structure
List every quiz, exercise, and file, then assign each one a set of checks. The checks fall into five groups.
| Group | What you verify | Typical failure |
|---|---|---|
| Scoring | Correct answers score, wrong answers do not, pass mark and attempts behave as configured | Answer key has a typo, multi-select partial credit differs from your intent |
| Delivery and access | Files download, open, and are restricted to the right learners | Link returns an HTML login page, a free-preview learner can fetch paid files |
| Accessibility | Keyboard, screen reader, contrast, and alternative formats work | Quiz cannot be completed without a mouse, a scanned PDF has no text layer |
| Placement and pacing | Items appear in the intended order and gating works | A quiz unlocks before the lesson it assesses |
| Learner experience | Instructions, timing, and feedback make sense to a newcomer | An exercise needs a file that is not linked anywhere |
Test scoring with known inputs
Do not rely on one manual run. Pick inputs whose result you already know and confirm the output matches. For each quiz, try at least these cases:
- All answers correct. The result is full marks and a pass.
- All answers wrong or left blank. The result is zero and a fail.
- A score exactly on the pass mark. Check whether your rule is "at least" or "more than".
- One point below the pass mark.
- For multi-select questions: all correct choices, one correct choice only, and all correct plus one wrong.
- Using up the last allowed attempt, then trying one more.
If you score quizzes in your own code or export data from the platform, you can automate these cases. The following script uses the all-or-nothing scorer from earlier in the tutorial. Save it as score.test.js and run it with node score.test.js.
const assert = require("node:assert");
function scoreQuestion(question, selected) {
const correct = new Set(question.correct);
const chosen = new Set(selected);
if (correct.size !== chosen.size) return 0;
for (const id of chosen) {
if (!correct.has(id)) return 0;
}
return 1;
}
function scoreQuiz(questions, answers, passMark = 0.7) {
const total = questions.length;
const earned = questions.reduce(
(sum, q) => sum + scoreQuestion(q, answers[q.id] ?? []),
0
);
const ratio = total > 0 ? earned / total : 0;
return { earned, total, ratio, passed: ratio >= passMark };
}
const questions = [
{ id: "q1", correct: ["c"] },
{ id: "q2", correct: ["a", "b"] },
{ id: "q3", correct: ["d"] },
{ id: "q4", correct: ["a"] },
{ id: "q5", correct: ["b"] },
{ id: "q6", correct: ["c"] },
{ id: "q7", correct: ["a"] },
{ id: "q8", correct: ["d"] },
{ id: "q9", correct: ["b"] },
{ id: "q10", correct: ["c"] },
];
const allRight = {
q1: ["c"], q2: ["a", "b"], q3: ["d"], q4: ["a"], q5: ["b"],
q6: ["c"], q7: ["a"], q8: ["d"], q9: ["b"], q10: ["c"],
};
// All correct passes
assert.strictEqual(scoreQuiz(questions, allRight).passed, true);
// Blank submission scores zero and fails
assert.deepStrictEqual(
{ earned: scoreQuiz(questions, {}).earned, passed: scoreQuiz(questions, {}).passed },
{ earned: 0, passed: false }
);
// Exactly 7 of 10 sits on the 70% pass mark and passes
const onMark = { ...allRight, q8: ["a"], q9: ["a"], q10: ["a"] };
assert.strictEqual(scoreQuiz(questions, onMark).passed, true);
// 6 of 10 is one point below and fails
const below = { ...onMark, q7: ["b"] };
assert.strictEqual(scoreQuiz(questions, below).passed, false);
// Multi-select: one of two correct choices earns nothing
assert.strictEqual(scoreQuestion(questions[1], ["a"]), 0);
// Multi-select: both correct plus a wrong one earns nothing
assert.strictEqual(scoreQuestion(questions[1], ["a", "b", "c"]), 0);
console.log("All scoring checks passed");The boundary tests matter most. A pass mark of 70% on 10 questions passes at 7, but on 12 questions 8 of 12 is 66.7%, which fails, and 9 of 12 is 75%, which passes. Learners can be surprised by this, so check the cut-off for each quiz length you actually use.
Also read the answer key against the questions. Most scoring defects are wrong keys, not wrong code. Have a second person take each quiz using only the questions, then compare their answers to the key. Every disagreement is either a key error or an ambiguous question.
Test delivery and access
For every file, check four things from a clean browser session with no cached login:
- The link opens or downloads the right file, not an error page.
- The downloaded file opens in the program a learner is likely to use, and the size matches what the link text says.
- A learner without access, such as an unenrolled visitor or someone on a free preview, cannot reach the file by the direct URL.
- A learner with access still can after their session expires and they log in again.
A command-line check catches a common failure, where a protected link returns status 200 with an HTML login page instead of the file. Compare the content type and size with what you expect.
curl -s -L -o /dev/null \
-w "status=%{http_code} type=%{content_type} bytes=%{size_download}\n" \
https://example.com/downloads/module-2-worksheet.pdfFor a public file, expect status=200 type=application/pdf and a byte count near the size you published. For a restricted file, run the same command without credentials and expect a 401 or 403, or a redirect to login. A 200 with type=text/html means the file is not being served.
Test on at least one phone, since many learners open worksheets there. Large files and unusual formats are the usual casualties.
Test accessibility
Automated checkers find only part of the problems, so combine them with manual passes:
- Complete each quiz using only the keyboard. Every choice and the submit button must be reachable and visible when focused.
- Open one quiz and one file with a screen reader. Check that choices are read as a group with the question, and that the PDF has real text and a sensible reading order.
- Zoom to 200% and confirm nothing is cut off.
- Check that feedback does not depend on color alone. "Correct" and "Incorrect" should be written out.
- If a quiz is timed, confirm that learners who need more time can get it.
Test placement and pacing
Take the course in the intended order and note where you stall. Confirm that each quiz comes after the lesson it assesses, each exercise's input files are linked at the point they are needed, and prerequisites unlock the next item and nothing else. Time yourself on each activity and compare it with the time you state in the instructions. If a learner who knows the material takes twice as long as promised, the estimate is wrong.
Walk-through and pilot
Create fresh learner accounts and complete the whole course once without shortcuts. Then run a pilot with three to five people who resemble your learners and were not involved in writing. Ask them to think aloud and do not help them. Record where they hesitate, misread an instruction, or give up.
Keep a defect log with the item, the steps to reproduce, the expected and actual result, and a severity. Fix anything that blocks completion, gives a wrong score, or exposes restricted files before launch. Cosmetic items can follow. After each fix, rerun the checks around it, because changing an answer key or replacing a file can break something nearby.
Exercise
A quiz has 8 questions and a pass mark of 75%. A learner answers 6 correctly. Does the learner pass? Name two other boundary cases you would test for this quiz, and one access check you would run on its companion worksheet.
Show answer
Yes. 6 of 8 is exactly 75%, and the rule is "at least", so the learner passes. Two other boundary cases: 5 of 8 (62.5%, just below, should fail) and 8 of 8 or 0 of 8 for the extremes. Also test a multi-select question with partial selections, and the final allowed attempt. For the worksheet, open its direct URL in a clean session without logging in and confirm it returns a login redirect or 401/403, not the file.
Exercise
A pilot learner reports that the "Download worksheet" link opens a page that says "Sign in". You are logged in and the file downloads fine for you. What are two likely causes, and how would you check each?
Show answer
One cause is that the learner's session expired or they are not enrolled, so the access rule correctly blocks them. Check by enrolling a fresh test account and downloading the file. The other cause is that the link points to a URL that needs a separate login, such as a private cloud storage link, which works for you only because your browser holds a cookie. Check by opening the link in a private window and running a curl request without credentials.