---
title: "Test Case Design Techniques: How to Choose the Right Approach"
description: Learn how to choose the right test case design technique for any system. Covers black-box techniques (ECP, BVA, Decision Table, Pairwise) and white-box techniques (Control Flow, Cyclomatic Complexity), with a step-by-step decision framework.
image: https://cms-cdn.katalon.com/test_case_design_techniques_you_should_know_ef9c8ec9ae.png
---

Up to 55% off Your first purchase - Offer ends Oct 31 [Claim offer](https://mkt.qa.katalon.com/pricing?campaign_source=top-nav-banner&campaign_medium=banner&campaign_name=oct-2026)

[Contact us](https://mkt.qa.katalon.com/contact-us?contact_source=top-nav) [Log in](https://mkt.qa.katalon.com/sign-in?ref=header_start_free_trial&return_to=%2Fresources-center%2Fblog%2Ftest-design-techniques-you-should-know)

[![Katalon](https://mkt.qa.katalon.com/hubfs/website-assets-2026/brand/katalon-wordmark.svg)](https://mkt.qa.katalon.com/)

 True Platform

 Solutions 

[Pricing](https://mkt.qa.katalon.com/pricing)

 Resources

[Start free trial](https://mkt.qa.katalon.com/open-true-platform?ref=header_start_free_trial) [Book a demo](https://mkt.qa.katalon.com/view-a-demo?contact_source=top-nav)

[Test automation Katalon Studio Author web, mobile, API and desktop tests with no-code, low-code or full code.](https://mkt.qa.katalon.com/katalon-studio) [Test management + manual testing TestOps Plan cycles, track coverage and gate releases on one shared report.](https://mkt.qa.katalon.com/testops) [Test execution TestCloud Run suites in parallel on real browsers, devices and your own CI runners.](https://mkt.qa.katalon.com/testcloud) [Production insights TrueTest See how real users move through your product and where coverage is missing.](https://mkt.qa.katalon.com/truetest)

![](https://mkt.qa.katalon.com/hubfs/website-assets-2026/brand/katalon-ai.svg)

Katalon AI runs through all four

 Generate cases from requirements, heal locators when the app changes, and summarise release readiness.

[Explore Katalon AI](https://mkt.qa.katalon.com/ai-powered-testing-platform) [Katalon MCP server](https://mkt.qa.katalon.com/katalon-mcp)

Application under test

[Web testing Quickly create your tests, debug with advanced tools, and execute across multiple browsers.](https://mkt.qa.katalon.com/web-testing) [API testing Streamline testing for any API architecture, and unify API, web and mobile testing in one platform.](https://mkt.qa.katalon.com/api-testing) [Mobile testing Test your Android and iOS apps across browsers, devices and operating systems.](https://mkt.qa.katalon.com/mobile-testing) [Desktop testing Test your Windows apps with Studio and move between AUTs without leaving the tool.](https://mkt.qa.katalon.com/desktop-testing)

Enterprise-grade testing

 Deliver quality at any scale: Studio's ease of use, a central testing command centre, AI-assisted authoring and enterprise security controls. 

[See enterprise capabilities](https://mkt.qa.katalon.com/enterprise)

By industry

[Banking and financial services](https://mkt.qa.katalon.com/banking-financial-services-software-testing) [Retail and ecommerce](https://mkt.qa.katalon.com/retail-ecommerce-software-testing) [Tech, telco and SaaS](https://mkt.qa.katalon.com/tech-telco-saas-software-testing) [Healthcare](https://mkt.qa.katalon.com/healthcare-software-testing) [Insurance](https://mkt.qa.katalon.com/insurance-software-testing) [Government and public sector](https://mkt.qa.katalon.com/government-and-public-sector-software-testing)

Learn

[Product docs Guides, feature specs, and API reference for every product.](https://docs.katalon.com) [Katalon Academy Over 50 free courses, with certifications on Katalon tools.](https://academy.katalon.com) [Release notes What shipped, product by product.](https://docs.katalon.com/katalon-platform/release-notes/katalon-testops-release-notes)

Get help

[Katalon community Advice, tips, and working examples from thousands of testing pros.](https://mkt.qa.katalon.com/community-hub) [Technical support Raise a ticket with the team and track it through to a fix.](https://support.katalon.com) [Trust center Security, privacy, and compliance documentation.](https://trust.katalon.com/)

Insights

[Blog](https://mkt.qa.katalon.com/resources-center/blog) [Webinars and events](https://mkt.qa.katalon.com/webinars) [Reports](https://mkt.qa.katalon.com/reports) [Success stories](https://mkt.qa.katalon.com/case-studies) [![](https://katalon.com/images/the-future-of-software-testing/tfost-icon.png?width=32&height=32&name=tfost-icon.png) The Future of Software Testing](https://thefutureofsoftwaretesting.com)

[![](https://katalon.com/images/qa-leaders-live/qa-leaders-webinar-banner.png?width=1916&height=1156&name=qa-leaders-webinar-banner.png) Upcoming webinar QA Leaders Live: Navigating the Future of Software Quality October 27, 2026 Four live episodes on AI, automation, and delivering quality at scale. Register now](https://mkt.qa.katalon.com/webinars/qa-leaders-live)

[Download Studio](https://mkt.qa.katalon.com/download) [Browse integrations](https://mkt.qa.katalon.com/integrations) [Talk to an expert](https://mkt.qa.katalon.com/contact-us)

[![Katalon](https://mkt.qa.katalon.com/hubfs/website-assets-2026/brand/katalon-wordmark.svg)](https://mkt.qa.katalon.com/)

 True Platform

[Katalon Studio](https://mkt.qa.katalon.com/katalon-studio) [TestOps](https://mkt.qa.katalon.com/testops) [TestCloud](https://mkt.qa.katalon.com/testcloud) [TrueTest](https://mkt.qa.katalon.com/truetest)

 Katalon AI

[Explore Katalon AI](https://mkt.qa.katalon.com/ai-powered-testing-platform) [Katalon MCP](https://mkt.qa.katalon.com/katalon-mcp)

 Solutions

Application under test

[Web testing](https://mkt.qa.katalon.com/web-testing) [API testing](https://mkt.qa.katalon.com/api-testing) [Mobile testing](https://mkt.qa.katalon.com/mobile-testing) [Desktop testing](https://mkt.qa.katalon.com/desktop-testing)

By industry

[Banking and financial services](https://mkt.qa.katalon.com/banking-financial-services-software-testing) [Retail and ecommerce](https://mkt.qa.katalon.com/retail-ecommerce-software-testing) [Tech, telco and SaaS](https://mkt.qa.katalon.com/tech-telco-saas-software-testing) [Healthcare](https://mkt.qa.katalon.com/healthcare-software-testing) [Insurance](https://mkt.qa.katalon.com/insurance-software-testing) [Government and public sector](https://mkt.qa.katalon.com/government-and-public-sector-software-testing)

Enterprise-grade testing

[See enterprise capabilities](https://mkt.qa.katalon.com/enterprise)

[Pricing](https://mkt.qa.katalon.com/pricing)

 Resources

Learn

[Product docs](https://docs.katalon.com) [Katalon Academy](https://academy.katalon.com) [Release notes](https://docs.katalon.com/katalon-platform/release-notes/katalon-testops-release-notes)

Get help

[Katalon community](https://mkt.qa.katalon.com/community-hub) [Technical support](https://support.katalon.com) [Trust center](https://trust.katalon.com/)

Insights

[Blog](https://mkt.qa.katalon.com/resources-center/blog) [Webinars and events](https://mkt.qa.katalon.com/webinars) [Reports](https://mkt.qa.katalon.com/reports) [Success stories](https://mkt.qa.katalon.com/case-studies) [The Future of Software Testing](https://thefutureofsoftwaretesting.com)

Get started

[Download Studio](https://mkt.qa.katalon.com/download) [Browse integrations](https://mkt.qa.katalon.com/integrations) [Talk to an expert](https://mkt.qa.katalon.com/contact-us)

[Start free trial](https://mkt.qa.katalon.com/open-true-platform?ref=header_start_free_trial) [Book a demo](https://mkt.qa.katalon.com/view-a-demo?contact_source=top-nav)

[Contact us](https://mkt.qa.katalon.com/contact-us?contact_source=top-nav) [Log in](https://mkt.qa.katalon.com/sign-in?ref=header_start_free_trial&return_to=%2Fresources-center%2Fblog%2Ftest-design-techniques-you-should-know)

 All All News Products Insights Community

- [All](https://mkt.qa.katalon.com/resources-center/blog)
- [News](https://mkt.qa.katalon.com/resources-center/blog/tag/news)
- [Products](https://mkt.qa.katalon.com/resources-center/blog/tag/products)
- [Insights](https://mkt.qa.katalon.com/resources-center/blog/tag/insights)
- [Community](https://mkt.qa.katalon.com/resources-center/blog/tag/community)

 Search

Click

![search icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/search_page/search_lilac_icon.svg)

# Test Case Design Techniques: How to Choose the Right Approach

Learn how to choose the right test case design technique for any system. Covers black-box techniques (ECP, BVA, Decision Table, Pairwise) and white-box techniques (Control Flow, Cyclomatic Complexity), with a step-by-step decision framework.

[Start free trial](https://mkt.qa.katalon.com/sign-up?ref=blog_insight_hero_banner_download_studio_hero) [Book a demo](https://mkt.qa.katalon.com/view-a-demo#see-katalon-action)

How-to / Tutorials

Functional Testing

![Hero Banner](https://cms-cdn.katalon.com/test_case_design_techniques_you_should_know_ef9c8ec9ae.png)

[![logo](https://mkt.qa.katalon.com/hubfs/katalon_logo%20(1).svg)](https://mkt.qa.katalon.com/)

[All](https://mkt.qa.katalon.com/resources-center/blog) [News](https://mkt.qa.katalon.com/resources-center/blog/tag/news) [Products](https://mkt.qa.katalon.com/resources-center/blog/tag/products) [Insights](https://mkt.qa.katalon.com/resources-center/blog/tag/insights) [AI](https://mkt.qa.katalon.com/resources-center/blog/tag/ai) [DevOps and CI/CD](https://mkt.qa.katalon.com/resources-center/blog/tag/devops-and-ci-cd) [Community](https://mkt.qa.katalon.com/resources-center/blog/tag/community)

[View Demo](https://mkt.qa.katalon.com/view-a-demo) [Download Studio](https://mkt.qa.katalon.com/download)

Smart Summary

Achieving robust software quality requires a deep understanding of effective test case design techniques. We delineate methodologies tailored for both black-box and white-box systems, providing practical strategies to create targeted tests that ensure comprehensive coverage and uncover hidden defects within any application.

- **System Opacity Guides Technique Selection:** Discern between black-box systems, which focus on external behavior, and white-box systems, which target internal code structure, to strategically apply appropriate test case design methodologies for effective and targeted coverage.
- **Master Black-Box Efficiency:** Utilize techniques like Equivalence Class Partitioning and Boundary Value Analysis to minimize test cases for black-box systems by focusing on representative values and critical boundary conditions; employ Decision Table Testing for complex business rules and Pairwise Testing for efficient combinatorial coverage.
- **Ensure White-Box Code Thoroughness:** Apply Control Flow Testing to analyze and cover execution paths within the code, and leverage Structured Testing to identify and test all independent program paths, employing Cyclomatic Complexity to measure and guide internal code coverage.

Good response

Bad response

|

Copied

 \>

Read more

[Blog](https://mkt.qa.katalon.com/resources-center/blog) / [Insights](https://mkt.qa.katalon.com/resources-center/blog/tag/insights) /

Test Case Design Techniques: How to Choose the Right Approach

## Test Case Design Techniques: How to Choose the Right Approach

![Huyen Nguyen](https://mkt.qa.katalon.com/hubfs/huyen-nguyen.jpeg)

[Huyen Nguyen](https://mkt.qa.katalon.com/author?name=huyen-nguyen)

Technical Writer, Katalon Updated on

Learn with AI

Linkedin

Facebook

X (Twitter)

Mail

Learn with AI

The first step is often the hardest, and in software quality engineering, this is especially true. When presented with a system, how do you go about and decide *what* to test? Standing in the middle of the unknown, we need guidance, and learning about **test case design techniques** is a good place to start. As software complexity scales with AI-integrated features, these techniques ensure your coverage is both deep and efficient.

In this article, we’ll show you:

- 2 types of software system: black-box and white-box, each requiring a unique approach to test case design
- Techniques to design test case for each system
- Best practices for each types of system

 Let’s dive in!

## **Black-box System vs White-box System**

![Types of software systems you should know to choose the right test case design techniques](https://cms-cdn.katalon.com/types_of_software_systems_you_should_know_to_choose_the_right_test_case_design_techniques_5559060173.png)  
To design a test case, you first need to consider the **opacity of the system**.

At one end of the spectrum, we have a black-box system. Testers don’t know its internal code structure or internal mechanism. All they know is what the system can accomplish and what we can put in it. To an end-user without technical knowledge, the system is a black box. If you are working with a system where the internal code is hidden, you are performing [black box testing.](https://mkt.qa.katalon.com/resources-center/blog/black-box-testing)

At the other end of the spectrum, we have a white-box system. Testers have full knowledge of its internal code structure. 

In the middle we have the gray box. Testers have partial knowledge of the internal code structure. In practice, most systems in real-world applications can be considered a “gray box”.

For example, simply by navigating to any random website and using its features, you are interacting with a black-box system. However, as soon as you right-click on a blank space on the screen and choose Inspect, you’ll get to see the HTML code behind it. The website is now a gray box to you.

To the web developers behind the website, it is a white box, since they have full access to the source code.

Modern quality engineering has evolved. According to [IBM](https://www.ibm.com/think/topics/shift-left-testing), adopting a "Shift-Left" mindset, where testing design starts during the requirements phase, can prevent defects that cost 15x more to fix if caught after release.

![Most systems in real-world applications are gray box systems, which requires a combination of both black box and white box test case design techniques](https://cms-cdn.katalon.com/most_systems_in_real_world_applications_are_gray_box_systems_which_requires_a_combination_of_both_black_box_and_white_box_test_case_design_techniques_9062fbbb6b.png)

## How to Choose the Right Test Case Design Technique

Knowing the techniques is only half the challenge, the other half is knowing which one to reach for. Use this three-step framework before you start designing any test suite.

### Step 1 — Determine system opacity

- **No code access?** → Use black-box techniques
- **Full code access?** → Use white-box techniques
- **Partial code access?** → Combine both approaches

### Step 2 — Match technique to input type

| **Your input / system characteristics** | **Recommended technique** |
| --- | --- |
| Inputs with defined valid/invalid value ranges | [Equivalence Class Partitioning](https://katalon.com/resources-center/blog/equivalence-class-partitioning-guide) |
| Inputs where defects cluster at range boundaries | [Boundary Value Analysis](https://katalon.com/resources-center/blog/boundary-value-analysis-guide) |
| Complex business rules with multiple interacting conditions | [Decision Table Testing](https://katalon.com/resources-center/blog/decision-table-testing-guide) |
| Many configurable parameters or environments | Pairwise Testing |
| Code paths, branches, and execution logic | Control Flow Testing / Structured Testing |

### Step 3 — Consider your resource constraints

- **Tight timeline?** Prioritize Pairwise or Equivalence Class Partitioning to cut test volume first.
- **High-risk system?** Layer Boundary Value Analysis on top of equivalence classes for edge coverage.
- **Complex conditional logic?** Decision Tables give you full traceability from requirements to test cases.
- **Code quality review needed?** Cyclomatic Complexity tells you where white-box effort should be concentrated.

## **Test Case Design Techniques For Black-box System**

The following techniques apply when you have no access to the system's internal code: you are testing from the outside, based on inputs and expected outputs. For full definitions, worked examples, best practices, and edge cases for each technique, see the [Black Box Testing: Complete Guide](https://katalon.com/resources-center/blog/black-box-testing).

### **1. Equivalence Class Testing**

![Black box testing technique: equivalence class testing](https://cms-cdn.katalon.com/black_box_testing_technique_equivalence_class_testing_2_f44e426bbf.png)

Equivalence Class Testing, also called Equivalence Partitioning, is a [black-box testing technique](https://mkt.qa.katalon.com/resources-center/blog/black-box-testing) designed to minimize the number of test cases while ensuring adequate coverage.

In this method, input data is divided into *equivalence classes* or *partitions*. Each class represents a group of inputs that the system should handle in the same way.

From each equivalence class, one or more representative values are selected for testing. These values are expected to produce the same result as any other value in the same class, reducing the need to test every possible input.

There are typically two types of equivalence classes:

- **Valid Equivalence Class**: Inputs that the system should accept and process correctly.
- **Invalid Equivalence Class**: Inputs that the system should reject or handle differently.

For example, a password field requiring 8–20 characters gives you three classes: valid (8–20 chars, e.g. "Pa55word!"), too short (\<8 chars, e.g. "abc"), and too long (\>20 chars, e.g. "thispasswordistoolong123"). One representative from each class, three test cases instead of hundreds.

An equivalence class is only as good as its predictability. If one input in the group uncovers a bug (or passes), its counterparts will likely do the same. This means you only need one representative test case per class, allowing you to cut your test suite size without sacrificing coverage.

Best for: numeric ranges, date fields, string length constraints, enumerated types, any input domain with clear valid/invalid boundaries.

> 📚 **Full step-by-step walkthrough, best practices, edge cases, and AI testing integration:** [Equivalence Class Partitioning: A Complete Guide](https://katalon.com/resources-center/blog/equivalence-class-partitioning-guide)

### 2. Boundary Value Analysis

![Black box testing technique: boundary value analysis](https://cms-cdn.katalon.com/black_box_testing_technique_boundary_value_analysis_e133b5ddeb.png)

Boundary value analysis is an extension of equivalence partitioning testing, with a focus on the boundaries between equivalence classes. The core idea is that errors are more likely to occur at the edges of input ranges rather than in the middle, making boundary testing crucial.

Building on the password field example: a field accepting 8–20 characters has two boundaries. BVA produces test cases at the 6 most critical values: just below the lower boundary (7 chars), at the lower boundary (8 chars), just above (9 chars), just below the upper boundary (19 chars), at the upper boundary (20 chars), and just above (21 chars). These six values are where off-by-one errors, fence-post bugs, and boundary logic failures are most likely to hide.

Best for: any system with defined minimum and maximum input limits — always pair with Equivalence Class Partitioning for complete input coverage.

> 📚 **Complete BVA process, three-step methodology, and combination with ECP:** [Boundary Value Analysis: A Complete Guide](https://katalon.com/resources-center/blog/boundary-value-analysis-guide)

### 3. Decision Table Testing

![Black box testing technique: decision table analysis](https://cms-cdn.katalon.com/black_box_testing_technique_decision_table_analysis_9c7e2c18f4.png)

Decision Table Testing is a black-box testing technique that uses a decision table to map various input combinations to their corresponding outputs.

Key concepts of a decision table include:

- **Condition:** Input variables that influence system behavior
- **Action:** Outcomes based on combinations of conditions
- **Rule:** A specific combination of conditions and their resulting actions

|  | **Rule-1** | **Rule-2** | **\[...\]** | **Rule-p** |
| --- | --- | --- | --- | --- |
| **Conditions** |  |  |  |  |
| Condition-1 |  |  |  |  |
| Condition-2 |  |  |  |  |
| ... |  |  |  |  |
| Condition-m |  |  |  |  |
| **Actions** |  |  |  |  |
| Action-1 |  |  |  |  |
| Action-2 |  |  |  |  |
| ... |  |  |  |  |
| Action-n |  |  |  |  |

Consider an e-commerce discount system with two conditions: membership status (Member/ Guest) and cart value (above or below $50). This produces four rules: four distinct test cases - each mapping a condition combination to its expected discount outcome. Each rule column is one test case, and the table makes it immediately visible if any combination has been missed.

Decision table testing is particularly useful for systems implementing complex business rules that can be represented as combinations of conditions.

Best for: eligibility logic, pricing engines, access control rules, any system where multiple conditions combine to determine an outcome.

> 📚 **Full decision table templates, worked examples, and best practices:** [Decision Table Testing: A Complete Guide](https://katalon.com/resources-center/blog/decision-table-testing-guide)

### **4. Pairwise Testing**

![Black box testing technique: pairwise testing](https://cms-cdn.katalon.com/black_box_testing_technique_pairwise_testing_bcc4c54307.png)

Pairwise testing is a black-box testing technique that focuses on testing combinations of two inputs at a time. Instead of testing every possible combination, this method helps reduce the number of tests while still providing good coverage.

Testing every combination of OS, browser, and network is physically impossible for rapid release cycles. [Gartner](https://www.gartner.com/en/newsroom/press-releases/2025-10-20-gartner-identifies-the-top-strategic-technology-trends-for-2026) predicts that by 2027, 80% of enterprises will integrate AI-augmented testing tools to automate complex tasks like pairwise optimization, helping teams move from simple execution to strategic orchestration.

Let's look at a brief case study to illustrate the effectiveness of pairwise testing: a software company is developing a new e-commerce platform. The platform needs to be tested across different browsers, operating systems, payment methods, and user types, such as:

- **Browser:** Chrome, Firefox, Safari, Edge
- **Operating System:** Windows, macOS, Linux
- **Payment Method:** Credit Card, PayPal, Bank Transfer
- **User Type:** New User, Returning User, Guest

Testing all possible combinations would require:

4 (Browsers) x 3 (Operating Systems) x 3 (Payment Methods) x 3 (User Types) = 108 test cases

By using a pairwise testing tool (such as PICT or ACTS), you can generate a smaller set of test cases that ensure every pair of parameter values is tested at least once. This typically reduces the number of test cases to around 10-20, depending on the specific parameters and values.

## **Test Case Design Techniques For White-box System**

White-box techniques apply when you have access to the system's internal code and want to validate execution paths, branch logic, and code structure, not just observable behavior.

### **1. Control Flow Testing**

Control flow testing is a white-box testing technique that emphasizes creating and executing test cases to cover predetermined execution paths within the program's code.

While control flow testing provides a high level of thoroughness, it also presents some challenges:

- **Path Explosion**: The number of possible paths can become immense. Modern applications are typically so complex that testing every possible control flow path exhaustively becomes practically impossible.
- **Implemented Paths Only**: White-box testing only works with paths that have been implemented. If a particular path is missing, it won’t be detected. For instance, in the following code, there is no path for scores below 60:

Python

Copy

```
def calculate_grade(score):
    if score >= 90:
        grade = 'A'
    elif score >= 80:
        grade = 'B'
    elif score >= 70:
        grade = 'C'
    elif score >= 60:
        grade = 'D'
    else:
        grade = 'F'
    return grade
```

- - **Logical Errors Despite Correct Flow**: Even when the flow is correct, there can still be logic errors. In this example, the flow is correct, but the inventory should decrease (-1) rather than increase (+1) when an order is dispatched:

Python

Copy

```
def calculate_inventory(order_dispatched, current_inventory):
if order_dispatched
    return current_inventory + 1
```

To perform control flow testing, it’s important to understand the Control Flow Graph (CFG). A CFG visually represents all possible paths a program might take during execution and is widely used in control flow testing to analyze and understand the program’s structure.

A control flow graph consists of three main components:

**1. Node**: Represents individual statements or blocks of code. For example, the following snippet has three nodes:

Python

Copy

```
int a = 0;  // Node 1
if (b > 0) { // Node 2
a = b;    // Node 3
}
```

**2. Edge**: Represents the flow of control between nodes, indicating the program's execution path. There are two types of edges:

- - **Unconditional edge**: Direct flow from one statement to another.
    - **Conditional edge**: A branch based on conditions (e.g., True/False results from an if-statement). In the snippet above, there’s a conditional edge from the  if (b \> 0) statement to a = b.

**3. Entry/Exit Points**: These are the start and end points of a program in the CFG.

Let's take a look at this example:

Python

Copy

```
void exampleFunction(int x, int y) {
    if (x > 0) {
        if (y > 0) {
            printf("Both x and y are positive.\n");
        } else {
            printf("x is positive, y is non-positive.\n");
        }
    } else {
        printf("x is non-positive.\n");
    }
}
```

Here we have **7 nodes**: 1 entry point, 1 exit point, 5 decision points.

- 1: Entry point of exampleFunction.
- 2: if (x \> 0).
- 3: if (y \> 0).
- 4: printf("Both x and y are positive.").
- 5: printf("x is positive, y is non-positive.").
- 6: printf("x is non-positive.").
- 7: Exit point of exampleFunction.

**Edges**:

- (1 -\> 2)
- (2 -\> 3) if x \> 0
- (2 -\> 6) if x \<= 0
- (3 -\> 4) if y \> 0
- (3 -\> 5) if y \<= 0
- (4 -\> 7)
- (5 -\> 7)
- (6 -\> 7)

In this CFG, there are three possible execution paths to cover all outcomes.

### ![Control Flow Graph](https://cms-cdn.katalon.com/control_flow_graph_170e57422c.png)  **2. Structured Testing (Basic Path Testing)**

Structured testing, also known as basic path testing, is a white-box testing technique that focuses on identifying and testing all independent paths within the software. The aim is to ensure that every possible execution path in a program is tested at least once.

A typical structured testing process follows these steps:

1. Derive the control flow graph from the software module.
2. Calculate the graph's Cyclomatic Complexity (C).
3. Select a set of C basis paths.
4. Create a test case for each basis path.
5. Execute the test cases.

Cyclomatic Complexity is a software metric used to measure the complexity of a program's control flow. It was introduced by Thomas J. McCabe, Sr. in 1976 and serves as a key indicator of the number of linearly independent paths through a program's source code. The formula is:

**`C = Edges - Nodes + 2`**Let's take a look at this Control Flow Graph:

![Control Flow Graph](https://cms-cdn.katalon.com/control_flow_graph_170e57422c.png)

There are in total 8 edges and 7 nodes,  so the Cyclomatic Complexity would be: 

`C = 8 - 7 + 2 = 3`

This means there are 3 linearly independent paths through the program.

Here's how you interpret the C metric:

- **C = 1-10**: Simple program, low risk, easy to test and maintain.
- **C = 11-20**: Moderate complexity, requiring more detailed testing and review.
- **C = 21-50**: High complexity, increased risk of errors, requiring extensive testing and documentation.
- **C \> 50**: Very high complexity, difficult to test and maintain, likely in need of refactoring.

Based on the identified paths, we can create the following test cases:

**Test Case 1**:

- **Inputs**: x = 5, y = 2
- **Expected Output**: Both x and y are positive.

**Test Case 2**:

- **Inputs**: x = 5, y = -2
- **Expected Output**: x is positive, y is non-positive.

**Test Case 3**:

- **Inputs**: x = -2
- **Expected Output**: x is non-positive.

## **Conclusion**

Modern **test case design techniques** are the backbone of effective software testing. They help us go beyond just "checking the boxes" and ensure we’re really digging into the areas where bugs might hide. By balancing classic logic with AI-optimized tools and Shift-Left strategies, you'll deliver faster, higher-quality releases.

Remember the three-step framework: determine system opacity first, then match the technique to your input type, then factor in resource constraints. For deep dives into any of the black-box techniques covered here, start with the [Black Box Testing: Complete Guide](https://katalon.com/resources-center/blog/black-box-testing) — and for ECP specifically, the [Equivalence Class Partitioning: A Complete Guide](https://katalon.com/resources-center/blog/equivalence-class-partitioning-guide).

[![banner5.png](https://cms-cdn.katalon.com/banner5_1bff611ab3.png)](https://katalon.com/katalon-studio)

Explain

|

## FAQs on Test Case Design

### How do black-box and white-box systems change the way you design test cases?

\+

Black-box design focuses on **external behavior** (inputs/outputs without knowing internals), while white-box design targets **internal code structure and execution paths** using code-aware techniques. 

### How do I decide which test case design technique to use?

\+

Start by determining system opacity: no code access means black-box techniques; full code access means white-box; partial access means combine both. Then match the technique to your input type, ranges suggest ECP and BVA, complex business rules suggest Decision Tables, many parameter combinations suggest Pairwise, and code paths suggest Control Flow or Structured Testing. See the [decision framework above](https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default_default#how-to-choose) for a full breakdown.

### What is Equivalence Class (Partitioning) Testing, and why does it reduce test case count?

\+

It groups inputs into **valid/invalid equivalence classes** where values should behave the same, then tests **representative values** per class—cutting redundant cases while keeping solid coverage. 

### How is Boundary Value Analysis related to equivalence classes, and what does it target?

\+

BVA is an extension of equivalence partitioning that tests **edge values** (just below/at/just above boundaries) because defects are more likely at input range limits than in the middle. 

### When should you use Decision Table Testing vs Pairwise Testing?

\+

Use **Decision Tables** when you have **business rules** driven by combinations of conditions and actions (each rule becomes a test). Use **Pairwise** when many parameters create combinatorial explosion and you want coverage of **all pairs** with far fewer tests. 

### What do Control Flow Testing and Structured (Basic Path) Testing verify in white-box testing?

\+

They verify **execution paths** using a **Control Flow Graph (nodes/edges/branches)**; Structured Testing uses **Cyclomatic Complexity (Edges − Nodes + 2)** to determine how many **independent paths** to cover with test cases.

### What is Cyclomatic Complexity and how is it used in test design?

\+

Cyclomatic Complexity (C = Edges - Nodes + 2) measures the number of linearly independent paths through a program. A C of 1–10 indicates a simple program; 11–20 moderate complexity; 21–50 high complexity; above 50 suggests the code likely needs refactoring. It tells you the **minimum number of test cases required** for full independent path coverage.

### What is Shift-Left testing and how does it relate to test case design?

\+

Shift-Left testing means starting test design earlier in the development cycle — during requirements or design phases rather than after development. This allows teams to apply techniques like Equivalence Class Partitioning from API specs before any code is written, catching defects that cost up to 15x more to fix if found post-release.

![Huyen Nguyen](https://mkt.qa.katalon.com/hubfs/huyen-nguyen.jpeg)

[Huyen Nguyen](https://mkt.qa.katalon.com/author?name=huyen-nguyen)

Technical Writer, Katalon

Huyen Nguyen is an experienced technical writer in the software testing industry. With strong technical expertise and a deep understanding of Katalon products, she creates clear, practical guides that support testers at every skill level.

<https://www.linkedin.com/in/huyen-nguyen-57a78213b/>

on this page

Generate your first test case before you finish this article.

Test management and execution. Manual or Automated. One platform, no syncing results between tools.

Free 30-day trial [Start free trial](https://katalon.com/open-true-platform?ref=blog_sticky_cta)

![katalon\_black\_logo](https://mkt.qa.katalon.com/hubfs/katalon_black_logo.svg)

True Platform

[Test Automation with Katalon Studio](https://mkt.qa.katalon.com/katalon-studio) [Test Management](https://mkt.qa.katalon.com/testops) [Test Execution Cloud](https://mkt.qa.katalon.com/testcloud) [Production Insights](https://mkt.qa.katalon.com/truetest) [True Information Center](https://mkt.qa.katalon.com/true-information-center)

Solutions

[Katalon AI](https://mkt.qa.katalon.com/ai-powered-testing-platform) [Katalon MCP](https://mkt.qa.katalon.com/katalon-mcp) [Web Testing](https://mkt.qa.katalon.com/web-testing) [Mobile Testing](https://mkt.qa.katalon.com/mobile-testing) [API Testing](https://mkt.qa.katalon.com/api-testing) [Desktop Testing](https://mkt.qa.katalon.com/desktop-testing) [Visual Testing](https://mkt.qa.katalon.com/visual-testing) [Integrations](https://mkt.qa.katalon.com/integrations)

Resources

[Virtual Labs](https://cec.katalon.com) [Blog](https://mkt.qa.katalon.com/resources-center/blog) [Webinars](https://mkt.qa.katalon.com/webinars) [Reports](https://katalon.com/reports) [Software Testing Glossary](https://mkt.qa.katalon.com/software-testing-glossary) [Write for us](https://katalon.com/katalon-guest-post-guidelines) [What is Agentic QA?](https://mkt.qa.katalon.com/resources-center/blog/what-is-agentic-qa-the-complete-guide-for-2026)

Support

[Documentation](https://docs.katalon.com) [Community](https://forum.katalon.com) [Technical Support](https://katalon-inc.my.site.com/support/) [Training and Certification](https://academy.katalon.com/) [Sample Projects on GitHub](https://github.com/katalon-studio)

Company

[About Katalon](https://mkt.qa.katalon.com/about-us) [Events](https://mkt.qa.katalon.com/events) [News](https://mkt.qa.katalon.com/resources-center/blog/tag/news) [Brand Assets](https://mkt.qa.katalon.com/brand-assets) [Partners](https://mkt.qa.katalon.com/partners) [Careers](https://mkt.qa.katalon.com/careers) [Careers Blog](https://mkt.qa.katalon.com/careers/blog)

1720 Peachtree Street NW, Suite 870, Atlanta, GA 30309

General inquiries: [business@katalon.com](mailto:business@katalon.com)

Legal inquiries: [legal@katalon.com](mailto:legal@katalon.com)

Partnership inquiries: [partner@katalon.com](mailto:partner@katalon.com)

<https://www.facebook.com/KatalonPlatform> <https://twitter.com/KatalonPlatform> <https://www.linkedin.com/company/katalon/> <https://www.youtube.com/@KatalonTruePlatform>

[Legal](https://mkt.qa.katalon.com/terms) [Privacy](https://mkt.qa.katalon.com/terms#privacy-policy) [Security](https://mkt.qa.katalon.com/security)

Do Not Sell or Share My Personal Information

Copyright © 2026 Katalon, Inc. All rights reserved.

Click

![Katalon](https://mkt.qa.katalon.com/hubfs/contact-us-modal-2026/logos/katalon-horizontal-white-green.svg)

## Talk to someone who knows testing

Tell us what you are trying to solve and we will bring the right specialist to the call.

A reply within one business day A walkthrough on your own scenarios No obligation, and no sales sequence

**4.5** on G2 Trusted by 30,000+ quality teams

Thank you! We will contact you soon.

Click

Thanks for reaching out!

 We'll contact you shortly via email.   
In the meantime, you can start exploring with a 30-day trial of Studio Enterprise.

<iframe src="https://demo.arcade.software/vRJKNvm3VUmzeJknwpDi" title="Katalon Studio Tutorials" loading="lazy" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

Your 30-day trial comes with:

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

Full access to Studio Enterprise

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

Web, mobile, desktop, API testing

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

Easy setup, 1-click integrations

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

No credit card required

[Download Studio Enterprise](https://mkt.qa.katalon.com/download)