Time for action – writing an SWTBot test

The first step is to install SWTBot from the Eclipse update site. These examples were tested with http://download.eclipse.org/technology/swtbot/releases/latest/ version 2.3.0, but check out the book's errata for up-to-date information.

  1. Go to Help | Install New Software and enter the SWTBot update site.
  2. Select everything except the GEF feature:
    Time for action – writing an SWTBot test
  3. Click on Next to install.
  4. Restart Eclipse when prompted.
  5. Add the following bundle dependencies to the plug-in manifest for the com.packtpub.e4.junit.plugin project:
    1. org.eclipse.swtbot.junit4_x
    2. org.eclipse.swtbot.forms.finder
    3. org.eclipse.swtbot.eclipse.finder
    4. org.eclipse.ui

Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.