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
    • AWS Community Hub
    • 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
    • IBM ServiceNow

      ServiceNow Partners with IBM on AIOps

      predictive analytics

      Has the Time Come for IT Predictive Analytics?

      BigPanda Datadog

      Datadog Allies with BigPanda on AIOps

      MLOps

      MLOps: More Than Automation

      Oracle observability platform

      Oracle Launches Observability Platform

  • Cloud
    • ServiceNow

      ServiceNow Extends DevOps Integration Reach

      cloud desktop

      Do Cloud Desktops Have a Place in DevOps?

      language

      Cloud Orchestration Language Roundup: A Comparison

      JFrog

      JFrog Adds Free DevOps Tier in the Cloud

      observability

      Observe Unveils Observability Platform Built on Snowflake DBaaS

  • Continuous Delivery
    • pipelines

      Opsera Simplifies Building of DevOps Pipelines

      JFrog

      JFrog Adds Free DevOps Tier in the Cloud

      feature flags

      Feature Flags: The Cure for DevOps Remote Work Stress

      CI/CD

      CircleCI Brings Insights to CI/CD Platform

      logs

      How Logs Can Empower Your CI/CD Delivery Pipeline

  • Continuous Testing
    • UI test

      Shift Left … With In-Sprint UI Test Automation (?!?)

      continuous testing

      Using Incident Response for Continuous Testing

      continuous testing

      Continuous Testing: Complementary to Agile and DevOps

      crowdtesting

      Crowdtesting: How to Ensure Quality in Disruptive Times

      BigPanda Datadog

      Eggplant Employs AI to Surface Test Recommendations

  • DevSecOps
    • Runtime security and incident response - Loris - DevOps Experience

      Runtime Security and Incident Response with Loris Degioanni

      DevSecOps

      ZeroNorth Extends DevSecOps Orchestration Reach

      Sonatype

      Sonatype Advances Open Source Code Quality, Security

      API security

      Tips To Strengthen API Security

      survey DevSecOps

      Survey Surfaces Lots of DevSecOps Friction

  • Leadership Suite
    • IT teams

      Best Practices for Managing Remote IT Teams

      IT teams

      Survey Uncovers Issues Even With Advanced IT Teams

      BizOps

      BizOps Coalition Publishes Manifesto

      low-code

      Low-Code the ‘Connective Tissue’ of Transformation

      recruitment

      Eliminating Unconscious Bias in Tech Recruitment

  • Practices
    • Runtime security and incident response - Loris - DevOps Experience

      Runtime Security and Incident Response with Loris Degioanni

      Why It’s Time for Site Reliability Engineering to Shift Left

      predictive analytics

      Has the Time Come for IT Predictive Analytics?

      microservices

      6 Advantages of Microservices

      language

      Cloud Orchestration Language Roundup: A Comparison

  • ROELBOB
    • real-aggregate-value

      Data Measured in Terms of Real Aggregate Value

      ultimate-fix

      The Ultimate Fix

      asset-protection

      Asset Protection

      another-monster-in-the-close

      Another Monster in the Closet

      my-rideshare-arch

      My Ride Share Architecture

  • Toolbox
    • language

      Cloud Orchestration Language Roundup: A Comparison

      analytics

      Embedded Analytics Essentials: A Checklist for Success

      IBM DevOps

      Accelerate Your Digital Transformation with IBM

      feature flags

      Feature Flags: The Cure for DevOps Remote Work Stress

      Atlassian

      3 Ways Atlassian Usage is Evolving in the New Normal

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

Home » Blogs » Continuous Testing » Shift Left … With In-Sprint UI Test Automation (?!?)

UI test

Shift Left … With In-Sprint UI Test Automation (?!?)

Wolfgang PlatzBy Wolfgang Platz on October 2, 2020 Leave a Comment

UI testing is really the most intuitive testing approach imaginable: Just find someone who can represent the target user and let them poke around in the interface they use for their daily work—the UI. It’s natural. It’s intuitive. And it’s still the predominant method used for testing most software releases today.

