Now that we have a JDBC Connection Configuration component configured, the final step is to add a JDBC Request Sampler to our test plan to make use of it. Adding that is similar to how we have added other samplers throughout the book:
- Create a Thread Group element, if none already exists, by right-clicking on Test Plan and navigating to Test Plan | Threads | Thread Group.
- Add a JDBC Request Sampler by right-clicking on Thread Group and navigating to Thread Group | Add | Sampler | JDBC Request.
- In the SQL Query input field, type in the following:
SELECT * FROM TEST
- Add a View Results Tree listener by right-clicking on Thread Group and navigating to Add | Listener | View Results Tree.
- Save the test plan.