Testing Using TestBench
A commercial Vaadin subscription is required to use TestBench in your project.
Vaadin TestBench is a tool for creating and running browser based integration tests for your Vaadin application. TestBench simulates a user of your application, performs the tasks specified using Java code and verifies that the expected actions take place in the application.
TestBench can also visually inspect your application and detect unintentionally introduced changes, and verify that the application visually looks OK in all the browsers you are testing with. TestBench also includes special support for other Vaadin products, making testing easy and robust compared to generic web testing solutions.
Although not the main purpose of TestBench, you can also use TestBench to automate mundane tasks such as filling out forms.
The main features of Vaadin TestBench are:
Control one or several browser instances from Java, both desktop and mobile browsers
A powerful and robust way to describe your tests so they do not break with application changes
A high level API for finding the component you want to interact with
Vaadin Component API for easy interaction with all Vaadin components and HTML elements
Automatic screen comparison highlighting differences
Assertion based UI state validation
Easily running tests in parallel
Test grid support for speeding up tests by running in parallel on multiple browsers on selected operating systems
Support for JUnit and other testing frameworks
All features available in Selenium
- Getting Started
- Installing Web Drivers
- Creating Tests
- Creating Maintainable Tests using Page Objects
- Low Level Element Interactions
- Taking and Comparing Screenshots
- Advanced Testing Concepts
- Making Tests Reliable
- Behavior-Driven Development
- Running Tests with Maven
- Running Tests on a CI Server
- Running Tests on Multiple Browsers in a Grid
- Setting up your Own Test Grid
- Migrating to Vaadin 10
- UI Unit Testing
- Selenium Testing
- Test automation of a Vaadin application using Selenium.