Information Communication Technology  ·  Level 6
Computerized Database Systems
Chapter 4: Test computerized database
📚 4 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • Develop a clear and complete test plan that matches user requirements.
  • Identify all necessary steps to test a computerized database system effectively.
  • Organize your test plan to cover every important function of the database.
  • Communicate your test plan in a way that is easy for others to understand.

Mastering this skill helps ensure that database systems work correctly and meet users' needs, making you a valuable asset in the tech field.

Test computerized database systems are essential for ICT Technicians in Kenya who maintain and develop reliable data management solutions across industries such as banking, healthcare, and government services. Rigorous testing ensures databases perform accurately, securely, and efficiently to support critical operations like customer transactions, patient records, and financial reporting. This chapter focuses on developing effective test plans and preparing appropriate test data to validate database systems, which are foundational skills for ICT Technicians tasked with deploying and maintaining computerized databases.

4.1 Test plan development

Developing a comprehensive test plan is a fundamental step in verifying that a computerized database system meets specified requirements and functions correctly under various conditions. In Kenya’s dynamic ICT sector, where institutions such as county governments and SACCOs rely heavily on data integrity and system availability, a well-structured test plan prevents costly failures and data loss. Test plans guide the systematic execution of tests, helping technicians identify defects early and ensuring compliance with organizational standards.

4.1.1 Importance of database testing

Database testing is critical for confirming the accuracy, security, and performance of data-centric applications. For ICT Technicians, understanding its importance is key to maintaining trust in computerized systems.

Ensuring data integrity and accuracy

Testing verifies that data stored in the database remains accurate and consistent after operations such as insertions, updates, or deletions. For example, a hospital’s patient management system must reflect correct patient details after updates to avoid medical errors.

Preventing security vulnerabilities

Database testing helps identify weaknesses that could expose sensitive information, such as customer details in a banking system. This is vital for compliance with Kenya’s Data Protection Act, safeguarding against unauthorized access.

Validating database performance

Performance testing ensures that queries and transactions execute within acceptable timeframes, which is crucial for high-traffic environments like university registration portals where delays can disrupt services.

Detecting logical and structural errors

Testing uncovers issues in database design, such as incorrect relationships or constraints, which could lead to data anomalies. County government offices require reliable data structures to support decision-making processes.

Supporting compliance with regulations

Regular database testing ensures that systems adhere to industry standards and legal requirements, protecting organizations like insurance firms from penalties due to non-compliance.

4.1.2 Types of database testing

Database testing encompasses various types, each targeting different aspects of the database to ensure comprehensive validation. Kenyan ICT Technicians must apply these methods appropriately depending on project scope and sector requirements.

Functional testing

This type validates that database operations such as CRUD (Create, Read, Update, Delete) perform correctly according to business rules. For instance, a retail business’s inventory system must accurately reflect stock changes after sales.

Performance testing

Performance testing measures the speed and responsiveness of database queries and transactions under different load conditions. SACCOs handling thousands of member transactions daily rely on this testing to maintain smooth operations.

Security testing

Security testing assesses the database’s resistance to threats like SQL injection and unauthorized data access. In government tax systems like KRA, this protects sensitive taxpayer information from breaches.

Backup and recovery testing

This testing verifies that backup procedures work correctly and that data can be restored after failures. Hospitals must ensure that electronic health records can be recovered promptly to maintain patient care continuity.

Migration testing

Migration testing checks data integrity and system functionality after moving data between database environments or versions. Universities upgrading their student information systems require this to avoid data loss or corruption.

4.1.3 Components of a database test plan

A database test plan outlines the scope, approach, resources, and schedule for testing activities. For ICT Technicians in Kenyan organizations, a detailed test plan ensures organized and efficient validation.

Scope definition

Clearly identifying the database features and functions to be tested prevents scope creep and focuses resources on critical areas, such as loan processing modules in microfinance institutions.

Test objectives

Setting precise objectives, such as verifying data accuracy or measuring query performance, guides the selection of test cases and success criteria.

Test environment setup

Specifying hardware, software, network configurations, and test data requirements ensures that the test environment replicates production conditions, which is essential for county government financial databases.

