As part of developing and maintaining an application that
runs on IMS, you can create unit test cases and provide input message
data in human readable format for debugging. After you create a unit
test case, you can create variations of it with different input message
data, to easily exercise different code paths in the IMS transaction.
About this task
To test a transaction, define the transaction and message
layout. Then, develop a script of the dialog between an application
and one or more transactions that run in IMS.
Procedure
To create a unit test case:
- Create a transaction test project by clicking .
- Optional: In the test project, create a new
transaction by right-clicking the Test Cases folder
and clicking .
- Define the input and
output messages in the transaction.
- Create a test case by right-clicking the Test Cases folder and clicking .
- Develop a script
of the dialog between an existing or future front-end application
and one or more transactions running in IMS.
- Define a new IMS transaction server connection. Right-click in the Servers
view and click . In the New Server wizard, click .
- From the test project, right-click and click .
- Define your runtime
configuration.
- In the Run
Configurations wizard,
select the configuration that you created in 8 and
click Run.
Tip: From
the Eclipse toolbar, select the
Run As list
and click the configuration that you created in step
8.
- Run the test case.