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
    • Oracle observability platform

      Oracle Launches Observability Platform

      AIOps

      AIOps and the Myth of ‘Move Fast and Break Things’

      Granulate

      Granulate Applies AI to Linux Server Optimization

      Snyk

      Snyk Acquires DeepCode to Apply AI to DevSecOps

      PagerDuty

      PagerDuty Applies AIOps to IT Incident Management

  • Cloud
    • Twilio

      Twilio Expands Scope of Cloud Services Portfolio

      Adobe

      Adobe Adds Tools for Building Custom Applications

      AWS autoscaling

      Optimize Performance, Cut Costs With AWS Autoscaling Services

      VMware

      VMware Starts to Gain Some Momentum on AWS

      report cloud

      Report: Cloud Expertise Now Superior to University Degree

  • Continuous Delivery
    • CI/CD

      CircleCI Brings Insights to CI/CD Platform

      logs

      How Logs Can Empower Your CI/CD Delivery Pipeline

      JFrog

      JFrog Sets Future Course Post-IPO

      DevOps Best Practices

      CircleCI Looks to Advance DevOps Best Practices Adoption

      CircleCI Salesforce

      CircleCI Adds to Salesforce CI/CD Orbs Collection

  • 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

      Eggplant test

      Eggplant Employs AI to Surface Test Recommendations

  • DevSecOps
    • API security

      Tips To Strengthen API Security

      survey DevSecOps

      Survey Surfaces Lots of DevSecOps Friction

      low-code

      Low-Code, High Risk? Closing the Security Gap of Exposed Source Code

      VMware security

      VMware Looks to Meld IT and Security Operations

      security

      DevOps Unbound: DevSecOps and Application Security

  • Leadership Suite
    • low-code

      Low-Code the ‘Connective Tissue’ of Transformation

      recruitment

      Eliminating Unconscious Bias in Tech Recruitment

      enterprises

      Surveys Show COVID-19 Changes to Enterprises Likely Long-Term

      agility

      3 Steps for Organizational Agility in the COVID-19 Era

      developer

      Low-Code: An Oasis During Developer Drought

  • Practices
    • operations management

      How to Consolidate Your IT Operations Management Tools

      low-code

      Low-Code, High Risk? Closing the Security Gap of Exposed Source Code

      financial services database

      Financial Services Rise Above in Database DevOps

      COBOL

      COBOL Is Taking Heat, but These Other Legacy Languages Could Burn You

      Twilio

      Twilio Expands Scope of Cloud Services Portfolio

  • ROELBOB
    • sre-anxiety

      SRE Anxiety

      manipulation-and-appeasement

      Appeasement and Manipulation

      4-stages-of-distributed-computing

      The 4 Stages of Distributed Computing

      devops-epitaph

      DevOps Epitaph

      comfortably-numb

      Comfortably Numb

  • Toolbox
    • operations management

      How to Consolidate Your IT Operations Management Tools

      remote developers

      Pinpoint Simplifies Managing Remote Dev Teams

      TechStrongTV - strongDM and Betterment

      TechStrong TV: strongDM With Betterment

      Microsoft

      Microsoft Advances DevOps Agenda

      traceability

      3 Ways Traceability Boosts Decision-Making, Accountability

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