Sub topic 3
Designing Tasks and Defining Success
This chapter assumes you have run or observed a usability test, moderated or unmoderated, and you know mean, median, and percentage. Python appears only in one optional example. The chapter covers what happens before any number is collected: the tasks participants attempt and the rule that decides whether an attempt counts as a success. Later chapters turn those decisions into completion rates and time summaries. If the tasks are vague, no statistics can repair the data.
Why task design comes first
Task success and time on task are both computed from task attempts. Each attempt needs three things:
- A defined starting point, so every participant begins from the same place.
- A defined end, so you know when to stop the clock and score the attempt.
- A rule that separates success from failure, applied the same way to every participant.
If any of these varies between participants, your metric measures that variation instead of the usability of the design. A task that one participant starts on the home screen and another starts three screens deep produces times you cannot compare. A task where the moderator decides "close enough" by feel produces a completion rate nobody can reproduce.
From study goals to tasks
Pick tasks from what real users need to do, not from the features you want to show off. A practical way to choose them:
- List the top user goals for the product, using analytics, support tickets, or interviews.
- Mark the goals that are frequent, critical (a failure is costly), or suspected to be problematic.
- Turn each selected goal into one task with a single, checkable outcome.
- Order tasks so early ones do not teach the answer to later ones.
Aim for a session that fits the participant's attention. For a 45-minute moderated session, five to eight tasks is typical, and the number depends on task complexity. Longer sessions add fatigue, which slows later tasks regardless of design quality. If you cannot cut tasks, randomize or counterbalance their order so fatigue does not fall on the same task every time.
Anatomy of a task
A well-specified task has five parts. Write all five down before the first session.
| Part | What it contains | Example (a "save for later" content inbox) |
|---|---|---|
| Scenario | Short story giving a reason and the information needed | "You saved an article about composting last week. Move it into your Garden folder." |
| Start state | Exact screen, account data, and settings at the beginning | Logged in, inbox view, 42 saved items, Garden folder exists and is empty |
| Success criteria | Observable end state or answer | The composting article appears in Garden and no longer appears in the inbox |
| Stopping rule | When the attempt ends if the participant does not finish | Participant says they are done or gives up, or 180 seconds pass |
| Data to record | What you capture per attempt | Outcome code, start and end timestamps, hints used, notes |
Writing the scenario
The scenario should motivate the task without teaching the interface. Three rules help:
- Do not use interface labels. If the button says "Archive" and your task says "archive the article," you are testing reading, not findability. Say "put it somewhere you can find it later but out of your inbox" instead.
- Give the participant what they need. If the task requires a search term or a password, supply it on a card. Otherwise you are measuring memory.
- Ask for one outcome. "Find the article and share it and then delete the old copy" is three tasks. When it fails, you cannot say where.
Defining success
Success criteria must be decided before the sessions, written so that two observers watching the same attempt would reach the same verdict. Good criteria are one of these:
- An end state in the product. The article is in the Garden folder. An observer or log can verify it.
- A correct answer. "What is the delivery fee for orders to Ghent?" has one right value.
- A reached location. The participant arrives at the settings page for notification frequency.
Weak criteria include "the participant seems to understand" or "finds it without much trouble." Those are judgments about effort, which is a separate thing to measure.
Binary or graded?
The simplest scheme is binary: success or failure. It is easy to compute and to report, and it is what the confidence-interval methods in the next chapter expect. Graded schemes add detail, for example full success, partial success, and failure. They help when a task has meaningful intermediate states, but they raise the risk of disagreement between scorers. A reasonable compromise is to record detailed outcome codes during the session and collapse them to binary for the headline metric, with the collapse rule fixed in advance.
Edge cases you must decide ahead of time
Real attempts do not always end cleanly. Decide each of these before you see any data:
- Wrong end state. The participant moves the wrong article and is confident. This is a failure, and it is an important one because the participant does not know they failed.
- Hints. If the moderator gives a hint, or the participant asks for help, is that a failure or an assisted success? Most teams count it as not a success for the primary metric and record it separately.
- Giving up. The participant says "I'd stop here." Record it as a failure with its own code, because it signals something different from a wrong answer.
- Timeout. The stopping rule fires. Record it as a failure, and note that its elapsed time is capped, not natural.
- Technical problems. A server error unrelated to the design may justify excluding the attempt. Set the exclusion rule beforehand and apply it blind to whether the participant was succeeding.
- Alternate valid paths. If a participant reaches the end state by an unplanned route, it is still a success. Your criteria should describe the outcome, not the path.
Start states and resets
The start state is part of the task. Prepare it as a checklist and reset it between participants:
- Use a test account with the same data each time, and restore it after each session. If participant 1 moved the composting article, participant 2 cannot move it again.
- Clear the browser history, autofill, and any "recently used" lists that might reveal the answer.
- Begin from a fixed screen, such as the inbox. If you want to measure how people find the feature from elsewhere, make that the start state and say so.
- For unmoderated tests, verify that the tool loads the start state reliably on the devices participants use.
Stopping rules and the effect on timing
Time on task is covered in a later chapter, but the stopping rule is a design decision made here. A time limit keeps sessions on schedule and prevents participants from struggling for ten minutes. It also censors the data: a participant who would have finished at 240 seconds is recorded as timed out at 180. Choose a limit well above the time an expert needs, for example three to five times the expert time found in your pilot, so only truly stuck participants hit it. Say in the report what the limit was.
Coding outcomes consistently
When you analyze many attempts, a small function that encodes your rules prevents drift between scorers. The following sketch implements the decision flow from the diagram. It is optional, but it shows how precise the rules need to be.
from dataclasses import dataclass
@dataclass(frozen=True)
class Task:
task_id: str
scenario: str
start_state: str
success_criteria: str
time_limit_s: int
def code_outcome(reached_end_state, hints_used, gave_up, elapsed_s, limit_s, fault=False):
"""Return an outcome code for one attempt, following a fixed rule order."""
if fault:
return "excluded"
if gave_up:
return "gave_up"
if elapsed_s >= limit_s and not reached_end_state:
return "timed_out"
if not reached_end_state:
return "fail"
if hints_used > 0:
return "assisted"
return "success"
task = Task(
task_id="T1",
scenario="Move the composting article you saved last week into your Garden folder.",
start_state="Inbox view, 42 items, empty Garden folder",
success_criteria="Article is in Garden and absent from the inbox",
time_limit_s=180,
)
attempts = [
dict(reached_end_state=True, hints_used=0, gave_up=False, elapsed_s=64),
dict(reached_end_state=True, hints_used=1, gave_up=False, elapsed_s=110),
dict(reached_end_state=False, hints_used=0, gave_up=False, elapsed_s=95),
dict(reached_end_state=False, hints_used=0, gave_up=True, elapsed_s=70),
dict(reached_end_state=False, hints_used=0, gave_up=False, elapsed_s=180),
]
for a in attempts:
print(task.task_id, code_outcome(limit_s=task.time_limit_s, **a))Running it prints success, assisted, fail, gave_up, and timed_out for the five attempts. Note that a participant who finishes in time but with the wrong article gets fail, not timed_out, and that the order of the checks matters. If you change the order, the same attempt can receive a different code, which is why the order is written down.
Pilot before you commit
Run the tasks with one or two people before the real study, ideally a colleague outside the project and one person from the target audience. The pilot should answer:
- Is any task wording ambiguous, or does it leak a label?
- Can the participant reach the start state, and does it reset cleanly?
- Do two scorers watching the same recording assign the same outcome code?
- Is the time limit reasonable, and does the session fit its slot?
Fix the problems and then freeze the task set. Changing a task halfway through the study makes earlier and later attempts incomparable.
Common mistakes in task design
- Tasks that are really questions about opinion. "Do you like the filter?" is not a task and has no success state.
- Success criteria written after seeing the data. This invites hindsight bias. Write them first and keep them in a document.
- Several correct answers where only one is accepted. Check whether a reasonable alternative should count.
- Unrealistic start data. An inbox with three items makes search trivial. Use data that resembles real use.
- Treating assisted success as plain success. It inflates the completion rate and hides the places where users needed help.
Exercise
A task reads "Use the Archive button to remove the composting article from your inbox." The completion rate is 95%. Name two problems with this task as written, and rewrite it.
Show answer
First, the wording names the interface label "Archive," so participants only need to find that word, and the result overstates findability. Second, the criterion does not say what end state counts as success, for example whether the article must be absent from the inbox and present in the archive. A better version: "You have finished reading the composting article and want it out of your inbox but still easy to find in a few months. Do that." The success criteria are written separately: the article is no longer in the inbox and appears in the archive or another storage location the product provides for later retrieval.
Exercise
During a session, a participant moves the wrong article into Garden and says "done." Another participant moves the right article after the moderator says "have you looked at the left menu?" How should each attempt be coded under the scheme in this chapter, and why keep these as separate codes instead of one "not success" bucket?
Show answer
The first attempt is a fail, because the end state does not match the criteria, and the participant believed they succeeded, which is useful to note. The second is assisted, because the end state is correct but a hint was given. Keeping them separate preserves different findings: a confident wrong outcome points to misleading feedback or labels, while an assisted outcome points to a discoverability problem. Both can still be collapsed to "not a success" for the headline completion rate, provided that rule was set before the study.