What Is Desktop App Testing?
Most software testers know what to use for testing a website. They'll name Playwright, Cypress or Selenium without thinking. But ask how they'd test a desktop application, such as the accounting software in an office or the billing system at a shop counter, and many aren't sure where to start.
Desktop apps are still everywhere, and they break in ways websites never do. They have to install, update and get along with whatever computer they land on. And the web tools most testers know can't even see them.
By the end of this guide, you'll know what desktop app testing covers and why it's harder than web testing. We'll also run a real automated test against a small desktop app, so you can watch every step.
- What desktop app testing checks
- Why desktop apps are still everywhere
- Desktop apps vs SaaS
- How it differs from web testing
- What to test in a desktop app
- Why each kind of app is automated differently
- The common challenges
- Whether open-source end-to-end tools can test desktop apps
- What tools can test desktop apps
- How an automated desktop test works
What Does Desktop App Testing Check?โ
Desktop app testing checks that a desktop app installs correctly, that all its features work as intended, and that it updates and runs well on the computers people use, with their own files, screens, settings and devices.
For example, suppose you're testing a small accounting app on a laptop. First you check it calculates tax correctly, the same as you would on a website. Then the desktop part starts. Does it install without admin rights? Does an update keep the user's settings? Does it still work on an older Windows version, or on a Mac if you support one? Can it open a file from a folder called "Tax Returns 2026", with spaces in the name? Does the Export button still fit on screen when the laptop's display is set to 150%? None of those questions exist for a website.
Are Desktop Apps Still Used?โ
Very much. Follow someone through a workday at an accountancy firm. They open Excel, join a call in Zoom and reply to a message in Slack. The developer down the hall spends the day in VS Code. At lunch, the supermarket till that scans their sandwich runs a desktop program, and so does the pharmacy software that prints their prescription label. Microsoft said in April 2026 that more than 1.6 billion devices use Windows every month.
Desktop apps hold on where the browser struggles. Video editing and 3D design need the computer's full power and big files. Shop tills and lab machines talk to devices plugged into the computer and can't stop when the internet does. And people who live in one tool all day, such as developers, traders and accountants, want its windows and keyboard shortcuts right there on their machine.
Is it just legacy apps?โ
Some of it is. A legacy app is an older program a business still depends on, often built 15 to 25 years ago with tools like Visual Basic 6, Delphi, WinForms (Microsoft's older way of building Windows screens) or Java Swing. Banks, insurers, hospitals and government offices still run core work on them. The people who wrote them have often left, and there are few automated tests, so every change feels risky.
But new desktop apps keep arriving, and many of them are web apps in disguise. Frameworks such as Electron take a website, bundle it with its own built-in browser and install it like a normal program. VS Code, Slack and Discord are all built this way.
Desktop Apps vs SaaS: What's the Difference?โ
Many people aren't sure whether software like Excel or Photoshop is a desktop app or SaaS (software as a service) now that they pay for it as a subscription. The answer is both, because the two words describe different things. SaaS describes how you pay for and get software, usually with a subscription and an online account. "Desktop app" describes where the software runs. So one product can be both, a monthly subscription that you still install and run on your computer.
Some products also come in two versions, an installed one and a browser one, and each is tested differently. And some desktop apps are built from web pages inside a desktop window, which we'll come back to later.
For testing, what matters is where the screen you're testing runs, not how it's paid for. If it's installed on the computer, it needs desktop testing, even when it's sold as a subscription.
Desktop App Testing vs Web App Testingโ
Your test ideas don't change. You still check the features, look for regressions (things that worked yesterday and broke after a change) and try the app with a keyboard and a screen reader. What changes is everything around the app.
A website lives on the company's servers, and everyone gets the same version the moment it's updated. A desktop app lives on thousands of different computers, each with its own Windows version, screen, language settings and leftover files, and people update whenever they get round to it.
| Web app | Desktop app | |
|---|---|---|
| Where it runs | In a browser, on the company's servers | On each user's own computer |
| How people get it | Open a link | Install it, then update it |
| Versions in use | One | Many at once |
| What it can touch | Very little outside the page | Files, settings, printers, USB devices, other programs |
| How test tools find a button | By reading the page's HTML | By asking the operating system |
| Where automated tests run | Often hidden in the background | Usually on a real, unlocked screen |
Testing a web app is like checking a shop window, where everyone sees the same display. Testing a desktop app is like checking a flat-pack wardrobe. It has to arrive in one piece, go together in thousands of different rooms, and still open properly after someone moves house.
What Do You Test in a Desktop App?โ
Let's go back to the accounting app and walk through a test plan. The features are the core of it, like any other testing. Around them are the parts that come from the app living on a computer.
- Install, update and uninstall. Install it as a normal user without admin rights, install the new version over last year's and check the settings survive, then uninstall it and look for files left behind.
- Features. Check that every feature works as intended, such as calculating tax, creating invoices and running reports.
- Working with the computer. Open and save files, print an invoice, copy a table into Excel and drag a receipt into the window. If the app talks to a scanner or card reader, plug one in.
- Different setups. Try a second monitor, 150% scaling, dark mode and older OS versions. A German computer writes 1.234,56 instead of 1,234.56, and that alone has broken real apps.
- Speed. Check how long the app takes to start, and how it copes with a year's worth of data or a very large file.
- Long sessions. People keep desktop apps open all day, so a small memory leak (memory the app takes and never gives back) only shows up after hours.
- Offline and crashes. Pull the network cable halfway through a save, force the app to close, and check what it does when it opens again.
- Security. Look at what the app stores on the computer. Passwords, tokens and customer data shouldn't sit in plain text in settings files or logs, and the app shouldn't need admin rights to run.
- Sleep and wake. People close their laptop in the middle of work and open it hours later, often on a different Wi-Fi network, so the app has to reconnect and carry on without losing what they were typing.
- Other software on the computer. Antivirus programs, other versions of the app and shared components like .NET or Java can stop it starting or block its files.
How Desktop App Testing Differs by App Typeโ
Here's the part that surprises most testers. You see a Save button. A test tool doesn't see anything. It has to ask something for a list of what's on screen, and what it asks depends on how the app was built.
For example, suppose an insurance company has three desktop apps. A claims app built in WinForms in 2008, a manager dashboard built with WPF last year, and a customer chat app built with Electron. You'd write similar test cases for all three, but you'd automate each one differently.
| App type | Built with | How test tools find controls |
|---|---|---|
| Modern native apps | WPF or WinUI on Windows, SwiftUI on macOS | Through the operating system's accessibility interface, which lists every control with its name. On Windows this is called UI Automation. |
| Web apps in a desktop shell | Electron, Tauri, apps using Microsoft's WebView2 | By reading the web page inside the window, much like a web testing tool. The window's menu, file dialogs and tray icon still belong to the operating system. |
| Legacy apps | Visual Basic 6, Delphi, older WinForms, Java Swing | Often only partly. Some controls show up as one unnamed box, and Java Swing needs an extra piece, Java Access Bridge, before Windows tools can see inside it. |
Why can't the tool see some controls?โ
Microsoft's UI Automation docs explain this one. Standard controls describe themselves to test tools automatically. Custom controls, and controls bought from other companies, only do it if their makers built that in. So a fancy data grid can show up as one blank box, even in a brand-new app.
When that happens, tools have two fallbacks. Some ship plugins that understand a particular technology, such as Delphi or Java. Others use image recognition and find the button by what it looks like on screen. Image recognition works, but change a font, a colour or the screen resolution, and the test can lose the button again.
Finding a button is like finding someone at a conference. If they're wearing a name badge (a modern native app), you just read it. If you're in a building you already know (a web app in a shell), you use the map you have. If there's no badge at all (many legacy apps), you have to recognise their face, which works until they get a haircut.
Common Challenges in Desktop App Testingโ
A customer emails to say the Export to PDF button is cut off on their laptop. On your machine it looks perfect. After an hour of back and forth, you find it. Their display is set to 150% scaling, and you never tried that. Most desktop testing problems feel like this, because the app depends on a computer you don't control.
What trips up desktop tests?โ
- Machine setups. Windows versions, screen sizes, display scaling, several monitors and region settings all change how the app looks and behaves.
- Files and devices. Paths with spaces or non-English letters, very long paths, files locked by another program, printers that aren't there.
- Leftovers. Settings files and local databases stay on the computer, so one test quietly changes the starting point of the next. You need a reliable way to reset between runs.
- Pop-ups and focus. A dialog or a system notification grabs the focus, and an automated test types into the wrong window.
- Controls the tool can't see, which we just covered.
Why do automated desktop tests need an unlocked screen?โ
Tools that use UI Automation can only reach apps on a live, unlocked Windows session. So a screen saver, a company policy that locks the screen after ten minutes, or simply closing a Remote Desktop window can make every test fail at once with "element not found". That's why desktop test machines usually stay logged in, with the screen saver and lock screen turned off. It's one of the first surprises for testers coming from the web, where tests happily run in the background.
What's different on each operating system?โ
On Windows, many versions are still in use, even after Windows 10 support ended on 14 October 2025. Admin prompts also appear on a protected screen that automation tools usually can't click.
On macOS, an automation tool does nothing until you allow it in the Privacy & Security settings. macOS only runs on Apple hardware, so automated tests need real Macs or Mac cloud machines.
On Linux, there are many versions and desktop styles. The newer display system, Wayland, deliberately stops one program from controlling another's windows, which breaks some tools that work on the older X11 system.
Can the tools themselves let you down?โ
Sometimes. Users of the big commercial tools often report that a technology is "supported" on paper while one grid or custom control still isn't recognised. Free tools can go quiet too. Microsoft's own WinAppDriver, which plenty of older tutorials still recommend, hasn't had a release since November 2020. So before you trust any feature list, try the tool on your own hardest screen.
Can Open-Source End-to-End Tools Test Desktop Apps?โ
Some of them can, but only desktop apps built with web technology, such as Electron apps. End-to-end tools are the ones that click through an app like a user would, and the popular open-source ones, Playwright, Selenium, Cypress and WebdriverIO, were all built to drive web browsers. They can't click a button in a normal Windows or Mac program.
Desktop apps built with web technology, such as Electron apps, are web pages running inside a desktop window, so web tools like Playwright, Selenium and WebdriverIO can test them. Native and legacy apps, built with technologies like WinForms, WPF or Delphi, have no web page inside, so these tools can't reach them. Even in an Electron app, parts like the file-open dialog and the installer belong to the operating system, so many projects pair a web tool with a desktop tool.
What Tools Can Test Desktop Apps?โ
When web tools aren't enough, there are tools built for desktop apps. You'll rarely see them advertised that way. The big commercial ones call themselves test automation platforms and list desktop as one feature, and many of their users work in banks, insurers and factories that don't blog much about testing. Here are the options.
- Open-source desktop libraries. FlaUI for Windows apps, Appium, which has separate drivers for Windows and Mac apps, and Apple's XCUITest for Mac apps. They're free, and developers write and maintain the tests in code.
- Commercial test suites. TestComplete, Ranorex Studio, UFT One and Tricentis Tosca test desktop, web and mobile apps in one tool. You pay for recording, plugins for older technologies such as Delphi and PowerBuilder, image recognition and vendor support.
- Specialist tools. Squish for apps built with Qt and Java, including screens on embedded devices, and AskUI, which finds buttons with AI vision instead of reading the app's controls.
Most of these tools support one operating system, and what separates them most is which app technologies they can read. How to Choose a Desktop App Testing Tool compares them side by side, including which are free.
How Does an Automated Desktop Test Work?โ
Every automated desktop test does four things. It starts the app, finds something on screen, does something to it, and checks what happened. Let's watch one do it.
Let's run a real test against an Electron appโ
We built a tiny notes app with Electron. It has a text box, a Save button and a list. You type a note, click Save, and the note appears in the list. Here's a Playwright test for it.
const { test, expect, _electron: electron } = require('@playwright/test');
test('saving a note adds it to the list', async () => {
const app = await electron.launch({ args: ['main.js'] });
const window = await app.firstWindow();
await expect(window).toHaveTitle('Notes');
await window.fill('#note', 'Buy milk');
await window.click('#save');
await expect(window.locator('#list li')).toHaveText(['Buy milk']);
await app.close();
});
Let's read it line by line.
electron.launchopens the app the way a user would double-click it, andfirstWindowwaits for its main window to appear.toHaveTitle('Notes')makes sure we're looking at the right window before we touch anything.fillandclickfind the text box and the Save button by their IDs,#noteand#save, then type "Buy milk" and click.toHaveText(['Buy milk'])is the check. The list must now hold exactly one note, "Buy milk".app.closeshuts the app, so the next test starts clean.
When we ran it, the app window flashed open for a moment, and this came back.
Running 1 test using 1 worker
โ 1 tests\notes.spec.js:3:1 โบ saving a note adds it to the list (1.8s)
1 passed (3.0s)
Now let's break it on purpose. We changed the expected note to "Buy bread" and ran it again.
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list li')
- Expected - 1
+ Received + 1
Array [
- "Buy bread",
+ "Buy milk",
]
Playwright waited five seconds in case the list was still updating, then gave up and showed both sides. The test expected "Buy bread", but the app showed "Buy milk". That side-by-side is what you'll read most days when a test fails.
What does the same test look like for a native Windows app?โ
Now picture the insurance company's WinForms claims app. There's no web page to read, so the tool has to ask Windows for each control. Here's the same idea with FlaUI, an open-source C# library, for a loan screen whose developers gave every control an automation ID.
var app = Application.Launch("LoanApp.exe");
using var automation = new UIA3Automation();
var window = app.GetMainWindow(automation);
window.FindFirstDescendant(cf => cf.ByAutomationId("AmountBox")).AsTextBox().Enter("5000");
window.FindFirstDescendant(cf => cf.ByAutomationId("SaveButton")).AsButton().Invoke();
var status = window.FindFirstDescendant(cf => cf.ByAutomationId("StatusLabel")).AsLabel();
Assert.That(status.Text, Is.EqualTo("Saved"));
app.Close();
UIA3Automationconnects to UI Automation, the part of Windows that tells tools what's on screen.FindFirstDescendantwithByAutomationIdasks Windows for the control with that ID. This only works because the developers set IDs, which is why named controls make desktop testing so much easier.Enter,InvokeandTexttype the amount, press Save and read the status label.Assert.Thatfails the test if the label doesn't say "Saved".
Put the two tests side by side and the steps are the same. Start the app, find, act, check. The only thing that changed is how the tool finds things, and that's the heart of desktop app testing.
- Desktop app testing checks that an app installs correctly, that its features work as intended, and that it updates and runs well on the computers people use.
- Desktop apps are still everywhere, from office tools and code editors to shop tills, and many new ones are built with web technology inside a desktop window.
- Desktop and SaaS aren't opposites. SaaS is how you pay for software, and desktop is where it runs, so one product can be both.
- Your test ideas don't change, but test tools find buttons through the operating system, so each type of app is automated differently.
- The hard parts are machine setups, controls the tool can't see, leftovers between runs, and tests that need an unlocked screen.
- Open-source end-to-end tools such as Playwright can test desktop apps built with web technology, but not native or legacy apps.
- Desktop testing tools come in three groups, open-source libraries, commercial suites and specialist tools, and they differ most in which app technologies they can read.
- Every automated desktop test starts the app, finds something, acts on it and checks the result.
Where to Go Nextโ
- How to Choose a Desktop App Testing Tool walks through the questions that narrow the choice.
- Our reviews of FlaUI, Squish, AskUI and UFT One go deeper into each tool.
- What Is Accessibility Testing? covers the accessibility side, which desktop apps share with websites.