Database-Testing-Interview-Questions-and-Answers-288
Database-Testing-Interview-Questions-and-Answers-288
Global Guideline.
https://www.globalguideline.com/
Database Testing Interview Questions And Answers
G
Database Testing Job Interview Preparation Guide.
lo
ba
lG
Question # 1
What is Database testing?
ui
Answer:-
Data bas testing basically include the following.
1)Data validity testing.
de
2)Data Integritity testing
3)Performance related to data base.
4)Testing of Procedure,triggers and functions.
for doing data validity testing you should be good in SQL queries
For data integrity testing you should know about referintial integrity and different constraint.
lin
For performance related things you should have idea about the table structure and design.
for testing Procedure triggers and functions you should be able to understand the same.
Read More Answers.
e
Question # 2
What we normally check for in the Database Testing?
.C
Answer:-
In DB testing we need to check for,
1. The field size validation
2. Check constraints.
3. Indexes are done or not (for performance related issues)
O
4. Stored procedures
5. The field size defined in the application is matching with that in the db.
Read More Answers.
M
Question # 3
How to Test database in Manually? Explain with an example?
Answer:-
Observing that opertaions, which are operated on front-end is effected on back-end or not.
The approach is as follows :
While adding a record thr' front-end check back-end that addition of record is effected or not. So same for delete, update,...... Ex:Enter employee record in database
thr' front-end and check if the record is added or not to the back-end(manually).
Read More Answers.
Question # 4
How to check a trigger is fired or not, while doing database testing?
Answer:-
It can be verified by querying the common audit log where we can able to see the triggers fired.
Read More Answers.
Question # 5
Is a A fast database retrieval rate a testable requirement?
Answer:-
No. I do not think so. Since the requirement seems to be ambiguous. The SRS should clearly mention the performance or transaction requirements i.e. It should say
like 'A DB retrival rate of 5 micro sec'.
Read More Answers.
Question # 6
Question # 10
How to test data loading in Data base testing?
Answer:-
You have to do the following things while you are involving in Data Load testing.
1. You have know about source data (table(s), columns, datatypes and Contraints)
2. You have to know about Target data (table(s), columns, datatypes and Contraints)
3. You have to check the compatibility of Source and Target.
4. You have to Open corresponding DTS package in SQL Enterprise Manager and run the DTS package (If you are using SQL Server).
5. Then you should compare the column's data of Source and Target.
6. You have to check the number to rows of Source and Target.
7. Then you have to update the data in Source and see the change is reflecting in Target or not.
8. You have to check about junk character and NULLs.
Read More Answers.
Question # 11
Explain Database testing?
Answer:-
An1:
here database testing means test engineer should test the data integrity, data accessing,query retriving,modifications,updation and deletion etc
An2:
Database tests are supported via ODBC using the following functions:
G
SQLOpen, SQLClose, SQLError, SQLRetrieve, SQLRetrieveToFile, SQLExecQuery, SQLGetSchema and SQLRequest.
You can carry out cursor type operations by incrementing arrays of returned datasets.
All SQL queries are supplied as a string. You can execute stored procedures for instance on SQL Server you could use “Exec MyStoredProcedure― and as long
lo
as that stored procedure is registered on the SQL Server database then it should execute however you cannot interact as much as you may like by supplying say in/out
variables, etc but for most instances it will cover your database test requirements
An3:
Data bas testing basically include the following.
ba
1)Data validity testing.
2)Data Integritity testing
3)Performance related to data base.
4)Testing of Procedure,triggers and functions.
lG
for doing data validity testing you should be good in SQL queries
For data integrity testing you should know about referintial integrity and different constraint.
For performance related things you should have idea about the table structure and design.
for testing Procedure triggers and functions you should be able to understand the same.
An4:
Data base testing generally deals with the follwoing:
ui
a)Checking the integrity of UI data with Database Data
b)Checking whether any junk data is displaying in UI other than that stored in Database
c)Checking execution of stored procedures with the input values taken from the database tables
d)Checking the Data Migration .
de
e)Execution of jobs if any
Read More Answers.
Question # 12
lin
What is data driven test?
Answer:-
An1:
e
Data driven test is used to test the multinumbers of data in a data-table, using this we can easy to replace the paramerers in the same time from deferent locations.
e.g: using .xsl sheets.
An2:
Re-execution of our test with different input values is called Re-testing. In validate our Project calculations, test engineer follows retesting manner through
.C
automation tool.Re-teting is also called DataDriven Test.There are 4 types of datadriven tests.
1) Dynamic Input submissiion ( key driven test) : Sometines a test engineer conducts retesting with different input values to validate the calculation through dynamic
submission.For this input submission, test engineer use this function in TSL scriipt-- create_input_dialog ("label");
2) Data Driven Files Through FLAT FILES ( .txt,.doc) : Sometimes testengineer conducts re-testing depends on flat file contents. He collect these files from Old
Version databases or from customer side.
O
3)Data Driven Tests From FRONTEND GREAVES : Some times a test engineer create automation scripts depends on frontend objects values such as (a) list (b)
menu (c) table (d) data window (5) ocx etc.,
4)Data Driven Tests From EXCEL SHEET : sometimes a testengineer follows this type of data driven test to execute their script for multiple inputs. These multiple
M
inputs consists in excel sheet columns. We have to collect this testdata from backend tables .
Read More Answers.
Question # 13
How to Test Database Procedures and Triggers?
Answer:-
Before testing Data Base Procedures and Triggers, Tester should know that what is the Input and out put of the procedures/Triggers, Then execute Procedures
and Triggers, if you get answer that Test Case will be pass other wise fail.
These requirements should get from DEVELOPER
Read More Answers.
Question # 14
How to test a DTS package created for data insert update and delete? What should be considered in the above case while testing it?W hat conditions are to be checked
if the data is inserted, updated or deleted using a text files?
Answer:-
Data Integrity checks should be performed. IF the database schema is 3rd normal form, then that should be maintained. Check to see if any of the constraints have
thrown an error. The most important command will have to be the DELETE command. That is where things can go really wrong.
Most of all, maintain a backup of the previous database.
Read More Answers.
Question # 15
How do you test whether a database in updated when information is entered in the front end?
Answer:-
It depend on your application interface..
1. If your application provides view functionality for the entered data, then you can verify that from front end only. Most of the time Black box test engineers verify
Question # 16
What steps does a tester take in testing Stored Procedures?
G
Answer:-
First the tester should to go through the requirement, as to why the particular stored procedure is written for.
lo
Then check whether all the required indexes, joins, updates, deletions are correct comparing with the tables mentions in the Stored Procedure. And also he has to
ensure whether the Stored Procedure follows the standard format like comments, updated by, etc.
Then check the procedure calling name, calling parameters, and expected reponses for different sets of input parameters.
Then run the procedure yourself with database client programs like TOAD, or mysql, or Query Analyzer
ba
Rerun the procedure with different parameters, and check results against expected values.
Finally, automate the tests with WinRunner.
Read More Answers.
lG
Question # 17
How to use SQL queries in WinRunner/QTP?
Answer:-
in QTP
ui
using output databse check point and database check point ,
select SQL manual queries option
and enter the "select" queris to retrive data in the database and compare the expected and actual
de
Read More Answers.
Question # 18
What SQL statements have you used in Database Testing?
lin
Answer:-
The most important statement for database testing is the SELECT statement, which returns data rows from one or multiple tables that satisfies a given set of criteria.
You may need to use other DML (Data Manipulation Language) statements like INSERT, UPDATE and DELTE to manage your test data.
You may also need to use DDL (Data Definition Language) statements like CREATE TABLE, ALTER TABLE, and DROP TABLE to manage your test tables.
e
You may also need to some other commands to view table structures, column definitions, indexes, constraints and store procedures.
Read More Answers.
.C
Question # 19
What is way of writing testcases for database testing?
Answer:-
O
An1:
You have to do the following for writing the database testcases.
1. First of all you have to understand the functional requirement of the application throughly.
M
2. Then you have to find out the back end tables used, joined used between the tables, cursors used (if any), tiggers used(if any), stored procedures used (if any), input
parmeter used and output parameters used for developing that requirement.
3. After knowing all these things you have to write the testcase with different input values for checking all the paths of SP.
One thing writing testcases for backend testing not like functinal testing. You have to use white box testing techniques.
An2:
To write testcase for database its just like functional testing.
1.Objective:Write the objective that you would like to test. eg: To check the shipment that i load thru xml is getting inserted for perticular customer.
2.Write the method of input or action that you do. eg:Load an xml with all data which can be added to a customer.
3.Expected :Input should be viewd in database. eg: The shipment should be loaded sucessfully for that customer,also it should be seen in application.4.You can write
ssuch type of testcases for any functionality like update,delete etc.
An3:
At first we need to go through the documents provided.
Need to know what tables, stored procedures are mentioned in the doc.
Then test the functionality of the application.
Simultaneously, start writing the DB testcases.. with the queries you have used at the backend while testing, the tables and stored procedures you have used in order
to get the desired results. Trigers that were fired. Based on the stored procedure we can know the functionality for a specific peice of the application. So that we can
write queries related to that. From that we make DB testcases also.
Read More Answers.
Question # 20
What we normally check for the Database Testing?
Answer:-
An1:
In DB testing we need to check for,
1. The field size validation
2. Check constraints.
3. Indexes are done or not (for performance related issues)
4. Stored procedures
5. The field size defined in the application is matching with that in the db.
An2:
Database testing involves some indepth knowledge of the given application and requires more defined plan of approach to test the data. Key issues include :
1) data Integrity
2) data validity
3) data manipulation and updates.
Tester must be aware of the database design concepts and implementation rules
Read More Answers.
G
lo
ba
lG
ui
de
lin
e
.C
O
M
Global Guideline is a platform to develop your own skills with thousands of job interview questions
and web tutorials for fresher's and experienced candidates. These interview questions and web
tutorials will help you strengthen your technical skills, prepare for the interviews and quickly revise
the concepts. Global Guideline invite you to unlock your potentials with thousands of Interview
Questions with Answers or begin a tutorial right away, such as HTML, XML, XSLT, Cascading
Style Sheet (CSS), Search Engine Optimization (SEO), JavaScript, Structure Query Language (SQL),
Database Articles, Web Hosting Guide and much more. Learn the most common technologies
Interview Questions and Answers. We will help you to explore the resources of the World Wide Web
and develop your own skills from the basics to the advanced. Here you will learn anything quite
easily and you will really enjoy while learning. Global Guideline will help you to become a
professional and Expert, well prepared for the future.
* If any answer or question is incorrect or inappropriate or you have correct answer or you found any
problem in this document then don't hesitate feel free and e-mail us we will fix it.
You can follow us on FaceBook for latest Jobs, Updates and other interviews material.
www.facebook.com/InterviewQuestionsAnswers
Best Of Luck.