Information Communication Technology  ·  Level 5
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 key elements needed to test a computerized database effectively.
  • Organize your test plan to cover every important aspect of the database system.
  • Communicate your test plan in a way that is easy for others to understand and follow.

Mastering this skill will help you ensure that computerized databases work correctly and meet user needs, making you a valuable asset in any tech team!

Testing computerized database systems is a critical phase in the development and deployment of reliable information management solutions for ICT technicians in Kenya. Ensuring that databases operate correctly and efficiently supports data integrity, security, and availability across diverse sectors such as banking, healthcare, and county government services. Proper testing identifies potential issues early, reducing costly errors and downtime in environments like SACCOs or hospitals where data accuracy is paramount. This chapter explores how to develop effective test plans and prepare appropriate test data tailored to computerized databases.

4.1 Test plan development

Developing a comprehensive test plan is essential for systematic database testing. In Kenyan ICT environments, where databases support mission-critical operations such as NHIF claims processing or school admissions at universities, a well-structured test plan ensures that all database functionalities are verified against requirements. The plan guides testers through objectives, scope, resources, and schedules, fostering coordinated efforts and accountability.

4.1.1 Importance of database testing

Database testing verifies that the database performs as intended, ensuring data accuracy, consistency, and security. In Kenya's financial institutions like Equity Bank, faulty database operations could lead to incorrect account balances or transaction errors, damaging customer trust and regulatory compliance.

Data Integrity Assurance

Maintaining data integrity is vital; testing confirms that data stored and retrieved remain unaltered and consistent. For example, in county government records, accurate citizen data supports service delivery and planning.

Performance Validation

Testing evaluates database response times and throughput under expected workloads. At a busy hospital like Kenyatta National Hospital, slow database queries could delay patient care decisions.

Security Verification

Database testing uncovers vulnerabilities that could expose sensitive information. For instance, ensuring that a SACCO’s member data is protected against unauthorized access is crucial for compliance with Kenya’s Data Protection Act.

Error Detection and Correction

Systematic testing identifies bugs or logical errors before deployment, reducing system failures in operational settings such as retail business inventory systems.

Compliance with Business Rules

Testing confirms that database constraints and triggers enforce business rules correctly, such as loan eligibility criteria in microfinance databases.

4.1.2 Types of database testing

Database testing encompasses multiple types, each addressing distinct aspects of database functionality and performance. Kenyan ICT technicians must understand these variations to apply the appropriate testing strategy for contexts ranging from hotel booking systems to agricultural cooperative records.

Functional Testing

This verifies that database operations such as CRUD (Create, Read, Update, Delete) actions work correctly. For example, in a university admissions database, functional testing ensures that student records can be accurately added or modified.

Structural Testing

Also known as white-box testing, this examines internal database structures like tables, indexes, and triggers to verify design correctness. A county government land registry database requires structural testing to ensure relational integrity.

Performance Testing

Performance testing measures how the database handles load, concurrency, and response times. For instance, a bank’s transaction database must be tested to sustain peak daily operations without lag.

Security Testing

This focuses on access controls, encryption, and vulnerability assessment to prevent unauthorized data breaches. Testing a health insurance database for role-based access ensures sensitive patient data is shielded from unauthorized users.

Migration Testing

When upgrading or migrating databases, testing verifies data consistency and application compatibility post-migration. For example, when a retail chain moves its inventory database to a cloud platform, migration testing ensures no data loss or corruption.

Backup and Recovery Testing

Testing backup procedures and recovery mechanisms guarantees data can be restored after failures. County government offices rely on these tests to maintain continuity of citizen data services during system outages.

4.1.3 Components of a test plan for databases

A test plan must be thorough to cover all necessary facets of database testing. Kenyan ICT technicians preparing plans for corporate or public sector databases need to address these components to ensure structured and effective testing.

Objectives and Scope

Clearly define what the testing aims to achieve and which database components are included, such as tables, stored procedures, or triggers.

Test Strategy and Approach

Outline the testing methods to be employed, whether manual or automated, and specify types of testing such as functional or performance.

Test Environment Setup

Detail hardware, software, network configurations, and tools required to simulate real-world conditions, for example replicating a hospital’s network for realistic load testing.

Test Schedule and Milestones

Specify timelines for test execution phases, deadlines for defect resolution, and review points to coordinate team efforts.

Roles and Responsibilities

Assign tasks to team members, clarifying who conducts tests, logs defects, and approves deliverables, ensuring accountability in institutions like banks or universities.

Risk Assessment and Mitigation

Identify potential risks such as data corruption or downtime during testing and plan mitigation strategies to minimize impact.

Test Deliverables

List expected outputs like test cases, defect logs, and summary reports to track progress and outcomes.

4.1.4 Test case design for database testing

Designing effective test cases is fundamental for thorough database validation. Each test case must specify inputs, expected outcomes, and conditions to cover diverse scenarios encountered in Kenyan ICT deployments.

Defining Test Inputs

Identify data values and database states to be used in tests, such as valid and invalid customer records in a SACCO’s database.

Specifying Expected Results

Document precise outcomes for each test to enable objective pass/fail evaluation, for example, confirming that a query returns the correct loan balance.

Covering Boundary Conditions

Include edge cases like maximum field lengths or zero records to assess robustness, critical in banking systems handling large datasets.

Incorporating Negative Testing

Design tests to input invalid or malicious data to verify error handling and security measures, such as SQL injection attempts in online retail databases.

