What is UI Testing?
Nothing reaches a user except through the interface. Every service call, every database write, every piece of business logic arrives as something on a screen, and if that something is wrong, none of the correctness underneath it counts.
Which is why UI testing sits in an odd position. It's the layer closest to the person paying you, and it's the layer most teams trust least, because their UI suite is the one that breaks every sprint.
What is UI testing?
UI testing is the practice of verifying that an application's user interface behaves and appears correctly, by interacting with it the way a person would. It covers whether controls respond, whether navigation flows work, whether data displays correctly, and whether the screen renders as intended across browsers, devices and resolutions.
The term covers a family of practices rather than a single technique. Some check function, some check appearance, and the distinction matters more than most teams treat it.
Types of UI testing
Most teams run the first three and assume they're covered. The gap between functional and visual testing is where expensive defects live.
Fig 1. Six practices share the label UI testing. Functional, cross-browser and accessibility testing usually have an owner. Visual regression, end-to-end UI and usability testing often do not, and that is where the gap between working and looking right sits.
Why UI test suites break
UI automation has a worse reputation than it deserves, and the reason is consistent across teams.
Tests are pinned to markup that moves.
A test that finds a button by CSS selector or XPath breaks when a developer renames a class, restructures a component, or ships a framework upgrade. The application still works perfectly for the user. The test fails anyway, because the thing it was looking for moved.
Pixel comparison can't tell change from defect.
Compare screenshots byte by byte and a font tweak, a personalized greeting, a new timestamp or an animation frame all register as failures. The one real regression sits somewhere in that list, and nobody has time to find it.
Every platform has its own suite.
Web, iOS, Android, desktop and any legacy system each need their own scripts under most tooling, so effort scales linearly with the estate rather than with the product.
Some interfaces expose nothing to automate against.
Citrix sessions, mainframe terminals, kiosks, POS hardware and embedded devices render to a screen and offer no DOM, no object model, no accessibility layer. Selector-based tools are blocked at the door.
The result is predictable. Coverage doesn't get cut in meetings. It leaks out one disabled test at a time, until the suite that was supposed to protect the release is protecting nothing.
How UI test automation works
Automated UI testing drives the interface programmatically and asserts the result. The approaches divide by what they look at.
Selector-based automation queries the application's internals: the DOM for web, the object model or accessibility API for desktop. It's fast and precise when the application cooperates, and it's the right choice for web applications with a stable, accessible structure.
Appearance-based automation reads the rendered screen using image recognition and OCR. It finds a button by recognizing a button, the way a person does. Slower per step, but it works on any interface that renders a screen, and it catches rendering defects that structural tests cannot see.
Model-based automation builds a model of the application's states and transitions, then generates paths through it rather than having engineers write each one. When the application changes, the model regenerates the tests instead of engineers rewriting scripts.
These combine rather than compete. A serious suite typically uses selectors where the DOM is reliable and appearance-based recognition where it isn't.
Fig 2. Selector-based tests match on markup and pixel comparison matches on the exact image. Both change for reasons unrelated to correctness. Recognition by appearance and context matches on what the element is.
Choosing UI testing tools
When selecting a UI testing tool, ask yourself the five following questions:
- What does your estate actually contain?
If it's a modern web app, browser-based tooling is fine and cheaper. If it includes desktop software, mainframes, virtual desktops, POS terminals or embedded devices, browser tools physically cannot reach them.
- What breaks your tests today?
If it's selectors, a tool with better selectors won't help. If it's pixel-diff noise, tighter thresholds won't help either. Both are symptoms of matching the wrong thing.
- How much maintenance can you carry?
Measure the ratio of test-fixing to test-writing in your last quarter. If fixing is winning, the constraint is maintenance rather than coverage, and that's an architecture decision rather than a tooling one.
- Does it run in the pipeline?
A suite that can't be triggered on a build is a suite that won't be run. Check the CI integration before the feature list.
- Can it prove what it did?
In regulated industries, results need to map to requirements and survive an audit. Screenshots, logs, and traceability are not optional there.
What good UI automation looks like in practice
Automation Intelligence (Eggplant Test) combines the model-based and appearance-based approaches: a model of the application generates the paths, and computer vision drives the interface by recognizing elements rather than matching selectors or pixels. One test definition runs across web, mobile, desktop, mainframe, Citrix, POS and embedded systems, with no per-platform scripting and no source-code access.
The mechanism is set out in more depth in visual test automation, and the cross-platform side in cross-platform testing.
The reported results come from removing maintenance rather than running faster. JetBlue cut execution time for its Flightkeys UI systems by 93%, taking three weeks of manual testing down to one day. FUJIFILM Software reported a 92% reduction in man-hours across its testing process against conventional manual testing. DEKRA took change request testing from 15 hours to 1.
UI testing FAQs
What is UI testing?
UI testing verifies that an application user interface behaves and appears correctly by interacting with it the way a person would. It checks that controls respond, navigation works, data displays correctly, and the screen renders as intended across browsers, devices and resolutions.
What is the difference between UI testing and GUI testing?
In practice, they're used interchangeably. GUI testing is the older term and refers specifically to graphical interfaces; UI testing is the broader label now in common use and covers the same activity. Neither term tells you whether the testing checks function, appearance, or both, which is the distinction that matters.
What is the difference between UI testing and functional testing?
Functional testing verifies that a feature does what it should and can be done at any layer including the API. UI testing verifies that behavior through the interface a user actually touches. A feature can pass a functional API test and still be unusable because the button that triggers it renders off-screen.
What is the difference between UI testing and visual testing?
UI testing covers whether the interface works. Visual testing covers whether it looks right: layout, alignment, color, rendering. A DOM-based UI test confirms a button exists in the markup and has no opinion on whether it's white text on a white background. Both are needed, and recognition-based automation does them in one pass.
What are the best UI testing tools?
It depends entirely on what you're testing. Selenium, Cypress and Playwright are the standard choices for web applications with an accessible DOM. Applitools and Percy handle visual regression through screenshot comparison. For estates that include desktop software, mainframes, Citrix, POS or embedded devices, computer-vision platforms such as Keysight Eggplant Test are the practical option, because selector-based tools cannot reach those systems at all.
How do you automate UI testing?
Identify the journeys where failure causes real damage, decide what a pass means at each step, then choose an approach that matches your estate: selectors where the DOM is stable, appearance-based recognition where it isn't. Run a targeted smoke suite on every build and the full regression suite on a schedule.
Why do UI tests keep failing?
Usually because they're matching on something that changes for reasons unrelated to correctness. Selector-based tests fail when markup is refactored. Pixel-comparison tests fail on any legitimate visual change. In both cases, the application is fine, and the test is looking at the wrong thing. Recognition by appearance and context avoids both failure modes.
Can you automate UI testing without source code access?
Yes. Appearance-based automation reads the rendered screen using image recognition and OCR, so it needs no DOM, no accessibility API and no instrumentation. This is the standard approach for Citrix and virtual desktop sessions, mainframe terminals, packaged software, kiosks, and POS hardware.
How much UI testing should you do?
Less than most teams attempt, and on fewer journeys. UI tests are the slowest and most expensive to maintain, so they belong on the paths where failure causes real damage. Everything else should be pushed down to integration and unit level where it runs in seconds.
Where this leaves you
UI testing has a bad name because most UI suites match the wrong thing. Selectors change for reasons that have nothing to do with whether the software works. Pixels change for the same reason. Both produce failures that aren't defects, and a suite that cries wolf gets switched off.
The way out is recognizing the interface the way a person does, by appearance and context, so legitimate variation passes and real breaks get flagged.
Worth asking of your own suite: of the UI test maintenance your team did last month, how much was fixing real defects, and how much was quieting false alarms about changes no user would notice?
See how Eggplant Test automates UI testing across every platform →
Related Posts