Over a million developers have joined DZone.

Why Fidelity of Environments Throughout Your Testing Process is Important

This article addresses the release of web-based product (SaaS), and the importance of ensuring environment fidelity throughout the QA process.

· DevOps Zone

The DevOps zone is brought to you in partnership with Sonatype Nexus. The Nexus suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

Product release testing can be a complicated matrix of requirements, especially in today’s complex software and hardware systems. Releases take untold number of hours to test to ensure the quality of those products before they reach the customers’ hands. This article addresses the release of web-based product (SaaS), and the importance of ensuring environment fidelity throughout the QA process.

When testing complex applications, it is important that during all phases of the testing process that the test environments are as similar to the actual production system as possible, but it becomes more important the further along the release process the release travels.  The rroduct release may go through multiple phases of testing, including: development testing, QA testing, performance testing, soak testing, and a staging (pre-production) environment before it is released to the actual production environment.

As Aliza Earnshaw at Puppet Labs states:

“To get there [Continuous Delivery], though, you have to move code from the developer’s desktop environment into the testing environment — or environments — and then on into production. All these environments have to be configured the same way, or you run the risk of finding that code that worked in QA , for example, breaks in production.” [1]

Let’s consider the reasoning behind homogeneous test environments:

Development Testing

During the development phase of testing, the engineering team will be testing multiple iterations of their changes on a daily basis. While it is important in this phase of testing for the environments to be similar with what will be found in the production system, there are many aspects that will be harder to duplicate. For example, there will likely be only one server which may serve multiple purposes, such as the application server, web server, database server, and so on. There will likely be no load balancer, no redundant servers, and no fail over process. At this point in the testing, that is expected.

But the servers themselves should be similar to what might be found in production. Testing an application on a Windows server that will eventually be running on a Linux server is not as effective as testing on a Linux server with the same operating system and other software packages installed. It is important that the same operating system (including the patch level), and other software packages be the same versions as those found in the production environment. The potential for testing an application throughout all phases of the release process, only to find bugs when it hits the production environment because production was using a different version of software, is an issue that no team should encounter.  By having the development  testing environment similar to the actual production environment that the application will eventually be installed on, the team can eliminate potential problems related to software versions.

If there are interactions with other software packages that are not available in the development testing environments, it is important to have simulators or emulators in place to mimic that interaction. If this is not done, then potential problems related to that functionality will not be found until later in the release process, when the cost of finding problems is much higher. The development team’s ability to test this functionality, especially if they are making changes that could affect it, is vital to the quality control of the application.

Quality Assurance Testing

Once development of a new functionality has made progress, the application will be turned over to the quality assurance group. At this point in the process, there should be a more comprehensive set of environments available to this team, that are even more similar to the production system than the development testing systems. This is where multiple application servers, load balancers, and other systems found in production should be in place. Emulators and simulators will be more important in this testing phase as well, as more comprehensive testing will occur at this time in the process.

The environments that will be used here should be nearly identical to those used in production. All software installed should be the same versions as those in production, and the hardware itself should be as similar as possible as well. This will help to reduce the possibility of any issues that are related to the environments themselves.

Performance and Soak Testing

Both Performance testing and Soak testing need to be done in specific environments that again should mimic the production environments as closely as possible. While performance environments will generally be specific and well documented, to ensure that the performance metrics are useful, they should be similar to what exists in production, allowing the performance metrics to be a more accurate representation of what customers might encounter.

Soak testing is to test typical production load, and so it should also be done on environments similar to what will be seen in production. The closer that the environments are to a production environment, the more accurate the testing results will be.

Staging Environment Testing

The Staging environment, used to test the release before installing in the production system, is best managed by the operations team – the same team that will be managing the installation on the production environments. By having the operations team do the installation into the stage environment, it allows them to have a first look at the installation process, and to have a practice session before the installation of the application in production. The stage environment may be the first chance that the QA team has to actually test some third party integrations (such as the banking or credit applications that do not allow testing in development and QA environments). By having the stage environment be as similar as possible to the production environment (in both software and hardware), it allows the QA team to have the most accurate view into how the application will operate in production before it is actually installed there. By allowing the operations to do the installation in the dtaging environment, they have a chance to use the automated installation before using it in the production system, allowing another set of eyes to check the accuracy and quality of the installation before being used in a critical production environment.

By testing in this environment, QA has a last chance to find any issues before installing the application into production. This is their best chance to find bugs before the application is released to the customer. Therefore it is vital that this environment be the closest to production as it can possibly be, to eliminate the possibility that issues will be found in production that are related to the differences in those environments.

Production Tests

Once the application is installed on the production environment, testing on this environment should be done to ensure that the software runs correctly. If the previous environments have been configured as similar as possible to the production environment, very few issues should be found at this point in the testing process. Any issues will more likely be related to load or other factors that are strictly available within production (such as the links to 3rd party systems that were not available in the previous environments). This will help the QA test to narrow down the possible causes of any issues, and hopefully allow them to resolve any issues more quickly.

By reducing the variables between the various phases of the testing environments, issues can be found more quickly, when they cost less to fix, then have them found once the applications reach the production release.

The Installation Process

A vital factor to this process, which was not addressed in the previous sections, is ensuring the similarity of the installation during the various testing phases. Having a single installation process for all environments ensures that the installation process itself is tested throughout the process, and also further ensures that the install is done similarly on all environments.

While there will be certain things that will differ on each of the test environments throughout the release process, those differences should be kept to a minimum. Differences in configuration information can be stored in a text file and read in during the installation process. This ensures that any differences can be tracked for the various environments (by storing them in a file they can be checked in to your code control system, allowing for traceability as well). Storing these values in a file also allows for repeatability, there are no data entry problems if these values are modified by hand during the installation, the values are simply read from the configuration file.

By using an automated installation process, it increases the repeatability of the installations, and ensures that the same process is used on all environments throughout the process. It further reduces the possibility of making errors during the install. The automated install can be used in all phases of the release process, testing it multiple times, ensuring that by the time the installation is done in production, the automation has been thoroughly tested itself.

The key is repeatability- with an automated process being much easier to repeat than an installation process that includes many steps where human interaction is necessary. Having an automation platform that allows you to easily install and configure your release will allow the teams to concentrate on any issues that arise, rather than on any errors made during the installation itself.


In conclusion, it is important when testing any product that it be tested in environments that are similar to those that the customer will see. When you are testing a complex, integrated, web-based system this can be a challenge. For example, if your application has some type of banking links, or credit authorization, you will often not have the ability to test these in your internal QA environments against live banking systems. You may not have that opportunity to test these links until you reach your staging environment, and that testing may even be against a testing system based at the bank, or it may use emulators. However, it is still important that in all phases of the testing that the systems throughout are as similar as possible. This allows the quality assurance team to ensure that any environment related issues are kept to a minimum, and that the systems that are being tested on accurately reflect what the applications will be run on in production.


1)  Aliza Earnshaw, “Build a Toolbox for Continuous Delivery”;   https://puppetlabs.com/blog/build-a-toolbox-for-continuous-delivery

The DevOps zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

devops,continuous delivery,qa,testing

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}