-
Invoke your java program or AUT hosted on Tomcat server, to interact with database and capture the events.

-
Execute some SQL queries, in this case, insert data into the UserDetails table.

-
The event is being seen in the Recording Studio. Events will be posted directly from the Integration Tester JDBC Agent within the Java application to the Recording Studio. Events are not sent via Test Integrations and APIs.

-
The matching table is created in the stub simulation schema as well as an internal table to store the SQL command. (Check the SQL Dashboard Database as shown below)

- Stop the recording and see the stub created in Test Factory.

-
The Tables tab shows a summary of tables captured and their data columns and rows.

-
The Queries tab lists any SQL queries that were recorded.

-
After events are recorded, you can create a test from the selected events in the Events View pane. Click the Create Test from selected events icon in the Events View toolbar, or right-click the messages and select Create Test or Create Parameterized Test from the menu.

-
On the Resource Type dialog, select a type of test that you want to create, click Next.

-
On the Data Storage page, choose one of the following storage options, click Next.

-
On the Summary page, enter a name for the test. To edit the new test immediately after it is created, select Open resource after finish and Click Finish.

-
A test is created. The test contains Test Steps that relate to the selected events. Test steps vary on the type of event.
