spacer.png, 0 kB
spacer.png, 0 kB

RCP FIT

What is RCP FIT?

RCP FIT is a runner for FIT tests. Rather than running FIT tests from the command line, RCP FIT allows you to run FIT tests inside an RCP application. The benefit of this approach is, that the tests execute in the natural runtime environement of your RCP application. You can run your application with RCP FIT either inside Eclipse using PDE or outside.

The main benefit is running your RCP application with RCP FIT outside of PDE. The key idea to understand is that FIT is a test tool for non-programmers like customers, users, business people. RCP FIT enables non-technical people to write and run story tests for RCP applications.

To provide a non-technical perosn with a FIT-enabled RCP application, do the following:
  • deploy your RCP application
  • add RCP FIT (2 plug-ins) to the exported RCP application
  • add your FIT fixtures to the exported RCP application
  • zip it and hand it over

Downloads

Two plug-ins are needed.

Installation

The two plug-ins are distributed as archive files. The plug-ins need to be imported into your workspace. Do not put them into the plugins folder of your Eclipse installation (this will do no harm but will have zero effect).

Here are the instrcutions how to import an archive file into the workspace.

Usage

RCP FIT adds a drop-down button to the tool-bar of your RCP application.

The button is either
  • black: initial state
  • blue: FIT is running
  • greeen: successful test run
  • red: unsuccessful test run

image image image image

The drop-down allows you to select a single FIT file or a directory of FIT files. You will be asked to first select an input file (or folder) and an output folder for the report.

image

The main button can be pushed again to repeat the previous test run without being asked for paths.

Examples

We provide two examples for RCP FIT. The examples need to be imported into your workspace as above.

Both examples have a non-GUI and a GUI part. On this page we show only the non-GUI part. The GUI part uses RCP Robot. The robot can be used to write a JUnit test without using FIT. However, we recommend to use RCP FIT and RCP Robot together.

Each example can be found on a separate page.

References

Frank Gerhardt, GUI-Tests für RCP-Applikationen, Eclipse Magazin, Ausgabe 1.08.
Rick Mugridge und Ward Cunningham, FIT for Developing Software, 2005.
Frank Westphal, Testgetriebene Entwicklung mit JUnit & FIT, 2005.

There are 26 comments on this page. [Display comments]

spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB