Browser Test with OpsAI
Browser Test with OpsAI writes your Synthetic tests for you. You give it a URL. OpsAI opens the site in a real Chrome browser in the region you pick, clicks through it the way a visitor would and works out the journeys that matter: signing in, adding to the cart, checking out. It records each journey, replays it to make sure it passes, and offers you the tests. The ones you keep become ordinary browser tests and API tests that run every 5 minutes.
For each journey, OpsAI records:
- one browser test that replays the journey step by step,
- up to four HTTP tests for the first-party requests the journey makes,
- one TCP test on port 443 of the site.
You choose which of these to create.
Before you begin#
- Permissions. You need permission to create Synthetic tests to start a run, create tests and add sign-in profiles. Cancelling a run, editing or deleting a profile and Edit with OpsAI need permission to edit Synthetic tests.
- Public sites only. OpsAI only opens public
http://andhttps://addresses. Private and loopback IP addresses, internal hostnames (such as.local,.internalor single-word names) and URLs with a user name and password in them are refused. - A test account, if the site needs sign-in. OpsAI signs in with a credential profile. Use an account made for testing, never a real customer's.
- Browser Test with OpsAI isn't available on self-hosted (on-prem) Middleware.
OpsAI clicks, types and submits on the real site, including checkout, sign-out and other forms, without asking first. Point it at a staging site when you can, and use a test account that can't place real orders or change real data.
Start a run#
1 Open Browser Test with OpsAI#
Go to Synthetic Monitoring, click New test and choose Browser Test with OpsAI.

2 Tell OpsAI what to test#
Describe the site in the chat box, for example "Find the journeys people take on my online store and turn them into browser tests", and pick the region the browser runs from under the box. Press Enter to send.

If your message already names the site (for example "Explore my site example.com"), OpsAI starts exploring right away from the region you picked, without a sign-in profile, and you can skip the next step.
3 Check the Explore website card and start#
OpsAI replies with an Explore website card. Check the settings and click Start exploration.
| Field | What it does |
|---|---|
| Start from | The page OpsAI opens first. Enter a full URL that starts with http:// or https://. |
| Stay on <host> | On by default. Keeps OpsAI on the site's own domain instead of following links to other sites. |
| Sign-in profile | The credential profile OpsAI signs in with. Leave it at No profile to browse as a signed-out visitor. OpsAI asks you for a profile later if a journey needs one. |
| Run from | The Synthetic Monitoring region the browser runs in. The tests OpsAI creates run from the same region. |
With no profile picked, the button reads Start without a profile. Until you start, the status bar shows Waiting for you and nothing is explored. Click Not Now to leave the run unstarted; ask OpsAI in the chat to start whenever you're ready.

Follow the exploration#
The run opens in two panes: the chat on the left and the exploration map on the right.

- Status bar. Shows what OpsAI is doing (Starting, Exploring, Recording, Waiting for you, Completed, Failed or Cancelled), when the run started, the region and how long it has run. Click Cancel to stop the run and close the browser. Follow OpsAI keeps the map centred on what OpsAI is doing.
- Map. Every page OpsAI reached and every action it took appears as a card. Under them, OpsAI lists the journeys it proposes. Each journey card shows where it stands: Goal (waiting to be recorded), Recording, Recorded (with its number of tests and steps), Not recorded, Needs a profile or Already covered. A journey is Already covered when one of your existing tests already checks it, and OpsAI doesn't record it again.
- Purple route: a path that becomes a test. Hover a step to see the journeys that pass through it.
- Grey route: explored, but not part of a proposed journey yet.
- Dashed: links the journeys OpsAI wrote to the exploration above.
- Chat. OpsAI's work folds into one step that you can expand. Its title follows the run: Exploration Started, Exploration Done, Recording Started, then Exploration & Recording Done. While OpsAI works, the chat box is locked; you can ask follow-up questions once the run finishes.
Inspect a step#
Click any action on the map to open it. The drawer shows the page Before and After the action, with the element OpsAI acted on outlined, the page URL, which journey the step belongs to, OpsAI's reasoning, and the locators the test tries, in order, when it runs.

Sign in with a credential profile#
A credential profile holds the sign-in details OpsAI and your tests use: a user name, a password, an email, a one-time code (TOTP) secret or any other value. Recorded tests never contain the values themselves. They type a placeholder such as {{PASSWORD}}, and Middleware fills in the value each time the test runs.
When OpsAI asks for a profile#
If you started without a profile and some journeys need to sign in, OpsAI pauses and asks in the chat, listing the journeys that sign in. The status bar shows Waiting for you.

- Pick a profile and click Sign in and record. OpsAI signs in and records those journeys.
- Click Skip to record only the journeys that don't need to sign in. You can ask OpsAI in the chat to record the others later.
Create a profile#
Click New profile next to the Sign-in profile list, on the Explore website card or on OpsAI's sign-in request. To change an existing profile, select it in the list and click Edit.

