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
    • Tricentis AI

      Tricentis Applies Visual AI to Improve Application Testing

      Harness AI

      Harness to Apply AI to DevOps

      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

  • Cloud
    • data

      DevOps’ Data Storage Problem

      DevOps finance

      Winning DevOps in the Finance Industry

      cloud infrastructure

      Reducing Cloud Infrastructure Complexity

      ServiceNow

      ServiceNow Extends DevOps Integration Reach

      cloud desktop

      Do Cloud Desktops Have a Place in DevOps?

  • Continuous Delivery
    • Harness AI

      Harness to Apply AI to DevOps

      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

  • Continuous Testing
    • Tricentis AI

      Tricentis Applies Visual AI to Improve Application 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

  • DevSecOps
    • DevOps security

      How to Successfully Integrate Security and DevOps

      midmarket

      DevSecOps: Changing AppSec for the Midmarket

      PAM DevOps

      Using PAM to Support the ‘Sec’ in DevSecOps

      Snyk

      Snyk Brings AI to DevSecOps

      code security

      Code Security: SAST, Shift-Left, DevSecOps and Beyond

  • Leadership Suite
    • DevOps skills

      Survey Sees Surge in Demand for DevOps Skills

      citizen developers

      How To Foster a Culture of Citizen Developers

      IT teams

      Best Practices for Managing Remote IT Teams

      IT teams

      Survey Uncovers Issues Even With Advanced IT Teams

      BizOps

      BizOps Coalition Publishes Manifesto

  • Practices
    • Azul OpenJDK

      Azul Adds OpenJDK Migration Services

      citizen developers

      How To Foster a Culture of Citizen Developers

      DevOps finance

      Winning DevOps in the Finance Industry

      edge computer

      Survey Surfaces Lots of Edge Computing Diversity

      DevOps

      Bootstrapping DevOps for the Internet Computer

  • ROELBOB
    • means-and-production

      Means and Production

      White paper

      How to Write a White Paper

      a-matter-of-reputation

      A Matter of Reputation

      eligible-assets

      Eligible Assets

      real-aggregate-value

      Data Measured in Terms of Real Aggregate Value

  • Toolbox
    • Splunk observability

      Splunk Dives Deeper Into Observability

      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

  • 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)