# Playtest a live URL

A cloud playtest can play your web game where it already runs, on your staging or production site, instead of an uploaded build. You prove the site is yours with a DNS record, save the address a playtest starts from, and say how the playtester signs in if your game needs an account. Then you start it exactly like any other [cloud playtest](https://ravensight.io/docs/playtest/#playtest-cloud): the same personas, tiers, play lengths, quote and report.

Everything below is on the **Playtest** page, under **Test a live URL**, in three parts: Domains, Targets and Start a playtest. Only an owner or admin of the studio can add, change or start anything there; every member can read it.

## Verify a domain

A playtest only ever reaches hosts this game has verified. To verify one, add it under **Domains**, copy the TXT record it shows into your DNS settings, then press **Verify**.

- **One host.** Add `play.example.com` and put the TXT record on `play.example.com`. Its value is `ravensight-verify=` followed by the token the page shows.
- **Every subdomain.** Add `*.example.com` and put its record on `example.com`. Once verified it covers every name that ends in `.example.com`, such as `play.example.com` and `eu.play.example.com`, but not `example.com` itself. Add `example.com` as its own domain if the game runs there too; a second TXT value on the same name is fine.
- **Each game verifies its own.** Domains belong to one game, not the whole studio. A second game adds its own, and one TXT name can hold both tokens.
- **Checking.** A new record can take a few minutes to appear. If Verify says it could not find the record yet, wait and press it again. One domain can be checked once every 10 seconds, and a game up to 60 times an hour, counting the checks the CLI makes before a local run; the page says when you can try again.
- **Checked again at every start.** The record is looked up again when you get a quote, when you confirm, and just before each persona starts. Keep it in place. If it is gone, the domain shows **Record removed**: a quote or a confirm is refused before anything is charged, and a persona due to start does not start and is refunded (see below). A playtest already playing is not stopped.
- **What cannot be added.** Addresses written as numbers, `localhost`, names under `.local`, `.internal`, `.test` and other names that are not on the public internet. A game can have up to 20 domains. A host that does not point to a public address can be added and verified, but a quote, a confirm or a persona start refuses it (see below).

## Add a target

A target is where a playtest starts and how it signs in. Most games have one for staging and one for production. Under **Targets**, press **Add a target** and give it:

- **A name**, such as Staging.
- **A start URL.** It begins with `https://`, uses the standard port, and has no name or password in it. Its path, query and anchor are kept, so `https://play.example.com/play?level=3` starts every persona on level 3. Its host must be verified.
- **Extra hosts** (optional): other hosts your game loads from, like its API or its asset host, up to 8. Each must be verified, and each is an exact name, not a wildcard. Together with the start URL's host they may take at most 584 characters.
- **Sign in**: none, a test account, or a session (below).

A target shows **Ready** when every host is verified and any session has not expired. Otherwise it shows **Needs attention**, and opening it lists each problem with the host it is about and what to do. A target stays usable for 30 days after it was last saved; saving it again renews it. A game can have up to 10 targets.

## Sign in: a test account or a session

**Test account.** Give the email and password of an account made for testing. Before the playtester starts, a script opens your sign in page (the start URL, or the sign in page you name), types the email and password, and submits. The playtester then begins already signed in. If the form is not found on its own, name its fields under **Field selectors**: a CSS selector or `text=Label` for the email field, the password field, the submit button, and something that only shows once signed in. Use this when your game has its own sign in form on a verified host.

**Session.** Sign in as a test user in your own browser, then paste what your site set: the cookie (as it appears in the `Cookie` header, such as `session=...; other=...`) or one header (`Authorization`, or a name that starts with `X-`, at most 100 characters). A cookie may hold up to 50 `name=value` pairs. Choose the date it expires, at most 30 days ahead. The cookie is set only for the start URL's host; a header is sent only to the target's hosts. Use a session when your game signs in through another company's sign in page, or with a magic link sent by email, which a script cannot type. After the expiry date, playtests of that target are refused until you paste a new one.

Either way, the saved value is never shown back. The page shows **Saved** with **Replace** and **Remove**, and an edit that leaves it alone keeps it.

## What is never shown or kept

- **Stored encrypted.** The email, the password and the session value are stored encrypted. The dashboard, the API and your MCP tools never return them; they show only whether one is saved, and for an email its first two characters and its domain (`qa•••@example.com`).
- **Never seen by the playtester.** The sign in is typed by a script in a separate browser step that records no video, screenshot or log, and the AI playtester is never given the values.
- **Never in a report.** If your site prints the email or password on the page, it is replaced on screen before each screenshot and video frame, and every report, log and finding is checked and cleaned before it is saved. A file that still holds one is not kept.
- **One gap.** Text your game draws as a picture, inside a canvas or an image, cannot be rewritten. If your game draws the account's email that way, it will show in screenshots and video. Use a test account whose address is not sensitive, never a real person's.
- **Deleted when you say.** **Remove** deletes the saved sign in at once. Deleting the target or the game deletes it too.

## What the playtester can reach

The playtester's browser can load only the target's hosts, over `https` on the standard port, and only at the public addresses they had when the playtest started. Anything else the page asks for (a font service, an analytics script, an ad, another company's sign in page) is blocked, and the report lists each blocked host and how many requests it had, such as "Not a verified host: fonts.example.net (12 requests). Verify it to let playtests load it." If the game needs one of them to play, verify it and add it to the target's extra hosts.

## Playtests are test traffic

A playtest is never counted as a player or a website visitor. When your game's own Ravensight SDK runs in the playtest, its session is marked as a playtest, so its events are tagged `synthetic` and left out of your numbers by default, as for any [playtest](https://ravensight.io/docs/playtest/). Website page views, heatmap summaries and form views are not sent from a playtest at all.

The page can tell it is being playtested: it carries `window.__RAVENSIGHT_PLAYTEST__` with the run, the job and the persona before your own scripts run.

Events your own game server sends for the test account do not pass through the playtest browser, so they are not marked unless you mark them. Open your server's session with the browser's session token as `joinToken` (see [POST /api/v1/session](https://ravensight.io/docs/http-api/)): a session joined to a playtest session is a playtest session too, and its events are tagged `synthetic`. Or leave the test account out of what your server sends.

## From your own computer

The [Playtest CLI](https://ravensight.io/docs/playtest/) can play a live URL too, from version 0.13.0, on your machine, with the same sign in and the same rules for what the browser may reach. A public host must be verified for the game first; the CLI checks before it registers the run, and refuses with the record to add, charging nothing. A local address, such as `http://localhost:3000`, is your own dev server and needs no check.

| Flag | What it does |
| --- | --- |
| `--url ` | Play the game at this address. |
| `--login-email ` | The test account's email. |
| `--login-password-env ` | The name of an environment variable that holds the password. The password is read only from there; a flag that carries the password itself is refused. |
| `--session-cookie-env ` | An environment variable holding a `Cookie` header value. |
| `--session-header-env ` | An environment variable holding one header, as `Name: value`. |
| `--sign-in-url ` | The sign in page, when it is not the start URL. |

A local playtest of a staging site, signed in as a test account

```
export PLAYTEST_PASSWORD='the test account password'
ravensight-playtest run --driver playwright_web \
  --url https://staging.example.com/play --personas fresh-eyes \
  --login-email qa@example.com --login-password-env PLAYTEST_PASSWORD
```

On your computer the password and session never leave your machine: they are not sent to Ravensight and not written to the run's folder.

## When the site is down or the sign in fails

If the start URL does not load, the sign in is refused, the sign in form is not found, the sign in sends the browser to a host that is not verified, or the session has expired, the playtester stops before it plays. The run fails with a report that says what happened and what to change, and no AI time is spent on it. It is billed under the usual cloud playtest rules for a game that failed to run, which the quote states before you agree. A sign in that leaves your verified hosts (another company's sign in page) needs a session instead.

A host that is not verified, or no longer points to a public address, is refused before anything is charged when you get a quote and when you confirm. It is checked once more just before each persona starts. A persona refused then never starts and is refunded in full at once, even when another persona of the same playtest is already playing. The cloud run's page says which host was refused and why. If the host cannot be looked up at that moment, the check is tried again for up to 10 minutes before the persona is refused. The same applies when the target was changed or removed after you confirmed.

A target not saved for 30 days, or a saved session that ends before the playtest could finish, is refused at the quote with nothing charged. Save the target again, or paste a new session, and ask for a new quote.

## What it costs

A live URL playtest is priced exactly like a cloud playtest of an uploaded build, from the same prepaid balance: the price per persona for the tier and play length you choose, shown in the quote before you agree. It plays on the smallest tier unless you choose a larger one. There is no extra fee for a live URL, and nothing to upload, so there is no build check hold. Prices are in [Usage rates and limits](https://ravensight.io/docs/limits/).

## Getting help

Ask anything at [support@realityse.com](mailto:support@realityse.com).

Source: https://ravensight.io/docs/playtest-live-url/
Last updated: 2026-11-20
