# Record Once, Review Always: Introducing TR Test Studio

> The first release of the TR AI Software Test Engineer turns browser recordings into reviewed test cases with robust locators and Playwright scripts. Nothing gets approved by the person who wrote it, and nothing is approved without a real expected result.

Source: https://www.ticketresolve.ai/blog/record-once-review-always · Published 2026-11-19 · TicketResolve AI

It's Thursday afternoon, and the release goes out on Monday. Priya, the only QA engineer at a 30-person invoicing start-up, has a list of eleven journeys that must work: sign up, create an invoice, send it, record a payment, export to CSV, and six more. She knows the drill. She'll click through each one by hand, again, because the automated suite she started last quarter broke the week the front-end team renamed half the CSS classes. Nobody had time to fix it.

That's the gap the first release of the **TR AI Software Test Engineer**, TR Test Studio, is built to close. It turns the journeys people already click through into tests that someone reviews and that keep working, without making a QA team of one also a full-time framework maintainer.

## First, the basics

- **Software testing** checks that an application does what it should, for example that signing up actually creates an account.
- **A test case** is a written, repeatable check: the steps to take and the result to expect.
- **Recording** means doing the journey once in a browser while a tool captures each click and keystroke, so it can be turned into a test.
- **A locator** is how a test finds a button or field on the page again later, by its label, its role ("the Save button") or a special test ID. Good locators are like addressing a letter by street and house number; bad ones are like "the third house on the left".
- **An assertion** is the expected result the test checks, for example "the message 'Account created' is shown".
- **Playwright** is a popular tool that runs browser tests automatically. **Masking** removes passwords and personal details from the recording.

Why does this matter? Manual testing is slow, and recorded tests are often brittle and full of secrets. Turning recordings into clean, reviewed tests catches bugs before customers do, without exposing anyone's data.

## The problem, in plain terms

Record-and-playback tools have been around for twenty years, and most teams have a graveyard of recorded tests to show for it. They tend to fail in the same four ways:

1. **Brittle selectors.** The recorder grabbed `div:nth-child(3) > button.btn-8f3a9c2d`. The next build regenerates the class name and every test breaks.
2. **Every keystroke, no intent.** The script holds 140 lines of focus, click, type and scroll. Nobody can tell what the test is supposed to prove.
3. **No real assertion.** The recording shows *what someone did*, not *what should be true afterwards*. A test without an expected result passes even when the page shows an error.
4. **Secrets in the script.** The tester typed their real password, and now it's in the repository.

Test Studio treats a recording as evidence of a journey, then makes a person decide what the test proves before anyone can call it approved.

## Where it bites: three real-world scenarios

### 1. The redesign that breaks every test

**The situation.** A B2B scheduling product ships a redesigned booking page. Class names change, the layout changes, the "Book" button moves into a sticky footer.

**What usually happens.** Recorded tests that located the button by CSS path or screen position all fail on the same morning. The team decides automation "doesn't work for us" and goes back to clicking.

**How Test Studio handles it.** When the journey was recorded, Test Studio kept *every* way of finding each element, ranked from most to least robust:

- an explicit test id, such as `data-testid="book-slot"`;
- role and accessible name ("button 'Book'");
- the field's label;
- placeholder, then stable attributes;
- CSS, then XPath;
- screen position, only as a last resort.

The generated test uses the best stable option, so "the button called Book" survives the redesign even though its CSS path didn't. Locators that look generated (`ember1234`, hashed class names, `nth-child` chains) are flagged as **unstable** during review, so the team learns which elements need a test id *before* the redesign, not after. A step that can only be found by screen position blocks approval outright.

### 2. The sign-up test that would have leaked a password

**The situation.** A tester records the sign-up and login journey on staging using a real-looking email address and the team's shared test password.

**What usually happens.** The password ends up in the script, the script ends up in Git, and the security review finds it three months later.

**How Test Studio handles it.** Values are masked twice, once in the browser and again on the server, which never trusts the first pass:

- password fields, card numbers, one-time codes and anything that looks like a token or API key lose their values entirely;
- e-mail addresses and phone numbers become synthetic values (`tester@example.test`, `+1 555 0100`);
- tokens are stripped from URLs, so a `?token=` or `?code=` in a redirect never gets stored.

In the test case, the password becomes a variable, `{{password}}`, marked as a secret that is supplied at run time. The generated Playwright script reads it from an environment variable. It never contains the value.

### 3. The "test" that proves nothing

**The situation.** A developer records "create a project" before a demo: open the page, type a name, pick a region, click Create. Done.

**What usually happens.** The recording replays fine. Months later, the Create button starts returning an error toast, and the test still passes because nothing ever checked the outcome.

**How Test Studio handles it.** Conversion turns raw events into steps a reviewer can read:

- focus and scroll noise is dropped;
- three bursts of typing into one field become one step;
- a click that only focused a field disappears;
- a page change caused by a click becomes a *suggested* URL assertion ("the page changes to /projects/…"), marked as a suggestion until a person accepts it. Record ids in the URL are matched generically, so the test doesn't depend on project 481 existing.

What conversion won't do is guess the business outcome. If nobody recorded a checkpoint, such as "the text *Project created* is shown", the test is labelled as having **no confirmed expected result**, and it can't be submitted for review until someone adds one or accepts a suggestion. The tester's checkpoints become the assertions that matter, marked as business steps.

## How it works, end to end

1. **Set up the boundaries.** A QA manager creates a project (for example *Invoicing web app*, case keys `INV-1`, `INV-2`…) and its environments: staging with its base URL and the hosts it calls (`api.staging…`, `*.cdn…`). A recording that visits any other host, such as an analytics domain or a third-party site, is refused, and the host is named in the message.
2. **Record the journey.** Recordings arrive as structured actions: navigations, clicks, typing, selections, checkboxes, key presses, submits, uploads (file contents are never recorded), dialogs, checkpoints, annotations and "business step" marks.
3. **Preview before saving.** The recording view shows the test it *would* become, with every warning attached to the step it concerns:
   - unstable locators;
   - steps that probably change data, with a suggested cleanup;
   - steps that look like billing, security, account or messaging actions;
   - repeated sequences that would make a good reusable component or data-driven test.
4. **Convert.** The recording becomes a draft test case, version 1. Its provenance links back to the recording, and a Playwright script is generated.
5. **Edit as versions.** Accept or change suggestions, reorder, delete or add steps. Each save is a new version with a note on what changed. Earlier versions stay readable.
6. **Review by someone else.** A QA lead approves the version or sends it back with a note. **Nobody can approve a version they wrote.** Approving a test with risky steps needs a note on why it's safe.
7. **Use the script.** Copy or download the `.spec.ts` and run it with Playwright Test, with `TR_BASE_URL` and the secrets as environment variables. In our own tests, a generated script runs in real Chromium against the page it was recorded on and passes. When the page changes, it fails, which is what a test is for.

## What it deliberately doesn't do

- **It doesn't run tests against production by default.** A production environment can't be used for tests until a QA manager authorises it with a written reason. Changing where it points removes that authorisation.
- **It doesn't invent expected behaviour.** Suggestions are marked as suggestions, and a missing expectation is reported, never filled in.
- **It doesn't replace your other tools.** Test Studio sits beside TR's customer-diagnostic recorder, the regression library and your CI. It doesn't duplicate any of them.
- **It doesn't charge by volume.** It's part of Engineering Intelligence, with nothing per test, run or recording.

## Do it in TicketResolve, step by step

**Where:** Engineering Leadership → Test Studio (`/dashboard/test-studio`). **You'll need:** the Engineering · QA engineer role to record and write; QA lead to approve; QA manager to set up projects and environments. **Full guides:** [Setting up a test project](https://www.ticketresolve.ai/docs/guide/tse-set-up), [Turning a recording into a test case](https://www.ticketresolve.ai/docs/guide/tse-recordings) and [Reviewing and approving tests](https://www.ticketresolve.ai/docs/guide/tse-review).

1. **Give people their roles.** In **Team**, give testers *Engineering · QA engineer*, reviewers *QA lead* and the owner of testing *QA manager*.
2. **Create the project.** Open **Test Studio → Create your first test project**, name the application and choose a case key prefix (*WEB*).
3. **Add an environment.** **Environments**: add the staging base URL and any other hosts the app calls (APIs, CDNs). Recordings that visit any other host are refused. Production needs a QA manager's authorisation with a reason.
4. **Record the journey.** Do the sign-up journey once, adding **checkpoints** for what should be true ("Account created" is shown). The recording arrives under **Recordings**. Until the browser extension ships, paste the recording JSON with **Paste a recording**.
5. **Read the preview.** Open the recording: the steps, locators and every warning (unstable locators, steps that change data, missing expected results) are shown before anything is saved.
6. **Convert it.** Give it a title and convert it. It becomes **WEB-1, version 1**, with a Playwright script.
7. **Fix what the warnings say.** **Edit steps**: accept the suggested URL assertion, add a cleanup step, then save with a note. That's version 2.
8. **Submit for review.** Anything still blocking approval is listed first. A QA lead (not you) approves or requests changes.
9. **Use the script.** **Playwright script → Download .spec.ts** and run it with `TR_BASE_URL` and the secrets as environment variables.

**How to check it worked:** WEB-1 shows **approved v2**, its history lists each version with who wrote and reviewed it, and the script runs green against staging.

## Frequently asked questions

**Do I need to change my application to use Test Studio?**
No. Adding test ids (`data-testid`) to important buttons and fields makes tests sturdier, and the review warnings show exactly which elements would benefit, but role, name and label locators work on most accessible applications as they are.

**What happens to passwords typed during a recording?**
They're removed in the browser and again on the server. The test refers to a variable such as `{{password}}`, and the value is supplied as a secret when the test runs. It never appears in the test case or the script.

**Can the person who recorded a test approve it?**
No. A version can only be approved by someone who didn't write it, and approving steps that look like billing, security or account actions needs a note explaining why it's safe.

**Can I use the generated tests outside TicketResolve?**
Yes. Each version has a standard Playwright Test file you can download and run in your own pipeline.
