Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Application Testing Guide
Previous Page Home Next Page

Creating a JUnit Plug-in test manually

TPTP JUnit Plug-in Tests can be created manually or as a result of importing existing JUnit Plug-in tests outside TPTP into a TPTP JUnit Plug-in Test. They should be created manually if they are to exploit the TPTP JUnit Plug-in Test behavior feature.

Note that, before creating a JUnit Plug-in test, a Plug-in project must exist.

  1. Select File > New > Other.
  2. Expand Test. Select TPTP JUnit Plug-in Test.
  3. Click Next to launch the New JUnit Plug-in Test dialog. Identify the Source folder (pluginProject/src), the Package (junit.plugin.samples), and the name to be assigned to the JUnit Plug-in Test source code (EclipseUiTest).
  4. Select either 'In the test editor' or 'In the code editor' for the test behavior option. See JUnit Test Suite Editor for a detailed explanation of these options.
  5. Click Next and provide the test's name and location.
  6. Click Next and provide a description if required. Click Finish.
  7. The Confirm Open Editor dialog may appear (see the Window > Preferences... > Test > Open Editor preference), confirming if the new JUnit Plug-in test suite is to be opened in the JUnit Plug-in Test editor.

Note that the second and third pages of the wizard are optional (that is, you can finish the wizard at the first page). Also, the difference between the information requested in page 1 and page 2 is as follows: the first page asks for the name and location of the source code, while the second one asks for the name and location of the TPTP Test (the model). By default, they are identical.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire