0% found this document useful (0 votes)
17 views

Report

This document summarizes database testing done on a DVD rental database. The following types of tests were performed: 1) Data validity testing to validate data accuracy, completeness, and consistency through CRUD operations and checking relationships between tables. 2) Performance testing using JMeter to evaluate database response under different loads and simultaneous users. 3) Security testing using SQLMap and PgAdmin to ensure only authorized access and protection from vulnerabilities. 4) Data migration testing to verify complete, intact data transfer between systems using backups and restores between PostgreSQL and PgAdmin. The database passed all tests, demonstrating responsiveness, security, and ability to successfully backup and migrate data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Report

This document summarizes database testing done on a DVD rental database. The following types of tests were performed: 1) Data validity testing to validate data accuracy, completeness, and consistency through CRUD operations and checking relationships between tables. 2) Performance testing using JMeter to evaluate database response under different loads and simultaneous users. 3) Security testing using SQLMap and PgAdmin to ensure only authorized access and protection from vulnerabilities. 4) Data migration testing to verify complete, intact data transfer between systems using backups and restores between PostgreSQL and PgAdmin. The database passed all tests, demonstrating responsiveness, security, and ability to successfully backup and migrate data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Report on – Database Testing In The Context Of Software Quality Assurance

Done by: Zaynullina Aziza, Zhanbayev Nurkhan.


Supervised by: Tleubayeva Arailym.
Introduction.
Database testing is a Database testing is a process of evaluating and validating the
functionality, performance, and integrity of a database system. It involves testing
the database structure, data, and interactions to ensure that they meet the desired
requirements. Here are types of database testing that we covered in here:
- Data Validity Testing
- Performance Testing
- Security Testing
- Backup and Recovery Testing
- Data Migration Testing
Database testing requires a combination of manual and automated testing
techniques, DBMS tools and knowledge in queries.
This project is designed to implement testing on the database sample ‘dvdrent’. It
consists of 15 tables: actor, address, category, city, country, customer, film,
film_actor, film_category, inventory, language, payment, rental, staff, store.

Setup.
To perform the database testing we used such tools as: JMeter, PgAdmin,
PostgreSQL, Jira, DBUnit.
PostgreSQL is a powerful and open-source relational database management system
(RDBMS) known for its robustness, scalability, and extensibility. It offers a wide
range of features and capabilities that make it suitable for various types of
applications and use cases.
PgAdmin is a popular open-source administration and development platform for
PostgreSQL. It provides a graphical user interface (GUI) that allows you to
manage and interact with PostgreSQL databases.
JMeter is an open-source tool developed by the Apache Software Foundation for
load testing, performance testing, and functional testing of applications. It allows
you to simulate heavy loads on web applications, APIs, databases, and other
server-based applications to measure their performance under different scenarios.
DbUnit is a popular Java library used for database unit testing. It provides
mechanisms for managing and interacting with test data in a database during the
testing process. DbUnit allows you to set up and tear down test data, verify
expected results, and maintain the integrity of the database for each test run.
SQLMap is an open-source penetration testing tool used for detecting and
exploiting SQL injection vulnerabilities in web applications. It automates the
process of identifying SQL injection vulnerabilities and extracting data from
databases
Jira is commonly used for test management and tracking testing activities. It offers
various features and capabilities that support testing processes.
Zephyr for Jira is a popular test management plugin that integrates with Jira, a
project management and issue tracking tool. Zephyr for Jira provides robust test
management capabilities, allowing teams to create, execute, and track test cases
within the Jira environment.

Data Validity Test.


Objective: Validate accuracy, completeness and consistency of data in database.
- CRUD Operations – to ensure that data is able to be manipulated.
Create:

Read.

Update.
- Check on Null values:

- Check the relationship between tables

Performance Testing.
JMeter Apache is used to perform the performance testing. The objective is to
evaluate the response of database under specific conditions, or under various loads.
First test case was focused on checking if the database will still be responsive
under the condition that 10 users connecting to the database simultaneously. We
simulate the login via Jmeter.
Security testing.
Security testing is a crucial aspect of software testing that focuses on identifying
vulnerabilities, weaknesses, and potential risks in an application's security controls.
Objective: Ensure that the system is adequately protected against unauthorized
access, data breaches, and other security threats.
Tools: SQLMap, PgAdmin.
Test Cases:
- Verify that only authorized users have access to specific database objects
(tables, views, functions, etc.).
- Verify that privileged roles (e.g., database administrators) have appropriate
permissions to manage the database objects.
- Verify that the database is protected against common security
vulnerabilities, such as SQL injection and cross-site scripting (XSS).

Data Migration Testing.


Objective: Data migration testing is performed to ensure the successful and
accurate transfer of data from one system or database to another during a migration
process. It involves verifying the completeness, integrity, and consistency of data
after migration.
Tool: PgAdmin, PostgreSQL
Test Cases:
- Perform Successful Backup
- Restore Backup

- Verify the restored backup database do not have losses.

Conclusion.

We performed 4 types of database testings: Data Validity, Security, Data


Migration, Performance. Firstly, we created test plans and test cases in Jira. Using
Zephyr for Jira it made up possible to manage the testing process and write queries
and test scripts in advance. Using tool like Apache Junit we performed the
performance testing for our database dvdrent. It showed the positive expected
results. Using SQLMap it was possible to conduct security testing. We test if
database is easily manipulated and can be successfully backup and restore again.
Overall our database passed all tests and is responsible and well-structured.

You might also like