7.6: QA Checklist Before Publishing
- Page ID
- 557412
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
Use this section when your problem is working and you want to make sure it is ready for students. This is the final check before publishing. The two checklists below cover code-level issues (things the computer cares about) and author-level issues (things that affect students). Run both before you ship.
These checklists are distilled from the most common problems found in real WeBWorK files (see also Workflow and QA for the full authoring workflow). Each item links back to the section where you can find a full explanation and fix. If you are not sure what an item means, follow the section reference first.
Prevention checklist: code-level checks
Walk through this table before you render for the last time. Each row is one thing that can silently break your problem without producing an obvious error message. Most of these issues will not show a helpful error -- the problem will simply render wrong or grade incorrectly.
| Check | What to verify | Section reference |
|---|---|---|
| Variables defined before use | All variables are assigned values before they are referenced in arrays, shuffles, or PGML | Common Mistakes and How to Fix Them |
No my on PGML-visible variables |
Variables referenced in PGML ($rb, $popup, display variables) do not use my |
Common Mistakes and How to Fix Them |
No \@ or \% backslash references |
Use [@array] or ~~@array instead of \@array |
Common Mistakes and How to Fix Them |
No use statements |
Use loadMacros() for PG macros, not Perl use |
Common Mistakes and How to Fix Them |
No * or ** immediately around [$variables] in PGML |
Asterisks near variables cause parse errors such as "* was not closed before paragraph ends" | Common Mistakes and How to Fix Them |
HTML variables use [$var]* syntax |
Variables containing HTML tags have the trailing asterisk so tags render instead of showing as literal text | Common Mistakes and How to Fix Them |
No Perl loops inside BEGIN_TEXT...END_TEXT blocks |
Build strings before the block, then insert them with a variable reference | Common Mistakes and How to Fix Them |
| Hash keys sorted before random selection | Use sort keys %hash before list_random() so a fixed seed gives stable results |
Testing Randomization and Edge Cases |
| Shuffling happens after all items are defined | Define all items first, create the array, then shuffle | Testing Randomization and Edge Cases |
| OPL metadata complete | TITLE, DESCRIPTION, KEYWORDS, and DBsubject fields are filled in (see OPL Header and Metadata) | OPL Header and Metadata |
| No blocked HTML tags | No <table>, <tr>, <td>, <th> in PGML output (use niceTables.pl instead) |
Common Mistakes and How to Fix Them |
| Required macros loaded | Every widget and feature has its macro in the loadMacros() call |
Common Mistakes and How to Fix Them |
DOCUMENT() and ENDDOCUMENT() present |
File starts with DOCUMENT() and ends with ENDDOCUMENT() |
Simple Syntax Checking (Linting) |
Author checklist: student-facing checks
This checklist catches problems that render without errors but still confuse or frustrate students. These are things only a human can verify by reading the problem as a student would.
| Check | What to verify | How to test |
|---|---|---|
| Render multiple variants | The problem works correctly with different seeds | Change seeds in the editor and render at least five variants (Testing Randomization and Edge Cases) |
| Displayed question matches grader | The story and the expected answer agree | Read the question and check that the correct answer matches the prompt |
| Correct answers accepted | The right answer is marked correct | Enter the correct answer and submit |
| Common wrong answers rejected | Plausible wrong answers are marked incorrect | Enter a few wrong answers (off-by-one, wrong units, sign errors) and check |
| Edge cases checked | Boundary values and extreme random ranges work | Test with seeds that produce small or large values (Testing Randomization and Edge Cases) |
| No course-local dependencies | The problem runs without files from your specific course | Test in the local renderer, not in ADAPT |
| Every blank has an inline evaluator | Each answer blank in PGML has a grader attached | Check that every blank has content in curly braces: [_]{$ans} or [__]{$ans} |
| Solution block included | A BEGIN_PGML_SOLUTION...END_PGML_SOLUTION block exists |
Search for SOLUTION in the file |
| Units and rounding stated | The prompt tells students what units and precision to use | Read the question as a student and check that units and rounding are explicit |
Minimal debugging note template
When you find a problem during your QA pass, fill in this template and save it. Having these details written down before you start fixing anything will save you time and prevent you from losing track of the original failure.
File: Seed: Symptom: Error message (if any): What I changed last: Expected behavior:
Copy this block into a text file or comment in your code. When you report an issue to a colleague or come back to a problem days later, this note tells you exactly where to start.
What "ready to publish" looks like
A problem is ready to publish when all of the following are true:
- Both checklists above are satisfied with no remaining failures.
- The problem renders cleanly with at least five different seeds.
- The question reads clearly as a student-facing prompt, with no ambiguous wording or missing context.
- Every answer blank is visible and in the right location on the page.
- The solution block explains the expected method and shows the correct answer.
- No warnings or errors appear from the renderer in either HTML or JSON output.
If any of these conditions are not met, fix the issue before importing the problem to ADAPT. A problem that passes all checks here should work correctly the first time a student sees it.
Quick sanity test
If you only have time for one test, do this: render the problem with five different seeds, enter the correct answer for each, and submit. If all five accept the correct answer and the question text makes sense for each variant, the problem is probably ready. If any variant looks wrong, go back to the checklists.
Apply it today
- Pick one problem you are about to publish. Run both checklists above, row by row.
- If anything fails, fix it before importing to ADAPT. Use the section references in the code-level checklist to find the explanation and fix.
- Save the debugging note template somewhere you can find it quickly the next time something breaks.