Roles and responsibilities

Assigning tasks to team members clarifies accountability and facilitates coordination, important in collaborative settings like university IT departments.

Test schedule and milestones

A timeline with key milestones helps manage progress and resource allocation, ensuring that testing aligns with project delivery deadlines in fast-paced retail enterprises.

4.1.4 Steps to develop a database test plan

Creating an effective test plan involves a series of methodical steps that ICT Technicians must follow to ensure thorough testing coverage and traceability.

  1. Requirement analysis: Review database specifications and business requirements to identify testable features. For example, analyzing loan approval workflows in a SACCO database.

  2. Define test objectives: Establish what the testing aims to achieve, such as validating referential integrity or response times.

  3. Identify test types: Select appropriate testing types based on objectives, like functional and security testing for a hospital electronic records system.

  4. Design test cases: Develop detailed test scenarios covering expected and edge cases, such as inserting invalid data to verify validation rules.

  5. Prepare test environment and data: Set up hardware and software configurations matching production and create representative test data sets.

  6. Assign roles and schedule: Allocate responsibilities and define a timeline with checkpoints to monitor testing progress.

  7. Review and approve plan: Submit the test plan for stakeholder review to ensure completeness and alignment with project goals.

Practice Questions

  1. Explain five reasons why database testing is important for ICT Technicians working in Kenyan public service institutions. (10 marks)

  2. Describe four types of database testing and provide an example use case for each within the Kenyan financial sector. (12 marks)

  3. Outline six essential components of a database test plan and explain their significance in managing testing activities. (12 marks)

  4. List and explain the seven steps involved in developing a database test plan for a university student information system. (14 marks)

The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒4.2 Prepare test data

Test data preparation is a critical phase in database testing, as the quality and relevance of test data directly affect the accuracy and reliability of test results. Kenyan ICT Technicians must generate or curate data that closely resembles real-world scenari…

🔒4.3 Perform database testing using test data

Database testing is a crucial phase for ICT technicians in Kenya, especially when deploying systems in environments like county government offices or banking institutions where data accuracy and integrity are paramount. Testing with realistic test data helps v…

🔒4.4 Generate test report

Reporting on database testing outcomes is vital for ICT technicians to communicate the system's readiness and highlight issues to stakeholders such as university IT departments or county government ICT units. A well-structured test report informs decision-maki…

Chapter Summary

This chapter focused on the systematic process of testing computerized database systems, beginning with the development of a comprehensive test plan that outlines the scope and objectives of database testing. The importance of database testing was emphasized as a crucial step to ensure data integrity, performance, and security. Various types of database testing were explored, including structural testing which examines the database schema, functional testing that verifies database operations, stored procedure testing to validate embedded logic, and non-functional testing addressing performance and scalability. The preparation of test data was highlighted as essential for simulating real-world scenarios and ensuring thorough evaluation. The chapter then covered how to perform database testing using the prepared test data, including the critical task of validating database results to confirm accuracy and reliability. Finally, the generation of test reports was discussed, underscoring their role in documenting findings and supporting decision-making, along with guidelines on how to prepare clear and informative test reports.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. What is the primary purpose of developing a test plan for a computerized database system? (2 marks)
  2. Identify and briefly describe two types of database testing. (4 marks)
🔒20 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Explain why database testing is critical when deploying a new customer management system for a SACCO in Nairobi. (4 marks)
  2. Differentiate between structural database testing and functional database testing with examples relevant to a university’s student records system. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Development of a Test Plan for Computerized Database Systems

