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

    Black Box testing techniques

    3 minread
    546words
    Beginnerlevel

    📘 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 load past papers

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