Testing user interfaces (UI) is always a challenging task, commonly relegated to the last phases of application development and hurriedly executed. However, it is now possible to overcome this challenge by developing UI plugins using the E4 POJOs (seamlessly integrating with existing Eclipse 3 plugins). The E4 architecture enables us to liberate ourselves from dependencies on high level Eclipse RCP stacks, unlocking new opportunities for testing UI POJOs together directly during the integration test phase.
In this presentation, we will explore the way to easily test E4 UI components. We will quickly remind the fundamental principles of the E4 runtime and architecture, focusing on the application model and the concept of contributions through fragments. Moreover, we will introduce the E4 tester tooling, designed to assist you in effectively managing your UI tests.
During the session, we will show how to:
- Harness the JUnit 5 framework to write comprehensive UI tests
- Instantiate and combine POJO parts within a single integration test case
- Simulate selections to ensure correct information display
- Check the content of different widgets : JFace trees, tables, nattables, labels, texts, checkboxes…
- Execute handlers in a test and check the expected results
- Incorporate these UI tests into your build process with the Maven Tycho integration
The E4 Tester project (developed by OPCoach and available on GitHub under the EPL license) will be showcased, along with its accompanying P2 repository, enabling effortless integration into your development workflow.
Join us to unleash the full potential of E4 UI testing and streamline your validation and integration testing processes.