ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Software Testing & Quality Assurance
    COMP4125
    Progress0 / 9 topics
    Topics
    1. Testing techniques2. Black Box testing techniques3. White Box testing techniques4. Grey Box testing techniques5. Quality Assurance planning and execution6. Automated testing: constructing a framework7. Scripting techniques for automated testing8. Generating test data9. Generating test reports
    COMP4125›Generating test data
    Software Testing & Quality AssuranceTopic 8 of 9

    Generating test data

    3 minread
    507words
    Beginnerlevel

    📘 GENERATING TEST DATA


    ✅ 1. What is Test Data?

    Definition: Test data is the input data used to test software applications.

    👉 Simple meaning: It is the data you enter into a system to check whether it works correctly.


    📊 Example:

    For a login system:

    • Username: user1
    • Password: 12345

    🎯 Key Idea:

    • Good test data = better testing
    • Helps find more bugs

    🟢 2. WHAT IS TEST DATA GENERATION?

    📌 Definition:

    Test data generation is the process of creating data to use in test cases.


    🎯 Purpose:

    • Validate system behavior
    • Check different scenarios
    • Ensure full test coverage

    🔑 3. TYPES OF TEST DATA


    🔵 1. VALID DATA

    • Correct input
    • Expected to work

    📊 Example:

    • Age = 25 (valid)

    🔴 2. INVALID DATA

    • Incorrect input
    • Used to check error handling

    📊 Example:

    • Age = -5

    🟡 3. BOUNDARY DATA

    • Values at limits

    📊 Example:

    • Range: 1–100 → Test: 1, 100

    👉 🔥 Frequently asked!


    🟣 4. EDGE CASE DATA

    • Extreme or unusual values

    📊 Example:

    • Empty input
    • Very large numbers

    🧪 4. TECHNIQUES FOR GENERATING TEST DATA


    🟢 1. MANUAL TEST DATA GENERATION

    📌 Definition:

    Tester manually creates data.


    📊 Example:

    Typing values like:

    • Username = "Ali"

    🎯 Advantages:

    • Simple
    • Flexible

    ❌ Disadvantages:

    • Time-consuming
    • Error-prone

    🔵 2. AUTOMATED TEST DATA GENERATION

    📌 Definition:

    Tools automatically generate test data.


    📊 Example:

    • Random number generator
    • Scripts

    🎯 Advantages:

    • Fast
    • Large data sets

    ❌ Disadvantages:

    • Needs tools

    🟡 3. RANDOM DATA GENERATION

    📌 Definition:

    Generate random values.


    📊 Example:

    • Random email IDs

    🎯 Use:

    • Stress testing
    • Performance testing

    🟣 4. BOUNDARY VALUE-BASED DATA

    📌 Definition:

    Generate data based on boundary values.


    📊 Example:

    Range: 1–100 Data: 0, 1, 2, 99, 100, 101


    🎯 Key Point:

    • Finds maximum errors

    🟠 5. DATA SUBSETTING

    📌 Definition:

    Use a small portion of real data.


    📊 Example:

    • Select few records from database

    🎯 Advantage:

    • Realistic testing

    🔴 6. DATA MASKING

    📌 Definition:

    Hiding sensitive data while testing.


    📊 Example:

    • Replace real names with fake ones

    🎯 Key Point:

    • Ensures security

    👉 🔥 Important for exams!


    🧠 5. SOURCES OF TEST DATA

    • Manual input
    • Databases
    • Files (Excel, CSV)
    • Automated tools

    📊 DIAGRAM: TEST DATA GENERATION PROCESS

    Requirements → Identify Inputs → Generate Data → Execute Tests → Validate Results
    

    ⚖️ ADVANTAGES & DISADVANTAGES

    ✅ Advantages:

    • Improves test coverage
    • Detects bugs effectively
    • Supports automation

    ❌ Disadvantages:

    • Time-consuming (manual)
    • Requires tools/skills (automated)

    🔥 FREQUENTLY ASKED EXAM POINTS

    ✔ Define test data ✔ Types of test data ✔ Boundary data explanation ✔ Data masking concept ✔ Techniques of test data generation


    📊 QUICK REVISION TABLE

    Technique Description Advantage Disadvantage
    Manual Created by tester Simple Slow
    Automated Tool-generated Fast Needs tools
    Random Random values Good for stress Unpredictable
    Boundary-Based Edge values Finds bugs Limited scope
    Data Subsetting Real data sample Realistic Limited data
    Data Masking Hide sensitive data Secure Extra effort

    🎯 FINAL SUMMARY

    • Test data is input used for testing

    • Types:

      • Valid
      • Invalid
      • Boundary (very important)
      • Edge cases
    • Techniques include:

      • Manual
      • Automated
      • Random
      • Data masking
    • Good test data ensures:

      • Better quality
      • More bug detection

    Previous topic 7
    Scripting techniques for automated testing
    Next topic 9
    Generating test reports

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count507
      Code examples0
      DifficultyBeginner