DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • OpsRamp Adds Synthetic Monitoring to AIOps Platform

      OpsRamp Adds Synthetic Monitoring to AIOps Platform

      Micro Focus AI

      Micro Focus Extends AI Testing Tools Reach

      Blue Medora

      VMware’s Blue Medora Buy Advances AIOps

      Eggplant testing

      Eggplant Injects AI Into Application Testing

      Eggplant testing

      Appian Infuses Low-Code Platform With AI

  • Cloud
    • cloud predictions

      Revisiting 2020 Cloud Predictions in Light of COVID-19

      cloud COVID-19

      Cloud Is Red Hot in the COVID-19 Era

      AWS machine learning

      AWS Brings Machine Learning to Code Optimization

      Oracle on-premises

      Cloud Foundry Foundation Updates CLI to Extend DevOps Processes

      ServiceNow Sweagle

      ServiceNow Acquires Sweagle to Advance DevOps Agenda

  • Continuous Delivery
    • microservices

      How to Use Microservices To Evolve DevOps Pipelines

      JFrog platform

      JFrog Extends Reach and Scope of CI/CD Platform

      CD Foundation

      CD Foundation Touts Spinnaker CD Progress

      Atlassian DevOps

      Atlassian Unfurls Bevy of DevOps Updates

      CircleCI

      CircleCI Extends Core CI/CD Platform

  • Continuous Testing
    • Shift-Right Testing - TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • IoT privacy

      Balancing UX and Privacy With IoT

      DevSecOps

      How to Make DevSecOps a Reality

      RunSafe

      RunSafe Allies With JFrog to Secure Applications

      distributed tracing

      Traceable Secures Apps Using Distributed Tracing

      vulnerability

      How to Source Vulnerability Data for True DevSecOps

  • Leadership Suite
    • transformation

      Jump Over the Hidden Barriers to Digital Transformation

      teams scale

      Designing Engineering Teams for Scale

      DevOps

      Has the Pandemic Made DevOps Tougher or Easier?

      project management

      Product vs. Project: Balancing Management Roles for Success

      data people

      Data and Tools Don’t Solve Problems, People Do

  • Practices
    • IoT privacy

      Balancing UX and Privacy With IoT

      GraphQL

      Apollo GraphQL Brings Caching to Client Software

      GitLab OverOps

      OverOps Partners With GitLab to Analyze Code Earlier

      DevOps developer

      DevOps Was Supposed to Kill Developer Jobs. Here’s Why it Didn’t

      DevOps

      Solving the DevOps Dilemma in the COVID Era 

  • ROELBOB
    • history-of-qualitry-assurance

      History of Quality Assurance

      a-benefit-of-incompetence

      A Benefit of Incompetence

      stars-n-status

      Stars and Status

      email-marketing

      Email Marketing Recipients in the Real World

      abundance-and-scarcity

      Abundance and Scarcity

  • Toolbox
    • DevOps

      Solving the DevOps Dilemma in the COVID Era 

      Puppet Relay

      Puppet Launches Relay to Simplify Automating DevOps Workflows

      Pinpoint

      Pinpoint Dives Deeper into Software Delivery Analytics

      Checkmarx, survey, DevOps, AppSec

      Participate in the Checkmarx 2020 Survey

      debugging

      Rookout Extends Reach of Debugging Platform to On-Prem

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » Continuous Testing » Shift-Right Testing: The Emergence of TestOps

Shift-Right Testing - TestOps

Shift-Right Testing: The Emergence of TestOps

Shamim AhmedBy Shamim Ahmed on April 7, 2020 1 Comment

The concept of shift-left has been a popular trend in continuous testing practices for a while. We are now beginning to see shift-right practices as an emergent trend in testing. 

Recent Posts By Shamim Ahmed
  • Intelligent DevOps for New Age Digital Systems
Shamim Ahmed More from Shamim Ahmed
Related Posts
  • Shift-Right Testing: The Emergence of TestOps
  • Continuous Testing: Crushing the Testing Bottleneck
  • What Does DevOps Mean to Test Teams?
    Related Categories
  • Blogs
  • Continuous Testing
  • DevOps Practice
    Related Topics
  • continuous testing
  • shift right
  • shift-right testing
  • testops
Show more
Show less

Shift-right entails doing more testing in the immediate pre-release and post-release phases (i.e. testing in production) of the application lifecycle. These include practices such as: release validation, destructive/chaos testing, A/B and canary testing, CX-based testing (e.g. correlating user behavior with test requirements), crowd testing, production monitoring, extraction of test insights from production data, etc. 

Shift-right not only introduces such new testing techniques, but also requires testers to acquire new skills, make aggressive use of production data to drive testing strategies and collaborate with new stakeholders, such as site reliability engineers (SRE) and operations engineers. 

In shift-right of testing, and in the increased collaboration with operations disciplines, we see the evolution of a new discipline in DevOps that we call TestOps. 

In this blog, we will discuss the various shift-right testing trends and practices, what’s driving them, the new skills and collaboration required so that TestOps benefits can be realized. 

Emerging Trends in Shift-Right Testing 

In a recent survey of continuous testing conducted jointly by Capgemini and Broadcom, testing in production was ranked as the number one practice (with 45% respondents) either currently implemented or planned (see Figure 1). In addition, 39% of the respondents mentioned the use of analytics from operations to determine or optimize test coverage.

Figure 1.

When asked how customers measure the effectiveness of continuous testing processes, production data and user feedback and adoption of new functionality were ranked number one and number two respectively (see Figure 2).

Figure 2.

Finally, in response to how customers test their digital applications to ensure that they meet real world requirements, almost all of the responses were related to production data (see Figure 3). Use of production data for designing test strategy and chaos testing emerged as new methods compared to similar survey done a year ago.

Figure 3.

The survey data clearly indicates that customers are actively practicing (or considering adoption of) shift-right testing techniques. This report has a chapter (with my contributions) dedicated to shift-right that discusses the techniques and recommendations for its adoption, as well as relevant customer case studies.  

What’s Driving Shift-Right Testing Trends? 

The goal of shift-right testing is to ensure correct behavior, performance and availability over the production of an application.

There are several drivers for adoption of shift-right testing trends.

Customer Experience (CX) Is a Key Quality Metric for Digital Applications

Unlike classic testing, this takes into account real-world users and their experiences. An application with perfect traditional quality scores (such as FURPS) may still suffer from poor CX if it fails to delight the customer. CX is measured using various metrics such as Customer Effort Score (CES), Net Promoter Score (NPS), Customer Satisfaction Score (CSAT), etc. While it is possible to shift-left some of these measurements to some degree, most CX measurements are deduced from systems in production (or close to production). Examples of CX-based testing include the following: 

  • Requirements validation based on real user journeys, behavior and feedback.
  • Deriving functional and performance test scenarios based on the above.
  • A/B testing and canary testing, to experiment how well customers like (or dislike) changes. 
  • Crowd testing, to better understand real-world user experience.

In a World of Agile Delivery, It may Not Be Possible to Test Everything Before Release to Production

Time to market (or lead time for changes) is a top business imperative for digital applications, which is why QA/testing is considered a major bottleneck in continuous delivery. While it is possible to optimize testing effort and cycle time using shift-left practices (such as model-based testing, change-impact testing, test process and execution automation etc.), those approaches may still take too long (or too much effort) during the shrinking release cycle time. In some cases, the exact usage patterns may not even be fully understood before release. The idea is to learn usage patterns from production and use it for better testing strategy within shift-left. 

Complex and increasingly distributed systems using microservices (using thousands of components) and cloud-native techniques that allow releases at a very granular level make it more and more difficult to test fully in pre-production environments. This is complemented by the fact that since such releases are so granular, they may be backed out easily (rollback) in case they cause problems.

Hence, enterprises test to assure “good enough” quality (to ensure timely release) and rely on fast remediation (or rollback) to address defects or problems that arise.

Also, CX measurements (as described above) often provide real-user feedback in shades of gray, unlike the black-n-white pass/fail measurement of classic testing. Which means it is not possible to perfect pre-production test suites to ensure thorough CX coverage. 

A Hundred Percent Reliability (or Quality) Is Often an Unrealistic Goal

Related to the above, one of the key principles we learn from the DevOps discipline of SRE is that 100% reliability is not only unrealistic, but often too expensive to accomplish. SRE establishes the concept of service level objectives (SLOs) and error budgets to quantify acceptable risk tolerance in production systems. The same principle applies to testing and overall quality. See my related blog for more on this subject

Some Validations Are Difficult to Run in Test Environments

These include large-scale performance tests when the test environments are not appropriately sized (or configured) relative to production environments. 

Another example is destructive or chaos testing. While it is possible to run isolated chaos testing in test environments by using techniques such as service virtualization (to simulate failure in dependent components), it is difficult to execute for large-scale destructive tests. For example, Netflix does a significant amount of their testing in production.

Similarly, enterprise monitoring to gather insight about real-world usage patterns and failures is only possible in production. Though we advocate turning on monitoring in test environments (as part of shift-left), such monitoring only helps to do localized monitoring (e.g. of the specific app or system being tested), and that too under test conditions. However, performance test scenarios that have been developed by testers can be re-used in production (shift-right) as synthetic monitors to measure application performance and regression.   

Lastly, as an extension of monitoring, testing of some AI-based applications may be difficult without access to production data. Some machine learning algorithms, for example, need to be constantly refined based on real world data. While these algorithms are developed using a limited set of training and testing data, they need to be monitored and tuned, based on its performance in production. 

Developers and Testers Need Easier Closed-Loop Feedback from Production

Easier closed-loop feedback from operations allows developers and testers to better understand the behavior of the app, predict the success/failure of releases and respond to production incidents (e.g. reduce MTTR).

Interpretation and use of voluminous production data is often difficult and tedious for development and test teams. Use of shift-right techniques allows developers and testers to access production data more easily in a form that is easily consumable and actionable–by leveraging the right insights from AIOps disciplines. This data collaboration is a key tenet of the DevOps paradigm. For example, synthetic monitors (which are typically created by developers and testers in the dev/test stages) provide means for developers to get monitoring feedback in a form that they are familiar with. 

In addition, automated root-cause analysis of defects/incidents in production can provide developers and testers insight on failure patterns and trends, their sources (when production data is correlated with development data) and what’s causing them, and how they may be better prevented. 

Similarly, data usage scenarios (e.g. from database logs and RR pairs from service transaction logs) can be used for generation of relevant test data.  

In essence, shift-right testing practices are necessary to create a continuous feedback loop from real user experience with a production application back to the development and testing process. 

The Evolution of TestOps Discipline

It is clear from the customer survey data and drivers discussed above that there is an evolution toward shift-right practices. 

Just like we did with shift-left testing, in order to make these practices sustainable and to realize the benefits, we need to also evolve tester use cases, skills, tools and collaboration patterns with people and disciplines to the right of the application lifecycle, i.e. operations. In other words, a new discipline needs to be established—we call this new discipline TestOps—a sub-discipline within the broader DevOps context. 

Though the term TestOps (like all the X-Ops sub-disciplines within DevOps) implies the collaboration between testing and operations, it isn’t simply about shift-right. Why? Because with DevOps, operational disciplines themselves have shifted left (such as shift-left of monitoring, configuration management, SRE, etc.). Hence TestOps—true to the principle of continuous testing—refers to better collaboration with operations disciplines across the DevOps lifecycle.  

Let’s consider some of the key practices in TestOps shift-left (see Figure 4). 

Figure 4.
  • Early reliability testing: this includes static scalability analysis of the system architecture, as well as performance and stress testing.
  • Configuration quality and testing: this includes testing of “as-code” (anything “as-code” can and should be tested as such, just like application code) environment and deployment configurations, as well as deployment testing (to test the correctness of deployments) and rollback testing (to ensure that rollbacks can be done quickly and successfully).  
  • Early monitoring: includes monitoring of systems early in the lifecycle (e.g. in development and test environments) as well as development and testing of synthetic monitors before they are deployed to production.
  • Early AIOps insights: this includes early use of AIOps techniques (in the dev/test environments) to glean testing and quality insights, for example for defect and release risk prediction.

Below are some of the key TestOps shift-right practices (see Figure 5).

  • Chaos engineering: this includes testing the reliability of the system through the injection of controlled failure scenarios.
  • A/B testing: consists of a randomized experiment with two (or more) variants to study which are more effective with users.
  • Canary releases: consists of techniques used to reduce the risk of introducing a new software version in production by gradually rolling out the change to a small subgroup of users, before rolling it out to the entire platform/infrastructure and making it available to everybody.
  • Synthetic monitoring: includes monitoring techniques using an emulation or scripted recordings of transactions (that reflect typical user behavior).
  • CX testing and analytics: includes extracting of CX data to understand customer experience as well as to derive insights from it (such as customer problems, new feature requirements, etc.).
  • Other testing in production: includes performance tests and testing of AI-based applications.
  • Testing insights from AIOps data: as described above, a rich variety of testing insights can be gleaned from operations data.