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›Grey Box testing techniques
    Software Testing & Quality AssuranceTopic 4 of 9

    Grey Box testing techniques

    4 minread
    602words
    Beginnerlevel

    📘 GREY BOX TESTING TECHNIQUES

    ✅ 1. What is Grey Box Testing?

    Definition: Grey Box Testing is a technique where the tester has partial knowledge of the internal code or system design, but testing is mainly done from the user (external) perspective.

    👉 Simple meaning: It is a combination of Black Box + White Box Testing.


    🎯 Key Features

    • Partial knowledge of code (not full access)

    • Tests both:

      • Functionality (like black box)
      • Internal logic (limited, like white box)
    • Focus on data flow and integration


    📦 Basic Working

    Input → System → Output
              ↑
       Partial knowledge of code
    

    🔑 WHY USE GREY BOX TESTING?

    • To find hidden defects missed by black box testing
    • To improve test coverage
    • To test complex systems efficiently

    🧪 MAIN GREY BOX TESTING TECHNIQUES


    🟢 1. MATRIX TESTING

    📌 Definition:

    Tests the relationship between input variables and output results.


    🪜 Steps:

    1. Identify all variables
    2. Create a matrix of inputs vs outputs
    3. Design test cases for combinations

    📊 Example:

    Login system:

    Input Output
    Valid username + valid password Success
    Invalid username Error
    Invalid password Error

    🎯 Key Point:

    • Focus on data mapping
    • Useful in database applications

    🔵 2. REGRESSION TESTING (Grey Box Perspective)

    📌 Definition:

    Testing done after code changes to ensure existing features still work correctly.


    🪜 Steps:

    1. Modify code
    2. Re-run previous test cases
    3. Check for failures

    📊 Example:

    • Add new feature → test old login system again

    🎯 Key Point:

    • Ensures no new bugs are introduced

    👉 🔥 Frequently asked!


    🟡 3. PATTERN TESTING

    📌 Definition:

    Testing based on known defect patterns or past errors.


    📊 Example:

    • If system failed earlier with invalid input, test similar cases again

    🎯 Key Point:

    • Uses experience + system knowledge

    🟣 4. ORTHOGONAL ARRAY TESTING

    📌 Definition:

    A technique to test multiple input combinations efficiently using minimum test cases.


    🪜 Steps:

    1. Identify input parameters
    2. Select representative combinations
    3. Execute tests

    📊 Example:

    Instead of testing all combinations:

    • Use selected combinations that give maximum coverage

    🎯 Key Point:

    • Saves time
    • Reduces number of test cases

    🟠 5. DATABASE TESTING

    📌 Definition:

    Testing database operations like:

    • Data storage
    • Retrieval
    • Integrity

    📊 Example:

    • Check if login data is correctly stored in database

    🎯 Key Point:

    • Verifies backend logic

    🔴 6. API TESTING (Grey Box)

    📌 Definition:

    Testing Application Programming Interfaces (APIs) with partial knowledge of system logic.


    📊 Example:

    • Sending request → checking response
    • Validating data exchange

    🎯 Key Point:

    • Tests communication between systems

    🧠 IMPORTANT CHARACTERISTICS

    • Combines advantages of both testing types

    • Focus on:

      • Data flow
      • Interfaces
      • Integration

    ⚖️ ADVANTAGES & DISADVANTAGES

    ✅ Advantages:

    • Better test coverage than black box
    • Does not require full code knowledge
    • Efficient for large systems

    ❌ Disadvantages:

    • Requires technical knowledge
    • Limited access to code
    • Test design can be complex

    🔥 FREQUENTLY ASKED EXAM POINTS

    ✔ Define Grey Box Testing ✔ Difference between Black, White, Grey Box ✔ Regression Testing explanation ✔ API Testing concept ✔ Advantages & disadvantages


    📊 QUICK REVISION TABLE

    Technique Purpose Key Idea
    Matrix Testing Input-output relation Data mapping
    Regression Testing After changes Re-test system
    Pattern Testing Past defects Error patterns
    Orthogonal Array Reduce test cases Efficient combinations
    Database Testing Backend data Data integrity
    API Testing System communication Request-response

    🎯 FINAL SUMMARY

    • Grey Box Testing = Black Box + White Box

    • Tester has partial system knowledge

    • Focus on:

      • Data flow
      • Integration
      • Backend systems
    • Important techniques:

      • Regression Testing (very important)
      • API Testing
      • Database Testing

    🧾 FINAL COMPARISON (ALL TESTING TECHNIQUES)

    Feature Black Box White Box Grey Box
    Code Knowledge ❌ No ✅ Full ⚠️ Partial
    Focus Functionality Logic Both
    Complexity Low High Medium
    Performed By Testers Developers Both
    Coverage Limited High Balanced

    Previous topic 3
    White Box testing techniques
    Next topic 5
    Quality Assurance planning and execution

    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 time4 min
      Word count602
      Code examples0
      DifficultyBeginner