> Markdown version of [UI Unit Testing](https://vaadin.com/docs/v23/testing/ui-unit). Section index: [llms.txt](https://vaadin.com/docs/v23/testing/llms.txt)

# UI Unit Testing (since V23.2)

> **Note: Commercial feature**
>
> A commercial Vaadin subscription is required to use TestBench in your project.
>
> - [Start Free Trial](https://vaadin.com/trial)
>
> - [See Pricing](https://vaadin.com/pricing)

TestBench UI unit testing is **browser-less**, so you look up components straight from `UI.getCurrent()`, bypassing the browser and the JavaScript → server bridge. You call methods directly on your server-side view classes and on the server-side Java Vaadin components.

Because UI unit testing is also **container-less**, you don’t need to launch the servlet container. The `UIUnitTest` class handles creating the Vaadin session, the UI and other necessary Vaadin classes right in the JVM that runs your JUnit tests.

In addition to UI unit testing, TestBench also enables you to write end-to-end tests for your Vaadin applications. [Each approach has their own advantages](https://vaadin.com/docs/v23/testing.md#comparison).

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

- [Getting Started](https://vaadin.com/docs/v23/testing/ui-unit/getting-started.md): Create and run your first UI unit test.
- [Querying Components](https://vaadin.com/docs/v23/testing/ui-unit/component-query.md): How to access components within a UI unit test.
- [UI Snapshots](https://vaadin.com/docs/v23/testing/ui-unit/snapshots.md)
- [Spring-based Projects](https://vaadin.com/docs/v23/testing/ui-unit/spring.md)

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