Test Design with Claude
Claude can write many test cases fast. A test design technique tells you which cases matter and when you have enough. This page shows how to apply the standard ISTQB techniques with Claude, and how to review Claude's work before you automate it.
14 min read14 মিনিটে পড়া যায় · 10 sections10টি সেকশন · 8 sources8টি সোর্স · updated Nov 2026আপডেট: Nov 2026
Pairwise cuts the combinationsPairwise কম্বিনেশন কমিয়ে দেয়
See all combinations shrink to a pairwise set that still covers every pair of values.দেখুন সব কম্বিনেশন ছোট একটা pairwise সেটে নেমে আসে, অথচ প্রতিটা জোড়া কভার থাকে।
You’ll learnআপনি শিখবেন
- How full combinations are countedপূর্ণ কম্বিনেশন কীভাবে গোনা হয়
- What a pair of values isভ্যালুর জোড়া কী
- Why a pairwise set is much smallerpairwise সেট কেন অনেক ছোট
- Why you check pair coverage with a scriptকেন স্ক্রিপ্ট দিয়ে কভারেজ যাচাই করবেন
What test design is
Test techniques help you decide what to test (test analysis) and how to test it (test design). They help you build "a relatively small, but sufficient, set of test cases in a systematic way". Source 1সোর্স 1
The ISTQB Foundation Level syllabus classifies the techniques as black-box, white-box, and experience-based: Source 1সোর্স 1
- Black-box techniques (also called specification-based) use the specified behavior of the test object, not its internal structure. The test cases stay useful if the implementation changes but the required behavior does not. Source 1সোর্স 1 The four common ones are equivalence partitioning, boundary value analysis, decision table testing, and state transition testing. Source 1সোর্স 1
- White-box techniques work on the code, for example statement testing and branch testing. Branch coverage subsumes statement coverage. Source 1সোর্স 1
- Experience-based techniques use the knowledge and experience of the tester. They can find defects that the other techniques miss, so they are complementary to them. Source 1সোর্স 1
Black-box techniques start from a requirement, so they fit a task where Claude reads a specification or a ticket.
Which syllabus this page uses
The black-box and experience-based techniques on this page come from the ISTQB Certified Tester Foundation Level (CTFL) syllabus v4.0, released in 2023. Source 1সোর্স 1 Pairwise testing is not in the Foundation syllabus. It comes from the Advanced Level Test Analyst (CTAL-TA) syllabus v4.0. Source 2সোর্স 2
সহজ English
Test techniques help you decide what to test (test analysis) and how to test it (test design). With them, you build a relatively small but sufficient set of test cases in a systematic way Source 1সোর্স 1.
The ISTQB Foundation Level syllabus puts the techniques in three groups Source 1সোর্স 1:
- Black-box techniques use the specified behavior of the test object, not its internal structure. The tests stay useful when the implementation changes but the required behavior does not Source 1সোর্স 1. The four common ones are equivalence partitioning, boundary value analysis, decision table testing, and state transition testing Source 1সোর্স 1.
- White-box techniques work on the code, for example statement testing and branch testing Source 1সোর্স 1.
- Experience-based techniques use the knowledge and experience of the tester. They can find defects that the other techniques miss Source 1সোর্স 1.
Black-box techniques start from a requirement. So they fit a task where Claude reads a specification or a ticket.
The black-box and experience-based techniques on this page come from the ISTQB Foundation Level (CTFL) syllabus v4.0 Source 1সোর্স 1. Pairwise testing comes from the Advanced Level Test Analyst (CTAL-TA) syllabus v4.0 Source 2সোর্স 2.
বাংলা ব্যাখ্যা
Test technique আপনাকে ঠিক করতে সাহায্য করে কী test করবেন (test analysis) এবং কীভাবে test করবেন (test design)। এগুলো দিয়ে আপনি নিয়ম মেনে তুলনামূলক ছোট, কিন্তু যথেষ্ট একটি test case set তৈরি করতে পারেন Source 1সোর্স 1।
ISTQB Foundation Level syllabus technique-গুলোকে তিন ভাগে ভাগ করে Source 1সোর্স 1:
- Black-box technique (specification-based নামেও পরিচিত) test object-এর নির্দিষ্ট আচরণ দেখে, তার ভেতরের গঠন নয়। Implementation বদলালেও প্রয়োজনীয় আচরণ একই থাকলে test case-গুলো কাজে লাগে Source 1সোর্স 1। চারটি সাধারণ black-box technique হলো equivalence partitioning, boundary value analysis, decision table testing এবং state transition testing Source 1সোর্স 1।
- White-box technique code নিয়ে কাজ করে, যেমন statement testing এবং branch testing। Branch coverage statement coverage-কে subsume করে, অর্থাৎ নিজের মধ্যে ধারণ করে Source 1সোর্স 1।
- Experience-based technique tester-এর জ্ঞান ও অভিজ্ঞতা কাজে লাগায়। অন্য technique যে defect মিস করে, এগুলো তা খুঁজে পেতে পারে। তাই এগুলো অন্য technique-এর পরিপূরক Source 1সোর্স 1।
Black-box technique requirement থেকে শুরু হয়। তাই Claude যখন কোনো specification বা ticket পড়ে, সেই কাজে এগুলো ভালো মানায়।
এই পাতার black-box ও experience-based technique-গুলো ISTQB CTFL syllabus v4.0 (2023) থেকে নেওয়া Source 1সোর্স 1। Pairwise testing Foundation syllabus-এ নেই। এটি Advanced Level Test Analyst (CTAL-TA) syllabus v4.0 থেকে এসেছে Source 2সোর্স 2।
How to work with Claude on test design
This workflow is this tutorial's suggestion:
- Give Claude the requirement: a file with
@, or a ticket through an MCP server. - Name the technique that you want.
- Ask for the test model first: the partitions, the decision table, or the state table.
- Review the model yourself. Fix it before Claude writes any test case.
- Ask for one test case for each coverage item, with the technique on each case.
- Ask Claude to automate the cases, run them, and show the output.
A wrong model gives wrong test cases, and a list of cases hides the error. A model is short, so you can check it fast.
The docs say Claude can suggest tests for "error conditions, boundary values, and unexpected inputs that are often overlooked". Source 3সোর্স 3 Be specific about the scope, as in this example from the docs: "users report login fails after the session times out. look at token refresh in src/auth/, write a failing test that reproduces it, then fix it". Source 4সোর্স 4
Claude's test model is a draft
Claude's output can look complete and still miss a partition or a rule. Treat each model and each case list as a draft that you review.
সহজ English
This tutorial suggests these steps:
- Give Claude the requirement: a file with
@, or a ticket through an MCP server. - Tell Claude which technique you want.
- Ask for the test model first: the partitions, the decision table, or the state table.
- Review the model yourself. Correct it before Claude writes any test case.
- Ask for one test case for each coverage item, with the technique on each case.
- Ask Claude to automate the cases, run them, and show the output.
A wrong model gives wrong test cases, and a list of cases hides the error. A model is short, so you can check it fast.
The docs say that Claude can suggest tests for error conditions, boundary values, and unexpected inputs that people often forget Source 3সোর্স 3. Tell Claude the exact scope, as the example in the docs does Source 4সোর্স 4.
Claude's output can look complete and still miss a partition or a rule. So treat each model and each case list as a draft that you review.
বাংলা ব্যাখ্যা
এই workflow এই tutorial-এর নিজের পরামর্শ:
- Claude-কে requirement দিন:
@দিয়ে একটি file, অথবা MCP server-এর মাধ্যমে একটি ticket। - কোন technique চান, তার নাম বলুন।
- প্রথমে test model চান: partition, decision table, অথবা state table।
- Model-টি নিজে review করুন। Claude কোনো test case লেখার আগেই ভুল ঠিক করুন।
- প্রতিটি coverage item-এর জন্য একটি করে test case চান, প্রতিটি case-এ technique-এর নাম সহ।
- Claude-কে case-গুলো automate করতে, চালাতে এবং output দেখাতে বলুন।
ভুল model থেকে ভুল test case আসে, আর case-এর list সেই ভুল লুকিয়ে রাখে। Model ছোট, তাই আপনি দ্রুত check করতে পারেন।
Docs অনুযায়ী, Claude এমন error condition, boundary value এবং অপ্রত্যাশিত input-এর জন্য test suggest করতে পারে, যেগুলো প্রায়ই নজর এড়িয়ে যায় Source 3সোর্স 3। Scope স্পষ্ট করে বলুন, যেমন docs-এর উদাহরণে বলা আছে Source 4সোর্স 4।
মনে রাখবেন, Claude-এর output সম্পূর্ণ দেখালেও তাতে কোনো partition বা rule বাদ পড়তে পারে। তাই প্রতিটি model ও case list-কে একটি draft হিসেবে review করুন।
Equivalence partitioning
Equivalence partitioning (EP) divides data into partitions. All elements of a partition are expected to be processed in the same way, so one test for each partition is sufficient. Source 1সোর্স 1
- You can make partitions for any data element: inputs, outputs, configuration items, internal values, time-related values, and interface parameters. Source 1সোর্স 1
- The partitions must not overlap and must not be empty. Source 1সোর্স 1
- A partition with valid values is a valid partition. A partition with invalid values is an invalid partition. Source 1সোর্স 1
Coverage. The coverage items are the partitions. Coverage is the number of partitions that at least one test exercises, divided by the total number of partitions, as a percentage. For 100% coverage, the tests must cover each partition, including the invalid ones. Source 1সোর্স 1
Multiple parameters. With more than one parameter, the simplest criterion is Each Choice coverage: each partition of each parameter is covered at least once. Each Choice coverage does not take combinations of partitions into account. Source 1সোর্স 1
Example. A quantity field accepts whole numbers from 1 to 100.
| Partition | Values | Type |
|---|---|---|
| P1 | 0 and less | Invalid |
| P2 | 1 to 100 | Valid |
| P3 | 101 and more | Invalid |
| P4 | Not a number, for example abc | Invalid |
| P5 | A number that is not a whole number, for example 2.5 | Invalid |
Example prompt.
Read @docs/requirements/cart.md. List the equivalence partitions for each
input. Mark each partition valid or invalid. Show the partitions as a table
and stop. After I approve them, give one test case for each partition.সহজ English
Equivalence partitioning (EP) divides data into groups called partitions. The system is expected to process all values in one partition in the same way. So one test for each partition is sufficient Source 1সোর্স 1.
- You can make partitions for any data element: inputs, outputs, configuration items, internal values, time-related values, and interface parameters Source 1সোর্স 1.
- Partitions must not overlap and must not be empty Source 1সোর্স 1.
- A partition of valid values is valid. A partition of invalid values is invalid Source 1সোর্স 1.
Coverage is the percentage of partitions that at least one test exercises. For 100% coverage, test each partition, also the invalid ones Source 1সোর্স 1. With more than one parameter, the simplest criterion is Each Choice coverage: test each partition of each parameter at least once. It does not look at combinations of partitions Source 1সোর্স 1.
In the example, a quantity field accepts whole numbers from 1 to 100. The valid partition is 1 to 100. The invalid partitions are 0 and less, 101 and more, a value that is not a number, and a number that is not a whole number.
বাংলা ব্যাখ্যা
Equivalence partitioning (EP) data-কে কয়েকটি partition-এ ভাগ করে। আশা করা হয়, একটি partition-এর সব element একইভাবে process হবে। তাই প্রতিটি partition-এর জন্য একটি test-ই যথেষ্ট Source 1সোর্স 1।
- যেকোনো data element-এর জন্য partition বানানো যায়: input, output, configuration item, internal value, time-related value এবং interface parameter Source 1সোর্স 1।
- Partition-গুলো একটি আরেকটির সাথে overlap করবে না, এবং কোনোটি খালি থাকবে না Source 1সোর্স 1।
- Valid value-এর partition হলো valid partition, আর invalid value-এর partition হলো invalid partition Source 1সোর্স 1।
এখানে coverage item হলো partition-গুলো। অন্তত একটি test যতগুলো partition চালায়, তাকে মোট partition সংখ্যা দিয়ে ভাগ করলে শতাংশে coverage পাওয়া যায়। 100% coverage-এর জন্য invalid partition সহ প্রতিটি partition test করতে হবে Source 1সোর্স 1। একাধিক parameter থাকলে সবচেয়ে সহজ criterion হলো Each Choice coverage: প্রতিটি parameter-এর প্রতিটি partition অন্তত একবার cover হবে। এটি partition-এর combination বিবেচনা করে না Source 1সোর্স 1।
উদাহরণ: একটি quantity field 1 থেকে 100 পর্যন্ত পূর্ণসংখ্যা নেয়। এখানে 1 থেকে 100 হলো valid partition। 0 ও তার কম, 101 ও তার বেশি, সংখ্যা নয় এমন value (যেমন abc), এবং পূর্ণসংখ্যা নয় এমন সংখ্যা (যেমন 2.5) হলো invalid partition।
Boundary value analysis
Boundary value analysis (BVA) tests the boundaries of equivalence partitions. You can use it only for ordered partitions. The minimum and maximum values of a partition are its boundary values. Source 1সোর্স 1 BVA focuses on boundaries because developers are more likely to make errors there. Typical defects are a boundary that is above or below its correct position, or a boundary that is missing. Source 1সোর্স 1
The syllabus gives two versions: Source 1সোর্স 1
- 2-value BVA: for each boundary value, test the boundary value and its closest neighbor in the adjacent partition.
- 3-value BVA: for each boundary value, test the boundary value and both of its neighbors.
3-value BVA is more rigorous. The syllabus example: the code should be if (x ≤ 10) but is if (x = 10). The 2-value test data (x = 10, x = 11) cannot detect the defect. The 3-value value x = 9 is likely to detect it. Source 1সোর্স 1
Coverage is the number of boundary values that the tests exercise, divided by the total number of boundary values, as a percentage. For 3-value BVA, the neighbors count too. Source 1সোর্স 1
Example: the test values for the quantity field from 1 to 100.
| Version | Lower boundary | Upper boundary |
|---|---|---|
| 2-value | 0, 1 | 100, 101 |
| 3-value | 0, 1, 2 | 99, 100, 101 |
Example prompt:
Use 3-value boundary value analysis on the partitions that we approved.
For each boundary, give the boundary value and both neighbors. Show them
as a table with the expected result for each value.সহজ English
Boundary value analysis (BVA) tests the edges (boundaries) of equivalence partitions. You can use it only for ordered partitions. The minimum and maximum values of a partition are its boundary values Source 1সোর্স 1. Developers are more likely to make errors at boundaries. A typical defect is a boundary that is above or below its correct position, or a boundary that is missing Source 1সোর্স 1.
The syllabus gives two versions Source 1সোর্স 1:
- 2-value BVA: test each boundary value and its closest neighbor in the adjacent partition.
- 3-value BVA: test each boundary value and both of its neighbors.
3-value BVA is more rigorous. In the syllabus example, the code should be if (x ≤ 10) but is if (x = 10). The 2-value test data (x = 10, x = 11) cannot find this defect. The 3-value value x = 9 is likely to find it Source 1সোর্স 1.
Coverage is the percentage of boundary values that the tests exercise. For 3-value BVA, the neighbors count too Source 1সোর্স 1. For the quantity field from 1 to 100, 2-value BVA tests 0, 1, 100, and 101. 3-value BVA tests 0, 1, 2, 99, 100, and 101.
বাংলা ব্যাখ্যা
Boundary value analysis (BVA) equivalence partition-এর সীমানা (boundary) test করে। এটি শুধু ordered partition-এর জন্য ব্যবহার করা যায়। একটি partition-এর সর্বনিম্ন ও সর্বোচ্চ value হলো তার boundary value Source 1সোর্স 1। Boundary-তে developer-দের ভুল করার সম্ভাবনা বেশি। সাধারণ defect হলো: boundary তার সঠিক জায়গার ওপরে বা নিচে থাকা, অথবা boundary একেবারেই না থাকা Source 1সোর্স 1।
Syllabus দুটি version দেয় Source 1সোর্স 1:
- 2-value BVA: প্রতিটি boundary value এবং পাশের partition-এ তার সবচেয়ে কাছের neighbor test করুন।
- 3-value BVA: প্রতিটি boundary value এবং তার দুই পাশের দুটি neighbor-ই test করুন।
3-value BVA বেশি কঠোর (rigorous)। Syllabus-এর উদাহরণে code হওয়া উচিত if (x ≤ 10), কিন্তু আছে if (x = 10)। 2-value test data (x = 10, x = 11) এই defect ধরতে পারে না, কিন্তু 3-value-এর x = 9 সম্ভবত এটি ধরতে পারবে Source 1সোর্স 1।
Test যতগুলো boundary value চালায়, তাকে মোট boundary value সংখ্যা দিয়ে ভাগ করলে শতাংশে coverage পাওয়া যায়। 3-value BVA-তে neighbor-গুলোও গোনা হয় Source 1সোর্স 1। 1 থেকে 100-এর quantity field-এ 2-value BVA test করে 0, 1, 100 ও 101; আর 3-value BVA test করে 0, 1, 2, 99, 100 ও 101।
Decision tables
Decision tables test requirements that say how combinations of conditions give different outcomes. They are an effective way to record complex logic, such as business rules. Source 1সোর্স 1
- The rows are the conditions and the actions. Source 1সোর্স 1
- Each column is a decision rule: one unique combination of conditions, with its actions. Source 1সোর্স 1
- A limited-entry table uses Boolean values. An extended-entry table allows more values, for example ranges or partitions. Source 1সোর্স 1
The syllabus uses this notation: Source 1সোর্স 1
| Symbol | Meaning |
|---|---|
T | The condition is true. |
F | The condition is false. |
– | The condition value does not matter for the outcome. |
N/A | The condition is infeasible for this rule. |
X | The action should occur. |
| Blank | The action should not occur. |
A full table has a column for each combination of conditions. To simplify it, delete the columns with infeasible combinations. To minimize it, merge the columns in which some conditions do not affect the outcome. Source 1সোর্স 1 The coverage items are the columns with feasible combinations. Coverage is the number of exercised columns divided by the number of feasible columns. Source 1সোর্স 1
The number of rules grows exponentially with the number of conditions. When there are many, use a minimized table or a risk-based approach. Source 1সোর্স 1 A decision table also shows gaps and contradictions in the requirements. Source 1সোর্স 1
Example: discount rules for a shop.
| R1 | R2 | R3 | R4 | |
|---|---|---|---|---|
| Conditions | ||||
| Member | T | T | F | F |
| Order total 100 or more | T | F | T | F |
| Actions | ||||
| 10% discount | X | X | ||
| Free shipping | X | X |
Example prompt:
Build a limited-entry decision table from the discount rules in @spec.md.
Mark infeasible combinations N/A. Then list each rule that the spec does
not define, as a question for me. Do not write test cases yet.সহজ English
Decision tables test requirements where different combinations of conditions give different outcomes. They are an effective way to record complex logic, such as business rules Source 1সোর্স 1.
- The rows are the conditions and the actions Source 1সোর্স 1.
- Each column is one decision rule: one unique combination of conditions, with its actions Source 1সোর্স 1.
- A limited-entry table uses only true and false. An extended-entry table allows more values, for example ranges or partitions Source 1সোর্স 1.
In a decision table, T means true and F means false. – means that the value does not matter. N/A means that the condition is infeasible (not possible) for the rule. X means that the action should occur Source 1সোর্স 1.
To make a decision table simpler, delete the columns with infeasible combinations. To make it smaller, merge the columns in which some conditions do not change the outcome. Coverage is the number of tested columns divided by the number of feasible columns Source 1সোর্স 1.
The number of rules grows exponentially when you add conditions. When there are many conditions, use a minimized table or a risk-based approach Source 1সোর্স 1. A decision table also shows gaps and contradictions in the requirements Source 1সোর্স 1.
বাংলা ব্যাখ্যা
Decision table এমন requirement test করে, যেখানে condition-এর ভিন্ন ভিন্ন combination ভিন্ন ফলাফল দেয়। Business rule-এর মতো জটিল logic লিখে রাখার এটি একটি কার্যকর উপায় Source 1সোর্স 1।
- Row-গুলো হলো condition এবং action Source 1সোর্স 1।
- প্রতিটি column একটি decision rule: condition-এর একটি অনন্য combination, সাথে তার action Source 1সোর্স 1।
- Limited-entry table Boolean value ব্যবহার করে। Extended-entry table আরও value নিতে পারে, যেমন range বা partition Source 1সোর্স 1।
Syllabus-এর notation-এ T মানে condition true, F মানে false, – মানে value ফলাফলে কোনো প্রভাব ফেলে না, N/A মানে এই rule-এ condition-টি infeasible, X মানে action ঘটা উচিত, আর খালি ঘর মানে action ঘটা উচিত নয় Source 1সোর্স 1।
Table সরল করতে infeasible combination-এর column মুছে দিন। আরও ছোট করতে, যেসব column-এ কিছু condition ফলাফল বদলায় না, সেগুলো merge করুন। Coverage item হলো feasible column-গুলো; test করা column-এর সংখ্যাকে feasible column-এর সংখ্যা দিয়ে ভাগ করলে coverage পাওয়া যায় Source 1সোর্স 1।
Condition বাড়লে rule-এর সংখ্যা exponentially বাড়ে। অনেক condition থাকলে minimized table বা risk-based approach ব্যবহার করুন Source 1সোর্স 1। Decision table requirement-এর ফাঁক ও পরস্পরবিরোধী অংশও দেখিয়ে দেয় Source 1সোর্স 1।
State transition testing
A state transition diagram shows the states of a system and its valid transitions. An event starts a transition, optionally with a guard condition. The common label syntax is event [guard condition] / action. Source 1সোর্স 1
A state table holds the same model. Its rows are the states, its columns are the events, and its cells hold the target state and the actions. Unlike the diagram, the state table shows the invalid transitions as empty cells. Source 1সোর্স 1
A test case is a sequence of events that gives a sequence of state changes. One test case usually covers several transitions. Source 1সোর্স 1
The syllabus gives three coverage criteria: Source 1সোর্স 1
| Criterion | What the tests must do |
|---|---|
| All states | Visit each state. |
| Valid transitions (0-switch) | Exercise each valid transition. This criterion is the most widely used. |
| All transitions | Exercise each valid transition and try each invalid transition. |
Full all-transitions coverage also gives full all-states coverage and full valid-transitions coverage. Source 1সোর্স 1 Test only one invalid transition in one test case. This prevents fault masking, where one defect hides another. Source 1সোর্স 1
Example: a bug ticket workflow.
| State | start | submit | approve | reject |
|---|---|---|---|---|
| Open | In Progress | |||
| In Progress | In Review | |||
| In Review | Done | In Progress | ||
| Done |
The empty cells are invalid transitions, for example approve from Open.
Example prompt:
Read the ticket workflow in @docs/workflow.md. Draw the state table with
events as columns. Then give tests for all valid transitions, and a
separate test for each invalid transition, one invalid transition per test.সহজ English
A state transition diagram shows the states of a system and the valid transitions (moves) between them. An event starts a transition, sometimes with a guard condition. The common label format is event [guard condition] / action Source 1সোর্স 1.
A state table holds the same model. The rows are the states, and the columns are the events. Each cell holds the target state and the actions. Unlike the diagram, the state table shows the invalid transitions as empty cells Source 1সোর্স 1.
A test case is a sequence of events that gives a sequence of state changes. One test case usually covers several transitions Source 1সোর্স 1.
The syllabus gives three coverage criteria Source 1সোর্স 1:
- All states: visit each state.
- Valid transitions (0-switch): exercise each valid transition. Testers use this criterion the most.
- All transitions: exercise each valid transition and try each invalid transition.
Full all-transitions coverage also gives full coverage for the other two criteria Source 1সোর্স 1. Test only one invalid transition in one test case. Then one defect cannot hide another defect (fault masking) Source 1সোর্স 1.
বাংলা ব্যাখ্যা
State transition diagram একটি system-এর state-গুলো এবং তাদের মধ্যে valid transition দেখায়। একটি event transition শুরু করে, কখনো কখনো একটি guard condition সহ। সাধারণ label syntax হলো event [guard condition] / action Source 1সোর্স 1।
State table-এ একই model থাকে। এর row-গুলো state, column-গুলো event, আর প্রতিটি ঘরে থাকে target state ও action। Diagram-এর সাথে পার্থক্য হলো, state table invalid transition-গুলোকে খালি ঘর হিসেবে দেখায় Source 1সোর্স 1।
একটি test case হলো event-এর একটি ক্রম, যা state পরিবর্তনের একটি ক্রম তৈরি করে। একটি test case সাধারণত কয়েকটি transition cover করে Source 1সোর্স 1।
Syllabus তিনটি coverage criterion দেয় Source 1সোর্স 1:
- All states: প্রতিটি state-এ যান।
- Valid transitions (0-switch): প্রতিটি valid transition চালান। এটিই সবচেয়ে বেশি ব্যবহৃত criterion।
- All transitions: প্রতিটি valid transition চালান এবং প্রতিটি invalid transition চেষ্টা করুন।
পূর্ণ all-transitions coverage থেকে পূর্ণ all-states coverage ও পূর্ণ valid-transitions coverage-ও পাওয়া যায় Source 1সোর্স 1। একটি test case-এ শুধু একটি invalid transition test করুন। এতে fault masking ঠেকানো যায়, অর্থাৎ একটি defect আরেকটি defect-কে লুকিয়ে ফেলতে পারে না Source 1সোর্স 1।
উদাহরণের bug ticket workflow-এ খালি ঘরগুলো invalid transition, যেমন Open থেকে approve।
Pairwise testing
Pairwise testing is a combinatorial technique from the ISTQB Advanced Level Test Analyst syllabus. Source 2সোর্স 2 Combinatorial testing explores combinations of parameter values to reveal failures that come from their interaction. Source 2সোর্স 2
- A parameter-value pair is a parameter and its value, for example
(color, red). Source 2সোর্স 2 - In pairwise coverage, the coverage items are the pairs of parameter-value pairs for any two parameters. Source 2সোর্স 2
- Tools can generate the coverage items. But it is generally difficult to find a minimal set of test cases that gives pairwise coverage. Source 2সোর্স 2
- If a parameter has many values, apply EP first to reduce them. Source 2সোর্স 2
The rationale: most failures come from a single value or from the interaction of a few parameters. The syllabus cites a limited study in which about 97% of failures came from only one or two interacting conditions. Source 2সোর্স 2
Another criterion is base choice coverage. You choose a base value for each parameter. The base test combines them. Each further test changes one parameter: it replaces the base value of that parameter with one of its non-base values, until each non-base value is used. Source 2সোর্স 2
The ISTQB glossary v2.3 (2014) defines pairwise testing as "A black box test design technique in which test cases are designed to execute all possible discrete combinations of each pair of input parameters." Source 5সোর্স 5
Example: browser (3 values), operating system (2), user role (3), and locale (2) give 3 × 2 × 3 × 2 = 36 full combinations. A pairwise set must cover each pair of values for any two of these parameters. Source 2সোর্স 2
Common mistake: accept a hand-made minimal set
It is generally difficult to find a minimal pairwise set. Source 2সোর্স 2 Do not trust a set that Claude makes by hand. Ask Claude to write or run a generator script, and to show how many pairs the set covers.
Example prompt:
Parameters: browser (chromium, firefox, webkit), os (linux, windows),
role (admin, manager, viewer), locale (en, bn). Write a script that
generates a pairwise test set. Run it. Show the set and prove that each
pair of values appears in at least one row.সহজ English
Pairwise testing is a combinatorial technique from the ISTQB Advanced Level Test Analyst syllabus. Combinatorial testing explores combinations of parameter values. Its aim is to reveal failures that come from the interaction of the values Source 2সোর্স 2.
- A parameter-value pair is a parameter and its value, for example
(color, red)Source 2সোর্স 2. - In pairwise coverage, the coverage items are the pairs of parameter-value pairs for any two parameters Source 2সোর্স 2.
- Tools can generate the coverage items. But it is generally difficult to find a minimal set of test cases that gives pairwise coverage Source 2সোর্স 2.
- If a parameter has many values, apply EP first to reduce them Source 2সোর্স 2.
Why pairs? Most failures come from a single value or from the interaction of a few parameters. In a limited study that the syllabus cites, about 97% of failures came from only one or two interacting conditions Source 2সোর্স 2.
Example: 3 browsers, 2 operating systems, 3 user roles, and 2 locales give 36 full combinations. A pairwise set must cover each pair of values for any two of these parameters Source 2সোর্স 2. Do not trust a minimal set that Claude makes by hand. Ask Claude to write or run a generator script, and to show how many pairs the set covers.
বাংলা ব্যাখ্যা
Pairwise testing হলো ISTQB Advanced Level Test Analyst syllabus-এর একটি combinatorial technique Source 2সোর্স 2। Combinatorial testing parameter value-এর combination পরীক্ষা করে, যাতে value-গুলোর interaction থেকে আসা failure ধরা পড়ে Source 2সোর্স 2।
- Parameter-value pair মানে একটি parameter ও তার value, যেমন
(color, red)Source 2সোর্স 2। - Pairwise coverage-এ coverage item হলো যেকোনো দুটি parameter-এর parameter-value pair-এর জোড়া Source 2সোর্স 2।
- Tool দিয়ে coverage item তৈরি করা যায়। কিন্তু pairwise coverage দেয় এমন minimal test case set খুঁজে পাওয়া সাধারণত কঠিন Source 2সোর্স 2।
- কোনো parameter-এর অনেক value থাকলে আগে EP দিয়ে value-গুলো কমিয়ে নিন Source 2সোর্স 2।
এর যুক্তি হলো, বেশিরভাগ failure আসে একটি value থেকে, অথবা অল্প কয়েকটি parameter-এর interaction থেকে। Syllabus একটি সীমিত গবেষণার উল্লেখ করে, যেখানে প্রায় 97% failure এসেছিল মাত্র এক বা দুটি interacting condition থেকে Source 2সোর্স 2।
ISTQB glossary v2.3 (2014) অনুযায়ী, pairwise testing একটি black box test design technique, যেখানে প্রতিটি input parameter জোড়ার সব সম্ভাব্য discrete combination চালানোর জন্য test case design করা হয় Source 5সোর্স 5।
উদাহরণ: browser (3), operating system (2), user role (3) ও locale (2) মিলে 3 × 2 × 3 × 2 = 36টি full combination হয়। একটি pairwise set-কে এই parameter-গুলোর যেকোনো দুটির value-এর প্রতিটি জোড়া cover করতে হবে Source 2সোর্স 2। Claude হাতে বানানো কোনো minimal set দিলে তা বিশ্বাস করবেন না। Claude-কে একটি generator script লিখতে বা চালাতে বলুন, এবং set-টি কতগুলো pair cover করে তা দেখাতে বলুন।
Experience-based techniques
The syllabus names three experience-based techniques: error guessing, exploratory testing, and checklist-based testing. Source 1সোর্স 1 Their effectiveness depends heavily on the skills of the tester. Source 1সোর্স 1 In this tutorial's workflow, Claude proposes the lists and charters, and the tester runs the tests and judges the results.
Error guessing
Error guessing anticipates errors, defects, and failures from the tester's knowledge: how the application worked in the past, which errors developers tend to make, and failures in similar applications. Source 1সোর্স 1 Fault attacks are a methodical way to do it: make a list of possible errors, then design tests that expose them. Source 1সোর্স 1
Example prompt: "Read @src/payment.js. List likely faults in input handling, rounding, and error paths. For each, give a test that would expose it."
Exploratory testing
In exploratory testing, you design, execute, and evaluate tests at the same time while you learn about the test object. It can use sessions with a time-box, a test charter, and a debrief. Source 1সোর্স 1 It is useful when the specifications are few or inadequate, or when time is short. Source 1সোর্স 1
Example prompt: "Write three 30-minute test charters for the new refund screen. Each charter names a target, a risk, and what to look for."
Checklist-based testing
The tester designs and runs tests that cover the items of a checklist. Checklists should not contain items that can be checked automatically, items that are better as entry or exit criteria, or items that are too general. Source 1সোর্স 1
Acceptance criteria as test conditions
Acceptance criteria are the conditions that an implementation must meet to be accepted. You can view them as the test conditions. Two common formats are scenario-oriented (Given/When/Then) and rule-oriented (a bullet list or an input-output table). Source 1সোর্স 1
Acceptance test-driven development (ATDD) writes the test cases before the story is implemented. The first test cases are usually positive, then negative, then non-functional. Source 1সোর্স 1
সহজ English
The syllabus names three experience-based techniques: error guessing, exploratory testing, and checklist-based testing Source 1সোর্স 1. How well they work depends heavily on the skills of the tester Source 1সোর্স 1. In this tutorial's workflow, Claude proposes the lists and charters. The tester runs the tests and judges the results.
- Error guessing: use your knowledge to guess errors, defects, and failures. Think of how the application worked in the past, which errors developers tend to make, and failures in similar applications. A fault attack makes this methodical: list the possible errors, then design tests that expose them Source 1সোর্স 1.
- Exploratory testing: design, run, and evaluate tests at the same time while you learn about the test object. It can use sessions with a time-box, a test charter, and a debrief. It helps when the specifications are few or not good enough, or when time is short Source 1সোর্স 1.
- Checklist-based testing: design and run tests that cover the items of a checklist Source 1সোর্স 1.
Acceptance criteria can be the test conditions. In acceptance test-driven development (ATDD), you write the test cases before the story is implemented Source 1সোর্স 1.
বাংলা ব্যাখ্যা
Syllabus তিনটি experience-based technique-এর নাম দেয়: error guessing, exploratory testing এবং checklist-based testing Source 1সোর্স 1। এগুলো কতটা কার্যকর হবে, তা অনেকটাই tester-এর দক্ষতার ওপর নির্ভর করে Source 1সোর্স 1। এই tutorial-এর workflow-এ Claude list ও charter প্রস্তাব করে, আর tester test চালান ও ফলাফল বিচার করেন।
- Error guessing: tester-এর জ্ঞান থেকে error, defect ও failure আগেভাগে অনুমান করা: application আগে কীভাবে কাজ করেছে, developer-রা সাধারণত কোন ভুল করেন, আর একই ধরনের application-এ কী failure হয়েছে। Fault attack এটি করার একটি পদ্ধতিগত উপায়: সম্ভাব্য error-এর একটি list বানান, তারপর সেগুলো ধরার জন্য test design করুন Source 1সোর্স 1।
- Exploratory testing: test object সম্পর্কে শিখতে শিখতে একই সময়ে test design, execute ও evaluate করা। এতে time-box, test charter ও debrief সহ session থাকতে পারে। Specification কম বা অপর্যাপ্ত হলে, অথবা সময় কম থাকলে এটি কাজে লাগে Source 1সোর্স 1।
- Checklist-based testing: checklist-এর item cover করে test design ও execute করা। যে item automatically check করা যায়, যেগুলো entry বা exit criteria হিসেবে বেশি উপযুক্ত, বা যেগুলো খুব সাধারণ, সেগুলো checklist-এ রাখবেন না Source 1সোর্স 1।
Acceptance criteria-কে test condition হিসেবে দেখা যায়। ATDD (acceptance test-driven development)-তে story implement করার আগেই test case লেখা হয়। প্রথমে সাধারণত positive, তারপর negative, তারপর non-functional test Source 1সোর্স 1।
From designed cases to automated tests
Give Claude the approved model and the case list, and point it at your existing tests. Claude matches the style of your existing tests. Source 3সোর্স 3 Then ask it to run the new tests and fix any failures, and to show the evidence instead of a claim of success. Source 3সোর্স 3 Source 4সোর্স 4
Decision-table columns and boundary values map well to data-driven tests. Playwright can parameterize tests from a list of data, as long as each test name is unique. Source 6সোর্স 6
Playwright also ships three test agents: Source 7সোর্স 7
- planner explores the app and produces a Markdown test plan.
- generator transforms the Markdown plan into Playwright Test files.
- healer executes the test suite and automatically repairs failing tests.
To set them up for Claude Code, run this command. Run it again when you update Playwright. Source 7সোর্স 7
npx playwright init-agents --loop=claudeThe specs/ folder holds the Markdown test plans, and tests/seed.spec.ts is the seed test. Source 7সোর্স 7 The Browser Testing with Playwright page covers the agents in detail.
Keep the healer honest
Tell Claude not to change production code to make a test pass. The Prompting for QA page has sample text against test-gaming.
See it in practice
Design, Execute, Fix, Retest follows one fix PR from test charters and test cases to a test run and a second PR.
সহজ English
Give Claude the approved model and the case list, and point it at your existing tests. Claude matches the style of your existing tests Source 3সোর্স 3. Then ask Claude to run the new tests, fix any failures, and show the evidence, not only a claim of success Source 3সোর্স 3 Source 4সোর্স 4.
Decision-table columns and boundary values fit data-driven tests well. Playwright can parameterize tests from a list of data, if each test name is unique Source 6সোর্স 6.
Playwright also has three test agents Source 7সোর্স 7:
- planner explores the app and makes a Markdown test plan.
- generator changes the Markdown plan into Playwright Test files.
- healer runs the test suite and automatically repairs failing tests.
To set them up for Claude Code, run npx playwright init-agents --loop=claude. Run it again when you update Playwright Source 7সোর্স 7.
Tell Claude not to change production code to make a test pass.
বাংলা ব্যাখ্যা
Claude-কে approved model ও case list দিন, এবং আপনার বিদ্যমান test-গুলো দেখিয়ে দিন। Claude আপনার বিদ্যমান test-এর style অনুসরণ করে Source 3সোর্স 3। তারপর Claude-কে নতুন test চালাতে, failure ঠিক করতে এবং শুধু সফলতার দাবি না করে প্রমাণ দেখাতে বলুন Source 3সোর্স 3 Source 4সোর্স 4।
Decision-table-এর column আর boundary value data-driven test-এর জন্য ভালো মানায়। Playwright একটি data list থেকে test parameterize করতে পারে, যদি প্রতিটি test-এর নাম unique হয় Source 6সোর্স 6।
Playwright-এ তিনটি test agent-ও আছে Source 7সোর্স 7:
- planner app explore করে একটি Markdown test plan তৈরি করে।
- generator Markdown plan-কে Playwright Test file-এ রূপান্তর করে।
- healer test suite চালায় এবং fail করা test নিজে থেকেই repair করে।
Claude Code-এর জন্য এগুলো set up করতে npx playwright init-agents --loop=claude চালান। Playwright update করলে command-টি আবার চালান Source 7সোর্স 7। specs/ folder-এ Markdown test plan থাকে, আর tests/seed.spec.ts হলো seed test Source 7সোর্স 7।
Claude-কে বলে দিন, test pass করানোর জন্য যেন production code না বদলায়।
A reusable test-design skill
Save the workflow as a skill, so you run it with one command. A skill is a directory with a SKILL.md file in .claude/skills/<name>/. The docs' example uses the frontmatter fields name, description, and disable-model-invocation. $ARGUMENTS receives the text after the command, and you start the skill with /skill-name. Source 8সোর্স 8
Example: .claude/skills/test-design/SKILL.md. The case counts are this tutorial's sanity heuristic, not a standard.
---
name: test-design
description: Designs test cases from a requirement or a code file with named test design techniques. Use when the user asks for test cases or coverage.
disable-model-invocation: true
---
Design test cases for: $ARGUMENTS
## Steps
1. Read the requirement or the file. Ask about anything unclear.
2. Pick the techniques: EP, BVA, decision table (DT), state transition (ST),
pairwise (PW), or error guessing (EG).
3. Build the test model first: partitions, boundaries, a decision table,
or a state table. Show it and stop for review.
4. After approval, write one test case for each coverage item.
## Output per test case
- Title: Verify that [condition] when [action]
- Technique: EP / BVA / DT / ST / PW / EG
- Type: Functional / Negative / Security / Performance
- Priority: High / Medium
- Preconditions
- Steps, with concrete input values
- Expected result
## Sanity heuristic (this tutorial's, not a standard)
- Core flow: 3 to 5 cases. Negative: 1 to 2.
- Security: 1 to 2 if the feature handles auth or personal data.
- Performance: 1 if the feature runs queries or loops.
- Aim for 6 to 12 cases in total. No trivial checks.
- If coverage needs more than 12 cases, list the coverage items and ask
which to keep.Example: run /test-design docs/requirements/refunds.md. For realistic test data, connect a database MCP server. The MCP Servers page shows how. The Skills & Commands page explains the frontmatter fields.
সহজ English
Save the workflow as a skill, so that you can run it with one command. A skill is a directory with a SKILL.md file in .claude/skills/<name>/. The example in the docs uses the frontmatter fields name, description, and disable-model-invocation. $ARGUMENTS receives the text after the command. You start the skill with /skill-name Source 8সোর্স 8.
The example skill, .claude/skills/test-design/SKILL.md, tells Claude to read the requirement and pick the techniques. Then Claude builds the test model, shows it, and stops for review. After approval, Claude writes one test case for each coverage item. Each case has a title, a technique, a type, a priority, preconditions, steps with concrete input values, and an expected result. The skill aims for 6 to 12 cases in total. These case counts are this tutorial's sanity heuristic, not a standard.
To use it, run /test-design docs/requirements/refunds.md. For realistic test data, connect a database MCP server.
বাংলা ব্যাখ্যা
Workflow-টি একটি skill হিসেবে save করুন, যাতে এক command-এ এটি চালাতে পারেন। Skill হলো .claude/skills/<name>/-এর মধ্যে একটি SKILL.md file সহ একটি directory। Docs-এর উদাহরণে frontmatter field name, description ও disable-model-invocation ব্যবহার করা হয়েছে। Command-এর পরে লেখা text $ARGUMENTS-এ যায়, আর skill শুরু করতে আপনি /skill-name লেখেন Source 8সোর্স 8।
উদাহরণের skill .claude/skills/test-design/SKILL.md Claude-কে বলে requirement পড়তে এবং technique বাছাই করতে (EP, BVA, DT, ST, PW বা EG)। তারপর Claude প্রথমে test model তৈরি করে দেখায় এবং review-এর জন্য থামে। Approval-এর পর প্রতিটি coverage item-এর জন্য একটি test case লেখে। প্রতিটি case-এ থাকে title, technique, type, priority, precondition, নির্দিষ্ট input value সহ step, এবং expected result। মোট 6 থেকে 12টি case-এর লক্ষ্য রাখা হয়। এই case সংখ্যাগুলো এই tutorial-এর sanity heuristic, কোনো standard নয়।
ব্যবহার করতে /test-design docs/requirements/refunds.md চালান। বাস্তবসম্মত test data-এর জন্য একটি database MCP server connect করুন।