Database Testing Flashcards

1
Q

Long-term data storage

A

What’s database where data is stored in tables in the forms of rows and columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Parts of a database

A

Data and Schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What’s data

A

Data is information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s a table

A

Table is a set of rows and rows have columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Object and Properties

A

Another way of looking at rows and columns where the row is an object and column is a property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What’s schema

A

Data structures - Tables, Rows, Columns, Datatype

Data structure in the Database is called schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the other parts of schema other than tables, rows and columns

A

Functions, Triggers, Views and Procedures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s a view

A

Section of a database - show the data from a single table or multiple tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What’s a stored procedure

A

small program contain SQL queries - can accept inputs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a function?

A

Function just has input parameter. Stored Procedure has both input and output parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a trigger?

A

Small program that executes automatically when you perform an operation on a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do you do in schema testing

A

check the column names and their datatypes and the number of characters it can take in and check the relationship between the tables (using the schema diagram)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how do you test a view in a database?

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how do you test stored procedure?

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how do you test a function?

A

Getdate (), Square ()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When do you perform the schema testing?

A

Schema testing is done when the database for first designed and created

17
Q

Where the major part of effort will go into testing the database. Schema or Data?

A

Data

18
Q

What we test in a table?

A

Check whether the data is captured correctly with respect to Source (xml file or another db or captured in form)

19
Q

Give me an example how do you write a Group By query?

A

TBD

20
Q

Give me an example of nested SQL query

A

TBD

21
Q

Database Testing Challenges

A

Large Size of the DB
Solution: Important and prioritize the data to be tested in important tables.

Frequent Changes to the DB schema

22
Q

What’s your database testing approach?

A

a) Gather the database testing requirements
b) Create test scenarios against each of those requirement. Test Schema and Data
c) Negative testing - Try inserting invalid data
d) Update existing valid data into invalid data
f) Try and delete a data where it shouldnt be deleted
g) Security testing in DB testing which involves privileges

23
Q

DB test plan components

A
DB name and application
Scope (in scope/out of scope)
Test approach (what are the test you are going to perform)
Test Environment, Server, Tool
Task and Schedule
Entry and Exit Criteria for testing
Defect Reporting
Risks/Mitigation
24
Q

What’s data quality or data issues

A

a) Incomplete or missing data
b) Inaccuracy
c) Inconsistency (for e.g. currency in dollar and euro)
d) Duplication or Redundancy
e) Non standard format data (for e.g. number of places after the decimal point)

25
Q

Data Profiling - Explore data, identify issues and summarize data
Data Cleansing - fix data issues
Data Monitoring - maintain data quality

A

Data Quality Assurance Process