Mapping Test Cases to Requirements

Ensure each test case traces back to specific functional or non-functional requirements, which helps in regulatory audits of government databases.

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 vital step to simulate real-world conditions and validate database behavior accurately. Kenyan ICT technicians must generate representative and diverse datasets to reflect operational scenarios across sectors like health, education,…

🔒4.3 Perform database testing using test data

Database testing is a critical phase in the development of computerized database systems, ensuring that data storage, retrieval, and manipulation operate correctly and reliably. For ICT technicians in Kenya, particularly those supporting institutions such as c…

🔒4.4 Generate test report

Generating a test report formalizes the outcomes of database testing, providing stakeholders with clear documentation of the testing process, findings, and recommendations. For ICT technicians working with institutions such as universities or retail businesses…

Chapter Summary

This chapter explored the development of a comprehensive test plan essential for effective database testing, highlighting its significance in ensuring data integrity and system reliability. Various types of database testing were examined, including structural testing that verifies database schema, functional testing to assess operations, stored procedure testing for database logic, and non-functional testing focusing on performance and security aspects. The process of preparing appropriate test data was detailed as a critical step to simulate real-world scenarios accurately. Performing database testing involved executing tests with the prepared data and validating the results to confirm that the database behaves as expected. The chapter also emphasized the role of test reports in documenting findings, facilitating communication among stakeholders, and guiding corrective actions. Finally, guidance on preparing clear and detailed test reports was provided to ensure transparency and support decision-making in database management.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Define the purpose of developing a test plan in database testing. (3 marks)
  2. Identify and explain two reasons why database testing is important in a banking system. (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 for ensuring data integrity in a SACCO’s member management system. (4 marks)
  2. Differentiate between structural database testing and functional database testing in the context of an online banking system. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Develop a detailed test plan for a computerized database system

Information Communication Technology · Level 5
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 comprehensive test plan document for the customer management database system including objectives, scope, test types, test data, and procedures.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with Microsoft Access installedTest plan template document
Pen and writing padSample database schema documentation
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with Microsoft Access installed1 Pc per Candidate
2Test plan template document1 Pc per Candidate
3Sample database schema documentation1 Pc per Candidate
4Pen and writing pad1 set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Prepare test plan objectives and scope
Identified clear test objectives relevant to the database system
(Award 3 marks for clear and relevant objectives; 0 otherwise)
3
Defined the scope of testing accurately covering required database components
(Award 3 marks for accurate and adequate scope; 0 otherwise)
3
Sub-Total6
TASK 2: Define test types and prepare test data
Listed appropriate test types (e.g., functional, usability, performance)
(Award 3 marks for listing relevant test types; 0 otherwise)
3
Prepared valid test data examples covering various scenarios
(Award 3 marks for comprehensive and relevant test data; 0 otherwise)
3
Sub-Total6
TASK 3: Outline test procedures and documentation
Described step-by-step test procedures logically and clearly
(Award 4 marks for clear, logical procedures; 0 otherwise)
4
Included methods for error identification and reporting
(Award 2 marks for correctly describing error handling; 0 otherwise)
2
Sub-Total6
PRODUCT CHECKLIST
Complete test plan document covering objectives, scope, test types, data, and procedures
(Award 12 marks for completeness and clarity; partial marks for omissions)
12
Sub-Total12
GRAND TOTAL30
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Explain the Importance of Database Testing

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

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Prepare a brief written explanation (not more than 300 words) on the importance of database testing in computerized database systems.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with MS Access installedSample database file (.accdb)
Writing materials (pen, notebook)
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with MS Access installed1 Pc per Candidate
2Sample database file (.accdb)1 Pc per Candidate
3Writing materials (pen, notebook)1 Set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Explain Importance of Database Testing
Accessed and opened the sample database file using MS Access
(Award 2 marks for opening and accessing the database file correctly)
2
Used appropriate test data or referenced test scenarios during explanation
(Award 4 marks for demonstrating understanding of test data use in explanation)
4
Prepared a clear and concise written explanation on the importance of database testing
(Award 6 marks for clarity, relevance, and completeness of explanation)
6
Sub-Total12
PRODUCT CHECKLIST
Written explanation covers key points such as error detection, data integrity, performance validation, and security
(Award 8 marks if the explanation includes main reasons why database testing is critical)
8
Explanation is well-structured, free of spelling and grammatical errors
(Award 4 marks for proper structure and language use)
4
Sub-Total12
GRAND TOTAL24
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

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

Create a free account
🔒Identify and Categorize Types of Database TestingPractical 3
🔒Perform Structural Testing on a Computerized Database SchemaPractical 4
🔒Conduct Functional Testing on a Student Enrollment DatabasePractical 5
🔒Test Stored Procedures in a Computerized DatabasePractical 6
🔒Carry out non-functional testing of a computerized databasePractical 7
🔒Prepare Test Data Sets for Computerized Database TestingPractical 8
🔒Database Testing Using Test DataPractical 9
🔒Validate Database Test Results for a Customer Orders DatabasePractical 10
🔒Generate a Comprehensive Database Test ReportPractical 11
🔒Explain the Importance of Test Reports in Database TestingPractical 12
🔒Prepare Final Test Report Document for a Computerized Database SystemPractical 13
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

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

17 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 key elements needed to test a computerized database effectively.
  • Organize your test plan to cover every important aspect of the database system.
  • Communicate your test plan in a way that is easy for others to understand and follow.

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.