- Enter a Name, such as Staging customer. Names are unique within a project.
- Under Variables, set the Usage and Value of each value OpsAI needs. A new profile starts with Username and Password. Click Add variable for more (up to 20):
- Email, for sites that sign in with an email address.
- TOTP (MFA), for sites that ask for a one-time code. Enter the secret key or the
otpauth://link from the authenticator setup. OpsAI types the current 6-digit code, never the secret. - Other, for anything else, such as a PIN. Give it a short label.
- Click Create profile.
How Middleware handles profile values:
- Values are encrypted when saved and never shown again. To change one, type a new value; leave it blank to keep the saved one.
- Values go only to the browser that types them. They aren't sent to the AI model, and they're removed from the network (HAR) and console logs Middleware keeps.
- Screenshots and the step drawer can show what a page displays after sign-in, including a typed user name.
- When you edit a profile, tests that use it pick up the new values on their next run. You can't delete a profile while tests use it.
Review and create the tests#
When recording finishes, OpsAI tells you how many journeys and tests it recorded and shows them in a table, all selected. If it couldn't record a journey, it says why in the chat, and the journey's card on the map is marked Not recorded with the reason.

Untick any tests you don't want.
Optionally, hover a row and click Edit to change a test before creating it. The test opens in place of the map:
- For a browser test, Edit Recording Steps shows each recorded step with a screenshot of the page. Reorder, change or add steps. Edit Test Details holds the test's settings, such as its name, locations and frequency.
- For an HTTP or TCP test, change the region, frequency and checks.
Click Save, or Save & Quit to go back to the map.

Click Create selected tests.
OpsAI confirms how many tests it created for each journey. Click Open in Tests & Monitoring to see them in Synthetic Monitoring.

New tests run every 5 minutes from the region the run used. Change the schedule, locations, alert conditions and notifications as you would for any browser test.
Keep going in the chat#
Once the run finishes, the chat box unlocks. Ask OpsAI for more in plain words, for example:
- "Also record a journey that searches for a product."
- "Record the journey you marked as already covered."
- "Explore the account pages again and suggest new journeys."
- "Try that journey again."
- "Show me the tests again."
OpsAI keeps the journeys and tests it already recorded in this chat.
Manage the tests in Synthetic Monitoring#
Tests created by OpsAI appear in the Synthetic Monitoring list with an OpsAI source tag and these tags:
| Tag | Meaning |
|---|---|
opsai-testing | Created by Browser Test with OpsAI. |
opsai-job:<id> | The run that created the test. |
suite:<journey> | The journey the test belongs to. A journey's browser, HTTP and TCP tests share it. |

They're ordinary Synthetic tests: edit, pause, resume or delete them like any other.
To find all the tests from one run, filter the list by its opsai-job:<id> tag.
To go back to the conversation that created a test, open one of the run's HTTP or TCP tests, click the settings menu (gear icon) and choose Edit with OpsAI. The run's chat opens, and you can ask OpsAI to change or re-record the journey's tests.

Find past runs#
The Browser Tests panel on the start page lists every run in the project. Click Search test or press ⌘K (Ctrl+K on Windows and Linux) to find a run by its message or site.

Limits#
| Limit | |
|---|---|
| Pages explored per run | 5 to 10 |
| Actions per run | 40, at most 5 on one page |
| Time spent exploring | 12 minutes |
| Journeys recorded per run | 8, up to 3 at a time |
| Steps per recorded journey | 20 |
| Test types | Browser, HTTP (up to 4 per journey), TCP (port 443) |
| Default schedule of created tests | Every 5 minutes, from the run's region |
OpsAI replays every recorded journey twice before offering it. If a step fails, OpsAI repairs it once. If the journey still fails, OpsAI drops it and tells you why.
Troubleshooting#
"Couldn't sign in: …" OpsAI couldn't sign in with the profile you picked. Check the values in the profile (click Edit), and that the account isn't locked or waiting on an extra step OpsAI doesn't have a variable for, such as a one-time code. Then pick the profile again.
A journey is marked "Not recorded" The card on the map says why. Often a journey needs a different account than the profile you picked, for example a locked-out user to test an error message. Create a profile for that account, then ask OpsAI in the chat to retry the journey with it.
"No activity for N min. The browser may be stuck; cancel the job to free it." OpsAI hasn't reported progress for a few minutes. Click Cancel, then start a new run.
"The browser could not be started in <region>" No browser was available in that region. Start the run again, or pick another region.
The recorded steps don't load when you click Edit An ad or content blocker can stop the editor from loading. Allow the Middleware app in the blocker and click Reload the page.
The run stopped with "The job failed without a reason." Start a new run from the same message. If it keeps failing on the same site, contact support with the site URL.
Need assistance or want to learn more about Middleware? Get in touch with us via our Contact Us or join our Slack channel.
What did you think of this content?