sql test items database code example
Example 1: what do we need to test in database testing
In Database testing,
Testing of Data Integrity
Testing of Data Validity
Data base related performance
Testing of functions, procedure and triggers
are necessary to test.
What is Database Black Box Testing?
Database Black Box testing involves:
• Data Mapping
• Data stored and retrieved
• Use of Black Box testing techniques
such as Equivalence Partitioning
and Boundary Value Analysis
Example 2: database testing
JDBC
It is a Java-based data access technology used for Java database connectivity.
It provides classes and interfaces to connect or communicate Java
application with database.
JDBC API is a Java API that can access any kind of data stored in
a Relational Database. It enables Java programs to execute SQL statements.
How did you do DB testing in your framework?
In my automation framework I have DB Utilities class which handles
everything related to setting up connections, closing connections,
getting data from database and storing results from database into
different collections, arrays, etc. So that I can easily work with it.