Urgent.News

What's breaking now, across thousands of outlets.

AI

Why UI Tests Break Every Sprint (and What an AI Testing Agent Changes)

The problem most test suites share Almost every team that automates UI testing hits the same wall. The suite starts small and works well. Then the product grows, the interface changes, and a growing share of your week goes to fixing tests that fail even though the application works fine. This is not a discipline problem. It comes from how most automated tests are built. Why traditional UI tests…

Automated UI testing suites often encounter consistent issues as the product expands and interfaces evolve. Most test suites break due to brittle tests, which become unreliable when elements are reordered, selectors change, or component libraries are upgraded. This leads to a significant portion of testers' time being spent on maintaining tests instead of expanding coverage.

An alternative approach is to describe user intent rather than the webpage's structure. Tools like BotGauge, an AI testing agent, aim to address this problem by transforming plain English scenarios into automated tests. These scenarios focus on what the user wants to achieve, without being dependent on specific element locators.

The agent autonomously generates, executes, and self-heals tests when the UI changes. It supports various testing types, including UI, API, functional, regression, smoke, visual, and cross-browser tests.

For example, a checkout scenario could be written as follows: "Customer applies a discount code at checkout. Given a cart containing two items. When the customer enters a valid discount code. Then the order total reflects the discount. And the discount appears as a separate line on the order summary." This scenario does not include any selectors, waits, or assumptions about layout. If the discount field moves to a collapsible panel, the scenario's intent remains unchanged.

Self-healing is a critical feature for AI testing agents, but it should be approached with skepticism. The agent should handle changes like renamed elements and moved components differently from redesigned flows. The healing process should be explainable, detailing the changes made and any decisions made. If the agent fails to accurately identify healed elements or silently passes, it poses a risk.

To evaluate BotGauge or any other AI testing agent, run a small, honest experiment. Choose a critical flow, such as sign-up, checkout, or booking, and record your team's baseline for writing and maintaining tests. Automate the same flow using a plain English scenario and introduce a deliberate UI change, such as renaming a button or moving a section. Compare the results to assess whether the test survived and how much effort was required to recover. This hands-on approach will provide more insights than any case study.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

How much is artificial intelligence threatened by high interest rates and global debt?

Ruchir Sharma analyzes the financial pressures behind the artificial intelligence boom, highlighting how record global debt and high interest rates are forcing tech giants to compete with governments…

  • Rising interest rates pose significant risk to AI industry growth
  • Global debt at unprecedented levels limits market liquidity
  • AI-related debt issuance projected to exceed $600 billion

I Built LLM Explained: 43 Interactive Pages That Take You From Tokens to AI Agents

I kept running into the same problem while learning about large language models. I'd read a blog post about attention, nod along, and two days later I couldn't tell you why we divide by √d_k.

  • LLM Explained is a free interactive course with 43 modules.
  • Visual animations and mathematical derivations accompany each concept.
  • Bite-sized modules with customizable widgets enable hands-on learning.

More from Monday 2 November →