Flying Spares, provider of spare parts for vintage cars and high quality marques, displaying a Rolls-Royce from their eCommerce Shopify development from magic42

Flying Spares

International B2B Magento with 240k catalogue, Khaos Control Integration and digital marketing.
See our work
Stone Computers Case Study by magic42

Stone Computers

Adobe Magento Commerce B2C, B2B portal and PunchOut sites and bespoke loan payment solution.
See our work
Alan Paine quality clothing retailer showing their brand, as featured in their case study for their eCommerce website with magic42

Alan Paine

Multisite, B2C migration from Magento to Shopify Plus with ERP integration.
See our work
Haws Watering Cans case study after eCommerce development agency, magic42, migrated their site to Shopify

Haws Watering Cans

B2C eCommerce strategy, UX improvements, AdWords and Klaviyo email marketing management.
See our work
Alan Paine quality clothing retailer showing their brand, as featured in their case study for their eCommerce website with magic42

Alan Paine

Multi-site, B2C migration from Magento to Shopify Plus with ERP integration.
Find out more
Roger Clark Motorsport automative eCommerce client case study from magic42, showing high quality silver cars in a slick garage

Roger Clark Motorsport

B2C and B2B migration of bespoke, global automotive parts website to Shopify.
Find out more

Call Us

Speak to a Shopify expert:

0121 663 6360

Get in touch 
magic42 - eCommerce development experts born from retail success

Born from a retailer

Read the full story of how our award-winning retail business developed into magic42.
Find out more
Envision Workshop documents as an outcome from our replatforming and migration meeting for your eCommerce website

How we'll work with you

Find out what it's like to partner with us and the steps involved for your eCommerce project.
Find out more
Alex Ashman, director of magic42, in a bumper car with a huge grin on his face as he mingles with his eCommerce development team at magic42

Looking for a career with us?

Take a look at what it's like to work at magic42 and the opportunities we offer.
Find out more

Call Us

Speak to our eCommerce experts:

0121 663 6360

Get in touch 

Why synthetic testing in eCommerce is the time-saver you need

Author: 
Alex Ashman
Published: 
October 25, 2023
Two developers working together to create a script for synthetic testing in eCommerce to help them save time

When it comes to selling a product or service on your website, it’s crucial to make the user journey as intuitive as possible. However, developing an eCommerce website is a complex process and ensuring every element works in the customer journey takes time. There may be layers of complexity, evolved over years, baked into your chosen platform. That’s where synthetic testing in eCommerce development can help.

What is synthetic testing in eCommerce development?

Synthetic testing, often seen as a form of  automated testing, simulates user actions on your website to test if a feature works correctly. In eCommerce website development and Magento / Adobe Commerce, this can automate the actions of a customer during testing. For example, a customer navigating to a chosen item, adding this to their basket, then going through the checkout process. 

One key benefit of synthetic testing is that a suite of actions can be run automatically at a time of your choosing. For example, this could be run on a daily schedule. However, in development, most issues occur when changes have been made to the code. That means synthetic testing is best used for regression, which is testing a planned change to ensure it hasn’t caused an undesired effect on the eCommerce site. The perfect time to run this test would be after a release on either the staging or production environment.

Any results can then be monitored and measured, such as through an application called Cypress (more on that later).

What are the benefits of automated testing?

Outside of precisely simulating the chosen user journey, the benefits of synthetic testing are numerous.

The biggest advantage is that automated testing saves time. Ask yourself what’s more time efficient - manually testing the customer login screen at a set time every day… or having a script do this automatically? The answer’s obvious, especially when different login scenarios can be scripted as different functions (shown below). The whole testing process therefore becomes even more efficient as time goes on.

Another benefit is how thorough the testing can be. A script only takes once to set up, but can carry out a myriad of user inputs to test a section of your website. This ensures testing remains just as comprehensive from its first run to its last. In comparison, the manual test would be a tedious task over time and subject to human error as a result.

There are plenty more advantages of synthetic testing. These range from its speed right through to forming an essential part of continuous integration. It even works with Magento and Adobe Commerce.

How does synthetic testing work with Magento / Adobe Commerce?

Alluded to earlier, Magento automated testing can simulate a customer visiting your website. From there, the automation may search your catalogue of products, select the type and quantity, add this to their basket, enter delivery details, proceed to the checkout page and click the payment method. Each test can be planned and built by a developer.

eCommerce testing with Cypress

In order to create a synthetic or automated test for an eCommerce website, code first needs to be created in an area like GitHub and then tested via a tool called Cypress.

Cypress is a test automation framework that utilises JavaScript. This works with its lightweight JavaScript library, jQuery, pulling through familiar constructs to make it especially developer-friendly. What this means is that developers can create tests for a website and automatically run them.

Cypress can also set up on Magento Open Source or Adobe Commerce by magic42, our Magento development agency and Adobe Commerce development agency. Although we offer UK based Magento hosting, Cypress can also be used with Adobe Commerce Cloud or clients that prefer hosting themselves. Our team can then run and evaluate simulated customer tests (aka: end to end tests) for clients based on the requirements from their User Acceptance criteria. Such testing can occur in a browser (shown below) and set to run through continuous integration processes, whether that’s from a local developer, staging or production environment.

Cypress running Synthetic Testing for an eCommerce website, simulating a customer purchasing one of their items.

If any test should fail, a notification is sent, alerting our developers or testing team. Cypress automatically records the test results in a video, allowing the team to view what went wrong and where. Our developers can then pinpoint the problem and resolve the issue.

Interested in eCommerce synthetic testing?

Our mature development processes and experienced team offer a variety of innovative solutions for our clients. If you’re looking for a professional approach from a UK-based team to help grow your site, then please get in contact with us.

magic42 logo
magic42 is a UK-based eCommerce development agency, born from an award-winning retailer. Having grown with the industry since the year 2000, we provide our unique perspective to help clients get the best from their eCommerce platforms.
Company No. 11572347 VAT No. 310 2436 61
Adobe Solution Partners Bronze Logo, used by verified Adobe expertsShopify Partners Logo (as used by Shopify Development Partners)
© Copyright 2024 magic42 Limited - All Rights Reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram