Need to access application database for test data used in Selenic tests
I have a simple application that is used as a front end for another department's database. We only have read access and cannot create our own test data. What I would like to do is to make a few database queries to retrieve some key values to use in the subsequent tests. Are there examples of this available?
Thanks!
0
Comments
You would need to write Java code to connect to your database using the appropriate JDBC driver for your database, and execute a query to retrieve the desired data. Here is a simple tutorial about how to do that: https://howtodoinjava.com/java/jdbc/jdbc-select-query-example/