Introduction: Eclipse is a very broad application and, of course, requires a GUI automation test. Swtbot provides a more complete set of SWT and Eclipse Rich client application (RCP) testing capabilities, this article gives a detailed introduction to SWT's design structure and features, and an example of how to create and execute Swtbot-based test cases for your eclipse application.
Swtbot is a young Open-source project dedicated to simplifying the GUI testing of SWT and the rich client application based on Eclipse, platform independent and powerful. The project has been accepted to the Eclipse.org Foundation, although it is still in the incubation stage, but has been successfully applied to many products tested. This paper describes how to configure the development environment in detail, and analyzes the design and implementation structure of Swtbot through examples and class diagrams.
Configuring the Basic Development environment
The development environment used in this article is the Eclipse 3.5 suite for rcp/plug-in development, and you can install the latest version of the Swtbot plug-in directly through an online update.
Select the Eclipse menu item "help-> Install New Software ..." and add the update site in the pop-up window, as shown in Figure 1, where the current site address is http://download.eclipse.org/ technology/swtbot/galileo/dev-build/update-site/
Figure 1. Add Update site