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 PortalCOMP4125Black Box Testing Tech…
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
    3 min read
    Topic 2 of 9
    Topic Study Note Illustration
    02

    Black Box testing techniques

    Definition: Black Box Testing is a testing technique where the tester checks the functionality of software without knowing its internal code or structure .

    πŸ“˜ BLACK BOX TESTING TECHNIQUES

    βœ… 1. What is Black Box Testing?

    Definition: Black Box Testing is a testing technique where the tester checks the functionality of software without knowing its internal code or structure.

    πŸ‘‰ Simple meaning: You only care about input β†’ output, not how the program works inside.


    🎯 Key Features

    • No programming knowledge required
    • Based on requirements/specifications
    • Focuses on user perspective
    • Also called Functional Testing

    πŸ“¦ Basic Working

    Input β†’ System β†’ Output
    

    Tester gives input and verifies output.


    πŸ”‘ MAIN BLACK BOX TESTING TECHNIQUES


    🟒 1. EQUIVALENCE PARTITIONING (EP)

    πŸ“Œ Definition:

    Dividing input data into groups (partitions) where all values behave similarly.


    πŸͺœ Steps:

    1. Identify input field

    2. Divide into:

      • Valid partitions
      • Invalid partitions
    3. Choose one test case from each partition


    πŸ“Š Example:

    πŸ‘‰ Input: Age (valid range: 18–60)

    Partition Type Example
    <18 Invalid 15
    18–60 Valid 25
    >60 Invalid 70

    🎯 Key Point:

    Instead of testing all values, test one value per group.

    πŸ‘‰ πŸ”₯ Very important for exams!


    πŸ”΅ 2. BOUNDARY VALUE ANALYSIS (BVA)

    πŸ“Œ Definition:

    Testing values at the edges (boundaries) of input ranges.


    πŸͺœ Steps:

    1. Identify minimum and maximum values

    2. Test:

      • Minimum
      • Minimum + 1
      • Maximum - 1
      • Maximum

    πŸ“Š Example:

    πŸ‘‰ Range: 1–100

    Test values:

    • 0 (below min)
    • 1 (min)
    • 2 (min+1)
    • 99 (max-1)
    • 100 (max)
    • 101 (above max)

    🎯 Key Point:

    Most errors occur at boundaries.

    πŸ‘‰ πŸ”₯ VERY frequently asked in exams!


    🟑 3. DECISION TABLE TESTING

    πŸ“Œ Definition:

    Used when output depends on multiple conditions.


    πŸ“Š Example:

    Login system:

    Conditions Rule 1 Rule 2 Rule 3
    Username correct Yes Yes No
    Password correct Yes No Yes
    Output Login Success Error Error

    🎯 Key Point:

    • Helps test complex logic
    • Covers all combinations

    🟣 4. STATE TRANSITION TESTING

    πŸ“Œ Definition:

    Used when system behavior changes based on states.


    πŸ“Š Example:

    ATM system:

    Idle β†’ Card Inserted β†’ PIN Entered β†’ Transaction β†’ Exit
    

    πŸͺœ What to test:

    • Valid transitions
    • Invalid transitions

    🎯 Key Point:

    Best for systems like:

    • ATM
    • Login systems
    • Online orders

    🟠 5. USE CASE TESTING

    πŸ“Œ Definition:

    Testing based on real user scenarios (use cases).


    πŸ“Š Example:

    Online shopping:

    1. User logs in
    2. Selects product
    3. Adds to cart
    4. Makes payment

    🎯 Key Point:

    • Tests complete workflow
    • Focus on real-world usage

    πŸ”΄ 6. ERROR GUESSING

    πŸ“Œ Definition:

    Tester guesses possible errors based on experience.


    πŸ“Š Example:

    • Entering special characters
    • Leaving fields empty
    • Invalid formats

    🎯 Key Point:

    • No formal rules
    • Depends on tester skill

    🧠 IMPORTANT COMPARISON

    Technique Purpose Example
    Equivalence Partitioning Reduce test cases Age groups
    Boundary Value Analysis Test limits 1–100 range
    Decision Table Multiple conditions Login
    State Transition System states ATM
    Use Case Testing Real scenarios Shopping
    Error Guessing Experience-based Invalid input

    πŸ”₯ FREQUENTLY ASKED EXAM QUESTIONS

    βœ” Define Black Box Testing βœ” Explain EP with example βœ” Explain BVA with example βœ” Difference between EP and BVA βœ” Decision Table example βœ” State Transition diagram


    βš–οΈ ADVANTAGES & DISADVANTAGES

    βœ… Advantages:

    • No coding knowledge needed
    • User-focused
    • Easy to design tests

    ❌ Disadvantages:

    • Limited internal coverage
    • May miss logical errors

    🎯 FINAL QUICK SUMMARY

    • Black Box Testing focuses on input/output behavior

    • Main techniques:

      • Equivalence Partitioning
      • Boundary Value Analysis
      • Decision Table
      • State Transition
      • Use Case Testing
      • Error Guessing
    • BVA & EP are most important for exams


    ← Previous topic 1
    Testing techniques
    Next topic 3 β†’
    White Box testing techniques

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    546words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Software Testing & Quality Assurance