|
| 1 | +--- |
| 2 | +slug: test-design-techniques-w-wopee |
| 3 | +title: "Test design techniques with Wopee.io" |
| 4 | +description: "Follow-up to our test design guide: ready-to-use prompts for BVA/EP, decision tables, and risk-based testing — using examples with the Swag Labs demo project inside Wopee.io." |
| 5 | +tags: [qa, test automation, test design techniques, prompts] |
| 6 | +image: /blog/wopee-commander.png |
| 7 | +authors: marcel |
| 8 | +--- |
| 9 | + |
| 10 | +The era of manually writing tests is soo 2005. We can now generate tests automatically with LLMs. |
| 11 | + |
| 12 | +However, still, it is good to drive the test design process by human. ... at least until the current tools are good enough. |
| 13 | + |
| 14 | +Want to turn the theory into executable tests? |
| 15 | + |
| 16 | +Here are a few examples with the Swag Labs demo project inside Wopee.io Commander: a **copy-paste prompts** tailored to the Swag Labs demo project so you can generate real scenarios. |
| 17 | + |
| 18 | +<!--truncate--> |
| 19 | + |
| 20 | +[Test design techniques](/blog/test-design-techniques) are important to achieve comprehensive test coverage and assure effective testing. |
| 21 | + |
| 22 | +## Example prompts you can use |
| 23 | + |
| 24 | +Feel free to use the prompts below as a starting point and adapt them to your needs. |
| 25 | + |
| 26 | +All the examples below are for user story: |
| 27 | + |
| 28 | +> _As a shopper, I want to enter my shipping information_. |
| 29 | +
|
| 30 | +In order to use the prompts below, go to **Analysis → 4. Test Cases**, pick the user story, and paste the prompt below. See below for the [detailed steps](#how-to-use-wopeeio-commander-quick-steps). |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +### A. BVA/EP for checkout info |
| 35 | + |
| 36 | +Use Boundary Value Analysis (BVA) and Equivalence Partitioning (EP) to create a **minimal set** of positive/negative tests around the required buyer fields before moving to the overview page. |
| 37 | + |
| 38 | +``` |
| 39 | +Use BVA/EP test design technique to create a minimal set of positive/negative tests around the required buyer fields before moving to the overview page. |
| 40 | +
|
| 41 | +Scope: First Name, Last Name, Postal Code |
| 42 | +
|
| 43 | +Goal: Generate the smallest test set that proves required-field gating works and handles edge inputs. |
| 44 | +
|
| 45 | +Design: |
| 46 | +- EP: {filled vs empty} for each field; {valid vs clearly invalid} for postalCode. |
| 47 | +- BVA around length: 0, 1, typical (5), long (100+) for each field. |
| 48 | +- Combine minimally to avoid duplicates; show which partition/boundary each case covers. |
| 49 | +- Each test should cover end-to-end flow: from login → cart → checkout → overview. |
| 50 | +
|
| 51 | +Generate: |
| 52 | +- Positive path that advances to overview when all fields are valid. |
| 53 | +- Negative cases that block progression with clear errors when one or more fields are empty/invalid. |
| 54 | +- Use emojis to make the test design more fun. |
| 55 | +``` |
| 56 | + |
| 57 | +Why this works here: User story explicitly requires first/last name and postal code and blocks progression on missing data; advancing shows the **order overview**. |
| 58 | + |
| 59 | +### Generated tests for BVA/EP example |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +_Wopee.io Commander with test cases generated for the user story, BVA/EP_ |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +### B. Decision table for “continue” gating |
| 68 | + |
| 69 | +Model the **rules for advancing** from `checkout info` → `overview` using a compact decision table (presence/absence of required fields). |
| 70 | + |
| 71 | +``` |
| 72 | +Use decision table test design technique to model the rules for advancing from checkout info → overview. |
| 73 | +
|
| 74 | +Rules: |
| 75 | +- Continue is allowed only when firstName, lastName, and postalCode are all provided. |
| 76 | +- Otherwise: progression is blocked; show clear error/highlight on missing fields. |
| 77 | +
|
| 78 | +Please: |
| 79 | +1) Produce a decision table with the three conditions (FName?, LName?, Zip?) → Outcome (Advance/Blocked + which field errors). |
| 80 | +2) Generate the minimal set of unique test cases from that table (no duplicates). |
| 81 | +3) Include steps and expected results for each case. |
| 82 | +4) Into test description field, add a short "Mitigates risk:" note to each test (Impact, Likelihood). |
| 83 | +5) Use emojis extensively to make the final tests fun to read. |
| 84 | +``` |
| 85 | + |
| 86 | +This aligns with Swag Labs behavior: missing any of the three required inputs prevents progression and highlights errors; with all present, the flow proceeds to the **overview** and later to **confirmation**. |
| 87 | + |
| 88 | +### Generated tests for decision table example |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | +_Wopee.io Commander with test cases generated for the user story, decision table_ |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +### C. Risk-based testing: prioritize what matters first |
| 97 | + |
| 98 | +This version bakes priority **into the test names** so your suite is immediately ordered. Use the prefixes: |
| 99 | + |
| 100 | +- `prio-H` = high impact × high likelihood (test first) |
| 101 | +- `prio-M` = medium |
| 102 | +- `prio-L` = low |
| 103 | + |
| 104 | +**Risk focus for user story** |
| 105 | + |
| 106 | +- **High**: required-field gating (firstName, lastName, postalCode), invalid postal code formats, and the ability to continue only when all fields are valid. |
| 107 | +- **Medium**: whitespace handling (trim vs. all-spaces), max/min lengths, state persistence when navigating back from Overview. |
| 108 | +- **Low**: special characters, accessibility focus on first invalid field, non-Latin characters. |
| 109 | + |
| 110 | +Copy-paste prompt (risk-based, with priority in names): |
| 111 | + |
| 112 | +``` |
| 113 | +Use risk-based testing with explicit priority prefixes in test names. |
| 114 | +
|
| 115 | +Goal: |
| 116 | +- Generate a prioritized suite for the user story. |
| 117 | +- Prefix every test title with one of emojis: High 🔴, Medium 🟠, Low 🟢 |
| 118 | +- One deterministic automated test per risk; include preconditions, steps, and expected results. |
| 119 | +
|
| 120 | +Risk model (Impact × Likelihood) |
| 121 | +
|
| 122 | +High (prio-H) — must-have paths and hard blockers: |
| 123 | +- prio-H - cannot continue with empty firstName |
| 124 | +- prio-H - cannot continue with empty lastName |
| 125 | +- prio-H - cannot continue with empty postalCode |
| 126 | +- prio-H - rejects invalid postalCode format (e.g., "ABC", "12-3") |
| 127 | +- prio-H - can continue when all fields are valid and reaches Overview page |
| 128 | +
|
| 129 | +Medium (prio-M) — common edge behaviors: |
| 130 | +- prio-M - trims leading/trailing spaces before validation (" John " → "John") |
| 131 | +- prio-M - all-whitespace is treated as empty and blocks progression |
| 132 | +- prio-M - field length boundaries: 0, 1, typical (10), long (100+) with expected outcomes |
| 133 | +- prio-M - values persist when navigating back from Overview to Info and then forward again |
| 134 | +
|
| 135 | +Low (prio-L) — nice-to-have quality checks: |
| 136 | +- prio-L - handles special characters without crashing (names with hyphen/accents) |
| 137 | +- prio-L - focus moves to the first invalid field when Continue fails |
| 138 | +- prio-L - accepts non-Latin letters if supported; otherwise shows a clear validation error |
| 139 | +
|
| 140 | +Generation requirements |
| 141 | +- For negatives, verify error text and that the page does NOT advance. |
| 142 | +- For the positive case, assert navigation to Overview and presence of order summary. |
| 143 | +- Add a short "Mitigates risk:" note to each test (Impact, Likelihood) into test description field. |
| 144 | +``` |
| 145 | + |
| 146 | +Note: There are no validations or any other logic for the fields in the Swag Labs demo project. This is just an example. |
| 147 | + |
| 148 | +### Generated tests for risk-based testing example |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | +_Wopee.io Commander with test cases generated for the user story, risk-based testing_ |
| 153 | + |
| 154 | +--- |
| 155 | + |
| 156 | +## How to use Wopee.io Commander (quick steps) |
| 157 | + |
| 158 | +### 1. Go to **Analysis → 4. Test Cases** (Commander). |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | +_Wopee.io Commander with test cases generated for the user stories, step 1: Analysis → 4. Test Cases_ |
| 163 | + |
| 164 | +### 2. **Add a user story** you want to cover. |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | +_Wopee.io Commander with test cases generated for the user stories, step 2: Add user story_ |
| 169 | + |
| 170 | +### 3. Select the user story, then paste a prompt (see below). |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | +_Wopee.io Commander with test cases generated for the user stories, step 3: Paste a prompt_ |
| 175 | + |
| 176 | +### 4. Click **`GENERATE`** to create the test cases. |
| 177 | + |
| 178 | +:::caution heads-up |
| 179 | + |
| 180 | +If you pick an existing user story that already has scenarios, the generator will **rewrite** them. |
| 181 | + |
| 182 | +::: |
| 183 | + |
| 184 | +:::tip fast path |
| 185 | + |
| 186 | +## Generate your tests automatically too |
| 187 | + |
| 188 | +Wopee.io maps your app. Create tests. Automate instantly. |
| 189 | + |
| 190 | +<br /> |
| 191 | + |
| 192 | +Paste a prompt and then let our AI Agent map your app, generate rest of the test cases. You will get automated tests right in [Wopee.io](https://wopee.io) Commander. |
| 193 | + |
| 194 | +::: |
0 commit comments