Summary of "How To Write A Test Case? | Test Case In Software Testing | Software Testing Tutorial | Edureka"

How to Write a Test Case — Summary

Main ideas and lessons

Software testing aims to find bugs before release to improve quality and reduce cost and time. Good documentation (requirements and test artifacts) is critical: it provides traceability, a single source of truth, and legal/business protection (for example, resolving disputes about compatibility or scope).

Three levels of test documentation (from most to least detailed):

Primary goal of a test case:

Validate that features work as expected under specified conditions, improve coverage, enable reusability, reduce maintenance/support cost, and ensure the product meets end-user requirements.


Test case structure — typical fields

A standard test case typically includes:

Optional/additional fields:


Test case design techniques

Three major categories:

  1. Specification-based (Black-box)

    • Derive tests from requirements/specs.
    • Common techniques:
      • Boundary Value Analysis (BVA)
      • Equivalence Partitioning (EP)
      • Decision Table Testing
      • State Transition Testing (use state-transition diagrams)
      • Use Case Testing (business scenarios / end-user flows)
  2. Structure-based (White-box)

    • Derive tests from the internal code structure.
    • Common techniques:
      • Statement coverage
      • Decision / Branch coverage
      • Condition coverage
      • Multiple condition testing
      • Path coverage
  3. Experience-based

    • Rely on tester skill and product knowledge.
    • Common approaches:
      • Error guessing
      • Exploratory testing (design and execution happen concurrently)

Characteristics of a good test case

A good test case is:


Guidelines and best practices


Common mistakes and how to avoid them


Step-by-step process to create test cases

  1. Prepare

    • Check for existing equivalent test cases; update if appropriate.
    • Understand the characteristics of a good test case.
    • Consider likely user scenarios and think from the customer’s perspective.
    • Allocate sufficient time for writing and review.
  2. Select tooling

    • Choose Excel or a spreadsheet for simple/manual workflows, or a test management tool (TestLink, TestRail) for more scale.
  3. Write test cases using a template that includes the standard fields listed above.

  4. Write a concise test case statement — a one-line summary of what you verify, the conditions, inputs, and expected outcome.

  5. Review test cases

    • Ensure steps and expected results align, remove duplicates, and ensure traceability to requirements.

Examples (condensed)

Login functionality — valid credentials

Login functionality — invalid credentials

Upload photo — logged-in user

Upload photo — not logged-in user


Practical tips


Sources / Speakers

Category ?

Educational


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video