Information Communication Technology · Level 6
Computerized Database Systems
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Develop a detailed test plan document for the computerized database system covering test objectives, scope, test cases, resources, and schedule.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with database testing software installedTest plan template document
Test plan template documentSample database schema documentation
Sample database schema documentationTest case checklist
Test case checklist
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with database testing software installed1 Pc per Candidate
2Test plan template document1 Pc per Candidate
3Sample database schema documentation1 Pc per Candidate
4Test case checklist1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Test Plan Development
Identified and stated clear test objectives
(Award 5 marks for clear, measurable test objectives)
5
Defined the scope of testing including inclusions and exclusions
(Award 5 marks for comprehensive and relevant scope definition)
5
Developed detailed test cases covering functional and non-functional requirements
(Award up to 10 marks for completeness and relevance of test cases)
10
Specified required resources including hardware, software, and personnel
(Award 5 marks for correctly identifying all necessary resources)
5
Prepared a realistic testing schedule with milestones and deadlines
(Award 5 marks for a clear, feasible schedule)
5
Saved and formatted the test plan document professionally
(Award 5 marks for proper document formatting and saving)
5
Sub-Total35
PRODUCT CHECKLIST
Test plan document completeness and clarity
(Award 10 marks for a well-structured, error-free, and comprehensive test plan)
10
Sub-Total10
GRAND TOTAL45
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Database Testing and Validation Task

Information Communication Technology · Level 6
Computerized Database Systems
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Create and test a customer database with 2 tables, each containing at least 5 fields, and validate data integrity using queries and constraints.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Desktop Computer with Database Management System (DBMS) softwareTest Data Set (customer records)
USB Flash Drive
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Desktop Computer with Database Management System (DBMS) software1 Pc per Candidate
2Test Data Set (customer records)1 Set per Candidate
3USB Flash Drive1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Database Creation and Setup
Launched DBMS software and created a new database named 'CustomerDB'
(Award 1 mark for launching and naming database correctly)
1
Created two tables: Customers and Orders with appropriate field names
(Award 0.5 mark for each correct field name per table)
6
Assigned correct data types to each field in both tables
(Award 0.5 mark per field for correct data type)
6
Defined primary key constraints on appropriate fields
(Award 1 mark per table for correct primary key)
2
Defined foreign key constraint in Orders table referencing Customers table
(Award 2 marks for correct foreign key constraint)
2
Sub-Total17
TASK 2: Data Population and Testing
Populated Customers and Orders tables with provided test data (minimum 10 records total)
(Award 1 mark per 5 correctly entered records)
6
Created query to display all customers with their orders
(Award 3 marks for correct join query)
3
Created query to list customers from Nairobi only
(Award 3 marks for correct filtering query)
3
Created query to display orders above Ksh 10,000
(Award 3 marks for correct conditional query)
3
Tested constraints by attempting to insert invalid data and prevented insertion
(Award 4 marks for demonstrating constraint enforcement)
4
Sub-Total19
TASK 3: Database Export and Documentation
Exported the database file and saved it on the USB flash drive
(Award 3 marks for successful export and correct file naming)
3
Prepared a brief report summarizing the importance of database testing
(Award 2 marks for each valid point on data integrity, error detection, and performance)
6
Sub-Total9
PRODUCT CHECKLIST
Database contains two correctly structured tables with accurate fields and constraints
(Award 6 marks for complete and accurate table design)
6
Queries run correctly and return expected results
(Award 6 marks for correct query outputs)
6
Database exported correctly and report is clear and concise
(Award 4 marks for proper export and meaningful report)
4
Sub-Total16
GRAND TOTAL61
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒Test Computerized Database Using Various Types of Database TestingPractical 3
🔒Structural Database Testing for Student Enrollment SystemPractical 4
🔒Functional Testing of Computerized Database SystemPractical 5
🔒Create and Test a Stored Procedure to Retrieve Student DetailsPractical 6
🔒Perform Non-Functional Testing on a Student Database ApplicationPractical 7
🔒Prepare test data for a computerized student databasePractical 8
🔒Perform database testing using test data on a student enrollment systemPractical 9
🔒Validate database results using queries in a student enrollment databasePractical 10
🔒Generate a computerized database test reportPractical 11
🔒Prepare a Test Report for a Computerized Database SystemPractical 12
🔒Prepare a computerized database test reportPractical 13
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 17 questions Start quiz ▾
0%
0 / 2
🔒

15 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • Develop a clear and complete test plan that matches user requirements.
  • Identify all necessary steps to test a computerized database system effectively.
  • Organize your test plan to cover every important function of the database.
  • Communicate your test plan in a way that is easy for others to understand.

Tick each one you can genuinely do.

So, are you there yet?

You're competent when you can confidently do 50% or more of what this chapter promised.

Sign in to record how you're doing.