{"id":4784,"date":"2022-12-12T17:48:39","date_gmt":"2022-12-12T15:48:39","guid":{"rendered":"https:\/\/betterqa.co\/?page_id=4784"},"modified":"2026-04-15T14:04:40","modified_gmt":"2026-04-15T12:04:40","slug":"structural-testing","status":"publish","type":"page","link":"https:\/\/betterqa.co\/software-testing-services\/structural-testing\/","title":{"rendered":"Structural Testing"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4784\" class=\"elementor elementor-4784\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1b457c5 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"1b457c5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3fdfc55\" data-id=\"3fdfc55\" 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-60007c6 elementor-widget elementor-widget-html\" data-id=\"60007c6\" 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<style>\n.bqa-svc-page{--c-ink:#0C1726;--c-body:#3d4653;--c-dim:#5f6b78;--c-line:#e6e9ee;--c-purple:#9152DE;--c-deep:#5F29A1;--c-blue:#204782;--c-wash:#f6f8f9;--c-teal:#DDE9E9;font-family:'Roboto',sans-serif;color:var(--c-body);line-height:1.65;background:#fff}\n.bqa-svc-page *,.bqa-svc-page *::before,.bqa-svc-page *::after{box-sizing:border-box}\n.bqa-svc-page h1,.bqa-svc-page h2,.bqa-svc-page h3{font-family:'Jost',sans-serif;color:var(--c-ink);text-transform:none!important;font-weight:600;line-height:1.25;margin:0;letter-spacing:0}\n.bqa-svc-wrap{max-width:960px;margin:0 auto;padding:0 24px}\n.bqa-svc-label{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.6875rem;font-weight:500;color:var(--c-deep);text-transform:uppercase;letter-spacing:.15em;display:flex;align-items:center;gap:10px;margin-bottom:16px}\n.bqa-svc-label::before{content:'';width:20px;height:1px;background:var(--c-purple);flex-shrink:0}\n.bqa-svc-hero{padding:56px 0 44px;border-bottom:1px solid var(--c-line)}\n.bqa-svc-hero h1{font-size:clamp(1.9rem,4vw,2.9rem);margin-bottom:18px;max-width:780px}\n.bqa-svc-who{font-family:'Jost',sans-serif;font-weight:500;color:var(--c-deep);font-size:1.0625rem;line-height:1.3;margin:0 0 10px}\n.bqa-svc-page p.bqa-svc-lead{font-size:1.0625rem;max-width:680px;margin:0 0 4px}\n.bqa-svc-facts{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}\n.bqa-svc-fact{border:1px solid var(--c-line);border-radius:10px;padding:12px 16px;background:var(--c-wash);min-width:140px;flex:0 1 auto}\n.bqa-svc-fact-v{font-family:'Jost',sans-serif;font-weight:600;font-size:1.25rem;color:var(--c-ink);display:block;line-height:1.2}\n.bqa-svc-fact-l{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.625rem;color:var(--c-dim);text-transform:uppercase;letter-spacing:.1em;display:block;margin-top:5px}\n.bqa-svc-herobtns{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}\n.bqa-svc-hand{border:1px solid var(--c-line);border-radius:12px;background:var(--c-wash);padding:20px 22px;margin:24px 0 0}\n.bqa-svc-page .bqa-svc-hand h3{font-size:.875rem;font-weight:500;color:var(--c-dim);margin:0 0 6px}\n.bqa-svc-hand ul{margin:0;padding:0;list-style:none}\n.bqa-svc-hand li{font-size:.875rem;line-height:1.45;padding:9px 0 9px 26px;border-top:1px solid var(--c-line);list-style:none;position:relative;color:var(--c-ink)}\n.bqa-svc-hand li:first-child{border-top:0}\n.bqa-svc-hand li i{position:absolute;left:0;top:11px;color:#1f7a4d;font-size:.875rem}\n.bqa-svc-hand li span{display:block;color:var(--c-dim);font-size:.8125rem}\n.bqa-svc-sec{padding:52px 0;border-bottom:1px solid var(--c-line)}\n.bqa-svc-sec.alt{background:var(--c-wash)}\n.bqa-svc-sec h2{font-size:clamp(1.4rem,2.6vw,1.85rem);margin-bottom:12px;max-width:760px}\n.bqa-svc-sec p{max-width:700px;margin:0 0 16px}\n.bqa-svc-sec p:last-child{margin-bottom:0}\n.bqa-svc-sec p strong{color:var(--c-ink);font-weight:600}\n.bqa-svc-page a{color:var(--c-deep)}\n.bqa-svc-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:8px;font-family:'Jost',sans-serif;font-weight:500;font-size:.9375rem;text-decoration:none!important;transition:background-color .2s ease,border-color .2s ease}\n.bqa-svc-btn-p{background:var(--c-ink);color:#fff!important}\n.bqa-svc-btn-p:hover{background:var(--c-deep);color:#fff!important}\n.bqa-svc-btn-s{background:#fff;color:var(--c-ink)!important;border:1px solid #d7dce3}\n.bqa-svc-btn-s:hover{border-color:var(--c-purple);color:var(--c-deep)!important}\n.bqa-svc-btn:focus-visible,.bqa-svc-page a:focus-visible{outline:2px solid var(--c-purple);outline-offset:3px}\n\n\/* cards: what we automate *\/\n.bqa-ta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}\n.bqa-ta-card{border:1px solid var(--c-line);border-radius:12px;background:#fff;padding:20px 20px 18px}\n.bqa-ta-card i{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;background:#f1eafb;color:var(--c-deep);font-size:1rem;margin-bottom:12px}\n.bqa-svc-page .bqa-ta-card h3{font-size:1.0625rem;margin:0 0 6px}\n.bqa-svc-page .bqa-ta-card p{font-size:.9375rem;line-height:1.55;margin:0;max-width:none}\n.bqa-svc-page .bqa-ta-card p + p{margin-top:8px}\n.bqa-ta-card a{font-weight:500}\n.bqa-ta-card.is-ask{background:var(--c-teal);border-color:var(--c-teal);display:flex;flex-direction:column;justify-content:center}\n.bqa-svc-page .bqa-ta-card.is-ask p{color:var(--c-ink)}\n\n\/* tools *\/\n.bqa-ta-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:22px;border:1px solid var(--c-line);border-radius:12px;background:#fff;overflow:hidden}\n.bqa-ta-tool{padding:20px;border-left:1px solid var(--c-line)}\n.bqa-ta-tool:first-child{border-left:0}\n.bqa-svc-page .bqa-ta-tool h3{font-size:1.0625rem;margin:0 0 6px}\n.bqa-svc-page .bqa-ta-tool p{font-size:.9rem;line-height:1.55;margin:0;max-width:none}\n.bqa-ta-tool.is-ours{background:#faf7fe}\n.bqa-ta-tag{display:inline-block;font-family:'Jost',sans-serif;font-size:.75rem;font-weight:500;color:var(--c-deep);background:#f1eafb;border-radius:999px;padding:2px 10px;margin-left:6px;vertical-align:2px}\n.bqa-svc-page p.bqa-ta-after{font-size:.9375rem;margin-top:16px;color:var(--c-dim)}\n\n\/* engagement table *\/\n.bqa-svc-table{width:100%;border-collapse:collapse;margin:18px 0 0;font-size:.9375rem;background:#fff;border:1px solid var(--c-line);border-radius:12px;overflow:hidden}\n.bqa-svc-table th,.bqa-svc-table td{text-align:left;vertical-align:top;padding:14px 16px;border-top:1px solid var(--c-line);line-height:1.5}\n.bqa-svc-table thead th{border-top:0;background:var(--c-wash);font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.6875rem;font-weight:500;color:var(--c-dim);text-transform:uppercase;letter-spacing:.1em}\n.bqa-svc-table tbody th{font-family:'Jost',sans-serif;font-weight:600;color:var(--c-ink);font-size:1rem;width:24%}\n.bqa-ta-terms{margin-top:18px}\n.bqa-svc-page .bqa-ta-terms h3{font-size:.9375rem;margin:0 0 10px}\n.bqa-ta-terms ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}\n.bqa-ta-terms li{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;color:var(--c-ink);background:#fff;border:1px solid var(--c-line);border-radius:999px;padding:7px 14px;line-height:1.3}\n.bqa-ta-terms li i{color:var(--c-purple);font-size:.8125rem}\n\n\/* repository *\/\n.bqa-ta-own{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:22px;padding-top:20px;border-top:2px solid var(--c-ink)}\n.bqa-svc-page .bqa-ta-own h3{font-size:1.0625rem;margin:0 0 6px}\n.bqa-svc-page .bqa-ta-own p{font-size:.9375rem;line-height:1.55;margin:0;max-width:none}\n.bqa-svc-page p.bqa-ta-note{font-size:.875rem;color:var(--c-dim);margin-top:20px}\n\n\/* steps *\/\n.bqa-ta-steps{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;counter-reset:ta}\n.bqa-ta-steps li{position:relative;padding:44px 18px 0 0;counter-increment:ta}\n.bqa-ta-steps li::before{content:counter(ta);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--c-ink);color:#fff;font-family:'Jost',sans-serif;font-weight:600;font-size:.875rem;display:flex;align-items:center;justify-content:center;z-index:1}\n.bqa-ta-steps li::after{content:'';position:absolute;left:30px;right:0;top:15px;height:1px;background:#c9ced6}\n.bqa-ta-steps li:last-child::after{display:none}\n.bqa-ta-steps li:last-child::before{background:var(--c-purple)}\n.bqa-svc-page .bqa-ta-steps h3{font-size:1rem;margin:0 0 6px}\n.bqa-svc-page .bqa-ta-steps p{font-size:.9rem;line-height:1.5;margin:0;max-width:none}\n\n\/* cost *\/\n.bqa-ta-cost{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:start;margin-top:20px}\n.bqa-ta-price{border:1px solid var(--c-line);border-left:3px solid var(--c-purple);border-radius:10px;padding:18px 20px;background:#fff}\n.bqa-ta-price-v{font-family:'Jost',sans-serif;font-weight:600;font-size:2.25rem;color:var(--c-ink);line-height:1;display:block}\n.bqa-ta-price-l{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.6875rem;color:var(--c-dim);text-transform:uppercase;letter-spacing:.1em;display:block;margin-top:8px}\n.bqa-svc-page .bqa-ta-cost p{font-size:.9375rem;margin:0 0 12px;max-width:620px}\n.bqa-svc-page .bqa-ta-cost p:last-child{margin-bottom:0}\n\n\/* FAQ *\/\n.bqa-faq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}\n.bqa-faq-item{border:1px solid var(--c-line);border-radius:12px;padding:18px 20px;background:#fff}\n.bqa-svc-page .bqa-faq-question{font-size:1rem!important;margin:0 0 6px!important}\n.bqa-svc-page .bqa-faq-answer{display:block!important;max-height:none!important;opacity:1!important;overflow:visible!important}\n.bqa-svc-page .bqa-faq-answer p{margin:0;font-size:.9rem;line-height:1.55;max-width:none}\n\n\/* closing CTA *\/\n.bqa-svc-cta{padding:48px 0 60px}\n.bqa-svc-ctacard{border:1px solid #c9dcdc;border-radius:14px;padding:32px;background:var(--c-teal);display:flex;gap:26px;align-items:center;flex-wrap:wrap;justify-content:space-between}\n.bqa-svc-page .bqa-svc-ctacard h2{font-size:1.5rem;margin-bottom:8px}\n.bqa-svc-page .bqa-svc-ctacard p{margin:0;max-width:560px;color:var(--c-ink)}\n.bqa-svc-btns{display:flex;gap:12px;flex-wrap:wrap}\n\n@media (max-width:1000px){\n  .bqa-ta-tools{grid-template-columns:repeat(2,minmax(0,1fr))}\n  .bqa-ta-tool:nth-child(3){border-left:0}\n  .bqa-ta-tool:nth-child(n+3){border-top:1px solid var(--c-line)}\n  .bqa-ta-steps{grid-template-columns:1fr;gap:16px}\n  .bqa-ta-steps li{padding:2px 0 0 46px}\n  .bqa-ta-steps li::after{left:15px;right:auto;top:30px;bottom:-16px;width:1px;height:auto}\n}\n@media (max-width:860px){\n  .bqa-ta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}\n  .bqa-ta-own{grid-template-columns:1fr;gap:16px}\n  .bqa-ta-cost{grid-template-columns:1fr;gap:18px}\n  .bqa-faq-list{grid-template-columns:1fr}\n}\n@media (max-width:768px){\n  .bqa-svc-hero{padding:40px 0 32px}\n  .bqa-svc-sec{padding:38px 0}\n  .bqa-svc-ctacard{padding:24px}\n  .bqa-svc-fact{min-width:calc(50% - 6px);flex:1 1 calc(50% - 6px)}\n}\n@media (max-width:640px){\n  .bqa-svc-hero .bqa-svc-hand{display:none}\n  .bqa-ta-card{padding:16px 18px}\n  .bqa-ta-card i{width:30px;height:30px;margin-bottom:8px;font-size:.875rem}\n  .bqa-ta-tool{padding:16px 18px}\n  .bqa-ta-grid{grid-template-columns:1fr}\n  .bqa-ta-tools{grid-template-columns:1fr}\n  .bqa-ta-tool{border-left:0!important}\n  .bqa-ta-tool + .bqa-ta-tool{border-top:1px solid var(--c-line)}\n  .bqa-svc-table,.bqa-svc-table tbody,.bqa-svc-table tr,.bqa-svc-table th,.bqa-svc-table td{display:block;width:100%}\n  .bqa-svc-table thead{display:none}\n  .bqa-svc-table tr{border-top:1px solid var(--c-line);padding:14px 16px}\n  .bqa-svc-table tr:first-child{border-top:0}\n  .bqa-svc-table tbody th,.bqa-svc-table td{border:0;padding:4px 0;width:100%}\n  .bqa-svc-table td::before{content:attr(data-label);display:block;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.625rem;color:var(--c-dim);text-transform:uppercase;letter-spacing:.1em;margin-bottom:2px}\n}\n@media (max-width:500px){\n  .bqa-svc-btn{width:100%;justify-content:center}\n  .bqa-svc-btns,.bqa-svc-herobtns{width:100%}\n}\n@media (max-width:380px){\n  .bqa-svc-wrap{padding:0 16px}\n  .bqa-svc-fact{min-width:100%;flex-basis:100%}\n  .bqa-faq-item,.bqa-ta-card{padding:16px}\n}\n\/* wide screens: hero gets a right-hand panel; section labels move to a left rail (same as \/qa-outsourcing\/) *\/\n@media (min-width:1100px){\n  .bqa-svc-wrap{max-width:1200px}\n  .bqa-svc-hero .bqa-svc-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;column-gap:64px;align-items:start}\n  .bqa-svc-hero .bqa-svc-wrap > *{grid-column:1}\n  .bqa-svc-hero .bqa-svc-wrap .bqa-svc-hand{grid-column:2;grid-row:1 \/ span 20;align-self:start;margin:0}\n  .bqa-svc-hero .bqa-svc-wrap .bqa-svc-facts{flex-wrap:wrap;gap:0 30px;margin-top:24px;padding:14px 0 0;border-top:1px solid var(--c-line)}\n  .bqa-svc-hero .bqa-svc-fact{border:0;background:transparent;border-radius:0;padding:2px 0;min-width:0;flex:0 0 auto}\n  .bqa-svc-sec .bqa-svc-wrap{display:grid;grid-template-columns:168px minmax(0,1fr);column-gap:56px;align-items:start}\n  .bqa-svc-sec .bqa-svc-wrap > *{grid-column:2}\n  .bqa-svc-sec .bqa-svc-wrap > .bqa-svc-label{grid-column:1;grid-row:1;margin:6px 0 0;position:sticky;top:104px}\n}\n@media (prefers-reduced-motion:reduce){.bqa-svc-btn{transition:none}}\n<\/style>\n<style>\n\/* batch-1 page-local additions (not in the test-automation-v2 template) *\/\n.bqa-svc-page code{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.8125rem;background:var(--c-wash);border:1px solid var(--c-line);border-radius:6px;padding:2px 6px;color:var(--c-ink);white-space:normal;overflow-wrap:anywhere}\n.bqa-svc-page .bqa-b1-list{margin:10px 0 16px;padding:0;list-style:none}\n.bqa-svc-page .bqa-b1-list li{position:relative;padding:4px 0 4px 20px;font-size:.9rem;line-height:1.5;list-style:none}\n.bqa-svc-page .bqa-b1-list li::before{content:'';position:absolute;left:2px;top:12px;width:7px;height:7px;border-radius:50%;background:var(--c-purple)}\n.bqa-b1-num{display:block;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.6875rem;color:var(--c-deep);letter-spacing:.1em;margin-bottom:8px}\n.bqa-svc-page h3.bqa-b1-sub{font-size:1.0625rem;margin:26px 0 4px}\n.bqa-svc-page p.bqa-b1-src{font-size:.875rem;color:var(--c-dim);margin-top:18px}\n.bqa-svc-table + h3.bqa-b1-sub{margin-top:30px}\n.bqa-svc-page .bqa-svc-table td,.bqa-svc-page .bqa-svc-table th{overflow-wrap:anywhere}\n<\/style>\n\n<div class=\"bqa-svc-page\">\n\n<section class=\"bqa-svc-hero\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-who\">For teams that want to know which code their tests never touch<\/div>\n<h1>Structural testing<\/h1>\n<p class=\"bqa-svc-lead\">Structural testing, also known as white-box testing or structure-based testing, designs tests from the internal structure of the code: its logic, control flow and execution paths. Code coverage shows how much of that structure the tests have exercised.<\/p>\n<div class=\"bqa-svc-facts\">\n<div class=\"bqa-svc-fact\"><span class=\"bqa-svc-fact-v\">\u20ac20-45<\/span><span class=\"bqa-svc-fact-l\">Per hour<\/span><\/div><div class=\"bqa-svc-fact\"><span class=\"bqa-svc-fact-v\">First 2 weeks<\/span><span class=\"bqa-svc-fact-l\">Complimentary on ongoing work if not happy<\/span><\/div><div class=\"bqa-svc-fact\"><span class=\"bqa-svc-fact-v\">50+<\/span><span class=\"bqa-svc-fact-l\">QA engineers<\/span><\/div><div class=\"bqa-svc-fact\"><span class=\"bqa-svc-fact-v\">2018<\/span><span class=\"bqa-svc-fact-l\">Founded<\/span><\/div>\n<\/div>\n<div class=\"bqa-svc-herobtns\"><a class=\"bqa-svc-btn bqa-svc-btn-p\" href=\"\/contact-us\/\">Talk to us<\/a><a class=\"bqa-svc-btn bqa-svc-btn-s\" href=\"mailto:office@betterqa.co\">Email office@betterqa.co<\/a><\/div>\n<div class=\"bqa-svc-hand\"><h3>Four coverage types<\/h3><ul>\n<li><i class=\"fas fa-check-circle\" aria-hidden=\"true\"><\/i>Statement coverage<span>Typical target 80-100%<\/span><\/li><li><i class=\"fas fa-check-circle\" aria-hidden=\"true\"><\/i>Branch coverage<span>Typical target 70-90%<\/span><\/li><li><i class=\"fas fa-check-circle\" aria-hidden=\"true\"><\/i>Path coverage<span>Critical paths<\/span><\/li><li><i class=\"fas fa-check-circle\" aria-hidden=\"true\"><\/i>Condition coverage<span>Typical target 60-80%<\/span><\/li>\n<\/ul><\/div>\n<\/div><\/section>\n\n<section class=\"bqa-svc-sec\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ definition<\/div>\n<h2>What is structural testing?<\/h2>\n<p>Structural testing (also known as white-box testing) is based on the internal code structure, logic and implementation details of a system. Tests are designed by analyzing source code, control flows, data flows and execution paths.<\/p>\n<p>It uses code coverage metrics to measure how adequate the tests are, and makes sure critical branches, loops and conditions are actually exercised.<\/p>\n<p><strong>Structural vs functional.<\/strong> <a href=\"\/software-testing-services\/functional-testing\/\">Functional (black-box) testing<\/a> checks behaviour against requirements without looking at the code. Structural testing looks inside. You need both.<\/p>\n\n<\/div><\/section>\n\n<section class=\"bqa-svc-sec alt\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ coverage<\/div>\n<h2>Coverage techniques<\/h2>\n<p>Branch coverage is stronger than statement coverage, and path coverage is the most thorough and the most expensive. Condition coverage checks each part of a compound condition, and is usually combined with branch coverage. Pick the target per module, by risk.<\/p>\n<table class=\"bqa-svc-table\">\n<thead><tr><th scope=\"col\">Coverage type<\/th><th scope=\"col\">What it measures<\/th><th scope=\"col\">Typical target<\/th><\/tr><\/thead>\n<tbody>\n<tr><th scope=\"row\">Statement coverage<\/th><td data-label=\"What it measures\">The percentage of executable statements run at least once during testing. The most basic coverage metric.<\/td><td data-label=\"Typical target\">80-100%<\/td><\/tr>\n<tr><th scope=\"row\">Branch coverage<\/th><td data-label=\"What it measures\">Whether every decision point (if-else, switch-case) has been tested with both true and false outcomes. Stronger than statement coverage.<\/td><td data-label=\"Typical target\">70-90%<\/td><\/tr>\n<tr><th scope=\"row\">Path coverage<\/th><td data-label=\"What it measures\">All possible execution paths, including combinations of branches and loops. The most thorough, and it grows exponentially.<\/td><td data-label=\"Typical target\">Critical paths<\/td><\/tr>\n<tr><th scope=\"row\">Condition coverage<\/th><td data-label=\"What it measures\">Whether each boolean sub-expression in a condition has been evaluated both true and false. Catches logic errors in compound conditions.<\/td><td data-label=\"Typical target\">60-80%<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n<\/div><\/section>\n\n<section class=\"bqa-svc-sec\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ process<\/div>\n<h2>Structural testing process<\/h2>\n<ol class=\"bqa-ta-steps\">\n<li><h3>Code analysis<\/h3><p>Review the source code, draw control flow graphs, and map decision points, branches and execution paths.<\/p><\/li>\n<li><h3>Coverage target selection<\/h3><p>Set coverage goals (statement, branch, path, condition) based on how critical and risky each part is.<\/p><\/li>\n<li><h3>Test case design<\/h3><p>Create inputs that exercise specific paths, edge cases and boundary conditions.<\/p><\/li>\n<li><h3>Instrumentation and execution<\/h3><p>Instrument the code with coverage tools, run the tests, and collect which lines, branches and paths were hit.<\/p><\/li>\n<li><h3>Gap analysis and iteration<\/h3><p>Find untested sections, add tests for the gaps, and repeat until the targets are met.<\/p><\/li>\n<\/ol>\n\n<\/div><\/section>\n\n<section class=\"bqa-svc-sec alt\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ why<\/div>\n<h2>Why structural testing matters<\/h2>\n<div class=\"bqa-ta-grid\">\n<div class=\"bqa-ta-card\"><i class=\"fas fa-code\" aria-hidden=\"true\"><\/i><h3>Complements functional testing<\/h3><p>Black-box testing validates behaviour against requirements. White-box testing checks the internal logic and finds implementation errors.<\/p><ul class=\"bqa-b1-list\"><li>Catches logic errors functional tests miss<\/li><li>Verifies error handling and edge cases<\/li><li>Makes sure code paths are exercised<\/li><li>Finds dead code and unreachable branches<\/li><\/ul><\/div>\n<div class=\"bqa-ta-card\"><i class=\"fas fa-percentage\" aria-hidden=\"true\"><\/i><h3>Objective quality metrics<\/h3><p>Coverage gives you numbers on how complete the tests are, and shows where more testing is needed.<\/p><ul class=\"bqa-b1-list\"><li>Measurable test adequacy<\/li><li>Risk-based coverage targets<\/li><li>Feedback in continuous integration<\/li><li>Reporting for regulatory compliance<\/li><\/ul><\/div>\n<div class=\"bqa-ta-card is-ask\"><p><strong>Have coverage numbers but do not trust them?<\/strong><\/p><p>High coverage with weak assertions is common. We can look. <a href=\"\/contact-us\/\">Talk to us<\/a><\/p><\/div>\n<\/div>\n\n<\/div><\/section>\n\n<section class=\"bqa-svc-sec\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ standard<\/div>\n<h2>Industry standard<\/h2>\n<h3 class=\"bqa-b1-sub\">ISTQB Foundation Level<\/h3>\n<p>Structural testing techniques are defined in the <a href=\"https:\/\/www.istqb.org\/\" rel=\"noopener nofollow\" target=\"_blank\">ISTQB<\/a> Certified Tester Foundation Level syllabus, section 4.3 (white-box test techniques). We apply its standard coverage criteria on every project.<\/p>\n<p class=\"bqa-b1-src\">Related: <a href=\"\/software-testing-services\/component-testing\/\">component testing<\/a>, where most structural tests are written, and <a href=\"\/software-testing-services\/static-testing\/\">static testing<\/a>, which reviews code without running it.<\/p>\n\n<\/div><\/section>\n\n<section class=\"bqa-svc-sec alt\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ how we work<\/div>\n<h2>How BetterQA does structural testing<\/h2>\n<p>We work in your repository with your coverage tools, set targets per module by risk, and report the gaps that matter, not just a single coverage percentage.<\/p>\n<div class=\"bqa-ta-own\">\n<div><h3>Engineers who test for a living<\/h3><p>50+ QA engineers, working since 2018. People plan and run the structural testing and report what the results mean for your release.<\/p><\/div>\n<div><h3>Bugs you can act on<\/h3><p>Every defect we find is written up in <a href=\"https:\/\/bugboard.co\" rel=\"noopener\" target=\"_blank\">BugBoard<\/a>, our own test management tool, or in your tracker, with steps to reproduce, the expected and actual result, and the environment.<\/p><\/div>\n<div><h3>A certified process<\/h3><p>ISO 9001 for quality management and ISO 27001:2022 for information security. See <a href=\"\/certifications\/\">our certifications<\/a>.<\/p><\/div>\n<\/div>\n<div class=\"bqa-ta-terms\"><h3>How an engagement works<\/h3><ul><li><i class=\"fas fa-euro-sign\" aria-hidden=\"true\"><\/i>\u20ac20-45 per hour<\/li><li><i class=\"fas fa-flag\" aria-hidden=\"true\"><\/i>First month is a trial<\/li><li><i class=\"fas fa-undo\" aria-hidden=\"true\"><\/i>First two weeks complimentary if you are not happy<\/li><li><i class=\"fas fa-door-open\" aria-hidden=\"true\"><\/i>30 days notice after that<\/li><\/ul><\/div>\n\n<figure class=\"bqa-svc-photo\" style=\"margin:32px 0 0;max-width:820px\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-768x511.webp 768w, https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-1024x682.webp 1024w, https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-1536x1022.webp 1536w\" sizes=\"(max-width: 880px) 100vw, 820px\"><img loading=\"lazy\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-1024x682.jpg\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-768x511.jpg 768w, https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-1024x682.jpg 1024w, https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6447-1536x1022.jpg 1536w\" sizes=\"auto, (max-width: 880px) 100vw, 820px\" width=\"1600\" height=\"1065\" alt=\"A BetterQA engineer looking at a code editor on her monitor\" loading=\"lazy\" decoding=\"async\" style=\"display:block;width:100%;height:auto;border-radius:12px\" title=\"\"><\/picture><\/figure><\/div><\/section>\n\n<section class=\"bqa-svc-sec\"><div class=\"bqa-svc-wrap\">\n<div class=\"bqa-svc-label\">\/\/ questions<\/div>\n<h2>Structural testing: common questions<\/h2>\n<div class=\"bqa-faq-list\">\n<div class=\"bqa-faq-item\"><h3 class=\"bqa-faq-question\">What is structural testing?<\/h3><div class=\"bqa-faq-answer\"><p>A test design approach based on the internal structure of the code. Tests are derived from the logic, control flow and execution paths, and measured with code coverage.<\/p><\/div><\/div>\n<div class=\"bqa-faq-item\"><h3 class=\"bqa-faq-question\">What is structural testing also known as?<\/h3><div class=\"bqa-faq-answer\"><p>White-box testing, and in ISTQB terms structure-based testing. It is also called glass-box or clear-box testing.<\/p><\/div><\/div>\n<div class=\"bqa-faq-item\"><h3 class=\"bqa-faq-question\">What is the difference between statement and branch coverage?<\/h3><div class=\"bqa-faq-answer\"><p>Statement coverage counts executable statements that ran at least once. Branch coverage also requires every decision to be tested both true and false, so it is the stronger of the two.<\/p><\/div><\/div>\n<div class=\"bqa-faq-item\"><h3 class=\"bqa-faq-question\">Is 100% code coverage enough?<\/h3><div class=\"bqa-faq-answer\"><p>No. Coverage shows which code ran, not whether the tests checked the right result. It works best next to functional testing, with assertions that would fail if the code were wrong.<\/p><\/div><\/div>\n<div class=\"bqa-faq-item\"><h3 class=\"bqa-faq-question\">Who does structural testing?<\/h3><div class=\"bqa-faq-answer\"><p>Developers and testers with access to the source code, usually at the component and integration level, using coverage tools in the build pipeline.<\/p><\/div><\/div>\n<div class=\"bqa-faq-item\"><h3 class=\"bqa-faq-question\">Can you show a structural testing example?<\/h3><div class=\"bqa-faq-answer\"><p>Take <code>if (age &gt;= 18) { grant(); }<\/code> with no else part. One test with age 20 runs every statement, so statement coverage is complete. The false outcome of the decision never ran, so branch coverage is not complete. A second test with age 10 closes the gap. This is why ISTQB CTFL 4.3.1 notes that 100% statement coverage does not ensure all the decision logic has been tested, and why 4.3.2 asks for every branch.<\/p><\/div><\/div>\n<\/div>\n\n<\/div><\/section>\n\n<section class=\"bqa-svc-cta\"><div class=\"bqa-svc-wrap\"><div class=\"bqa-svc-ctacard\"><div>\n<h2>Need white-box testing?<\/h2>\n<p>Show us your code and your current coverage report. We will tell you which gaps matter and close them with tests that check real behaviour.<\/p>\n<\/div><div class=\"bqa-svc-btns\"><a class=\"bqa-svc-btn bqa-svc-btn-p\" href=\"\/contact-us\/\">Get started<\/a><a class=\"bqa-svc-btn bqa-svc-btn-s\" href=\"\/software-testing-services\/\">View all services<\/a><\/div><\/div><\/div><\/section>\n\n<\/div>\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>Structural Testing Services White-box testing with comprehensive code coverage analysis, static analysis, and internal structure verification to ensure robust, maintainable software quality from the inside out. 95%+ Code coverage targets 4 Coverage analysis types 100% Path validation What is structural testing? Structural testing (white-box testing) examines the internal code structure, logic paths, and implementation details [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4688,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4784","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/4784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/page"}],"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=4784"}],"version-history":[{"count":0,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/4784\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/pages\/4688"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=4784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}