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

RCP FIT Example: Testing RCP Mail

This is the second example for RCP FIT. It is a non-GUI test for RCP Mail, the demo RCP application that you can create with the New Project Wizard.

This example is interesting if you want to understand how to use the same story test to first test against the model and then test against the GUI.

Another interesting aspect is that we show how to run the RCP application together with RCP FIT outside of Eclipse. Just as a non-technical user would do.

On this page here we show only the non-GUI part. We modified the RCP Mail example a tiny little bit. We store the model of the mailboxes views in a static variable so that we can access it from FIT - that's all.

Download


Importing

The zip file needs to be imported to your workspace.

The FIT Test

The input file is an Excel file located in /RCPMailModelFitTest/xls_test/input.

Running the example

The example includes a launch configuration called RCPMailModelFitTest. Use this launch config to start a second instance of the Eclipse SDK.

Then you will see RCP Mail including the RCP FIT toobar button.

image

Use the RCP FIT button to select the Excel file from your workspace and some other directory for the output.

The Report

The report created by FIT looks like this.

image

Have a look at the Fixture to see how this works.

Running Outside of Eclipse PDE

There are two steps to export everything.

Exporting RCP Mail
Our version of RCP Mail (please download and use ours) includes a product configuraiton that makes it easy to export the application, including the launcher etc.

In the editor for the product configuration select the Product Export Wizard and enter the following.

image

Launch the exported RCP Mail to see if if works.

Exporting RCP FIT and the Fixture
Open the RCPMailModelFitTest (or any other plug-in) an select the Plug-in Export Wizard.

Enter the following.

image

Now, launch RCP Mail again. You should see the additional RCP FIT toolbar button.

Run the FIT test the same way as previously when using PDE.

Bottom line: now you can let a non-technical person write and run story tests using your RCP application and the RCP FIT button.

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

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