InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How data integrity can be tested in database testing? |
Answer»
|
|
| 2. |
How can a user test Transactions in an SQL database? |
|
Answer» This requires the ACID properties, and to achieve that we use the following statements- Using the ROLLBACK command CHANGES are rolled back to the previous commit. Once transactions are EXECUTED, the user can use SELECT queries to VALIDATE the data. ExampleBEGIN TRANSACTION TRANSACTION# END TRANSACTION TRANSACTION# ROLLBACK TRANSACTION# |
|
| 3. |
How tables and columns can be validated in the database? |
Answer»
|
|
| 4. |
Write down the test scenarios for migration of database from one SQL server to another? |
|
Answer» The first THING tester should do when migration happens is, to be aware of all the changes done in the new SQL server followed by creating a test case suite by CONSIDERING the below points- |
|
| 5. |
List some of the major challenges we faced while performing database testing? |
Answer»
|
|
| 6. |
If a user has more than 1000 lines of procedure, how will he/she test that where it is failing? |
| Answer» | |
| 7. |
Can mentioned requirement be testable "A fast database retrieval rate"? |
|
Answer» The answer is No, as the above requirement is not CLEAR. To test any requirement, SRS or PRS should clearly TELL it, i.e. above requirement should be MENTIONED like “Database RETRIEVAL rate should be of 10 MICROSECONDS”. |
|
| 8. |
Does QTP support SQL Queries? If yes, how? |
|
Answer» QTP doesn’t have built-in or default functions for database connectivity, to interact with a database, testers use ADODB objects and use VBScript LANGUAGE to CONNECT to them. Also Read: Top API Testing Interview QUESTIONS |
|
| 9. |
List out some different SQL statements that can be used for database testing? |
|
Answer» DDL- Data Definition Language:
DML- Data Manipulation Language:
DQL- Data Query Language:
DCL- Data Control Language:
TCL-Transaction Control Language:
|
|
| 10. |
What are the ways to validate if a database table has been updated after you enter data from a front-end application? |
|
Answer» This DEPENDS on the INTERFACE which is being USED in that front-end application. Ways to validate it-
|
|
| 11. |
Explain how you can test the database manually with an example? |
|
Answer» Manual testing of databases requires HUMAN effort in observing the operational BEHAVIOR of the application. TESTERS have to manually check if adding a record from the front END also affected the backend database or not. Similarly, it should work for delete, update, edit, etc. Example- To maintain the record of students who are going for a trip, enter the STUDENT’s information from the front-end system and manually check the effect of entered information on the backend database too. |
|