ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP4125Grey Box Testing Techn…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP4125

    Software Testing & Quality Assurance

    Progress0 / 9 done
    Topics9
    1Testing techniques2Black Box testing techniques3White Box testing techniques4Grey Box testing techniques5Quality Assurance planning and execution
    6constructing a framework7Scripting techniques for automated testing8Generating test data9Generating test reports
    4 min read
    Topic 4 of 9
    Topic Study Note Illustration
    04

    Grey Box testing techniques

    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...

    πŸ“˜ 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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    4mremaining
    602words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Software Testing & Quality Assurance