Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test Framework for Eclipse RCP Application

I am new to Eclipse RCP and I'm looking for an open source framework to test my RCP application (especially the GUI). I want to run this tests as unit tests.

Can you suggest some good frameworks with which you made good experiences?

like image 845
TerenceJackson Avatar asked Apr 28 '11 12:04

TerenceJackson


People also ask

What is Eclipse RCP framework?

Eclipse RCP (Rich Client Platform) applications, use the Eclipse framework to create feature-rich stand-alone desktop applications. An Eclipse application consists of individual software components, called plug-ins. As Eclipse is build as an extensible framework, plug-ins can use and extend other plug-ins.

What is RCP testing?

Rapid Control Prototyping (RCP) is a test and development methodology used to accelerate the design process by using model-based design to test a control strategy on physical hardware early in the design process.

What is Eclipse testing tool?

Eclipse RCP Testing Tool allows create and execute test cases for Eclipse-based applications with minimal effort. The minimal required configuration of applications under test is as simple as browsing for a folder for binary AUTs or choosing a PDE launch configuration for AUTs from sources.

Is Eclipse an automation Testing Tool?

Eclipse RedDeer project is an extensible framework used for development of automated SWT/Eclipse tests which interacts with application's user interface.


2 Answers

The eclipse platform builds come with an Junit Plug-in test framework that allows JUnit tests written as plugins to run in the context of an Eclipse or RCP app. The JUnit plugin tests could then use SWTBot as well as the standard platform API (open windows, show views, etc).

See http://www.eclipse.org/articles/Article-PDE-Automation/automation.html to get started.

See also Automating unit tests (junit) for Eclipse Plugin development

like image 122
Paul Webster Avatar answered Sep 28 '22 14:09

Paul Webster


You may want to try SWTBot. It is made explicitly for the SWT UI. It is in incubation still but under active development.

like image 23
kostja Avatar answered Sep 28 '22 15:09

kostja