All resources in an Eclipse-based platform are contained in projects, as described in Projects.. You must create integration component library projects to contain integration components, you must create user projects to contain shortcuts to components, and you must create test projects in the Integrated Test Environment to contain definitions for tests.
A test unit is a resource created in the workbench that defines a test. Integrated Test Environment is designed to let you test an entire interface, and an interface typically centers around a collaboration object, as described in Interfaces, so a test unit centers around a collaboration object as well. You can define all the test units you want to run in a single test project, or can create multiple test projects and add test units to them as appropriate to organize them according to your preference.
Before creating either test projects or test units you should configure the preferences related to both. Do the following to configure your preferences related to test projects and units:
Figure 59 shows the Integrated Test Environment preferences.
For more information about opening test units if you decide not to enable this option, see Opening a test unit.
For more information about the Server Context Overlay, see Using the Server Context Overlay.
Do the following to create a test project to store the individual test units you will create:
Project names can only contain alphanumeric characters and underscores, and must be specified in English.
If you want to specify the name and location of the library folder, do the following:
Figure 60 shows the "New Integrated Test Environment Project" wizard.
The project is created and a folder is added for it to the "Integrated Test Environment Navigator" view.
A test unit is the workbench resource that contains the configuration information for a test you want to perform. You can either create a test unit from within Integrated Test Environment, or from within System Manager.
If you have the Open the new test unit in the editor upon creation checkbox enabled in the Integrated Test Environment preferences, then the test unit opens after you create it. If you do not have this preference enabled then you must open the test unit using the instructions in Opening a test unit. For more information on Integrated Test Environment preferences, see Configuring test project preferences.
Do the following to create a test unit within Integrated Test Environment:
Figure 61 shows the "Select Collaboration" screen.
Figure 62 shows the "Create Integrated Test Environment Test Unit" screen.
Do the following to create a test unit from within System Manager:
Figure 62 shows the "Create Integrated Test Environment Test Unit" screen.
Once you have created a test unit you can open it to view its layout and configure it. Do the following to open a test unit:
The test unit opens, displaying a representation of the collaboration object in the Test Unit editor and populating the views of the perspective with information specific to the interface. Figure 56 shows the appearance of the Integrated Test Environment perspective after you have opened a test unit.