Recent Posts By Wolfgang Platz
  • Quality at Speed During the COVID-19 Pandemic
  • Software Testing: The Comeback Kid of the 2020s
  • DevOps Places Software Testing in the Crosshairs
Wolfgang Platz More from Wolfgang Platz
Related Posts
  • Shift Left … With In-Sprint UI Test Automation (?!?)
  • Codeless Automation: Shattering the Testing Bottleneck
  • Quality at Speed During the COVID-19 Pandemic
    Related Categories
  • Blogs
  • Continuous Testing
    Related Topics
  • artificial intellegence
  • automation
  • human testing
  • testing
  • user interface
Show more
Show less

This human-driven testing can never stop. Having smart testers creatively explore the UI using their creative, analytical minds to uncover issues that disrupt the user experience is absolutely essential. But it’s also essential to perform a level of regimented, routine checking with each change to ensure the modifications don’t introduce strange side effects. Performing such tedious checking at the required frequency and speed would be torture for human testers. Hence, the push toward test automation.

You would think, then, that the natural place to start with test automation would be to automate the most natural of all testing: humans interacting with the UI. Not so: UI test automation is actually one of the most dreadfully difficult test automation approaches.

Tests automated at the UI level historically have a fair share of issues. They’re slow to run. They’re fast to break. They’re somewhat technical and tedious to create even for common modern technologies such as web and mobile. They’re much more difficult to create when you have to deal with custom desktop applications, packaged applications, extremely old technologies, extremely new technologies or Citrix/remote applications. And creating automated UI tests typically requires a fully implemented—and stable—UI.

If you’re aiming for in-sprint test automation, this means that tests need to be implemented in that tiny sliver of time between when developers complete the final UI code (with a successful build) and when the sprint is supposed to be completed. Guess what? That rarely happens. Within the sprint, teams can certainly tackle human UI testing (a.k.a. exploratory testing). But automated UI testing? That’s often delayed until a later sprint … and/or scrapped altogether.

Clearly, there are a lot of issues with UI test automation. But if you really think about these issues, it all boils down to one thing: The test automation doesn’t think like a human:

  • A human can interact with an application’s UI quite rapidly (the human eye can process 24 images per second).
  • A human is not derailed by interface changes. Something such as a reimplemented drop-down menu or a new way to display results won’t phase a human tester at all.
  • A human brain can interact with extremely old technologies (such as mainframes and COBOL-based apps) along with whatever new technology happens to be released tomorrow. And if your application is migrated from a monolith to a microservices architecture, the same tester’s brain can still test its UI in exactly the same manner.
  • A human tester might not recognize whether the application is installed on their machine or is accessed via desktop-virtualization. They can test its UI just the same.
  • A human doesn’t really need to wait for a fully implemented (and stable) UI implementation. They can start working on their tests the moment a rough prototype is available. And they can start performing tests as soon as the UI is at least kinda—If the underlying technical implementation is still shifting a bit, it’s not necessarily a showstopper.

So, if the key problems with UI test automation stem from the fact that human intelligence is greater than test automation, why not try to address those problems with the next best thing: artificial intelligence. By tapping the power of AI, we can achieve UI test automation that’s as smart and resilient as a human, but as efficient and scalable as a machine.

For this to work, the technology must learn how to understand user interfaces in the same way that a human can. For example, it needs to know that a drop-down is a drop-down just by “looking” at it. With that accomplished, you—well, any human, really—can define test automation by simply providing a natural language explanation of what business process should be tested (e.g., “Enter 10,000 in the list price input, click the confirm button, then … “).  AI-driven test automation can take it from there. There’s no need to deal with shadow DOMs, web assemblies and the like. Emulated tables on SAP can be automated without any special customization. It’s not going to fail the next time there’s a minor UI tweak, and you won’t have to rebuild your tests if the application is reimplemented in a new technology.

In terms of shift left, you can start implementing your UI tests as soon as the team sketches out a rough prototype or mockup. Advanced UX designs like this are a great starting point:

You really could start anywhere though. Even more rudimentary whiteboard sketches would enable you to start on UI test automation without waiting on the actual implementation. This means less crunch time each release and ultimately eliminates the ripple effect of testing delays, unfinished stories and “hardening sprints.” And it enables an interesting flavor of TDD: Start running these automated UI tests before implementation begins, then have developers write code that makes them pass.

The catch? It’s not so easy to make UI test automation so easy. Two things to watch out for: accuracy and speed. For this to work, the technology must be able to accurately recognize and interact with UI controls that it’s never seen before. This requires visual object detection as well as optical character recognition (OCR). And that’s the easy part; the difficult part is doing this at speed. For a while now, AI-driven automation solutions have been struggling to come close to the speed of human processing. On average, you’re looking at tools processing 1.8 images per second, while humans can handle 25. You don’t need automation that mimics human speed, though—you need to beat it. If you want this UI testing to run as part of your continuous testing as a core part of your CI/CD process it needs to vastly surpass the speed of the human eye and the human brain.

Once you overcome that little challenge, AI-driven UI testing will remove a lot of not-so-artificial conflict on Agile dev teams:

  • Testers waiting on developers to finish the UI so they can start implementing tests—and avoid the dreaded crunch time at the end of sprints.
  • Developers waiting on testers to finish tests so that the user story is deemed “done done” within the current sprint.
  • All the retro finger-pointing you get when delayed or unfinished testing results in unfinished user stories.

I admit: when you first tell the team that UI test automation will help you complete testing sooner, it could be a hard sell. But after a few rounds of having UI test automation ready before developers write a line of code, I’m confident that you’ll find some real support for this artificial intelligence-driven testing approach.

Filed Under: Blogs, Continuous Testing Tagged With: artificial intellegence, automation, human testing, testing, user interface

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
The State of the CI/CD/ARA Market: Convergence

The State of the CI/CD/ARA Market: Convergence

The entire CI/CD/ARA market has been in flux almost since its inception. No sooner did we find a solution to a given problem than a better idea came along. The level of change has been intensified by increasing use, which has driven changes to underlying tools. Changes in infrastructure, such ... Read More
« Low-Code the ‘Connective Tissue’ of Transformation
VMware Looks to Meld IT and Security Operations »

Upcoming Webinars

Microservices at Scale: How to Reduce Overhead and Increase Developer Productivity
Tuesday, October 20, 2020 - 11:00 am EDT
What 30M Workflows Reveal About High Performing Teams
Wednesday, October 21, 2020 - 1:00 pm EDT
Digital Transformation in a Kubernetes World
Wednesday, October 21, 2020 - 3:00 pm EDT

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Tue 20

Microservices at Scale: How to Reduce Overhead and Increase Developer Productivity

Tue, October 20, 11:00 am - 12:00 pm EDT
Wed 21

What 30M Workflows Reveal About High Performing Teams

Wed, October 21, 1:00 pm - 2:00 pm EDT
Wed 21

Digital Transformation in a Kubernetes World

Wed, October 21, 3:00 pm - 4:00 pm EDT

More Webinars

Past Webinars

Latest from DevOps.com

Runtime Security and Incident Response with Loris Degioanni
October 16, 2020 | Veronica Haggar
ServiceNow Partners with IBM on AIOps
October 16, 2020 | Mike Vizard
Why It’s Time for Site Reliability Engineering to Shift Left
October 16, 2020 | Shamim Ahmed
Best Practices for Managing Remote IT Teams
October 16, 2020 | Jeremiah Peschka
Data Measured in Terms of Real Aggregate Value
October 16, 2020 | ROELBOB

Most Read on DevOps.com

Bringing Agility to Mainframes in COVID-19 and Beyond
October 12, 2020 | Chris O’Malley