An API version upgrade testing routine is a set of checks that confirms an integration, connected app or managed package still works after moving to a newer API version. It starts with a dependency inventory, runs a scoped test pass and a canary period, and ends with a written sign-off before the old version is retired.
Start with a dependency inventory
The inventory is the step teams shortcut most often, and it sets how long everything after it takes. List every connection that calls into the org or receives data from it. That includes connected apps, installed packages, middleware flows, scheduled jobs, reporting extracts, file transfers and custom code that makes outbound requests. For each one, record the API version it uses today, the team that owns it, the business process it supports and the person who can approve a change.
A version pin is often set in more places than the person who built the integration remembers. Check configuration files, the endpoint URLs in named credentials, custom code and installed package metadata, not just the design document. Each entry should capture:
- Connection name and direction, inbound, outbound or both
- The current API version and the exact place where that version is set
- The business process affected and the users who rely on its output
- A technical owner and a business owner, with a named backup for each
- Known failures from the last year, including support tickets
- Whether the connection is scheduled, event driven or triggered by a user
Integration design also shapes the testing. A synchronous call chain needs different checks from a message queue. If an integration architecture review already exists, reuse its diagrams, but check them against the live configuration because diagrams drift over time.
Set the scope and the pass criteria before testing starts
Scope is a decision about business risk, not a count of test cases. Rank each dependency by what breaks if it fails: lost revenue, a stopped service queue, incorrect financial records or a regulatory report that goes out wrong. Connections that touch money, customer commitments or regulated data get the deepest coverage.
Customizations deserve the same attention. A validation rule, flow or trigger that reads a field populated by an external system fails the same way an external call fails. Include that org-side logic in the test list. A configuration and customization review completed before the upgrade produces that list without a separate search through the org.
Write pass criteria in plain terms
A test case passes when its outcome matches a written expectation, not when the call returns without an error. Before the run starts, write the expected field values, record counts, status codes, timing and side effects for each case.
Build a test environment that resembles production
The test environment has to be close enough to production that a pass means something. That means the same packages and configuration, integration endpoints running in test mode and a realistic volume of records. Masked data still needs the shapes production produces: long text values, empty lookups, duplicate identifiers and records created by earlier versions of a process.
Be careful with endpoints. A run that points at a live third party system can send real messages, create real records or use quota that production needs. Where a partner has no test endpoint, use a stub that replays recorded responses, and note which responses were recorded and when. A stub that returns only the happy path hides the failures this routine exists to find.
Credentials need the same discipline. Give test users the permissions each case needs, and keep production credentials out of the test configuration. The data quality checks used before a migration work well as a model for the data side of this step, since the same duplicates and blank fields cause trouble in both places.
Run the suite in a fixed order
Run the suite in the same order each time so results can be compared across attempts. Later stages assume the earlier ones passed. A failed smoke check should stop the run, so downstream cases do not all fail for one reason and bury the real cause.
- Smoke checks: authentication, a read and a write for each connected system, and confirmation that the expected version is in use.
- Contract checks: compare request and response structures with the recorded expectations, field by field, including optional fields and null values.
- Error handling: send malformed requests, expired tokens and oversized payloads, and confirm the error paths behave as before.
- Volume checks: run a batch at a realistic size and watch for timeouts, processing limits in custom code and records processed twice.
- Business flows: run each process from the first screen to the final saved record, using scenarios the business owner has approved.
- Scheduled jobs: trigger each job manually and confirm its outputs and notifications.
- Reporting: compare totals in each report against the previous version for the same data set.
Business flows tend to break first in service and sales processes, so give them extra time. A change in how a case or opportunity is saved can alter which automation runs afterward. The service workflow design behind those automations shows which downstream effects to check, so test the effects of a save, not just the save itself.
Triage differences and decide what blocks sign-off
Classify each difference between old and new results. Mark it as blocking, meaning sign-off waits for a fix; as a workaround, meaning it can go live with a documented manual step and a named owner; or as accepted, meaning the business owner agreed to it in advance. A cosmetic difference that does not affect data, timing or the user’s next action can go to the backlog.
Each defect record should include the case identifier, the old and new outputs, the version in use, the dependency it belongs to and a reproduction path. Without version evidence, a defect gets blamed on the upgrade when the real cause was a data change made the same week. After each fix, retest the original case and a neighboring case, because changes to shared logic often move a failure rather than remove it.
Run a canary period and rehearse the rollback
A canary period lets a limited part of the business use the new version first. Choose a business unit, a set of connections or a slice of records where a problem would be visible and recoverable. Length should follow the business cycle, not a fixed number. A connection that runs at month end needs the canary to include a month end.
Rollback belongs in the plan from the start. Write the steps that return each dependency to its previous configuration, name who can run them and rehearse them in the test environment. Record how long the rehearsal takes, because a live rollback decision depends on that figure. Keep the previous configuration documented until retirement is complete.
Record the sign-off and schedule retirement
Sign-off is a written decision with named approvers. At minimum, the technical owner of each dependency, the business owner of each affected process and the person accountable for security or data protection should confirm that blocking items are closed and accepted differences are recorded.
Keep the decision record beside the test evidence: the scope list, pass criteria, results from each stage, defect classifications and canary observations. Someone who inherits the integration a year later should be able to see why the old version was retired and what was checked first.
Retirement is a separate change. Schedule it after the canary has covered a full business cycle, remove the old version reference from each inventory entry, and add any case that failed in production to the routine. For help planning this work, see Salesforce implementation.
Questions about the upgrade testing routine
How often should the routine run?
Run it when a dependency changes version, not on a fixed calendar. A connection that has not changed in two years still needs the routine when its version is due for change, and a small internal package update may need only its own dependencies rather than the full inventory. Ask each technical owner to flag planned changes early, so the routine starts with enough lead time.
Who should own the test cases for a package we did not write?
The business owner of the process should own the expected outcomes, because they know what correct looks like. The internal technical team should own execution and the evidence it produces. Where a package publisher provides change notes, turn each relevant change into a test case, or into a recorded decision that the change does not affect the org.
Can we test with synthetic data alone?
Synthetic data helps with the first pass, but it rarely contains the odd records that caused problems before. Use a masked copy of real data for volume and contract checks, and add records from past incidents as named cases so the same failure cannot pass unnoticed.
What if a failure shows up only in production?
Treat it as a gap in the routine. Add a case that reproduces the failure, run it against both the old and new versions, and hold retirement until that case is in the suite and passes. Record the gap in the decision file so the sign-off history shows what the routine missed.
Do we need to test every connection at the same time?
No. Stagger the work by business impact so the highest risk dependencies get closest attention and the schedule stays realistic. Lower impact connections can move to a later batch, as long as their smoke and contract checks are complete before the canary starts.