Test an Application Using Capture and Playback
Once you have developed a client application that generates TI requests, you can capture either actual or simulated activity between your application and a mainframe transaction program (TP). Captured messages are stored in a recording (.rcd) file. Once you have created the recording, you can play it back to provide responses to your application as though a mainframe program were executing and returning output parameters and a return value. Captured messages do not have to be played back in the order they were recorded. The .rcd file is more like a database of stored responses. Using Capture and Playback allows you to reduce the costs and overhead of connecting to the mainframe as you develop your application.
You can create a recording file either by capturing live from the mainframe or by capturing responses that you typed into the TI Test Console.
- Capture from the mainframe
The Capture mechanism is used to record activity between a TI client and a mainframe server. Later, you can use this recording (.rcd) file as the source for information needed to respond to incoming client requests. This scenario requires mainframe connectivity, and a mainframe server application in order to create the initial recording. - Capture from the TI Test Console
The TI Test Console extends the Capture/Playback facility by allowing the recording to be created without a live connection to a mainframe transaction program (TP). On the TI Test Console user interface, you can see the input parameters of a remote request and type in values for output parameters. This gives you the ability to develop a test environment for TI Automation server applications, prior to the development of the mainframe code to respond to the requests.
Recording files are available in the CedarBank sample application for all eight possible environments. Use the CedarBank sample client application to practice using Diagnostic Capture and Diagnostic Playback remote environments (REs) as testing tools. For more information, see the Sample Application Tutorial for HIS 2004 Transaction Integrator.
Note To use the TI Test Console, you must set the application or package identity in a COM+ application to Interactive User.
See Also
Capture Mainframe Transaction Program Responses
Capture TI Test Console Responses
Define a Diagnostic Capture Remote Environment
Define a Diagnostic Playback Remote Environment
To download updated Host Integration Server 2004 Help from www.microsoft.com, go to http://go.microsoft.com/fwlink/?linkid=29507. Copyright © 2004 Microsoft Corporation.All rights reserved.