Recording SQL events
When the Test Integrations and APIs JDBC proxy is installed, you can use Test Integrations and APIs and Test Virtualization to record SQL events that are executed against databases from applications that use JDBC. There are two methods of selecting a database for recording: Architecture School method and Recording Studio method. Both methods achieve the same result but the Architecture School method is a more direct method.
- Install the Test Integrations and APIs JDBC
proxy. For more information, see Setting up the JDBC proxy. Note:You can record Db2® for z/OS® SQL events from COBOL or PL/I programs running on z/OS. For more information, see Testing with IBM Db2 on z/OS systems.Remember:The version number of the IBM DevOps Test Virtualization Control Panel (Test Virtualization Control Panel) software that you are using must be the same as the version number of the Test Integrations and APIs software that you are using. Therefore, if you upgraded your Test Integrations and APIs installation and you want to record SQL or create database stubs, you must upgrade your server installation and upgrade the JDBC proxy wherever it is deployed.
- In Test Virtualization Control Panel, ensure that the proxy is registered with the server. For more information, see Administration of DevOps Test Virtualization Control Panel.
(Test Virtualization users can also create, edit, and start/stop database stubs. For information about using Test Virtualization, see DevOps Test Virtualization overview.)
The ability to record SQL events (but not create any database stubs) is useful if you are building test cases in Test Integrations and APIs and want to extract SQL results from queries on a database for analysis or for use in test cases.
You can also record stored procedures. The recorded SQL statements now include SQL Result Sets. For more information on the details that are saved, see Events view.
The following diagram illustrates how Test Integrations and APIs records SQL from databases that use JDBC.

Architecture School method
- Right-click the logical database that is to be recorded, and click Add event monitor on the menu. Alternatively, select the logical database that is to be recorded, and click Add event monitors for the selected items on the toolbar.
- The Recording Studio opens with the resource listed in the Event Monitor window. To start recording, click Record on the Events View toolbar.