Testing in Production: A Double-Edged Sword

[article]
Summary:

Testing in production gives more realistic opportunities to test, increases application transparency between the core product team and users, and supports the idea of continuous development through continuous testing. It's a good technique to embrace in your testing process—but it should not be entered into unprepared. Learn the advantages and pitfalls here.

In the earlier days when most companies used a waterfall style of development, Google was joked about in the industry that it had its products in beta forever. In fact, Google has been a pioneer in building a case for testing in production. Traditionally, a tester has been responsible for testing all scenarios, both defined and extempore, in a test or staging environment before the build could go live. But today, this premise is changing on several fronts.

For instance, the tester is no longer alone in testing. Developers, designers, build engineers, other stakeholders, and end-users, both within and outside the product team, are testing the application to provide feedback.

The test environment, product under test, underlying technologies, test combinations (devices, platforms, browsers, etc.), are all so complex today. The services mindset is very high; gone are the days of a local setup to test for the product. Cloud environments offer the scale and ease needed in testing complex interfaces, and the production environment offers unique testing opportunities that cannot be fully implemented before release.

And the constraints the test team works within, including time, cost, and availability of niche testers, are more prominent than ever before.

With all these factors at play, testing in production is inevitable. However, instead of looking at testing in production as an option that is being thrust on the teams, if one closely looks at the inherent benefits it holds, this exercise can greatly help in beefing up the quality of the product.

So, what does it really mean to test in production, what are some of the ways in which it can be done, and how does it help?

What It Means to Test in Production

Testing in production is an exercise where the quality function of validating and verifying an application is taken up in the live environment, after release, either by the tester himself or by end-users. There could also be others such as business people, marketing teams, or analysts who share feedback with the product team. Testing in production gives more realistic opportunities to test, increases application transparency between the core product team and users, and supports the idea of continuous development through continuous testing. In this mobile-first world, testing in production is a core technique to embrace in your testing process.

Of course there is a negative connotation to issues reported from the field: This basically meant the tester did not effectively and comprehensively test the product. An issue reported from the field is handled with very high priority and fixed as soon as possible. While issues that show up in production can still leave a black mark on the tester’s effort, a test in production initiative nowadays has an expanded scope. It is not just reactive actions in response to user-reported issues, but also proactive planned test efforts that are taken up before the product is officially rolled out.

Techniques for Testing in Production

The core techniques for testing in production encompass active and passive monitoring (involving real data and synthetic transactions), experimentation (both controlled and uncontrolled) with real users, and stress tests to monitor system response. While these may sound simple, one has to be extremely sensitive in all of these tasks, as live users’ data is often involved and has to be protected (the sensitivity is not just with any data loss, but also with data privacy and security). Also, the volume of transactions in live environments are so high that any test effort here has to be adequately monitored and followed up on.

User Comments

7 comments
Ed Weller's picture

WHen I asked the passenger next to me on my last flight why he was pounding on his keybord furiously, he said "stop interrupting me, I am "testing in production"

There are products that must work without critical failures in production.

I also have a problem with the statement "can still leave a black mark on the tester’s effort". There is an equal black mark on the development side, isn't there? Testing can never prove the absence of defects, however for mission critical (loss of life) software, IBM showed how to deliver failure free software on the Space Shuttle. They did not test in production (Note the difference between defect and failure)

I think this term needs to be discarded as what the author described is ful life sysle testing (regardless of dhosen life cycle model (Waterfall, Scrum, or some combination thereof

November 1, 2016 - 5:00pm
Tim Thompson's picture

I agree and there is a difference between free (as in advertisement and data mining funded) apps from Google and enterprise or conusmer applications that companies or individuals pay money for. I think it is an ethical conflict to ask for compensation and then have the user act as test subject.

As far as leaving black marks on testers, they will mark themselves enough when there is a problem in production. The blame - if there is any to be laid - goes to the entire team. Often enough issues arise that should have been considered during analysis and design. There are plenty of eyes on any product and feature before release, singling out testers as the culprit is unjust.

Unless it is about Space Shuttle software or the like, the compromise is beta phases or pilot projects. In pilot projects select customers get the application and service for free for a period of time in exchange for accpeting the occasional inconvenience of the product not working as expected. It also gives pilot customers the unique opportunity to directly influence the design.

November 4, 2016 - 6:08am
Rajini  Padmanaban's picture

Thanks for the your comment Ed. The reason I say that it can leave a blank mark on the tester, despite quality being collectively owned today, is that quality continues to be and will be the core charter of a tester. While others also own quality within their own spheres of operation, when an issue is caught in production, the tester is the one who is first questioned and rightfully so. If such specific responsibility is not brought in, accountability will be missed which will adversely impact quality.

November 8, 2016 - 5:06am
Rajini  Padmanaban's picture

Thanks for the your comment Ed. The reason I say that it can leave a blank mark on the tester, despite quality being collectively owned today, is that quality continues to be and will be the core charter of a tester. While others also own quality within their own spheres of operation, when an issue is caught in production, the tester is the one who is first questioned and rightfully so. If such specific responsibility is not brought in, accountability will be missed which will adversely impact quality.

November 8, 2016 - 5:07am
Robin Goldsmith's picture

There’s a reason testing in production is also called the “big bang approach.”  I agree the black mark is not the tester’s.  Rather, too often it’s the residue of the company.

November 7, 2016 - 2:01pm
Rajini  Padmanaban's picture

And herein I am only talking about misses from an engineered implementation standpoint and not from a design miss standpoint. I agree with you all that it may end up to be a miss on the team's part and not just the test team's part, but rightfully so, start the analysis as a miss from the quality function brings in clear accountability that can then be further analyzed.

November 8, 2016 - 5:12am
Brody Brodock's picture

Rajini,

 

Thanks for the article. I do have a couple comments, concerns, and observations.

Testing in production has always occurred, it is called releasing the product. The difference between having a QA organization and not having one is that the defects and variances released should be less with a performant QA team than without. Maybe the defects do not matter, as would be the case for Google, as their context is simply their ability to sell adds. The ability for Google to innovate has brought us some wonderful tools and I believe we are generally more informed and able because of those innovations – but nobody was relying on those innovations when they were released.

 

The context of the solution is incredibly important and I would argue that testing in production is not suitable for many industries – even if it actually occurs in those industries. We certainly wouldn’t want automobile software to be tested in production, (although it seems that some of the console apps are indeed not professionally tested) nor would we want healthcare applications tested in production, (or aviation, space, rail, power plants, communication, etc, etc) so the context matters. 

One thing that you didn’t bring up is the risk of testing in production, how testing in production can actually bleed over into the real production world. In medicine, I wouldn’t want to see a ‘test’ lab result show up on a real patient – nor, for regulatory reasons, would it be appropriate for a tester to even be testing in production. You touch on these concerns tangentially from a test responsibility perspective, but there are times where it would be better to use or mine production data in a controlled test environment as opposed to being in production. We certainly want ‘good’ data, and our customers will deliver the best data the application will allow, (and sometimes more) which is almost certainly better than trying to craft fake data to cover issues. And, if you have a good defect taxonomy both crafted and copied production methods will improve your capture rate.

 

Again, interesting article, but a reminder that it isn’t just about agile vs waterfall, or social media, or a map/docs/traffic applications. There is still a need for crafted testing prior to release in the wild for user testing in production.

November 10, 2016 - 12:17pm

About the author

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.