IBM E02HMLL-I Implementation Guide - Page 221
Enabling, Integrated, Environment, create, custom, batch, Working, projects, units
View all IBM E02HMLL-I manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 221 highlights
2. Add the -design option to the line in the batch file where the Java program is executed to start the server. You should add the -design option after the -s%SERVERNAME% option. The following example shows how the batch file should appear: %CWJAVA% -Djava.ext.dirs=%JRE_EXT_DIRS%;"%MQ_LIB%";"%DB2_LIB%" -Duser.home="%CROSSWORLDS%" -mx%CW_MEM_HEAP%m -DTEAgent=1200 -DCW_MEMORY_MAX=%CW_MEM_HEAP% %ORB_PROPERTY% -classpath %JCLASSES% ServerWrapper -s%SERVERNAME% -design %2 %3 3. Save and close the file. Enabling Integrated Test Environment to create a custom batch file You can configure Integrated Test Environment to start InterChange Server Express in design mode automatically. With this approach, Integrated Test Environment reads in the start_server.bat file and determines if the -design option has been specified properly or not. It then creates a file named start_server_ite_tmp.bat as a copy of the start_server.bat file and adds the -design option if it has not been properly specified. If you start the server from within Integrated Test Environment then it uses this temporary file. Do the following to configure the Integrated Test Environment preferences to create a temporary batch file: 1. Select Window > Preferences from the menu bar of the workbench. 2. Expand Integrated Test Environment. 3. Select Test Server. Figure 58 on page 207 shows the Test Server preferences. 4. Enable the Verify server launch script (start_server.bat) checkbox to have Integrated Test Environment use a custom batch file to which it adds the necessary configuration information. If you do not plan to use the custom batch file that Integrated Test Environment can create, leave the Verify server launch script (start_server.bat) checkbox disabled and be sure to follow the instructions in "Setting the RMI port in start_server.bat" on page 208 to add the configuration information yourself. 5. Click OK. Important: For this approach to work, you must start the server from Integrated Test Environment. If you start the server using the program group shortcut or the command line then this approach will not work, because those startup techniques do not use the temporary startup script. Working with test projects and units All resources in an Eclipse-based platform are contained in projects, as described in "Projects" on page 38.. 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" on page 21 Chapter 12. Using Integrated Test Environment 209