User Test Scripts: How to Write Them for UAT and Usability
How to write user test scripts for UAT and usability sessions, with a nine-field template, a rewritten example and results tables you can copy.
In this article
- What user test scripts are
- User test scripts, test cases and scenarios: the difference
- What a UAT script contains
- A UAT script, before and after
- Start from acceptance criteria
- What a usability test script contains
- Writing tasks that do not give the answer away
- Before the session: data, devices and a dry run
- How many users and how many scripts
- Recording results
- Common mistakes in user test scripts
- Frequently asked questions
On a Thursday afternoon in Coimbatore, six people from a textile distributor's accounts and sales teams sit down to sign off a new ordering app. Each has a Redmi Note 13, the same spreadsheet of 42 scripts and a deadline of 6 pm.
Script 17 reads: "Verify that the credit limit works correctly." One clerk places an order for ₹48,000 against a ₹50,000 limit and marks it Pass. Another tries ₹52,000, gets a red "Credit limit exceeded" banner and marks it Fail. A third cannot find a customer with a limit at all and leaves the row blank.
At 6 pm, script 17 has two passes, one fail and three blanks across the six sheets, and nobody can say what any of them mean. The app did what it was built to do that afternoon. The user test scripts did not.
What user test scripts are
A user test script is the written guide for a test session in which the person using the product is a real user, not a professional tester. The phrase covers two different documents, and mixing them up is the first mistake.
A UAT script tells a business user exactly what to do and what should happen, so that they can confirm the software supports their work before it goes live. UAT stands for user acceptance testing. The ISTQB Foundation Level syllabus describes acceptance testing as focused on validation and on showing readiness for deployment, lists UAT as one of its main forms, and says it should ideally be carried out by the intended users. The other forms include alpha and beta testing.
A usability test script is a facilitator's guide for a session in which a participant tries to complete tasks while saying what they are thinking. The UK government's Service Manual describes moderated usability testing in those terms: you watch people attempt specific tasks while they think aloud, and you learn what they do, think and feel.
| UAT script | Usability test script | |
|---|---|---|
| Question it answers | Does the software support the job we do? | Can people work it out without help? |
| Who reads it | The business user doing the test | The facilitator. The participant sees only the tasks |
| Steps | Exact actions and exact data | A goal, with no steps |
| Expected result | Written down in advance | None. You watch what happens |
| What you record | Pass, fail or blocked, with evidence | What people did and said, and whether they finished |
| When | Before go-live, on a near-final build | Any time, from paper prototype to live app |
User test scripts, test cases and scenarios: the difference
All of these describe a test. They differ in who has to read them.
| Document | Written for | Level of detail | Example |
|---|---|---|---|
| Test scenario | The team deciding what to cover | One line | A sales executive places an order close to the customer's credit limit |
| Test case | A tester who knows the product | Preconditions, data, steps and expected result, in test vocabulary | Boundary check at available credit minus ₹1, equal and plus ₹1 |
| UAT script | A business user who tests twice a year | The same structure in everyday words, tied to a business process | "Take an order that is ₹500 over the customer's available credit" |
A tester can work from "verify boundary at limit". An accounts clerk cannot, and should not have to. If your team already keeps test cases in a standard format for test cases, the UAT script is a translation of the important ones into the user's language, grouped by the job they belong to. Our guide to the software testing scenario covers the one-line level above both.
What a UAT script contains
Nine fields are enough. Leave one out and the tester has to guess.
| Field | What goes in it | Example |
|---|---|---|
| ID and title | A unique ID, and the outcome in one line | UAT-ORD-017B: An order above available credit is blocked |
| Business process | The real job this belongs to | Taking a customer order |
| Role and login | Who performs it, with which test account | Field sales executive, sales.test2 |
| Starting state | What must be true before step 1 | Sri Lakshmi Textiles has ₹12,000 of available credit |
| Test data | The exact values to enter | Item CT-204, quantity 25, ₹500 each |
| Steps | One action per step, in the user's words | Tap New order |
| Expected result | What the screen should show after each step | Order total shows ₹12,500 |
| Actual result and status | What happened: Pass, Fail or Blocked | Fail: the order was accepted |
| Evidence and sign-off | Screenshot, defect ID, name, date, phone | Screenshot 14, Redmi Note 13, 3 Dec |
Three rules keep the fields useful:
- One script, one outcome. If a script checks that a valid order goes through and that an oversized one is blocked, a Fail does not tell you which half failed.
- Expected results are things you can see. "Works correctly" cannot be checked. "Order total shows ₹12,500" can.
- The tester never invents data. Every value they type is in the script, and every account they need exists before the session starts.
A UAT script, before and after
Here is script 17 from the Coimbatore sheet, rewritten. The first change is to split it. 017A checks that an order exactly equal to the available credit is accepted: 24 pieces at ₹500 is ₹12,000. 017B checks that one piece more is blocked.
UAT-ORD-017B: An order above available credit is blocked
- Role: field sales executive, logged in as sales.test2 on the company's Redmi Note 13
- Starting state: customer Sri Lakshmi Textiles has a credit limit of ₹50,000 and unpaid invoices of ₹38,000
- Test data: item CT-204 at ₹500 a piece, quantity 25
| Step | Action | Expected result |
|---|---|---|
| 1 | Open Customers and select Sri Lakshmi Textiles | The customer page shows "Available credit: ₹12,000" |
| 2 | Tap New order, add item CT-204 and set the quantity to 25 | Order total shows ₹12,500 |
| 3 | Tap Place order | A message says the order is ₹500 over the available credit. No order number appears |
| 4 | Go back to the customer page | Available credit still shows ₹12,000 |
| 5 | Open Orders and filter by today's date | There is no new order for Sri Lakshmi Textiles |
Steps 4 and 5 are what separate a script from a demo. The message in step 3 could appear while the order is quietly saved anyway, and only a look at the order list would show it.
With this version, the clerk who saw the red banner marks Pass, because the script tells her a refusal is the correct result. That is the usual confusion with positive and negative testing: the test passes when the software rejects bad input properly.
Practical rule: write the expected result so that two people who have never met would mark the same row the same way.
Start from acceptance criteria
UAT scripts should not be invented in the week before go-live. They come from the acceptance criteria agreed when the feature was specified. The ISTQB syllabus defines acceptance criteria as the conditions an implementation must meet to be accepted by stakeholders, and names two common ways to write them: scenario-oriented, in the Given/When/Then form, and rule-oriented, as a checklist or a table of inputs and outputs.
A criterion in the first form converts almost line by line:
- Given a customer with ₹12,000 of available credit (the starting state)
- When a sales executive places an order for ₹12,500 (the steps and test data)
- Then the order is blocked and the message shows the excess (the expected result)
In its section on acceptance test-driven development, the same syllabus recommends writing the positive tests first, then the negative ones, and keeping them understandable to stakeholders in natural language. For UAT that gives a simple coverage check: every acceptance criterion has at least one script, every script points back to a criterion, and each criterion that involves money or access has a script for the refusal as well as the success.
If a feature has no written acceptance criteria, write them with the business owner first. A script with no criterion behind it ends in an argument about whether the behaviour is a bug or a change request.
What a usability test script contains
A usability script is written for the facilitator. The GOV.UK guidance calls it a discussion guide and says it should hold an introduction script and the task descriptions, so that tasks are given to every participant in a consistent way.
Steve Krug's downloadable script for testing mobile apps has the same shape: an introduction, a few background questions, a short look at the first screen, the tasks, follow-up questions and a wrap-up, in a session of about an hour. GOV.UK puts sessions at 30 to 60 minutes and advises no more than six one-hour sessions in a day.
A 45-minute session for a bill payment app might be planned like this.
| Section | Minutes | What the facilitator does |
|---|---|---|
| Welcome and consent | 5 | Explains the purpose and asks permission to record |
| Background questions | 5 | Asks which apps they pay bills with, on which phone and how often |
| First screen | 3 | Shows the home screen and asks what they think the app is for, before any tapping |
| Tasks | 25 | Gives four or five tasks, one at a time, read aloud and handed over on a card |
| Follow-up questions | 5 | Asks about the moments where they hesitated or went back |
| Close | 2 | Thanks them, hands over the incentive and stops the recording |
The introduction is the part worth writing word for word and reading out. Both sources agree on its core: the app is being tested and the participant is not, and they should say what they are thinking as they go. Krug's script adds that candid reactions will not hurt anyone's feelings, that questions may have to wait until the end, and that recording needs their permission.
GOV.UK's advice during the tasks is to stay mostly quiet, watch and listen, and step in only when someone is completely stuck.
Writing tasks that do not give the answer away
This is where a usability script is the opposite of a UAT script. A UAT step says exactly what to tap. A usability task must not, because the point is to find out whether people can work that out.
Nielsen Norman Group's guidance on task scenarios reduces it to three rules: make the task realistic, make it something the participant does and not something they describe, and avoid clues such as step-by-step instructions or the exact words used on the screen. It adds that avoiding clues is no excuse for being vague. A task can carry invented details such as a name, a day or a time, and participants accept them.
| Poor task | What is wrong | Better task |
|---|---|---|
| "Tap Recharge & Bills, choose Electricity, select BESCOM and pay." | It is a set of instructions. You learn nothing about the menu | "Your BESCOM electricity bill of ₹1,840 is due on Friday. Pay it." |
| "Find the Refer & Earn option." | It uses the label on the screen | "Your cousin wants to try the app. Find out if you get anything for inviting her." |
| "How would you change your delivery address?" | It asks for a description, not an action | "You have moved to a new flat in Whitefield. Make sure tomorrow's order goes there." |
| "Check your payments." | Too vague to act on | "You paid ₹1,840 to BESCOM last month. Find proof of that payment you could send to your landlord." |
Before the session: data, devices and a dry run
Both kinds of script fail for the same dull reasons: the test account is locked, the customer has no credit limit, the OTP goes to a phone nobody has.
- Accounts. One login per role per tester, created and checked the day before.
- Data. Every customer, product, balance and bill the script mentions must exist in the test environment, in the state the script says. For usability sessions, GOV.UK suggests letting people use their own data where it can be kept secure, and inventing a character with mocked-up documents where it cannot.
- Devices. Run the session on what users carry. If the sales team works on Redmi and Vivo phones over Jio or Airtel, UAT on an office laptop over Wi-Fi tests a different product. Our notes on choosing devices and on network conditions in India cover how to pick.
- Reset. Scripts change data. Script 017A uses up the customer's credit, so 017B needs a different customer or a reset in between.
Then run the script once before any user sees it. GOV.UK's advice is to try the tasks out with a colleague first. Pick someone who has not used the app, give them the script and a phone, and say nothing.
Practical rule: every question your colleague asks during the dry run is a defect in the script. Fix the script, not the colleague.
Time the dry run too. It gives you the one number planning needs: minutes per script.
How many users and how many scripts
For usability sessions the classic answer is small. Jakob Nielsen's analysis found that five users uncover about 85% of the usability problems in a design, while a single user uncovers about 31%. His advice is to spend a budget of 15 users on three rounds of five, fixing what you find between rounds, and to add participants when the product serves clearly different groups, such as customers and delivery partners.
UAT is not sampling. The count comes from coverage: every critical business process, performed by every role that does it, at least once. What limits it is time, so do the arithmetic before the invitations go out.
Take the Coimbatore afternoon. Suppose the dry run showed that a script takes a first-time user 15 minutes.
- 42 scripts at 15 minutes is 630 minutes, or ten and a half hours for one person.
- From 2 pm to 6 pm, one person can finish 16 scripts.
- Six people can therefore complete 96 script runs.
- Running every script twice, by two different people, needs 84 runs, or 14 scripts each. That is three and a half hours, which leaves half an hour for retests.
Handing all six people all 42 scripts asked for 252 runs. No afternoon could have delivered that, which is why rows were left blank. If the numbers still do not fit, cut by risk, not by position in the spreadsheet. Our guide to risk-based testing shows how to rank what stays.
Recording results
A UAT row has four possible states, and the script should define them.
| Status | Meaning | What the tester writes |
|---|---|---|
| Pass | Every expected result matched | Nothing more, or a screenshot of the final step |
| Fail | An expected result did not match | The step number, what appeared instead and a screenshot |
| Blocked | The script could not be run | What stopped it: no login, missing data or an earlier failure |
| Not run | Out of time | Nothing. It stays visible as a gap |
A Fail needs enough detail for a developer to see it again. The step number and the test data already give most of the steps to reproduce a bug, which is one more reason to write them into the script.
Agree the sign-off rule before the first session, for example: every script for a critical process has passed, and no open defect blocks a daily task. Decided afterwards, the rule tends to bend towards the date.
Usability results are recorded per task and per participant. Three states are enough: finished alone, finished with help, gave up.
| Task | P1 | P2 | P3 | P4 | P5 | Finished alone |
|---|---|---|---|---|---|---|
| Pay the ₹1,840 electricity bill | Alone | Alone | Helped | Alone | Alone | 4 of 5 |
| Find proof of last month's payment | Gave up | Helped | Gave up | Alone | Gave up | 1 of 5 |
| Set a reminder for next month's bill | Alone | Alone | Alone | Helped | Alone | 4 of 5 |
The second row is the finding. Beside it go the notes on where people looked: three opened Profile, one searched for "receipt". With five people these are observations, not statistics, so report them as "4 of 5" and not as "80%".
Common mistakes in user test scripts
- Writing for yourself. "Log in as admin and create a PO" assumes a login, a menu and a vocabulary the user may not have.
- Leaving the data to the tester. Each person picks a different customer and nobody tests the boundary.
- Using screen labels in usability tasks. Participants match words instead of thinking.
- Helping. A colleague who leans over in UAT and says "tap there" hides a training gap. A facilitator who does it in a usability session erases the finding.
- Only the happy path. Users also need to see what a refusal looks like, because they will be the ones explaining it to customers.
- Treating UAT as the first test. If users are finding crashes, the earlier testing was skipped, and UAT time is being spent on the wrong questions.
Frequently asked questions
Who should write user test scripts? A business analyst or QA lead usually drafts UAT scripts, and someone who does the job reviews the wording and looks for missing steps. Usability scripts are written by whoever will facilitate the sessions.
Is a user test script the same as a test case? A UAT script is a test case written for a different reader: the fields are the same, but the language is the user's and the grouping follows business processes. A usability script is a different thing, with tasks and questions and no expected results.
Should users follow the script exactly? In UAT, yes, noting any place where they had to deviate. Leave time afterwards for people to try their own real work, because that is where missing scenarios turn up. In a usability session the participant never sees steps at all.
Can user test scripts be automated? The checks inside a UAT script can be, and many teams keep them as automated regression tests once the release is accepted. The acceptance itself cannot: the point is for the people who will use the software to see it work and agree to it.
Can AI write the scripts? It can produce a fair first draft from acceptance criteria, as our guide on how to generate test cases using AI describes. It does not know your customers, your credit rules or which test accounts exist, so the data and expected results still need a person.
User test scripts answer two questions only your own users can answer: does the software fit the job, and can people find their way around it. They answer them best when the basic defects are already out of the way. That earlier work is what 99tests does: it runs your test cases on tester-owned Redmi, Realme, Galaxy, Vivo and iPhone handsets on Jio, Airtel and Vi, a reviewer verifies every finding before it reaches you, and each one arrives with steps, expected and actual results, environment details and a screenshot or recording. See a sample report, browse the free library of 950 test cases across 25 flows, or send your own cases to 99tests.