OBLYTECH Logo
OBLYTECH Logo

Smoke Test Sequence After Each Sandbox Refresh

A smoke test after sandbox refresh in Salesforce is a short set of checks that confirms the copy sends and receives integration traffic, lets users sign in with the access they need, and fires the automations testers depend on. Run it before anyone starts testing, and hold testing until all checks pass or each failure has a named owner.

Record a baseline before the smoke test after sandbox refresh starts

Testers often assume a refreshed sandbox matches production. In practice the copy can differ in data volume, user records and configuration, depending on how the refresh was set up and what changed afterward. Starting without a written reference point turns each odd result into a debate about whether the environment was meant to look that way.

Write down the sandbox name, the source environment, the refresh date and the person who requested it. Add any post-refresh steps the team agreed to, such as resetting test passwords, updating stored credentials or pointing an outbound endpoint at a test service. Keep this record with the results sheet so the two travel together.

The baseline also tells you which differences are expected. If the source environment held a large archive of closed records, for example, a slow report can be judged against that fact rather than against production. Without the note, the same slow report reads as a defect.

If the refresh is still being scheduled, plan it first with the guide to planning a sandbox refresh, then return here to set the baseline.

Confirm sign-in and access for each test group

Sign-in is the first check that shows whether the sandbox is usable at all. Pick one test user from each role that will test in the sandbox, and walk through the steps in the order a tester would reach them.

  1. Sign in as one user from each role and confirm the landing page loads without an error.
  2. Open the list views and record forms that role uses, and compare the records and fields visible with the baseline for that role.
  3. Check the address the browser lands on after sign-in. If a login link still points to production, it can send a tester into live data.
  4. Run one write action per role, such as creating a record that role normally creates, then delete the test record.

Test accounts in a refreshed sandbox may need new passwords or reactivation before anyone can sign in. Decide ahead of time who issues them, and note the date each test account was last confirmed working. A tester who waits on a password reset in the middle of the run loses the time the sequence is meant to protect.

Access checks also test role design. If a tester sees more than their role should show, log it as a failure even when the page loads cleanly. For a look at how permissions are grouped for a small team, read permission set design for small teams. It helps when a sign-in check turns up an unexpected view.

Run the integration checks in a fixed order

Integrations often show refresh problems first, because they depend on endpoints, credentials and field mappings that may still point at the wrong place after a copy. Run them before the automation checks. An automation that calls an integration will fail for a reason that becomes visible once the integration itself is confirmed.

  1. Confirm that each outbound integration points to its test endpoint, then send one test request and record the response and how long it took.
  2. Pull one known record through each inbound interface and compare the returned fields with the baseline.
  3. Confirm that each integration user can authenticate and can see the objects that integration needs.
  4. Trigger one deliberate failure, such as a request with a missing required field, and confirm the error reaches the log or alert the support team watches.

Keep integration traffic away from live systems. If an outbound endpoint in the sandbox still reaches a production service, pause that integration and correct the setting before you send anything. Test messages that reach a live vendor or customer are often hard to reverse, so treat this as a stop condition for the whole run.

Validation rules are a common source of integration failures that look unrelated to the endpoint. A record that saves cleanly in the user interface can fail when an integration sends a value the rule did not anticipate. When a check fails with a validation message, read the rule before changing the integration. For how rules and integrations interact, see writing validation rules without breaking integrations.

Test the automations testers rely on day to day

The automation checks should cover the handful of automations testers touch in a normal working day, not the full inventory of the org. A run that takes too long tends to get skipped. Focus on record triggers that create or update data, approval steps testers pass through, scheduled jobs that feed reports, and notifications sent to people.

  • Create a record that meets a trigger condition, then confirm the automation fires once and sets the expected values.
  • Update the same record so the condition is no longer met, then confirm the automation does not fire again.
  • Run one scheduled job manually if your environment allows it, and compare its output with the baseline.
  • Confirm notification recipients point to the test group. An automation that emails real staff during a run is hard to undo, so check recipients before the first trigger.

Keep test data sized to the check. A single step that creates a large number of records can fail for resource reasons unrelated to the change under test. For the resource side of that planning, see governor limits for admins before you set the volume.

Record results and decide when testers can start

Keep one results sheet for the run. Give each check a row with the check name, the owner, the date, the result and a link to the evidence, such as a screenshot or a log entry. Use three result values: Pass, Fail and Blocked. A check is Blocked when an earlier step stops it from running. Show that as its own status so it does not look like a defect in the check.

Agree on the start rule before the run begins. A workable rule is that testing opens when all checks pass, or when each open failure has an owner, a fix date and a note that it does not block the first test cases. Write the rule at the top of the results sheet so testers can see why the sandbox is open or closed.

For help planning this work, see Salesforce implementation.

Share the sheet with all testers, including the status of each open failure. Testers who learn about a broken integration from a failed test case lose more time than testers who were told at the start.

Questions about running the smoke test after a refresh

Who should run the smoke test?

The sandbox owner usually runs the sign-in and integration checks, since those need admin access to endpoints and integration users. Each role’s tester runs that role’s write action, and a second person reviews the results sheet before testing opens. Separating those jobs stops one person from marking their own work as passed.

How long does the sequence take?

The length depends on how many integrations, roles and automations the sandbox carries. A small org can finish in one sitting. A larger one may split the sequence across two sessions, running sign-in and integrations first and scheduled jobs later, since some jobs need time to complete.

What should happen when a check fails partway through?

Stop at the failing check and record the failure with its evidence. Then decide whether the checks after it can still run in a meaningful way, and resume once the owner confirms a fix or a workaround for the test cycle.

Should the smoke test use copies of production records?

Use test records created during the run instead. Copying live customer or employee records into the sandbox for a check spreads personal data into a less controlled place, and it can make results depend on data that changes. Remove the test records after the run, and note in the results sheet which ones were created.

How often should the smoke test be repeated?

Repeat it after each refresh, and also after a change to integration credentials, endpoints or the automations testers depend on. Those changes can alter results without a refresh, so waiting for the next refresh to catch them leaves a gap in the test cycle.