Troubleshooting failed steps
When a Test Blocks step fails, the step card shows two sentences: what went wrong and what to do next. This page lists every message you can see, what causes it, and how to fix it. For how to write steps that avoid these in the first place, read the Test Blocks authoring guide.
Read a failure
- The step card. A failed step shows the headline and the recommendation. A soft assertion shows Failed · soft and later steps still run.
- Show proof. Opens the screenshot after the step, the Action log (what the step did, in order), the Code that ran, and, for API steps, the Input / request and Output / response. Compare the screenshot with what the step expected: most failures are explained by what was on screen.
- The execution log on the run holds the full cause and the raw error from the browser or the code, with secrets masked.
A failed step can be fixed and run again; the run continues from that step. Each failed step is retried automatically before it is reported (Retries per failed step in Configuration, default 5, up to 20).
Step failures
These are the headlines a failed step can show, grouped by cause. The words in italics are filled in from your step.
The step could not find what it needed
| Headline | Cause | What to do |
|---|---|---|
| Could not find the item on the page in N s. | Nothing on the page matched the button, field, or text the step names. | Check the name against the screenshot. If the item is on another page, tab, or menu, add a step before this one that opens it. |
| Nothing on the page matches what this step asks for. | The page has no control that does what the instruction describes. | Use the label the page shows, or add a step that opens the right page first. |
| Found N matching items for the item, so the step could not tell which one to use. | The name matches several elements, such as a "Save" button in two sections. | Say which one: name the section, dialog, or row it is in. |
| The step found something on the page, but not the control the instruction described. | The match was the wrong element. | Name the exact button, link, or field. |
| The page showed no buttons or fields this step could use. | The page had not loaded, or it was the wrong page. | Add a wait, or a step that opens the right page. |
The item was there but could not be used
| Headline | Cause | What to do |
|---|---|---|
| The item is on the page but not visible in N s. | It is inside a closed menu, tab, accordion, or scrolled-away section. | Add a step before this one that opens or scrolls to it. |
| The item is covered by something else on the page. | A dialog, toast, cookie banner, or overlay is on top of it. | Add a step before this one that closes the dialog or banner. |
| The item disappeared before the step could use it. | The page re-rendered while the step acted. | Add a wait before this step, then run it again. |
| The control chosen for this step was no longer on the page when the step acted. | The page changed between choosing the control and using it. | Name the exact control, then run again. |
| The page changed or closed before this step finished. | Navigation, a popup closing, or the browser session ending. | Add a wait before this step. If the step opens a new tab, say so in the step. |
Checks and timing
| Headline | Cause | What to do |
|---|---|---|
| A check in this step did not hold: detail | An assertion found a different value or state than expected. | Compare the expected value in the step with the screenshot. If the value changes per run, use a variable instead of a literal. |
| This step timed out in N s. | The page or the action took longer than the step waits. | Add a wait for the page to settle before the step, then run again. |
| This step used its whole 300s budget and was stopped. It had finished X of Y actions. | The step does too much, or waits on something that never happens. | Break the step into smaller steps. |
| This step stopped without doing anything on the page. | The step could not decide what to act on. | Name the exact button, link, or field. |
Steps that run without a browser
For a step with Needs browser to run off (SOQL, Apex, API, and other code), the recommendation is about data, not the page:
| Failure | What to do |
|---|---|
| A check failed | Compare the actual response or saved value with the expected one, including type and structure ("5" is text, 5 is a number). |
| Timed out | Check the request or query timeout and whether the service is up, then run again. |
| Anything else | Check the step's code, its input values, and the response under Show proof. No page interaction is involved. |
Choose an environment with a connected Salesforce org before adding a SOQL or Apex step means the test's environment has no Salesforce connection. Add one to the environment, or pick another environment.
When a step needs your help
This step needs your help appears when a run stops on a step without a failure TestZeus can explain. The description depends on the step:
| Step | Message | What to do |
|---|---|---|
| Plain language | Edit this step or paste code that does it, then run it again. | Reword the step more specifically, or write the code yourself on the Code tab. |
| Your own code | The code on this step stopped. Change it, then run it again. | Read the raw error in the execution log and fix the code. |
| SOQL / Apex / API | Check the query / Check the Apex / Check the request, then run this step again. | Run the query or request outside TestZeus to confirm it works. |
| Device | Check this device step, then run it again. | Compare the device screenshot with the step. |
Runs that do not start, or stop early
| Message | Cause | What to do |
|---|---|---|
| The run stopped before this step | An earlier step did not finish. | Fix the first failed step above, then run again. |
| Step needs review before it can run / A step needs a review | A step's multiple-intents review is unresolved. | Open that step and accept the breakdown or Author my own. See One step, one intent. |
| Close the session to run an earlier step / Discard & Run? | The open browser is already past the step you asked for. | Confirm Discard & Run: the browser closes and the run starts again from step 1. |
| A step that already ran was edited. Run the test again from that step. | You changed a step the open browser already ran. | Run again from that step, or discard and run from step 1. |
| Something a step that already ran depends on has changed. Restart the browser to run from the first step. | Data or state an earlier step relied on is different now. | Discard the session and run from step 1. |
| This range mixes a browser step with a device step | One run drives either a browser or a device, not both. | Make the step match the test (web or mobile), or move it to a test of the other kind. |
| Another step is still starting | You started a run while the previous one was starting. | Wait for it to begin, then run the step. |
| The browser is busy with another task. | A run is still using the browser. | Wait for it to finish, then try again. |
| A run is already in progress for this test. | A Live Test or another run holds the test. | Wait for it to finish. |
| The run stopped responding. Start it again. | The run lost contact partway through. | Run the step again. |
| This session has ended. / The session reached its time limit and was closed. | The authoring session closed (sessions end after 30 minutes idle). | Start a new session; your steps are kept. |
| Live Test stays blocked | Some kept step is not verified, or a session is still open. | Run every step until it is Verified, then end the session. |
| N steps use references that can't be found · Fix | A step reads a value no earlier step saves, or test data that is not attached. | Select Fix and pick the right reference, or add the step that saves it. |
| This change is too large to save at once | One edit touched more than 100 steps. | Paste or edit fewer steps at a time. |
| This test changed since you opened it. | Someone else edited the test. | Refresh to load the latest version. |
Browsers and environments
| Message | What to do |
|---|---|
| Choose a URL to open | Pick the environment URL key (the page the browser opens) in Configuration. |
| Correct the URL in your environment | The selected value is not a full http:// or https:// address. Fix it on the environment. |
| Browser did not open | Select Try again, or Go to configurations and check the environment. |
| The site blocked this browser | The site refuses this browser engine. Select Rerun on another browser, or change the environment's browser. |
| Every browser of this kind is in use | Try again in a moment, or pick another browser. |
| This browser isn't enabled for your workspace | Pick another browser on the environment, or ask an admin to allow it. |
| The proxy couldn't reach the site | Try again in a moment. If it keeps failing, check the workspace's Browser Proxy setting. |
| The browser service is updating | Try again in a few minutes. |
| Not captured (while recording) | That click, key press, or navigation was not recorded. Write it as a step below. |
Devices (mobile tests)
| Message | What to do |
|---|---|
| This environment has no device | Pick a mobile device on the environment, then run the step again. |
| Every mobile device is in use | A live run holds the device. Nothing was lost; try again when the run finishes. |
| Every device is in use | Try again in a moment. |
| No device is connected to this test yet. | Run a device step, or select Record on device, to open the device first. |
| The device session ended. | Start a new session or record again. |
| We couldn't reach the device. / The device didn't answer in time. | Try again in a moment. |
| This recording is for another kind of test | Browser steps record into web tests, device steps into mobile tests. |
| Review locator (on a recorded step) | Several elements matched the one you tapped, so the step picks one by position. Check it still targets the right element. |
Sign-in and login flows
| Message | What to do |
|---|---|
| This login flow is turned off. | Turn it on in Authentications. |
| Another run is logging in as this user. | Try again shortly, or give parallel tests different users. |
| This login flow has no username. | Add one on the login flow, then try again. |
| This login's username isn't an active user in the Salesforce org. | Use an active user, or fix the username. |
| Sign-in references work only in a browser step's plain-language instruction. | Move the [$.environment.current.authentications.…] or email reference into such a step. |
| A sign-in code is typed into a field, not checked. | Remove it from the assertion; type it into the field in the step's instruction. |
Still stuck
- Run the step on its own with Run until this step and read Show proof before changing anything.
- Split a step that does several things; a smaller step fails with a clearer message.
- Use Report a problem in the user menu and include the test and step number.