Test Idea Rewriting
Success Criteria: /<td>Verify\s/gi returns 0 matches
Quick Reference Card
Transformation Pattern
[ACTION VERB] [specific trigger]; [OUTCOME VERB] [observable result]
Action Verb Quick Reference
| Category |
Verbs |
Use When |
| Interaction |
Click, Type, Submit, Navigate, Scroll |
UI actions |
| Trigger |
Send, Inject, Force, Simulate, Load |
API/system actions |
| Measurement |
Measure, Time, Count, Profile |
Performance checks |
| State |
Set, Configure, Enable, Disable, Toggle |
Setup actions |
| Observation |
Confirm, Assert, Check, Observe |
Outcome verification |
Common Transformations
| Before |
After |
| Verify login works |
Submit valid credentials; confirm session created |
| Verify API returns 200 |
Send GET request; assert 200 response within 500ms |
| Verify error displays |
Trigger validation error; observe error message |
| Verify data saves |
Insert record; query database; confirm fields match |
| Verify performance |
Execute 100 requests; measure p99 < 200ms |
Transformation Rules
Pattern Detection
/<td>Verify\s/gi // HTML table cells
/^Verify\s/gim // Line starts
/"Verify\s[^"]+"/gi // Quoted strings
Transformation Categories
API/Network Tests
| Input Pattern |
Output Pattern |
| Verify API returns X |
Send [METHOD] request; assert [STATUS] response |
| Verify endpoint accepts Y |
Post [PAYLOAD] to endpoint; confirm [RESPONSE] |
| Verify webhook fires |
Trigger [EVENT]; observe webhook received |
UI/UX Tests
| Input Pattern |
Output Pattern |
| Verify button works |
Click [BUTTON]; observe [EFFECT] |
| Verify form submits |
Fill [FIELDS]; submit form; confirm [RESULT] |
| Verify navigation works |
Click [LINK]; observe [PAGE] loads |
Data Tests
| Input Pattern |
Output Pattern |
| Verify data saves |
Insert [RECORD]; query; confirm [MATCH] |
| Verify validation works |
Enter [INVALID]; observe [ERROR] |
| Verify format accepted |
Submit [FORMAT]; confirm [PROCESSED] |
Performance Tests
| Input Pattern |
Output Pattern |
| Verify performance is good |
Execute [LOAD]; measure [METRIC] < [THRESHOLD] |
| Verify scalability |
Increase [USERS] to [N]; monitor [RESOURCE] |
| Verify timeout works |
Inject [DELAY]; confirm timeout after [TIME] |
Action Verb Reference
Interaction Verbs
| Verb |
When to Use |
Example |
| Click |
UI element interaction |
Click "Submit" button |
| Type |
Text entry |
Type "user@example.com" |
| Submit |
Form completion |
Submit registration form |
| Navigate |
Page changes |
Navigate to /settings |
| Scroll |
Viewport movement |
Scroll to page bottom |
| Drag |
Drag-and-drop |
Drag file to upload zone |
| Hover |
Mouse positioning |
Hover over tooltip trigger |
| Select |
Dropdown/checkbox |
Select "Admin" from role dropdown |
Trigger Verbs
| Verb |
When to Use |
Example |
| Send |
HTTP requests |
Send POST to /api/orders |
| Inject |
Fault injection |
Inject 500ms latency |
| Force |
State manipulation |
Force offline mode |
| Simulate |
Event generation |
Simulate device rotation |
| Load |
Resource loading |
Load 50MB test file |
| Execute |
Script/command |
Execute database migration |
| Invoke |
Function/webhook |
Invoke payment callback |
| Trigger |
Event firing |
Trigger scheduled job |
Measurement Verbs
| Verb |
When to Use |
Example |
| Measure |
Quantitative check |
Measure response time |
| Time |
Duration tracking |
Time page render |
| Count |
Quantity check |
Count search results |
| Profile |
Resource analysis |
Profile CPU usage |
| Benchmark |
Comparison |
Benchmark against v1.0 |
| Capture |
State recording |
Capture network traffic |
| Monitor |
Ongoing observation |
Monitor memory for 5 minutes |
Observation Verbs
| Verb |
When to Use |
Example |
| Confirm |
Boolean check |
Confirm user is logged in |
| Assert |
Value comparison |
Assert total equals $99.99 |
| Check |
State verification |
Check cart has 3 items |
| Observe |
Behavior watching |
Observe spinner appears |
| Validate |
Rule compliance |
Validate email format |
| Expect |
Predicted outcome |
Expect redirect to /home |
| Verify (avoid) |
Use alternatives |
Use confirm/assert instead |
Quality Validation
Pre-Transform Checks
- Count "Verify" patterns in input
- Identify context for each pattern
- Map to appropriate action verb category
Post-Transform Checks
- Regex validation: zero "Verify" matches
- Every test idea starts with action verb
- Each test includes observable outcome
- All metadata preserved unchanged
Validation Regex
// Must return 0 matches for success
const verifyPattern = /<td>Verify\s/gi;
const matches = content.match(verifyPattern);
if (matches && matches.length > 0) {
throw new Error(`${matches.length} "Verify" patterns remain`);
}
Agent Integration
// Single file transformation
await Task("Rewrite Test Ideas", {
inputFile: "assessment.html",
outputFile: "assessment-rewritten.html",
preserveFormatting: true
}, "qe-test-idea-rewriter");
// Batch transformation
await Task("Batch Rewrite", {
inputDir: "./assessments/",
outputDir: "./assessments-clean/",
pattern: "*.html"
}, "qe-test-idea-rewriter");
Memory Namespace
aqe/rewriting/
├── transformations/* - Transformation logs
├── patterns/* - Learned patterns
└── vocabulary/* - Custom verb mappings
Related Skills
Remember
Every test idea should be actionable. "Verify X works" tells you nothing about HOW to test. "[Action] X; [Observe] Y" gives clear steps and expected outcomes. Transform passive descriptions into active, observable tests.
1---
2name: test-idea-rewriting
3description: "Transform passive 'Verify X' test descriptions into active, observable test actions. Use when test ideas lack specificity, use vague language, or fail quality validation. Converts to action-verb format for clearer, more testable descriptions."
4category: test-design
5priority: medium
6tokenEstimate: 800
7agents: [qe-test-idea-rewriter]
8implementation_status: optimized
9optimization_version: 1.0
10last_optimized: 2026-01-17
11dependencies: []
12quick_reference_card: true
13tags: [test-ideas, rewriting, action-verbs, quality, transformation]
14---
15
16# Test Idea Rewriting
17
18<default_to_action>
19When transforming test ideas:
201. DETECT all "Verify X" patterns via regex
212. IDENTIFY appropriate action verb category
223. TRANSFORM to "[ACTION] [trigger]; [OBSERVE] [result]" pattern
234. PRESERVE all metadata (IDs, priorities, automation types)
245. VALIDATE zero "Verify" patterns remain
256. OUTPUT in same format as input
26
27**Success Criteria:** `/<td>Verify\s/gi` returns 0 matches
28</default_to_action>
29
30## Quick Reference Card
31
32### Transformation Pattern
33
34```
35[ACTION VERB] [specific trigger]; [OUTCOME VERB] [observable result]
36```
37
38### Action Verb Quick Reference
39
40| Category | Verbs | Use When |
41|----------|-------|----------|
42| **Interaction** | Click, Type, Submit, Navigate, Scroll | UI actions |
43| **Trigger** | Send, Inject, Force, Simulate, Load | API/system actions |
44| **Measurement** | Measure, Time, Count, Profile | Performance checks |
45| **State** | Set, Configure, Enable, Disable, Toggle | Setup actions |
46| **Observation** | Confirm, Assert, Check, Observe | Outcome verification |
47
48### Common Transformations
49
50| Before | After |
51|--------|-------|
52| Verify login works | Submit valid credentials; confirm session created |
53| Verify API returns 200 | Send GET request; assert 200 response within 500ms |
54| Verify error displays | Trigger validation error; observe error message |
55| Verify data saves | Insert record; query database; confirm fields match |
56| Verify performance | Execute 100 requests; measure p99 < 200ms |
57
58---
59
60## Transformation Rules
61
62### Pattern Detection
63
64```regex
65/<td>Verify\s/gi // HTML table cells
66/^Verify\s/gim // Line starts
67/"Verify\s[^"]+"/gi // Quoted strings
68```
69
70### Transformation Categories
71
72#### API/Network Tests
73
74| Input Pattern | Output Pattern |
75|---------------|----------------|
76| Verify API returns X | Send [METHOD] request; assert [STATUS] response |
77| Verify endpoint accepts Y | Post [PAYLOAD] to endpoint; confirm [RESPONSE] |
78| Verify webhook fires | Trigger [EVENT]; observe webhook received |
79
80#### UI/UX Tests
81
82| Input Pattern | Output Pattern |
83|---------------|----------------|
84| Verify button works | Click [BUTTON]; observe [EFFECT] |
85| Verify form submits | Fill [FIELDS]; submit form; confirm [RESULT] |
86| Verify navigation works | Click [LINK]; observe [PAGE] loads |
87
88#### Data Tests
89
90| Input Pattern | Output Pattern |
91|---------------|----------------|
92| Verify data saves | Insert [RECORD]; query; confirm [MATCH] |
93| Verify validation works | Enter [INVALID]; observe [ERROR] |
94| Verify format accepted | Submit [FORMAT]; confirm [PROCESSED] |
95
96#### Performance Tests
97
98| Input Pattern | Output Pattern |
99|---------------|----------------|
100| Verify performance is good | Execute [LOAD]; measure [METRIC] < [THRESHOLD] |
101| Verify scalability | Increase [USERS] to [N]; monitor [RESOURCE] |
102| Verify timeout works | Inject [DELAY]; confirm timeout after [TIME] |
103
104---
105
106## Action Verb Reference
107
108### Interaction Verbs
109
110| Verb | When to Use | Example |
111|------|-------------|---------|
112| Click | UI element interaction | Click "Submit" button |
113| Type | Text entry | Type "user@example.com" |
114| Submit | Form completion | Submit registration form |
115| Navigate | Page changes | Navigate to /settings |
116| Scroll | Viewport movement | Scroll to page bottom |
117| Drag | Drag-and-drop | Drag file to upload zone |
118| Hover | Mouse positioning | Hover over tooltip trigger |
119| Select | Dropdown/checkbox | Select "Admin" from role dropdown |
120
121### Trigger Verbs
122
123| Verb | When to Use | Example |
124|------|-------------|---------|
125| Send | HTTP requests | Send POST to /api/orders |
126| Inject | Fault injection | Inject 500ms latency |
127| Force | State manipulation | Force offline mode |
128| Simulate | Event generation | Simulate device rotation |
129| Load | Resource loading | Load 50MB test file |
130| Execute | Script/command | Execute database migration |
131| Invoke | Function/webhook | Invoke payment callback |
132| Trigger | Event firing | Trigger scheduled job |
133
134### Measurement Verbs
135
136| Verb | When to Use | Example |
137|------|-------------|---------|
138| Measure | Quantitative check | Measure response time |
139| Time | Duration tracking | Time page render |
140| Count | Quantity check | Count search results |
141| Profile | Resource analysis | Profile CPU usage |
142| Benchmark | Comparison | Benchmark against v1.0 |
143| Capture | State recording | Capture network traffic |
144| Monitor | Ongoing observation | Monitor memory for 5 minutes |
145
146### Observation Verbs
147
148| Verb | When to Use | Example |
149|------|-------------|---------|
150| Confirm | Boolean check | Confirm user is logged in |
151| Assert | Value comparison | Assert total equals $99.99 |
152| Check | State verification | Check cart has 3 items |
153| Observe | Behavior watching | Observe spinner appears |
154| Validate | Rule compliance | Validate email format |
155| Expect | Predicted outcome | Expect redirect to /home |
156| Verify (avoid) | Use alternatives | Use confirm/assert instead |
157
158---
159
160## Quality Validation
161
162### Pre-Transform Checks
163
1641. Count "Verify" patterns in input
1652. Identify context for each pattern
1663. Map to appropriate action verb category
167
168### Post-Transform Checks
169
1701. Regex validation: zero "Verify" matches
1712. Every test idea starts with action verb
1723. Each test includes observable outcome
1734. All metadata preserved unchanged
174
175### Validation Regex
176
177```javascript
178// Must return 0 matches for success
179const verifyPattern = /<td>Verify\s/gi;
180const matches = content.match(verifyPattern);
181if (matches && matches.length > 0) {
182 throw new Error(`${matches.length} "Verify" patterns remain`);
183}
184```
185
186---
187
188## Agent Integration
189
190```typescript
191// Single file transformation
192await Task("Rewrite Test Ideas", {
193 inputFile: "assessment.html",
194 outputFile: "assessment-rewritten.html",
195 preserveFormatting: true
196}, "qe-test-idea-rewriter");
197
198// Batch transformation
199await Task("Batch Rewrite", {
200 inputDir: "./assessments/",
201 outputDir: "./assessments-clean/",
202 pattern: "*.html"
203}, "qe-test-idea-rewriter");
204```
205
206---
207
208## Memory Namespace
209
210```
211aqe/rewriting/
212├── transformations/* - Transformation logs
213├── patterns/* - Learned patterns
214└── vocabulary/* - Custom verb mappings
215```
216
217---
218
219## Related Skills
220
221- [sfdipot-product-factors](../sfdipot-product-factors/) - Assessment generation
222- [test-design-techniques](../test-design-techniques/) - Proper test structuring
223- [brutal-honesty-review](../brutal-honesty-review/) - Quality validation
224
225---
226
227## Remember
228
229**Every test idea should be actionable.** "Verify X works" tells you nothing about HOW to test. "[Action] X; [Observe] Y" gives clear steps and expected outcomes. Transform passive descriptions into active, observable tests.