IBM Support

Environment tasks



You can define environment configuration tasks by creating test-data-management or run-command actions. You can then associate these environment tasks with stubs to ensure that test environments are set up correctly before the stubs are run.


For example, you could create an environment task that calls out to a test data management system to refresh test data used by stubs. This version of IBM Rational Integration Tester supports integration with IBM InfoSphere Optim (a test data management system). You could use InfoSphere Optim to create test data from a customer database that contains private information. Using the masking capabilities in InfoSphere Optim, you could mask the sensitive data fields, and then use that data for realistic testing. In Rational integration Tester, you could create an environment task that would invoke InfoSphere Optim to populate a database as part of setting up the test environment, so that stubs could be run using data in a known state.

Alternatively, a run command action could be used to invoke a script or program, for example, to clear queues in a messaging system.

The high-level tasks to define and use environment tasks are:

  1. If you decide to use the test data management action, define the InfoSphere Optim provider and the runservice-tool.jar file in Library Manager.
  2. Create environment tasks in the Architecture School perspective.
  3. Associate the environment tasks with stubs in the Test Factory perspective so that the environment tasks run first.
  4. Run the stub in Rational Integration Tester or publish it to Rational Test Control Panel, and then deploy it to a Rational Test Virtualization Server agent computer. The associated environment tasks will execute before the stub is started.
The first three tasks are documented in this technote. The remaining tasks are standard Rational Integration Tester procedures, and are explained in the product documentation.

Defining the provider and JAR file in Library Manager

To define the InfoSphere Optim provider and the runservice-tool.jar file:
  1. Click Start > Library Manager. The Library Manager window opens.
  2. Select Test Data Management.
  3. In Provider, add InfoSphere Optim.
  4. In Settings, add the resource name and path for the runservice-tool.jar file. This file is included in the InfoSphere Optim Designer product.
  5. Click OK.

Creating environment tasks

In the Environment Tasks view, you can create test data management actions or run command actions.

To create environment tasks for configuring test environments:
  1. In Architecture School, click the Environment Tasks tab.
  2. In the left panel, click the plus sign (+) and provide a name for the new environment task.
  3. Click the Test Data Management action icon and right-click the new task step. The Test Data Management window opens.
  4. In Optim Proxy URL, enter URL of the InfoSphere Optim proxy server.
  5. In Service Request File, enter the location of a service request JAR file that has been exported from InfoSphere Optim Designer.
  6. If the Optim Proxy URL uses HTTPS, enter the SSL settings for key store and trust store.
  7. Click OK.

To create a run command action:
  1. In Architecture School, click the Environment Tasks tab.
  2. In the left panel, click the plus sign (+) and provide a name for the new environment task.
  3. Click the command prompt icon.
  4. Right-click the new task. The Run Command window opens.
  5. Specify commands, scripts or programs to execute, either locally or on a remote computer.
  6. Optionally, specify assertions on the output or store them in tags.
  7. Click OK.

Associate environment tasks with stubs

In the Test Factory view, either create a new stub, or open a stub for editing.
  1. Click the Properties tab.
  2. In the Environment Tasks section, click the plus sign icon (+). The Environment Tasks window opens and displays all the environment tasks that were created in Architecture School.
  3. Select one or more environment tasks. Select multiple tasks by holding the Ctrl key and clicking the tasks.
  4. Click OK. The tasks display in Environment Tasks.
  5. Optionally, select the Prevent stub startup upon task failures check box.

Document information

More support for: Rational Test Workbench
Rational Integration Tester

Software version: 8.0.1

Operating system(s): AIX, Linux, Solaris, Windows

Reference #: 1616542

Modified date: 20 November 2012

Translate this page: