Magento Upgrade Testing Beyond Functionality With Database, API, Performance Validation And More
During an upgrade, it is common to verify that the website is functioning as expected by checking that the homepage is visible, the checkout works and we can access the Admin. However, to make sure the upgrade has gone smoothly, it is also important to consider database changes, API changes, and performance changes, in case issues occur and go unnoticed until live traffic arrives.
What is non-functional upgrade testing? It is confirming that the database (schema, data & indexes), APIs (REST, GraphQL, external systems) and performance (speed, caching, load) have not changed, compared to a baseline, during an upgrade.
Why functional tests do not provide enough information
Functional tests will confirm if a user can perform actions within the application. They will not confirm if the order data has been stored correctly, if correct data is still being sent to your ERP, or if the product page has got slower.
Adobe recommend that testing is the time consuming part of an Adobe Commerce upgrade, and that as much testing as possible should be completed in a staging environment before moving to production. Considering what happens in the background during a simple checkout action, this recommendation makes sense.
To be more efficient, the upgrade should be considered as a change to your business system. Consider testing the underlying layers. Below is a comparison of these layers.
| Layer | What it protects | What can go wrong |
| Database | Orders, customers, catalog, configuration | Failed patches, orphaned records, stale indexes |
| API | Integrations, headless frontends, mobile apps | Changed responses, broken authentication, timeouts |
| Performance | Speed, conversions, search visibility | Slower pages, cache misses, heavy background jobs |
Start With a Baseline, Not a Guess
To ensure that no new issues are being introduced by an upgrade, it’s best to understand the expected functionality before the upgrade. Ensure you capture metrics on key journeys in your store (page load speeds, API response times, numbers of records and cron tasks), and note any issues to prevent them being blamed on the upgrade later.
Ensure that you capture the same types of products, customer segments, promotions and payment methods in your test between pre and post upgrade to get valuable comparison data.
Database Integrity
Many teams may neglect checking their databases during upgrades. Even though data is patched and schemas are updated, the database contains your most valuable data. While the store may appear to be working correctly, your patches may not have applied correctly.
Check the below crietrias:
- Schema and Patches: Run bin/magento setup:db:status and ensure that there are no outstanding data/schema changes.
- Data counts: Compare the number of Orders, Customers, Products, Categories, URL Rewrites etc. between pre and post upgrade. Investigate any inconsistencies.
- Data integrity: Are there any orphaned records, invalid foreign keys, or missing attributes? Particularly make sure custom attributes/custom tables have no missing data.
- Indexers: Ensure all indexers are valid. To ensure changes to data in the database result in changes in the front-end, make a change to a product and ensure it updates correctly during regular scheduled index processes. Just because a full reindex worked doesn’t mean that ongoing indexes are working.
- Database versions: Ensure MySQL/MariaDB, search and cache services are at supported versions for the release.
- Backups: Ensure that a restoration can be performed quickly. Backing up without restoring is risky.
Something to be very careful of: If orders are placed on the upgraded site, simply having a database backup may not give you a clean rollback. Decide pre-upgrade how you would manage new data records if a rollback was required.
APIs
Most modern Magento stores will integrate with other systems. This may include ERP, CRM, Warehousing, Payment Gateways, Shipping Providers and in some cases a Headless or PWA front-end. Performing API testing ensures that communication with these systems works correctly.
After initial integration tests, you can proceed to a detailed API testing checklist to verify all the components perform as desired.
- Authentications: Ensure that authentication tokens, API keys and oAuth workflows are functioning as intended and are providing the correct access.
- Deal with malformed and incorrect requests: Return appropriate HTTP status codes and error messages when a malformed or incorrect request has been submitted.
- Webhooks and notifications: Ensure that payment and shipment webhooks are triggered as expected and order statuses are updated correctly in the systems that are connected.
- Third party modules: Don’t presume that a third party module works if it does not report an error when loading. Run tests against its API calls, data exchanges and integrations to determine if there are any compatibility issues.
Don’t just test up to checkout. Create a test order, and ensure it flows correctly to the ERP/warehouse. Once shipment and tracking data is returned to Magento, you can be confident that this integration is working correctly. An ‘active’ connection does not mean a transaction has been completed.
Be sure not to send emails to real customers or really generate work in a warehouse in a staging environment.
Performance
Performance can be impacted by cache, assets and background processing. Therefore, although all the functionality tests are successful, you might experience slow performance when you use it on the site. Therefore performance testing should be based on a pass/fail criteria.
Make the following comparisons between Pre and Post upgrade:
- Page load speed of category, product, basket and checkout pages.
- CWV metrics (LCP, INP, CLS).
- Full page cache hit rate, session cache hit rate and cache backend hit rate.
- Slow query, and index process times.
- Crons and queues. Ensure tasks can be completed in time, and aren’t building up.
No single metric to be considered for performance. A clean home page is a good thing, but make sure that the trends are good on revenue generating pages, too.
Make sure that canonical URLs are correctly implemented and redirects are functioning, the sitemap is reflecting the correct coverage of the pages and that pages can be indexed. Make sure there are no restrictions put in place in staging which are not in place in production. After launching ensure that analytics and Google Search Console don’t have any weird problems. Continue to monitor performance to catch performance degradation early.
Step-by-Step Process For Magento Upgrade Checklist
For most stores, the below order of testing will be useful.
- Record baseline data in journeys, data, API response and speeds.
- Use and identify dependencies (PHP, Database, Search, Cache, Extensions and Custom Modules).
- Do upgrade in staging, and do it in a similar manner to how it’s done on production.
- Conduct front end and admin regression tests. After completing the database, run the tests on the database.
- Run tests with synthetic order flows and integration testing all APIs.
- Check performance vs baseline and fix any regressions.
- Do a dry run of deployment and rollback process, timing and ownership.
- Go live. Simulate flow orders on critical flows. Closely monitor.
Adobe’s Upgrade Compatibility Tool is suggested to be done at the early stage. This analyses your code vs the target version, and highlights any issues to be addressed before testing.
Common Pitfalls
Common Mistakes That Causes Upgrading Challenges
- Assuming implementation success
- Only testing a ‘happy flow’ (ignoring payment failure, invalid addresses and mid-flow failures).
- Testing with full admin accounts. Missing out on any issues due to role permissions.
- Missing out the baseline. This means you may be debating about whether changes have introduced new issues, or whether previous issues have just been missed.
- Assuming zero downtime, but not practicing deployment to achieve this.
How Rock Technolabs Can Be
For Magento Upgrade Services?
Having performed multiple upgrades proves that the developers are skilled in those activities, and can do those tasks much easier. Rock Technolabs has experience in helping ecommerce brands with Magento and Adobe Commerce. We can create your test plans for your customisations, integrations and traffic. Whether you’re looking to create your next release, a speedy review of your current setup is a good place to start.
Finishing Up
Once upgraded, you should be able to experience a clean data, no compatibility problems when attaching your integration to your Magento stores and a performance that’s equal or better.
To conclude all this in simple words, you have to record a baseline, test on a staging environment, compare the results and rehearse your roll back plan before launch, and do this every time and you replace guesswork with proof.
FAQs
Is functionality testing going to work when we proceed with a Magento upgrade?
No. Data integrity, API functionality and performance issues will frequently result in problems after upgrade. There is NO SINGLE SOLUTION to functional testing!
How long its going to take for a full Magento upgrade testing?
The amount of testing will usually take longer than the upgrade itself, depending on the amount of extensions, customisations and integrations required. Plan ahead and attempt to use automated testing.
Can you trust the results from a staging environment?
This is very important, however, the size of the catalogue, infrastructure and external services in staging may be slightly different compared to production. Be sure to document these differences and plan specific checks post deployment.
When upgrading what should I look first?
Check for unapplied patches, and that indexers are in a valid state. Fill out one of order flows (checkout to ERP and shipment) and compare to baseline key page speed.

