{"id":5557,"date":"2023-06-20T10:30:11","date_gmt":"2023-06-20T08:30:11","guid":{"rendered":"https:\/\/betterqa.co\/?p=5557"},"modified":"2026-10-03T19:44:17","modified_gmt":"2026-10-03T17:44:17","slug":"test-case-design-crafting-effective-scenarios","status":"publish","type":"post","link":"https:\/\/betterqa.co\/test-case-design-crafting-effective-scenarios\/","title":{"rendered":"Test cases in software testing: template, examples and design techniques"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"5557\" class=\"elementor elementor-5557\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-tc55570 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"tc55570\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-tc55571\" data-id=\"tc55571\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-tc55572 elementor-widget elementor-widget-html\" data-id=\"tc55572\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Jost:wght@400;600&family=Roboto:wght@300;400&family=JetBrains+Mono:wght@400;500&display=swap\" rel=\"stylesheet\">\n\n<style>\n:root {\n    --purple: #9152DE;\n    --deep: #5F29A1;\n    --blue: #204782;\n    --paper: #DDE9E9;\n    --paper-dark: #c9dada;\n    --ink: #1a1a1a;\n    --ink-light: #4a4a5a;\n    --white: #ffffff;\n}\n\n.bqa-article {\n    font-family: 'Roboto', sans-serif;\n    color: var(--ink);\n    line-height: 1.7;\n    background: var(--paper);\n    position: relative;\n}\n\n.bqa-article::before {\n    content: '';\n    position: fixed;\n    top: 0; left: 0; right: 0; bottom: 0;\n    background-image:\n        linear-gradient(rgba(145, 82, 222, 0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(145, 82, 222, 0.03) 1px, transparent 1px);\n    background-size: 20px 20px;\n    pointer-events: none;\n    z-index: 0;\n}\n\n.bqa-article-section {\n    position: relative;\n    z-index: 1;\n    padding: 60px 24px;\n}\n\n.bqa-article-section.alt-bg {\n    background: rgba(255, 255, 255, 0.5);\n}\n\n.bqa-container {\n    max-width: 900px;\n    margin: 0 auto;\n}\n\n.bqa-section-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n    display: flex;\n    align-items: center;\n    gap: 12px;\n}\n\n.bqa-section-label::after {\n    content: '';\n    flex: 1;\n    height: 1px;\n    background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);\n    max-width: 200px;\n}\n\n.bqa-article h1, .bqa-article h2, .bqa-article h3 {\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    color: var(--ink);\n    margin: 0 0 24px;\n    text-transform: none !important;\n}\n\n.bqa-article h1 { font-size: 2.5rem; line-height: 1.2; }\n.bqa-article h2 { font-size: 1.75rem; margin-top: 48px; }\n.bqa-article h3 { font-size: 1.25rem; margin-top: 32px; color: var(--deep); }\n\n.bqa-article p {\n    margin: 0 0 20px;\n    font-size: 1rem;\n}\n\n.bqa-article a {\n    color: var(--purple);\n    text-decoration: none;\n    border-bottom: 1px solid transparent;\n    transition: border-color 0.2s;\n}\n\n.bqa-article a:hover {\n    border-bottom-color: var(--purple);\n}\n\n.bqa-article .bqa-back-link {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 12px;\n    letter-spacing: 0.05em;\n    text-transform: uppercase;\n    color: var(--ink-light);\n    margin-bottom: 32px;\n    display: inline-block;\n}\n\n.bqa-article .bqa-back-link:hover { color: var(--purple); }\n\n\/* Hero with Sidebar *\/\n.bqa-hero-grid {\n    display: grid;\n    grid-template-columns: 1fr 280px;\n    gap: 48px;\n    align-items: start;\n}\n\n.bqa-hero-sidebar {\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    padding: 24px;\n    position: relative;\n}\n\n.bqa-hero-sidebar::before,\n.bqa-hero-sidebar::after {\n    content: '';\n    position: absolute;\n    width: 12px;\n    height: 12px;\n    border-color: var(--purple);\n    border-style: solid;\n}\n\n.bqa-hero-sidebar::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }\n.bqa-hero-sidebar::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }\n\n.bqa-sidebar-title {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 20px;\n    padding-bottom: 12px;\n    border-bottom: 1px dashed var(--paper-dark);\n}\n\n.bqa-sidebar-item {\n    display: flex;\n    align-items: flex-start;\n    gap: 12px;\n    margin-bottom: 16px;\n}\n\n.bqa-sidebar-item:last-child { margin-bottom: 0; }\n\n.bqa-sidebar-item i {\n    font-size: 14px;\n    margin-top: 3px;\n    flex-shrink: 0;\n}\n\n.bqa-sidebar-item:nth-child(odd) i { color: var(--purple); }\n.bqa-sidebar-item:nth-child(even) i { color: var(--blue); }\n\n.bqa-sidebar-item-label {\n    font-size: 11px;\n    font-family: 'JetBrains Mono', monospace;\n    text-transform: uppercase;\n    letter-spacing: 0.05em;\n    color: var(--ink-light);\n    margin-bottom: 2px;\n}\n\n.bqa-sidebar-item-value {\n    font-size: 14px;\n    color: var(--ink);\n    line-height: 1.4;\n}\n\n\/* Highlight Box *\/\n.bqa-highlight {\n    border-left: 4px solid var(--purple);\n    background: rgba(145, 82, 222, 0.04);\n    padding: 20px 24px;\n    margin: 32px 0;\n    transition: background 0.2s;\n}\n\n.bqa-highlight:hover { background: rgba(145, 82, 222, 0.07); }\n.bqa-highlight p { margin: 0; font-size: 0.95rem; }\n.bqa-highlight strong { color: var(--deep); }\n\n\/* Mistake Number *\/\n.mistake-num {\n    font-family: 'JetBrains Mono', monospace;\n    font-weight: 500;\n    color: var(--purple);\n}\n\n\/* Stats Row *\/\n.bqa-stats-row {\n    display: flex;\n    justify-content: center;\n    gap: 48px;\n    padding: 32px 40px;\n    background: linear-gradient(135deg, var(--deep) 0%, var(--blue) 100%);\n    margin: 32px 0;\n    position: relative;\n    overflow: hidden;\n}\n\n.bqa-stats-row::after {\n    content: '';\n    position: absolute;\n    inset: 0;\n    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);\n    animation: shine 4s ease-in-out infinite;\n}\n\n@keyframes shine {\n    0%, 100% { transform: translateX(-100%); }\n    50% { transform: translateX(100%); }\n}\n\n.bqa-stat {\n    text-align: center;\n    color: #fff;\n}\n\n.bqa-stat-value {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 2rem;\n    font-weight: 500;\n    color: #fff;\n    margin-bottom: 6px;\n}\n\n.bqa-stat-label {\n    font-size: 0.8rem;\n    color: rgba(255, 255, 255, 0.85);\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n}\n\n.bqa-stat-source {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 0.65rem;\n    color: rgba(255, 255, 255, 0.5);\n    margin-top: 4px;\n}\n\n\/* FAQ Accordion *\/\n.bqa-faq-item {\n    border-bottom: 1px solid var(--paper-dark);\n}\n\n.bqa-faq-item:first-child {\n    border-top: 1px solid var(--paper-dark);\n}\n\n.bqa-faq-question {\n    width: 100%;\n    background: none;\n    border: none;\n    padding: 20px 0;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    cursor: pointer;\n    text-align: left;\n    font-family: 'Jost', sans-serif;\n    font-size: 1.05rem;\n    font-weight: 600;\n    color: var(--ink);\n    gap: 16px;\n}\n\n.bqa-faq-question:hover { color: var(--purple); }\n\n.bqa-faq-toggle {\n    width: 28px;\n    height: 28px;\n    min-width: 28px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    font-size: 1.2rem;\n    color: var(--purple);\n    transition: transform 0.3s ease;\n}\n\n.bqa-faq-item.open .bqa-faq-toggle { transform: rotate(45deg); }\n\n.bqa-faq-answer {\n    max-height: 0;\n    overflow: hidden;\n    transition: max-height 0.35s ease;\n}\n\n.bqa-faq-item.open .bqa-faq-answer { max-height: 400px; }\n\n.bqa-faq-answer-inner {\n    padding: 0 0 24px;\n    font-size: 0.95rem;\n    color: var(--ink-light);\n    line-height: 1.85;\n}\n\n\/* CTA *\/\n.bqa-cta {\n    background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%);\n    color: #fff;\n    padding: 48px 40px;\n    text-align: center;\n    position: relative;\n    z-index: 1;\n}\n\n.bqa-cta h2 {\n    color: #fff;\n    font-size: 1.6rem;\n    margin-bottom: 12px;\n}\n\n.bqa-cta p {\n    color: rgba(255, 255, 255, 0.9);\n    margin-bottom: 28px;\n}\n\n.bqa-article .bqa-cta-btn {\n    display: inline-block;\n    padding: 14px 32px;\n    background: var(--white);\n    color: var(--deep);\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    font-size: 14px;\n    text-decoration: none;\n    border: none;\n    border-bottom: none;\n    transition: all 0.3s;\n}\n\n.bqa-article .bqa-cta-btn:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n    color: var(--deep);\n    border-bottom: none;\n}\n\n\/* Related Resources *\/\n.bqa-related-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 16px;\n}\n\n.bqa-related-links {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 10px;\n}\n\n.bqa-article .bqa-related-link {\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    padding: 10px 18px;\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    color: var(--ink-light);\n    font-size: 0.875rem;\n    transition: all 0.2s;\n}\n\n.bqa-article .bqa-related-link:hover {\n    border-color: var(--purple);\n    color: var(--purple);\n    border-bottom-color: var(--purple);\n}\n\n.bqa-related-link i {\n    font-size: 11px;\n    color: var(--purple);\n}\n\n\/* Scroll Reveal *\/\n.bqa-reveal {\n    opacity: 0;\n    transform: translateY(16px);\n    transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.bqa-reveal.visible {\n    opacity: 1;\n    transform: translateY(0);\n}\n\n\/* Responsive *\/\n@media (max-width: 768px) {\n    .bqa-hero-grid {\n        grid-template-columns: 1fr;\n        gap: 32px;\n    }\n\n    .bqa-article h1 { font-size: 2rem; }\n    .bqa-article h2 { font-size: 1.4rem; }\n\n    .bqa-stats-row { flex-direction: column; gap: 24px; padding: 32px 24px; }\n    .bqa-stat-value { font-size: 1.75rem; }\n}\n\n@media (max-width: 500px) {\n    .bqa-article-section { padding: 40px 16px; }\n    .bqa-article h1 { font-size: 1.7rem; }\n    .bqa-cta { padding: 36px 24px; }\n    .bqa-stats-row { gap: 20px; padding: 24px 16px; }\n    .bqa-stat-value { font-size: 1.5rem; }\n\n    .bqa-related-links { flex-direction: column; }\n}\n\n@media (max-width: 380px) {\n    .bqa-article h1 { font-size: 1.5rem; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n    .bqa-reveal {\n        opacity: 1;\n        transform: none;\n        transition: none;\n    }\n    .bqa-stats-row::after { animation: none; }\n}\n\n\/* Decision table (drafts) *\/\n.bqa-table-wrap { overflow-x: auto; margin: 24px 0; }\n.bqa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }\n.bqa-table th { background: var(--ink); color: #fff; font-family: 'Jost', sans-serif; font-weight: 600; text-align: left; padding: 12px 14px; }\n.bqa-table td { padding: 12px 14px; border-bottom: 1px solid var(--paper-dark); vertical-align: top; }\n.bqa-table tr:nth-child(even) td { background: rgba(221, 233, 233, 0.35); }\n.bqa-article ol, .bqa-article ul.bqa-list { padding-left: 22px; margin: 16px 0; }\n.bqa-article ol li, .bqa-article ul.bqa-list li { margin-bottom: 8px; }\n@media (max-width: 500px) { .bqa-table { font-size: 0.82rem; } .bqa-table th, .bqa-table td { padding: 10px; } }\n\n.bqa-faq-item.active .bqa-faq-toggle { transform: rotate(45deg); }\n.bqa-faq-item.active .bqa-faq-answer { max-height: 400px; display: block; }\n.bqa-reveal.revealed { opacity: 1; transform: none; }\n.bqa-article .bqa-reveal { opacity: 1 !important; transform: none !important; }\n.bqa-article .bqa-faq-question { white-space: normal; }\n.bqa-article .bqa-faq-question > span:first-child { min-width: 0; overflow-wrap: anywhere; }\n.bqa-article h1, .bqa-article h2, .bqa-article h3, .bqa-article p, .bqa-article li { text-align: left; }\n<\/style>\n\n\n<div class=\"bqa-article\">\n\n    <!-- Hero -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <a href=\"\/blog\/\" class=\"bqa-back-link\"><i class=\"fa-solid fa-arrow-left\"><\/i> Back to blog<\/a>\n\n            <div class=\"bqa-hero-grid\">\n                <div>\n                    <div class=\"bqa-section-label\">Test case guide<\/div>\n                    <h1>Test cases in software testing: template, examples and design techniques<\/h1>\n                    <div class=\"bqa-short-answer\" style=\"background:#f8f5fd;border-left:4px solid #9152DE;border-radius:10px;padding:18px 20px;margin:0 0 24px\">\n                        <p style=\"text-align:left;margin:0 0 8px;font-weight:700;color:#461780\">Short answer<\/p>\n                        <p style=\"text-align:left;margin:0\">A test case is a written check of one specific behaviour of your software. It lists the starting conditions, the exact steps, the test data and the result you expect. Someone runs the steps, compares what happened with what was expected, and marks the test passed or failed. A failed test case is the start of a bug report.<\/p>\n                    <\/div>\n                    <p>This guide covers what goes into a test case, a template you can copy, three worked examples, the difference between a test case and a test scenario, and the design techniques testers use to decide which cases to write. It is written from how our engineers write and maintain test cases on client projects every day.<\/p><figure class=\"bqa-inimg bqa-inimg--r bqa-bp-inline\" style=\"max-width:600px;margin:20px 0 8px!important\"><style>.bqa-inimg{margin:0!important;min-width:0}.bqa-inimg .bqa-inimg-i{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:12px}.bqa-inimg--r .bqa-inimg-i{aspect-ratio:3\/2}.bqa-inimg--w .bqa-inimg-i{aspect-ratio:16\/9}.bqa-inimg--ui .bqa-inimg-i{aspect-ratio:auto;max-height:none;object-fit:contain;border:1px solid rgba(128,128,128,.3)}.bqa-inimg--w{margin:24px 0 8px!important}.bqa-inimg--c{margin-left:auto!important;margin-right:auto!important}.bqa-inimg figcaption{font-size:.8125rem;line-height:1.4;opacity:.72;padding:8px 0 0;margin:0}.bqa-inimg-row{display:flex;gap:32px;align-items:flex-start}.bqa-inimg-row>:first-child{flex:1 1 0;min-width:0}.bqa-inimg-row>.bqa-inimg{flex:0 0 34%;max-width:380px;margin:6px 0 0!important}.bqa-inimg-col .bqa-inimg{margin:20px 0 0!important}@media(max-width:860px){.bqa-inimg-row{display:block}.bqa-inimg-row>.bqa-inimg{max-width:none;margin-top:16px!important}.bqa-inimg--r .bqa-inimg-i{aspect-ratio:16\/9}.bqa-inimg .bqa-inimg-i{max-height:260px}.bqa-inimg--ui .bqa-inimg-i{max-height:none}}<\/style><picture><source type=\"image\/webp\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/11\/bqa-bp-5557-1200.webp 1200w, https:\/\/betterqa.co\/wp-content\/uploads\/2026\/11\/bqa-bp-5557-600.webp 600w\" sizes=\"(min-width:861px) 760px, calc(100vw - 32px)\"><img loading=\"lazy\" class=\"bqa-inimg-i\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/11\/bqa-bp-5557-1200.jpg\" width=\"1200\" height=\"800\" alt=\"A BetterQA engineer in a teal sweater working at her monitor in the Cluj-Napoca office\" loading=\"lazy\" decoding=\"async\" title=\"\"><\/picture><\/figure>\n                <\/div>\n\n                <div class=\"bqa-hero-sidebar\">\n                    <div class=\"bqa-sidebar-title\">Article details<\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-flag-checkered\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Question<\/div>\n                            <div class=\"bqa-sidebar-item-value\">What is a test case, and how do you write a good one?<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-user-tie\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Audience<\/div>\n                            <div class=\"bqa-sidebar-item-value\">Testers, developers and team leads who write or review tests<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-users\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">BetterQA team<\/div>\n                            <div class=\"bqa-sidebar-item-value\">50+ engineers, founded 2018<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-star\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Clutch rating<\/div>\n                            <div class=\"bqa-sidebar-item-value\">4.9 \/ 5 from 71 reviews<\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Anatomy -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">What it contains<\/div>\n            <h2>The parts of a test case<\/h2>\n            <p>Teams and tools name the fields differently, but a usable test case always answers the same questions: what are we checking, what must be true before we start, what exactly do we do, with which data, and what should happen. Everything else is there to make the case findable, traceable and easy to report on.<\/p>\n\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <thead><tr><th>Field<\/th><th>What it holds<\/th><th>Why it matters<\/th><\/tr><\/thead>\n                    <tbody>\n                        <tr><td>ID<\/td><td>A unique reference, such as TC-LOGIN-004<\/td><td>Bug reports, results and requirements can point at it<\/td><\/tr>\n                        <tr><td>Title<\/td><td>One line saying what is checked<\/td><td>Someone scanning a list knows what the case is for without opening it<\/td><\/tr>\n                        <tr><td>Requirement<\/td><td>The user story or requirement it covers<\/td><td>Shows which requirements are tested and which are not<\/td><\/tr>\n                        <tr><td>Preconditions<\/td><td>What must be true before step 1: account state, data, environment<\/td><td>Most \"cannot reproduce\" arguments start with a missing precondition<\/td><\/tr>\n                        <tr><td>Test data<\/td><td>The exact values to use<\/td><td>\"Enter a valid email\" gives ten testers ten different tests<\/td><\/tr>\n                        <tr><td>Steps<\/td><td>Numbered actions, one action per step<\/td><td>Anyone on the team can run it the same way<\/td><\/tr>\n                        <tr><td>Expected result<\/td><td>What the software should do, stated so it can be checked<\/td><td>Without it there is no pass or fail, only an opinion<\/td><\/tr>\n                        <tr><td>Actual result<\/td><td>What happened when the case was run<\/td><td>The evidence behind a pass, and the first line of a bug report<\/td><\/tr>\n                        <tr><td>Status<\/td><td>Passed, failed, blocked or not run<\/td><td>Feeds the release decision<\/td><\/tr>\n                        <tr><td>Priority<\/td><td>How much the case matters if time runs out<\/td><td>Tells the team what to run first before a release<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>The expected result is the field people most often get wrong. \"Login works\" cannot fail. \"The user lands on \/dashboard within 2 seconds and sees their name in the header\" can. We wrote a separate guide on <a href=\"\/bug-reports-how-to-write-expected-results\/\">writing expected results<\/a> because the same rule decides whether a bug report is useful.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Template -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Template<\/div>\n            <h2>A test case template you can copy<\/h2>\n            <p>This is the layout our engineers start from when a client has no test management tool yet. It works in a spreadsheet, a Jira issue or a test management tool, because every tool has the same fields under different names.<\/p>\n\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <thead><tr><th>Field<\/th><th>Your entry<\/th><\/tr><\/thead>\n                    <tbody>\n                        <tr><td>ID<\/td><td>TC-[AREA]-[NUMBER]<\/td><\/tr>\n                        <tr><td>Title<\/td><td>[Feature] [does what] when [condition]<\/td><\/tr>\n                        <tr><td>Requirement<\/td><td>[Story or requirement ID]<\/td><\/tr>\n                        <tr><td>Priority<\/td><td>High \/ Medium \/ Low<\/td><\/tr>\n                        <tr><td>Preconditions<\/td><td>[Account, data and environment state before step 1]<\/td><\/tr>\n                        <tr><td>Test data<\/td><td>[Exact values]<\/td><\/tr>\n                        <tr><td>Steps<\/td><td>1. [One action] 2. [One action] 3. [One action]<\/td><\/tr>\n                        <tr><td>Expected result<\/td><td>[What the user sees or the system records, specific enough to fail]<\/td><\/tr>\n                        <tr><td>Actual result<\/td><td>[Filled in when run]<\/td><\/tr>\n                        <tr><td>Status<\/td><td>Passed \/ Failed \/ Blocked \/ Not run<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>Write the title so it reads as a sentence about behaviour: \"Login rejects a wrong password and keeps the email filled in\" tells a reviewer far more than \"Login test 4\".<\/p><figure class=\"bqa-blog-fig\" data-bqa-blog-fig=\"5557\" style=\"margin:28px auto;max-width:760px\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/bqa-blog-5557-800.webp 800w, https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/bqa-blog-5557-1600.webp 1600w\" sizes=\"(min-width:920px) 760px, calc(100vw - 32px)\"><img loading=\"lazy\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/bqa-blog-5557-1600.jpg\" width=\"1600\" height=\"1000\" alt=\"BugBoard test case view with preconditions, numbered steps and expected results for a checkout flow\" loading=\"lazy\" decoding=\"async\" style=\"display:block;width:100%;height:auto;border-radius:8px\" title=\"\"><\/picture><figcaption style=\"font-size:.9rem;line-height:1.4;opacity:.75;margin-top:8px\">A test case in BugBoard: preconditions, steps and expected result (demo data)<\/figcaption><\/figure>\n        <\/div>\n    <\/div>\n\n    <!-- Examples -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Worked examples<\/div>\n            <h2>Three test case examples<\/h2>\n\n            <h3>Example 1: login with a wrong password<\/h3>\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <tbody>\n                        <tr><td>ID<\/td><td>TC-LOGIN-004<\/td><\/tr>\n                        <tr><td>Title<\/td><td>Login rejects a wrong password and keeps the email filled in<\/td><\/tr>\n                        <tr><td>Preconditions<\/td><td>An active account exists for anna@example.com. The user is logged out.<\/td><\/tr>\n                        <tr><td>Test data<\/td><td>Email: anna@example.com. Password: WrongPass1<\/td><\/tr>\n                        <tr><td>Steps<\/td><td>1. Open \/login. 2. Enter the email. 3. Enter the password. 4. Click \"Log in\".<\/td><\/tr>\n                        <tr><td>Expected result<\/td><td>The user stays on \/login. The message \"Email or password is incorrect\" appears under the form. The email field still shows anna@example.com and the password field is empty. No session cookie is set.<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>Note what the expected result does not say: it does not reveal whether the email or the password was wrong. Telling an attacker which accounts exist is a security defect, so a good test case checks the wording as well as the redirect.<\/p>\n\n            <h3>Example 2: card payment declined<\/h3>\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <tbody>\n                        <tr><td>ID<\/td><td>TC-PAY-012<\/td><\/tr>\n                        <tr><td>Title<\/td><td>Checkout shows a clear message and keeps the order when the card is declined<\/td><\/tr>\n                        <tr><td>Preconditions<\/td><td>Payment provider in test mode. Cart contains one item at 49.00 EUR.<\/td><\/tr>\n                        <tr><td>Test data<\/td><td>The provider's published test card number for \"card declined\"<\/td><\/tr>\n                        <tr><td>Steps<\/td><td>1. Go to checkout. 2. Enter the test card. 3. Click \"Pay\".<\/td><\/tr>\n                        <tr><td>Expected result<\/td><td>The page says the payment was declined and offers another card. The order is saved as \"payment failed\", not \"paid\". No confirmation email is sent. The cart still contains the item.<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>Payment cases are where we see the most expensive misses, because the screen can look right while the order status underneath is wrong. Our <a href=\"\/testing-card-types-for-payment-integrations\/\">guide to testing card types<\/a> lists the scenarios worth covering.<\/p>\n\n            <h3>Example 3: file upload over the size limit<\/h3>\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <tbody>\n                        <tr><td>ID<\/td><td>TC-UPLOAD-007<\/td><\/tr>\n                        <tr><td>Title<\/td><td>Upload refuses a file just over the 10 MB limit with a message<\/td><\/tr>\n                        <tr><td>Preconditions<\/td><td>Logged in as a user with upload rights. Limit configured at 10 MB.<\/td><\/tr>\n                        <tr><td>Test data<\/td><td>A PDF of 10.1 MB<\/td><\/tr>\n                        <tr><td>Steps<\/td><td>1. Open the documents page. 2. Click \"Upload\". 3. Choose the file.<\/td><\/tr>\n                        <tr><td>Expected result<\/td><td>The upload is refused before it finishes. The message names the 10 MB limit. Nothing is stored on the server.<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>The 10.1 MB file is chosen on purpose: it sits just past the limit, which is where size checks break. The section on boundary value analysis below explains why. For the full set of upload checks, see our <a href=\"\/cheat-sheet-guide-for-qa-file-upload-testing\/\">file upload testing cheat sheet<\/a>.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Case vs scenario -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Terms<\/div>\n            <h2>Test case vs test scenario vs test script<\/h2>\n            <p>The three words get mixed up constantly. The difference is how much detail each one carries.<\/p>\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <thead><tr><th><\/th><th>Test scenario<\/th><th>Test case<\/th><th>Test script<\/th><\/tr><\/thead>\n                    <tbody>\n                        <tr><td>What it is<\/td><td>A situation worth testing<\/td><td>Exact steps, data and expected result for one check<\/td><td>Code that runs a test case automatically<\/td><\/tr>\n                        <tr><td>Example<\/td><td>\"User logs in with wrong details\"<\/td><td>TC-LOGIN-004 above<\/td><td>A Playwright or Cypress test that performs TC-LOGIN-004<\/td><\/tr>\n                        <tr><td>Detail<\/td><td>One line<\/td><td>A full page of steps and data<\/td><td>Executable code<\/td><\/tr>\n                        <tr><td>Written by<\/td><td>Tester or analyst, early<\/td><td>Tester<\/td><td>Automation engineer<\/td><\/tr>\n                        <tr><td>How many<\/td><td>One scenario usually becomes several cases<\/td><td>Several per scenario<\/td><td>One per automated case<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>A practical order: list the scenarios first so nothing obvious is missed, write test cases for the scenarios that carry the most risk, then automate the cases you will run on every release.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Types -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Types<\/div>\n            <h2>Types of test cases<\/h2>\n            <p>Most projects need a mix. The list below is the set we plan for on a typical web or mobile product.<\/p>\n            <ul>\n                <li><strong>Functional:<\/strong> does the feature do what the requirement says.<\/li>\n                <li><strong>Negative:<\/strong> does it handle wrong input, missing data and unexpected actions without breaking. See <a href=\"\/positive-negative-testing\/\">positive and negative testing<\/a>.<\/li>\n                <li><strong>Boundary:<\/strong> does it behave at the edges of allowed values.<\/li>\n                <li><strong>Regression:<\/strong> does existing behaviour still work after a change. See <a href=\"\/regression-testing-guide\/\">how to choose what to run<\/a>.<\/li>\n                <li><strong>Integration:<\/strong> do two parts, or your product and a third-party service, work together.<\/li>\n                <li><strong>UI and usability:<\/strong> can a person actually complete the task.<\/li>\n                <li><strong>Accessibility:<\/strong> can people using a keyboard or a screen reader complete it.<\/li>\n                <li><strong>Performance:<\/strong> does it stay fast under realistic load.<\/li>\n                <li><strong>Security:<\/strong> can it be misused, for example by reading another user's data.<\/li>\n                <li><strong>User acceptance:<\/strong> does the business owner agree it does the job.<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n\n    <!-- Techniques -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Design techniques<\/div>\n            <h2>Test case design techniques, with examples<\/h2>\n            <p>Design techniques answer the hard question: out of the endless inputs a feature accepts, which few do you actually test? The ISTQB Foundation syllabus (CTFL 4.0.1, chapter 4) groups them into three families: black-box, white-box and experience-based. It adds collaboration-based approaches as a separate topic. Most of the cases we write come from the first family.<\/p>\n\n            <h3>Specification-based (black box) techniques<\/h3>\n            <p>These work from the requirement alone, without looking at the code.<\/p>\n            <p><strong>Equivalence partitioning.<\/strong> Split the inputs into groups the software should treat the same way, then test one value from each group. If a form accepts ages 18 to 65, there are three groups: under 18, 18 to 65, and over 65. Three test cases, with ages 12, 40 and 70, cover what three hundred would.<\/p>\n            <p><strong>Boundary value analysis.<\/strong> Bugs collect at the edges, where a developer typed &lt; instead of &lt;=. For the same age field, test 17, 18, 65 and 66: the last value outside, the first value inside, the last value inside, the first value outside again. This is the technique behind the 10.1 MB file in example 3. Testing each boundary value and its closest neighbour in the next partition, as done here, is called two-value boundary value analysis. The syllabus also describes a three-value version, which tests each boundary value and both of its neighbours: 17, 18 and 19, then 64, 65 and 66.<\/p>\n            <p><strong>Decision table testing.<\/strong> When the result depends on several conditions together, list every combination in a table so none is forgotten. A discount rule shows why:<\/p>\n            <div class=\"bqa-table-wrap\">\n                <table class=\"bqa-table\">\n                    <thead><tr><th>Rule<\/th><th>1<\/th><th>2<\/th><th>3<\/th><th>4<\/th><\/tr><\/thead>\n                    <tbody>\n                        <tr><td>Customer is a member<\/td><td>Yes<\/td><td>Yes<\/td><td>No<\/td><td>No<\/td><\/tr>\n                        <tr><td>Order over 100 EUR<\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>No<\/td><\/tr>\n                        <tr><td>Expected discount<\/td><td>15%<\/td><td>10%<\/td><td>5%<\/td><td>None<\/td><\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p>Each column becomes one test case. Teams that test only the first and last column miss the two middle rules, which is where conditions usually get combined wrongly in code.<\/p>\n            <p><strong>State transition testing.<\/strong> For anything that moves between states, test the transitions, including the ones that should be impossible. An account that locks after three failed logins has the states active, locked and unlocked. Test cases cover the third failure locking the account, a correct password not unlocking a locked account, and the unlock link restoring access.<\/p>\n            <p><strong>Use case testing.<\/strong> Follow a complete user journey end to end, such as \"a new customer signs up, buys, and receives an invoice\", to catch problems that only appear when the steps run in sequence. Use case testing was a named technique in older Foundation syllabi. CTFL 4.0.1 no longer lists it among the black-box techniques and it is now covered at Advanced Level (Test Analyst) under scenario-based testing, but it remains a useful way to write end-to-end cases.<\/p>\n\n            <h3>Structure-based (white box) techniques<\/h3>\n            <p>These look at the code and measure how much of it the tests exercise. <strong>Statement coverage<\/strong> asks whether every executable statement ran at least once. <strong>Branch coverage<\/strong> asks whether every branch was taken, including both outcomes of each decision, the \"if\" and the \"else\". Any set of tests that reaches 100% branch coverage also reaches 100% statement coverage, but not the other way round, and neither proves the code is free of defects. They are mostly used by developers in unit tests, and they are good at showing what was never tested, not at proving what works.<\/p>\n\n            <h3>Experience-based techniques<\/h3>\n            <p><strong>Error guessing<\/strong> uses what a tester has seen break before: empty fields, pasted text with trailing spaces, a double click on \"Pay\", a session that expired mid-form. <strong>Exploratory testing<\/strong> is structured investigation without a script, with notes, which often finds the cases nobody thought to write down. <strong>Checklist-based testing<\/strong> turns those lessons into a reusable list. The syllabus also covers collaboration-based approaches, which aim to prevent defects through conversation: writing user stories together, agreeing acceptance criteria, and acceptance test-driven development (ATDD).<\/p>\n            <p>In practice we combine them: partitions and boundaries for inputs, decision tables for business rules, state transitions for workflows, and a timeboxed exploratory session on every new feature to catch what the specification missed. Our <a href=\"\/software-testing-services\/test-techniques\/\">test techniques service page<\/a> describes how we apply them on client projects.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Rules -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Writing rules<\/div>\n            <h2>How to write a good test case<\/h2>\n            <ol>\n                <li><strong>Check one behaviour per case.<\/strong> If a case can fail for two different reasons, split it, or the failure will not tell you what broke.<\/li>\n                <li><strong>Make the expected result able to fail.<\/strong> Name the page, the message, the value or the record.<\/li>\n                <li><strong>Give exact test data.<\/strong> Values, not descriptions of values.<\/li>\n                <li><strong>State every precondition.<\/strong> Account type, feature flags, data that must already exist.<\/li>\n                <li><strong>Keep cases independent.<\/strong> A case that only passes after another case has run will fail for the wrong reason the day the order changes.<\/li>\n                <li><strong>Write for someone new.<\/strong> A tester who joined last week should be able to run it without asking.<\/li>\n                <li><strong>Link each case to a requirement.<\/strong> That is how you see which requirements have no tests.<\/li>\n                <li><strong>Retire what no longer applies.<\/strong> An outdated case that fails every run teaches the team to ignore failures.<\/li>\n            <\/ol>\n            <p>We collected the mistakes we see most in reviews in <a href=\"\/common-mistakes-to-avoid-in-test-cases\/\">common mistakes to avoid in test cases<\/a>.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- How many -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Coverage<\/div>\n            <h2>How many test cases do you need?<\/h2>\n            <p>There is no correct number per feature, and a high count is not a sign of good coverage. What matters is that the risky behaviour is covered. We decide in three passes: list the scenarios for the feature, rank them by how much damage a failure would do and how likely it is, then write cases for the top of the list using the techniques above, and stop when the next case would only repeat a partition or boundary already tested.<\/p>\n            <p>A login form usually needs between ten and twenty cases once you count wrong passwords, locked accounts, expired sessions and password reset. A payment flow needs more, because each payment method and failure has its own path. Your <a href=\"\/test-plan-in-software-testing\/\">test plan<\/a> is the place to write down what is in scope and what is deliberately left out.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Where -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Tools<\/div>\n            <h2>Where to keep test cases<\/h2>\n            <p>A spreadsheet is fine for the first few dozen cases. After that, teams move to a test management tool so they can track runs, link cases to requirements and bugs, and see results per release. Common choices are Jira with a test add-on, TestRail and Azure DevOps Test Plans. We built our own, <a href=\"https:\/\/bugboard.co\/\" target=\"_blank\" rel=\"noopener\">BugBoard<\/a>, and we also work in whatever tool a client already uses.<\/p>\n            <p>Whichever tool you choose, keep the cases where your team can still read them if the tool or the vendor changes. Software can now draft a first version of test cases from a requirement in seconds, and we use that, but a person still reviews every case before it counts. Our article on <a href=\"\/how-we-use-ai-to-generate-test-cases-in-30-seconds\/\">generating test cases with a human review<\/a> explains where drafts go wrong.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- FAQ -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">FAQ<\/div>\n            <h2>Frequently asked questions<\/h2>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>What is a test case in software testing?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        A test case is a written check of one behaviour of the software: the preconditions, the steps, the test data and the expected result. Running it and comparing the actual result with the expected one tells you whether that behaviour works.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>What should a test case include?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        At minimum an ID, a title, preconditions, test data, numbered steps and an expected result. Most teams also record the linked requirement, priority, actual result and status.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>What is the difference between a test case and a test scenario?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        A test scenario is a one-line situation worth testing, such as \"user logs in with wrong details\". A test case is the detailed check for one version of that situation, with exact steps, data and the expected result. One scenario usually produces several test cases.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>What are the main test case design techniques?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Equivalence partitioning, boundary value analysis, decision table testing and state transition testing work from the requirements (use case testing is a similar scenario-based approach, no longer in the Foundation syllabus). Statement and branch coverage work from the code. Error guessing, exploratory testing and checklists work from the tester's experience.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>How many test cases should one requirement have?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Enough to cover each partition, each boundary and each rule combination that carries real risk. For a simple field that can be three or four; for a payment flow it can be several dozen. Stop when the next case would only repeat something already tested.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>Should every test case be automated?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        No. Automate the cases you run on every release and that are stable, such as login, checkout and core workflows. Keep manual or exploratory testing for new features, visual checks and anything that changes often, where a script would cost more to maintain than it saves.\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- CTA -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-cta\">\n                <h2>Want test cases written and kept up to date for you?<\/h2>\n                <p>Our engineers write, run and maintain test cases in your own tools, so the work stays with you. The first month is a trial on your product. If you are not happy, the first two weeks are complimentary.<\/p>\n                <a href=\"https:\/\/calendly.com\/betterqa\" class=\"bqa-cta-btn\" rel=\"nofollow noopener\" target=\"_blank\">Book a call<\/a>\n                <a href=\"\/managed-testing-services\/\" class=\"bqa-cta-btn\">Managed testing services<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Related -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-related-label\">Related resources<\/div>\n            <div class=\"bqa-related-links\">\n                <a href=\"\/common-mistakes-to-avoid-in-test-cases\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-list-check\"><\/i> Common test case mistakes<\/a>\n                <a href=\"\/bug-reports-how-to-write-expected-results\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-flag-checkered\"><\/i> Writing expected results<\/a>\n                <a href=\"\/positive-negative-testing\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-diagram-project\"><\/i> Positive and negative testing<\/a>\n                <a href=\"\/test-plan-in-software-testing\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-list-check\"><\/i> How to write a test plan<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n\n<script>\n\/\/ Scroll reveal\n(function() {\n    var els = document.querySelectorAll('.bqa-reveal');\n    if (!window.IntersectionObserver) {\n        els.forEach(function(el) { el.classList.add('visible'); });\n        return;\n    }\n    var obs = new IntersectionObserver(function(entries) {\n        entries.forEach(function(entry) {\n            if (entry.isIntersecting) {\n                entry.target.classList.add('visible');\n                obs.unobserve(entry.target);\n            }\n        });\n    }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });\n    els.forEach(function(el) { obs.observe(el); });\n})();\n\n\/\/ FAQ: the site script toggles .active; keep aria-expanded in sync with it\n(function() {\n    document.querySelectorAll('.bqa-faq-item').forEach(function(item) {\n        var btn = item.querySelector('.bqa-faq-question');\n        if (!btn || !window.MutationObserver) return;\n        new MutationObserver(function() {\n            btn.setAttribute('aria-expanded', item.classList.contains('active') ? 'true' : 'false');\n        }).observe(item, { attributes: true, attributeFilter: ['class'] });\n    });\n})();\n<\/script>\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>What a test case is, a template to copy, worked examples for login, payments and uploads, and the design techniques testers use to pick cases.<\/p>\n","protected":false},"author":1,"featured_media":11936,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[86,1007,1009,792],"tags":[958,951,742,978,950],"class_list":["post-5557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-best-practices","category-best-practices-tools-techniques-and-management","category-stcl-techniques-and-practices","category-stlc-software-testing-life-cycle","tag-qa-engineer","tag-quality-asssurance","tag-softwaretesting","tag-test-case","tag-test-case-design"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/5557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=5557"}],"version-history":[{"count":1,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/5557\/revisions"}],"predecessor-version":[{"id":10515,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/5557\/revisions\/10515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media\/11936"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=5557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/categories?post=5557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/tags?post=5557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}