> Markdown version of [Browserless Testing](https://vaadin.com/docs/v25/flow/testing/browserless). Section index: [llms.txt](https://vaadin.com/docs/v25/flow/llms.txt)

# Browserless Testing

> **Note:** Browserless testing was previously known as *UI Unit Testing* and required a commercial TestBench subscription. Browserless testing is free for all users (since V25.1).

Browserless testing removes the need to run a browser or a servlet container, making it much faster to test your Vaadin-based applications.

With browserless testing, you look up components directly from `UI.getCurrent()`, bypassing the browser and the client-server communication bridge. You call methods directly on your server-side view classes and Vaadin components.

You also don’t need to launch a servlet container. A test creates the Vaadin service, sessions, and UIs directly in the JVM that runs your JUnit tests, through an [application context](https://vaadin.com/docs/v25/flow/testing/browserless/multi-user.md) that models the application, its users, and their browser windows.

In addition to browserless testing, Vaadin also allows you to write end-to-end tests for your applications. [Each approach has its own advantages](https://vaadin.com/docs/v25/flow/testing.md#comparison).

Start with [Getting Started](https://vaadin.com/docs/v25/flow/testing/browserless/getting-started.md) for the dependencies and a minimal test class. If your project has tests written with UI Unit Testing, see [Migrate UI Unit Tests to Browserless Tests](https://vaadin.com/docs/v25/building-apps/testing/browserless/migrate-ui-unit-tests.md) for the dependencies to replace. The following pages describe APIs, lifecycle guarantees, and integration behavior. The Spring, Java EE/CDI, and Quarkus integrations each have their own page; the Java EE/CDI integration needs a Weld-backed test environment and a CDI servlet.

## <a id="topics"></a>Topics

- [Getting Started](https://vaadin.com/docs/v25/flow/testing/browserless/getting-started.md): Maven dependencies and a minimal test class for browserless tests in plain Java, Spring Boot, Quarkus, and Java EE/CDI projects.
- [Test Environment and Lifecycle](https://vaadin.com/docs/v25/flow/testing/browserless/test-environment.md): Browserless application contexts and base classes, environment lifecycle, route scanning, navigation, and simulated server round trips.
- [Application, User, and Window Contexts](https://vaadin.com/docs/v25/flow/testing/browserless/multi-user.md): Browserless application, user, and window contexts -- the main test API -- with thread affinity, window activation, security isolation, factories, and configuration.
- [Querying Components](https://vaadin.com/docs/v25/flow/testing/browserless/component-query.md): Details and examples on accessing components within a browserless test.
- [Component Testers](https://vaadin.com/docs/v25/flow/testing/browserless/component-testers.md): Tester selection, supported actions, usability checks, constraints, and custom tester discovery.
- [Component Locators](https://vaadin.com/docs/v25/flow/testing/browserless/locators.md): Typed component locator entry points, filters, resolution caching, custom locators, and opt-in interfaces.
- [Testing Overlay Components](https://vaadin.com/docs/v25/flow/testing/browserless/overlay-components.md): How to test context menus, menu bars, and other overlay-based components in browserless tests.
- [UI Snapshots](https://vaadin.com/docs/v25/flow/testing/browserless/snapshots.md): Failure snapshot extension behavior and the format of server-side component tree output.
- [Signal Test Environment](https://vaadin.com/docs/v25/flow/testing/browserless/testing-signals.md): Signal propagation, background task processing, shared-signal updates, and write confirmation in browserless tests.
- [JUnit 6 Extensions](https://vaadin.com/docs/v25/flow/testing/browserless/extensions.md): Composition-based browserless test setup, per-method and per-class lifecycles, and extension configuration.
- [Test Configuration](https://vaadin.com/docs/v25/flow/testing/browserless/test-configuration.md): Set Vaadin application properties, feature flags, and Lookup services for an application context, a test class, or a test method.
- [Spring Security Integration](https://vaadin.com/docs/v25/flow/testing/browserless/spring-security.md): Authentication timing and navigation access-control requirements for Spring browserless tests.
- [Spring Test Lifecycle](https://vaadin.com/docs/v25/flow/testing/browserless/environment-differences.md): The order in which Spring and the browserless environment set up a test, and how it affects session-scoped beans and authentication.
- [CDI Test Integration](https://vaadin.com/docs/v25/flow/testing/browserless/cdi.md): Lifecycle ordering, CDI bean discovery, scopes, servlet integration, and route registration in Weld-based browserless tests.
- [Quarkus Integration](https://vaadin.com/docs/v25/flow/testing/browserless/quarkus.md): Quarkus browserless test initialization, dependency injection, test profiles, and security integration.

`17590340-7B0A-463B-846B-FEDB1F1AE1B3`
