sdtk-spec-kit 0.9.2 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/assets/manifest/toolkit-bundle.manifest.json +370 -35
- package/assets/manifest/toolkit-bundle.sha256.txt +84 -17
- package/assets/toolkit/toolkit/AGENTS.md +2 -1
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +11 -3
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +7 -0
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +46 -0
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +19 -0
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/SKILL.md +117 -0
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/references/PROFILE_TEMPLATE.md +60 -0
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/scripts/oq_sync.py +349 -0
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/scripts/test_oq_sync.py +175 -0
- package/assets/toolkit/toolkit/skills/sdtk-db-design/SKILL.md +130 -0
- package/assets/toolkit/toolkit/skills/sdtk-db-design/references/REVIEW_PROCESS.md +82 -0
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +2 -0
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/SKILL.md +104 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/REVIEW_AND_MISTAKES.md +63 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/SCR01.json +46 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/SCR01.png +0 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/SPEC_SCHEMA.md +208 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/example_spec.yaml +115 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/build_design_xlsx.py +550 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/design_spec.py +305 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/export_preview.py +111 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/export_spec_md.py +181 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/make_template.py +113 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/test_screen_design.py +198 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/uia_dump.py +64 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/validate_spec.py +260 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/SKILL.md +76 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/references/HANDOFF_TEMPLATE.md +63 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/references/MOVING_A_PROJECT.md +18 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/scripts/dirty_files.py +133 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/scripts/test_dirty_files.py +94 -0
- package/assets/toolkit/toolkit/skills/sdtk-smoke-test-spec/SKILL.md +69 -0
- package/assets/toolkit/toolkit/skills/sdtk-smoke-test-spec/scripts/test_validate_smoke_test.py +58 -0
- package/assets/toolkit/toolkit/skills/sdtk-smoke-test-spec/scripts/validate_smoke_test.py +152 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/SKILL.md +297 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/prompts/agent_brief_template.md +59 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/check_coverage.py +50 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/extract_sources.py +224 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/merge_parts.py +78 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/render_testcase.py +421 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/template_set.py +57 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/test_write_results.py +89 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/write_results.py +126 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/SKILL.md +149 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/pictures.py +68 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/test_metadata.py +76 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/test_pictures.py +55 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/xlsafe.py +137 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/xlsx_xml_edit.py +217 -0
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +172 -0
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/customer-qa-sheet/SKILL.md +115 -0
- package/assets/toolkit/toolkit/skills-claude/db-design/SKILL.md +128 -0
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/screen-design-xlsx/SKILL.md +101 -0
- package/assets/toolkit/toolkit/skills-claude/session-handoff/SKILL.md +74 -0
- package/assets/toolkit/toolkit/skills-claude/smoke-test-spec/SKILL.md +66 -0
- package/assets/toolkit/toolkit/skills-claude/test-case-xlsx/SKILL.md +294 -0
- package/assets/toolkit/toolkit/skills-claude/xlsx-safe-edit/SKILL.md +146 -0
- package/assets/toolkit/toolkit/templates/README.md +11 -1
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +14 -0
- package/assets/toolkit/toolkit/templates/screen-design-xlsx/ja-default/TEMPLATE.md +247 -0
- package/assets/toolkit/toolkit/templates/screen-design-xlsx/ja-default/template.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/smoke-test/PROFILE_TEMPLATE.md +36 -0
- package/assets/toolkit/toolkit/templates/smoke-test/vi-default/AUTHORING_RULES.md +32 -0
- package/assets/toolkit/toolkit/templates/smoke-test/vi-default/SMOKE_TEST_TEMPLATE.md +147 -0
- package/assets/toolkit/toolkit/templates/smoke-test/vi-default/TEMPLATE.md +25 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/PROFILE_TEMPLATE.md +78 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/TEMPLATE.md +28 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/README.md +73 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/_template.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/common/common.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/mobile_app.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/smartphone_web.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/web.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/windows_app.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default//343/203/206/343/202/271/343/203/210/344/273/225/346/247/230/346/233/270/344/275/234/346/210/220/343/203/253/343/203/274/343/203/253.md +514 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default//343/203/206/343/202/271/343/203/210/344/273/225/346/247/230/346/233/270/351/233/233/345/236/213.xlsx +0 -0
- package/package.json +1 -1
- package/src/lib/scope.js +6 -4
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# Template set `screen-design-xlsx/ja-default` — 画面設計書 workbook format
|
|
2
|
+
|
|
3
|
+
A Japanese 画面設計書 house format (表紙 / 改訂記事 / 機能概要 / 画面流れ / 処理), as reverse-engineered from a
|
|
4
|
+
delivered design document and its process-sheet reference page. `sdtk-screen-design-xlsx` renders into
|
|
5
|
+
`template.xlsx` of this folder when the target workbook does not exist yet; the renderer assumes every rule below.
|
|
6
|
+
A customer's own variant goes to `docs/templates/screen-design-xlsx/<set>/` in the project (same files), with
|
|
7
|
+
`workbook.template_set: <set>` in the spec.
|
|
8
|
+
|
|
9
|
+
```json config
|
|
10
|
+
{"output_template": "template.xlsx"}
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. The grid
|
|
16
|
+
|
|
17
|
+
`画面流れ` and `処理` are drawn on graph-paper columns, not on a normal spreadsheet:
|
|
18
|
+
|
|
19
|
+
| Property | Value |
|
|
20
|
+
|---|---|
|
|
21
|
+
| Column width, A–BI (1–61) | `2.26953125` chars ≈ 12.6 pt ≈ 0.175 in |
|
|
22
|
+
| Column BJ (62) | `0.26953125`, **hidden** — acts as the vertical page split |
|
|
23
|
+
| Column BK+ (63…) | `処理`: same 2.27 grid. `画面流れ`: named widths for the UI item table |
|
|
24
|
+
| Default row height | `13.5` pt, `customHeight="1"` |
|
|
25
|
+
| Page setup | A4 (`paperSize=9`), landscape, `pageOrder="overThenDown"` |
|
|
26
|
+
| Margins | l 0.591 / r 0.394 / t 0.630 / b 0.472 in, header 0, footer 0 |
|
|
27
|
+
| Footer | `&C&P /` (centred page number) |
|
|
28
|
+
|
|
29
|
+
Consequences you must design around:
|
|
30
|
+
|
|
31
|
+
- **One printed page = 40 rows × columns A–BI.** Anything past column BI is cut off.
|
|
32
|
+
- `pageOrder=overThenDown` + the hidden column break at BJ means each 40-row band prints as
|
|
33
|
+
*left page, then right page*. `画面流れ` uses this deliberately: screenshot page, then UI table
|
|
34
|
+
page. `処理` has no content past BI, so it prints one page per band.
|
|
35
|
+
- Row breaks are set manually at 42, 82, 122, … (i.e. **before** each block start).
|
|
36
|
+
|
|
37
|
+
## 2. Block layout
|
|
38
|
+
|
|
39
|
+
Every block sheet repeats a fixed 40-row block. Block *k* (0-based) starts at row `3 + 40k`.
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
row 1–2 document header (see §3) — sheet-global, not per block
|
|
43
|
+
row S block header: 処理番号/画面ID | value | 画面名 | value | 機能概要 | value
|
|
44
|
+
row S+1 (header cells are merged over S..S+1)
|
|
45
|
+
row S+2 … S+39 block body
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Header cells, with merges:
|
|
49
|
+
|
|
50
|
+
| Cell | Merge | Content |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| `A{S}` | `A{S}:C{S+1}` | label — `処理番号` (処理) or `画面ID` (画面流れ) |
|
|
53
|
+
| `E{S}` | `E{S}:H{S+1}` | the id, e.g. `PRC01-1` / `SCR01` |
|
|
54
|
+
| `I{S}` | — | label `画面名` |
|
|
55
|
+
| `M{S}` | `M{S}:V{S+1}` | screen / trigger context |
|
|
56
|
+
| `W{S}` | — | label `機能概要` |
|
|
57
|
+
| `AA{S}` | — | one-line summary (overflows right, unmerged) |
|
|
58
|
+
|
|
59
|
+
`A1` holds the document title `画面設計書` merged over `A1:V2`.
|
|
60
|
+
|
|
61
|
+
## 3. Document header (rows 1–2)
|
|
62
|
+
|
|
63
|
+
| Cell | Merge | Content |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| `W1` / `W2` | `W1:Y1` / `W2:Y2` | labels `ユーザ` / `業務名` |
|
|
66
|
+
| `Z1` / `Z2` | `Z1:AN1` / `Z2:AN2` | customer name / business name |
|
|
67
|
+
| `AO1` / `AO2` | `AO1:AQ1` / `AO2:AQ2` | label `版数` / the version number |
|
|
68
|
+
| `AR1` / `AR2` | `AR1:AT1` / `AR2:AT2` | labels `作成者` / `作成日` |
|
|
69
|
+
| `AU1` / `AU2` | `AU1:AZ1` / `AU2:AZ2` | author / creation date |
|
|
70
|
+
| `BA1` / `BA2` | `BA1:BC1` / `BA2:BC2` | labels `更新者` / `更新日` |
|
|
71
|
+
| `BD1` / `BD2` | `BD1:BI1` / `BD2:BI2` | updater / update date |
|
|
72
|
+
|
|
73
|
+
`画面流れ` repeats a second copy of this header at `BK1…BW2`, because its right half is a
|
|
74
|
+
separate printed page.
|
|
75
|
+
|
|
76
|
+
## 4. 処理 — flowchart pages
|
|
77
|
+
|
|
78
|
+
### 4.1 Shapes
|
|
79
|
+
|
|
80
|
+
All native Excel autoshapes, white fill, black line, `Placement = xlMove (2)`.
|
|
81
|
+
|
|
82
|
+
| Element | Shape | Size (pt) | Column anchor |
|
|
83
|
+
|---|---|---|---|
|
|
84
|
+
| Start | `msoShapeOval` (9) | 24.75 × 28.50 | centred on the main line |
|
|
85
|
+
| Process | `msoShapeRectangle` (1) | **146.25 × 42.75** | left edge at column **D** |
|
|
86
|
+
| Decision | `msoShapeFlowchartDecision` (63) | **104 × 54** | centred on the main line |
|
|
87
|
+
| End | two concentric ovals (◎) | 25.50 × 28.50, inner 58% | centred on the main line |
|
|
88
|
+
| Arrow | `AddConnector(msoConnectorStraight=1)` | line 1.0 pt, `EndArrowheadStyle=2` | — |
|
|
89
|
+
| Merge | `AddConnector(msoConnectorElbow=2)` | same | branch box bottom → main line |
|
|
90
|
+
|
|
91
|
+
Main line x = `Cells(1,'D').Left + 146.25/2`. Box line weight 1.25 pt (terminators 1.5).
|
|
92
|
+
|
|
93
|
+
Text: `MS Pゴシック`, **8 pt** in boxes (left-aligned), **7 pt** in decisions (centred),
|
|
94
|
+
`VerticalAnchor = msoAnchorMiddle`, `WordWrap = True`, `AutoSize = none`.
|
|
95
|
+
|
|
96
|
+
**Capacity — this is the constraint that bites:**
|
|
97
|
+
|
|
98
|
+
- Process box: usable ≈ 140 pt × 42.75 pt → **≤ 4 lines × ≤ 17 full-width chars**.
|
|
99
|
+
- Decision diamond: a diamond paints text only in its **inscribed 50 % × 50 % rectangle**
|
|
100
|
+
(52 × 27 pt here) → **≤ 2 lines × ≤ 7 full-width chars**. A third line is clipped silently.
|
|
101
|
+
Margins are set to 0 on decisions to buy back what little room there is.
|
|
102
|
+
|
|
103
|
+
### 4.2 Vertical rhythm
|
|
104
|
+
|
|
105
|
+
With `S` = block start row, and node index `i` counting only main-column nodes:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
trigger label rows S+3, S+4 (column L)
|
|
109
|
+
start terminator top of row S+5 (drawing row S+4)
|
|
110
|
+
node i marker row M = S + 7 + 5i (columns D / E)
|
|
111
|
+
node i shape top top of row M+1
|
|
112
|
+
end terminator top of row S + 7 + 5·n
|
|
113
|
+
"処理終了" label row S + 7 + 5·n, column L
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Pitch is **5 rows per node**. A 40-row block therefore holds **at most 6 main-column nodes**
|
|
117
|
+
(`S+7+5·6 = S+37`, terminator ends at ≈ S+39). Put the 7th step on a side branch or split the
|
|
118
|
+
flow into a sub-process page.
|
|
119
|
+
|
|
120
|
+
### 4.3 Markers and labels
|
|
121
|
+
|
|
122
|
+
- Step marker `①` goes in column **D** at row `M` (one row above the box) — i.e. above-left of
|
|
123
|
+
the shape, never inside it (a white-filled shape hides the cell).
|
|
124
|
+
- A sub-process reference goes next to it in column **E**: `② PRC01-1-1`.
|
|
125
|
+
- For a decision the marker sits in column **E** instead (the diamond is narrower than a box).
|
|
126
|
+
- A decision therefore consumes **two** markers in the explanation list — the taken branch and
|
|
127
|
+
the fall-through — so the marker count of a block is not its node count. Budget nodes with
|
|
128
|
+
§4.2 (5 rows each, 6 max) and markers with §4.4 separately. Before adding a step to an
|
|
129
|
+
existing block, read its `nodes` list out of the spec: a block already at 5 nodes has room
|
|
130
|
+
for one more and nothing else.
|
|
131
|
+
- Branch label (taken side) → row `M+1`, column **M**, above the horizontal arrow.
|
|
132
|
+
- Fall-through label → row `M+4`, column **E**, left of the vertical line. Keep it short; the
|
|
133
|
+
merge elbow runs through the space to the right.
|
|
134
|
+
- Side branch box: left edge at `main_x + DEC_W/2 + 72` pt, its marker in column **S**.
|
|
135
|
+
|
|
136
|
+
### 4.4 Right-hand explanation list
|
|
137
|
+
|
|
138
|
+
A numbered list mirroring the flowchart, starting at row `S+6`:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
column ac : ① ② ③ … ※
|
|
142
|
+
column ac + 1 : one row per line of explanation
|
|
143
|
+
blank row between entries
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Choose `ac` by how far right the flowchart reaches:
|
|
147
|
+
|
|
148
|
+
| Flow shape | `ann_col` | Text budget to column BI |
|
|
149
|
+
|---|---|---|
|
|
150
|
+
| Linear (no side branch) | `X` (24) | ≈ 52 full-width chars |
|
|
151
|
+
| Has a side branch | `AH` (34) | ≈ 38 full-width chars |
|
|
152
|
+
|
|
153
|
+
Exceeding the budget does not wrap — it is simply cut off at the page edge.
|
|
154
|
+
|
|
155
|
+
## 5. 処理 — detail pages
|
|
156
|
+
|
|
157
|
+
Same header, then:
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
row S+2 column D = sub id (PRC01-1-1), column I = sub name
|
|
161
|
+
row S+4 column D = "■", column E = section heading
|
|
162
|
+
then a bordered table and/or "・" note lines
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Tables: header row filled `0xD9D9D9`, thin borders on all edges and insides
|
|
166
|
+
(`Borders(7..12).LineStyle = xlContinuous, .Weight = xlThin`). Each logical column is a merged
|
|
167
|
+
run of grid columns, declared as `(title, start column, span in grid columns)`.
|
|
168
|
+
|
|
169
|
+
Note lines sit in column `F` prefixed with `・`.
|
|
170
|
+
|
|
171
|
+
A detail page holds roughly **34 usable rows** — count `1 + rows + 1` per section plus a blank
|
|
172
|
+
row between sections.
|
|
173
|
+
|
|
174
|
+
## 6. 画面流れ — screen pages
|
|
175
|
+
|
|
176
|
+
Left page (A–BI):
|
|
177
|
+
|
|
178
|
+
| Row | Content |
|
|
179
|
+
|---|---|
|
|
180
|
+
| `S` | header (§2) |
|
|
181
|
+
| `S+2` | `A` = `Figma` (source label) |
|
|
182
|
+
| `S+2` | screenshot picture anchored at column A/B, width ≈ 7 258 050 EMU (≈ 571 pt) |
|
|
183
|
+
| overlay | markers: `msoShapeOval` **15 × 15 pt**, white fill, **red 1 pt border**, red **bold 9 pt** number, `WordWrap = False` |
|
|
184
|
+
| `S+30` | `A` = `<備考>` |
|
|
185
|
+
| `S+31…` | column `C`: `・` note (JP); optionally the next row holds a translation |
|
|
186
|
+
|
|
187
|
+
Right page (BK–BW), a bordered table pre-drawn in the template for the whole 40 rows:
|
|
188
|
+
|
|
189
|
+
| Column | Header |
|
|
190
|
+
|---|---|
|
|
191
|
+
| BK | `項目名` |
|
|
192
|
+
| BL | `部品の種類` |
|
|
193
|
+
| BM | `属性` |
|
|
194
|
+
| BN | `DBカラム` |
|
|
195
|
+
| BO | `桁数` |
|
|
196
|
+
| BP | `初期値` |
|
|
197
|
+
| BQ | `必須` |
|
|
198
|
+
| BR | `特記事項` |
|
|
199
|
+
|
|
200
|
+
Column `BZ` (78) is outside the styled grid and outside the printed range — the existing
|
|
201
|
+
document uses it for working-language translations of the `特記事項` column.
|
|
202
|
+
|
|
203
|
+
Marker coordinates cannot be derived from markdown. The spec expresses them as fractions of the
|
|
204
|
+
screenshot's bounding box (`x`, `y` in `0..1`), which the renderer converts to points.
|
|
205
|
+
|
|
206
|
+
## 7. 改訂記事 / 機能概要 / 表紙
|
|
207
|
+
|
|
208
|
+
No grid, no blocks.
|
|
209
|
+
|
|
210
|
+
`改訂記事` — one entry per revision, 2 blank rows between entries:
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
B{r} 2026年9月7日
|
|
214
|
+
C{r+1} ■0.03版
|
|
215
|
+
C{r+2} | D{r+2} ・first bullet
|
|
216
|
+
C{r+3} | D{r+3} ・second bullet
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Fonts: `MS Pゴシック` 10 pt for the date / `■版` / `|` cells, 9 pt for the bullet text in
|
|
220
|
+
column `D`. The renderer sets these explicitly because clearing the sheet also drops them.
|
|
221
|
+
|
|
222
|
+
`機能概要` — plain outline: heading in column `A` (`[機能概要]`), bullets in column `B`
|
|
223
|
+
(`・…`), continuation/detail in column `C`. No special formatting — the sheet default is used.
|
|
224
|
+
|
|
225
|
+
`表紙` — different grid (column width 2.54), scale 90 %. `H9:AQ22` merged holds the multi-line
|
|
226
|
+
title, `U37:AD38` holds the date.
|
|
227
|
+
|
|
228
|
+
## 8. Round-trip hazards
|
|
229
|
+
|
|
230
|
+
- `openpyxl` **destroys all drawings** on save. Read-only inspection is fine; writing is not.
|
|
231
|
+
- Excel renumbers `xl/drawings/drawingN.xml` on save — never hard-code drawing part names.
|
|
232
|
+
- The template grid mixes 8 pt (A–AA, BD–BI) and 11 pt (AB–BC) column fonts. The renderer
|
|
233
|
+
forces the whole block body to 8 pt after stamping, otherwise annotation text at column AH
|
|
234
|
+
comes out visibly larger than the rest.
|
|
235
|
+
- After `.Clear()` on rows below the last block, delete those rows so the used range does not
|
|
236
|
+
grow every render.
|
|
237
|
+
- Stamping a block = `Range(A3:BX42).Copy(Cells(S,1))`, which carries values, formats and
|
|
238
|
+
merges. So **row 3–42 of each block sheet must always remain a clean, correct block header**;
|
|
239
|
+
the renderer treats it as the in-file template.
|
|
240
|
+
- Because the stamp carries *values* too, the first block's own content must be blanked before
|
|
241
|
+
stamping, otherwise re-rendering an already-populated workbook copies block 1's leftover text
|
|
242
|
+
into every following block. `clear_block_values()` does this: it blanks rows 4..42 plus the
|
|
243
|
+
three value cells on row 3 (`E3`/`M3`/`AA3`), and deliberately keeps row 3's static labels —
|
|
244
|
+
on `画面流れ` that row also carries the `BK3:BR3` UI item table header.
|
|
245
|
+
- `Range.ClearContents` refuses to act on a range that only partly covers a merged cell. Clear
|
|
246
|
+
through `cell.MergeArea.Cells(1,1)` instead, and select the cells with
|
|
247
|
+
`SpecialCells(xlCellTypeConstants)` so formats survive.
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Smoke test profile — <project>
|
|
2
|
+
|
|
3
|
+
> Project-specific settings for `sdtk-smoke-test-spec`. Keep this file in the project repository
|
|
4
|
+
> (`docs/qa/smoke_test_profile.md`); the skill itself holds nothing project-specific.
|
|
5
|
+
|
|
6
|
+
## Template set
|
|
7
|
+
- `template_set`: `vi-default` <!-- or a path, e.g. docs/templates/smoke-test/<customer> -->
|
|
8
|
+
- Output folder: `docs/<phase>/qa/`
|
|
9
|
+
- File name: `SMOKE_TEST_<TASK>_<FEATURE>_VI.md`
|
|
10
|
+
|
|
11
|
+
## Spec sources (codes used in the Spec column)
|
|
12
|
+
|
|
13
|
+
| Code | Source | Where |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| `GM-Cnn` | <customer spec, screen sheet, cell Cnn> | <path> |
|
|
16
|
+
| `LG-Cnn` | <customer spec, logic sheet> | <path> |
|
|
17
|
+
| `m1`…`mN` | <mockups> | <path> |
|
|
18
|
+
| `KD-nn` | <customer Q&A answers> | <path> |
|
|
19
|
+
| `D-0n` | <team decisions> | <path> |
|
|
20
|
+
|
|
21
|
+
## Task list
|
|
22
|
+
- <path of the task list>; one suite per task id (`G1`, `G2-1`, …).
|
|
23
|
+
|
|
24
|
+
## Existing suites (regression and "impact on older suites")
|
|
25
|
+
- <path pattern of the older smoke tests>
|
|
26
|
+
|
|
27
|
+
## Devices and accounts
|
|
28
|
+
|
|
29
|
+
| Code | Meaning |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Máy A | <…> |
|
|
32
|
+
| TK-1 | <…> |
|
|
33
|
+
|
|
34
|
+
## Conventions
|
|
35
|
+
- Suite codes: <list, e.g. HOME, BKLIST, …>
|
|
36
|
+
- Language of the document / of on-screen strings: <…>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Quy tắc viết smoke test (template `vi-default`)
|
|
2
|
+
|
|
3
|
+
## 1. Khung
|
|
4
|
+
- Chép đúng `SMOKE_TEST_TEMPLATE.md`: §0 → §9 + Phụ lục A. Không đổi tên cột của bảng ca.
|
|
5
|
+
- Mã ca: `<SUITE>-<UI|FN|ER|BV|RG>-NN`; mỗi mã nằm trong tiểu mục của nhóm đó; không trùng; không đánh số lại ca đã giao.
|
|
6
|
+
- Mức: 🔴 mất / sai dữ liệu, kẹt, luồng chính · 🟡 hiển thị sai gây hiểu nhầm, lỗi tự phục hồi · trống: hiển thị, biên hiếm.
|
|
7
|
+
- KQ để `☐` khi giao.
|
|
8
|
+
- **Kết quả mong đợi chỉ ghi thứ nhìn thấy được** (màn hình app, khay hệ thống, Explorer / Finder, web, hộp thoại). Log, DB, registry, code → Phụ lục A.
|
|
9
|
+
- §8: số ca và số 🔴 **phải khớp** bảng ca — chạy `validate_smoke_test.py` trước khi giao.
|
|
10
|
+
|
|
11
|
+
## 2. Chức năng chưa implement
|
|
12
|
+
- Viết kỳ vọng theo spec của khách + quyết định đã chốt. Không đoán hành vi chưa chốt.
|
|
13
|
+
- Câu chữ khách không đưa (team tự viết) → ghi `〔câu chữ: dev điền〕` (có thể kèm đề xuất).
|
|
14
|
+
- Điểm chưa chốt → §7 (`LĐ-nn`); ca liên quan ghi "Ghi lại hành vi thật" hoặc để `保留`.
|
|
15
|
+
- Giữ khối "⚠️ Trước khi giao tester, dev làm …" ở đầu file cho tới khi dev điền xong.
|
|
16
|
+
|
|
17
|
+
## 3. Nguồn spec
|
|
18
|
+
- Mỗi ca có cột **Spec** trỏ tới nguồn: mã ô trong spec của khách, mockup, mã câu hỏi Q&A, mã quyết định. Bảng mã nguồn ở §0.
|
|
19
|
+
- Không bịa câu chữ trên màn hình: chép nguyên văn từ spec / mockup / app đang chạy; không có thì `〔câu chữ: dev điền〕`.
|
|
20
|
+
|
|
21
|
+
## 4. Ảnh hưởng tới bộ cũ
|
|
22
|
+
- §1 có mục **"Ảnh hưởng tới bộ cũ"**: ca nào của bộ smoke test cũ không còn đúng sau thay đổi (file + mã ca + lý do), để lead loại khỏi đợt test. Các mã ca này **không** phải ca của bộ mới (validator chỉ đếm §4).
|
|
23
|
+
|
|
24
|
+
## 5. Ca không làm được theo cách thông thường
|
|
25
|
+
- Bước "trên web" không làm được → mô tả cách thiết lập khác: thao tác trên máy, gọi API, sửa DB (kèm câu SQL ở phụ lục). Ca thật sự không thiết lập được → ghi chú để lead quyết bỏ.
|
|
26
|
+
- Dữ liệu cần lead / dev chuẩn bị → §2.3 (`CB-n`), ca ghi `CB-n` ở cột Tiền điều kiện.
|
|
27
|
+
|
|
28
|
+
## 6. Lệnh đưa tester
|
|
29
|
+
- Lệnh ngắn, **mỗi lệnh một dòng**; đã chạy thử phần chỉ đọc. Lệnh có tác dụng phụ ghi rõ tác dụng.
|
|
30
|
+
|
|
31
|
+
## 7. Bàn giao
|
|
32
|
+
- Trả về: tên file, số ca / số 🔴 theo nhóm (từ validator), danh sách LĐ, điểm cần PM quyết (≤ 15 dòng).
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# <Tên tính năng> (<mã task>) — Kịch bản kiểm thử
|
|
2
|
+
|
|
3
|
+
## 0. Thông tin tài liệu
|
|
4
|
+
|
|
5
|
+
| Mục | Nội dung |
|
|
6
|
+
|---|---|
|
|
7
|
+
| Mã bộ | `<SUITE>` |
|
|
8
|
+
| Tính năng | <tên tính năng> |
|
|
9
|
+
| Phiên bản | 0.1 |
|
|
10
|
+
| Bản build | nhánh `<branch>`, commit `<sha>` |
|
|
11
|
+
|
|
12
|
+
| Mã | Tài liệu | Mức |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| <mã nguồn spec> | <tài liệu / ô spec / mockup> | Chính / Tham khảo |
|
|
15
|
+
|
|
16
|
+
| Ngày | Phiên bản | Nội dung | Người sửa |
|
|
17
|
+
|---|---|---|---|
|
|
18
|
+
| <yyyy-mm-dd> | 0.1 | Tạo mới | <tên> |
|
|
19
|
+
|
|
20
|
+
> ⚠️ Trước khi giao tester, dev làm: (1) chạy thử mọi thao tác / lệnh trên bản build; (2) điền các chỗ 〔dev điền〕; (3) xoá ghi chú này.
|
|
21
|
+
|
|
22
|
+
## 1. Phạm vi
|
|
23
|
+
|
|
24
|
+
**Trong phạm vi:** <…>
|
|
25
|
+
|
|
26
|
+
**Ngoài phạm vi:** <…>
|
|
27
|
+
|
|
28
|
+
**Giả định:** <…>
|
|
29
|
+
|
|
30
|
+
**Ảnh hưởng tới bộ cũ:** ca của bộ smoke test cũ không còn đúng sau thay đổi này (lead loại khỏi đợt test).
|
|
31
|
+
|
|
32
|
+
| File | Mã ca | Lý do |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| <SMOKE_TEST_xxx.md> | <OLD-FN-01> | <…> |
|
|
35
|
+
|
|
36
|
+
## 2. Chuẩn bị
|
|
37
|
+
|
|
38
|
+
### 2.1 Thiết bị và tài khoản
|
|
39
|
+
|
|
40
|
+
| Mã | Thiết bị / tài khoản | Ghi chú |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Máy A | <OS, bản build> | |
|
|
43
|
+
| TK-1 | <vai trò, quyền> | |
|
|
44
|
+
|
|
45
|
+
### 2.2 Dữ liệu mẫu — tester tự tạo
|
|
46
|
+
|
|
47
|
+
<danh sách file / thư mục / dữ liệu tester tự tạo>
|
|
48
|
+
|
|
49
|
+
### 2.3 Việc lead / dev làm trước
|
|
50
|
+
|
|
51
|
+
| Mã | Việc | Dùng cho |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| CB-1 | <…> | <mã ca> |
|
|
54
|
+
|
|
55
|
+
### 2.4 Trạng thái ban đầu của mỗi ca
|
|
56
|
+
|
|
57
|
+
<trạng thái chung trước mỗi ca, thứ tự chạy nếu có phụ thuộc>
|
|
58
|
+
|
|
59
|
+
## 3. Thuật ngữ và thao tác chuẩn
|
|
60
|
+
|
|
61
|
+
| Thuật ngữ / thao tác | Nghĩa / cách làm |
|
|
62
|
+
|---|---|
|
|
63
|
+
| <…> | <…> |
|
|
64
|
+
|
|
65
|
+
## 4. Ca kiểm thử
|
|
66
|
+
|
|
67
|
+
Mức: 🔴 mất / sai dữ liệu, kẹt, luồng chính · 🟡 hiển thị sai gây hiểu nhầm, lỗi tự phục hồi · (trống) hiển thị, biên hiếm.
|
|
68
|
+
|
|
69
|
+
### 4.1 Giao diện — <SUITE>-UI
|
|
70
|
+
|
|
71
|
+
| ID | Mức | Tiền điều kiện | Bước thực hiện | Kết quả mong đợi | Spec | KQ | Ghi chú |
|
|
72
|
+
|---|---|---|---|---|---|---|---|
|
|
73
|
+
| **<SUITE>-UI-01** | | — | <bước> | <thứ nhìn thấy được> | <mã spec> | ☐ | |
|
|
74
|
+
|
|
75
|
+
### 4.2 Chức năng chính — <SUITE>-FN
|
|
76
|
+
|
|
77
|
+
| ID | Mức | Tiền điều kiện | Bước thực hiện | Kết quả mong đợi | Spec | KQ | Ghi chú |
|
|
78
|
+
|---|---|---|---|---|---|---|---|
|
|
79
|
+
| **<SUITE>-FN-01** | 🔴 | — | <bước> | <thứ nhìn thấy được> | <mã spec> | ☐ | |
|
|
80
|
+
|
|
81
|
+
### 4.3 Ngoại lệ — <SUITE>-ER
|
|
82
|
+
|
|
83
|
+
| ID | Mức | Tiền điều kiện | Bước thực hiện | Kết quả mong đợi | Spec | KQ | Ghi chú |
|
|
84
|
+
|---|---|---|---|---|---|---|---|
|
|
85
|
+
| **<SUITE>-ER-01** | 🟡 | — | <bước> | <thứ nhìn thấy được> | <mã spec> | ☐ | |
|
|
86
|
+
|
|
87
|
+
### 4.4 Biên — <SUITE>-BV
|
|
88
|
+
|
|
89
|
+
| ID | Mức | Tiền điều kiện | Bước thực hiện | Kết quả mong đợi | Spec | KQ | Ghi chú |
|
|
90
|
+
|---|---|---|---|---|---|---|---|
|
|
91
|
+
| **<SUITE>-BV-01** | | — | <bước> | <thứ nhìn thấy được> | <mã spec> | ☐ | |
|
|
92
|
+
|
|
93
|
+
### 4.5 Hồi quy — <SUITE>-RG
|
|
94
|
+
|
|
95
|
+
| ID | Mức | Tiền điều kiện | Bước thực hiện | Kết quả mong đợi | Spec | KQ | Ghi chú |
|
|
96
|
+
|---|---|---|---|---|---|---|---|
|
|
97
|
+
| **<SUITE>-RG-01** | | — | <bước> | <thứ nhìn thấy được> | <mã spec> | ☐ | |
|
|
98
|
+
|
|
99
|
+
## 5. Ma trận truy vết
|
|
100
|
+
|
|
101
|
+
| Spec | Ca kiểm thử |
|
|
102
|
+
|---|---|
|
|
103
|
+
| <mã spec> | <SUITE>-FN-01 |
|
|
104
|
+
|
|
105
|
+
## 6. Hạn chế đã biết — KHÔNG báo là lỗi
|
|
106
|
+
|
|
107
|
+
| Mã | Nội dung |
|
|
108
|
+
|---|---|
|
|
109
|
+
| HC-01 | <…> |
|
|
110
|
+
|
|
111
|
+
## 7. Điểm lệch spec và câu hỏi mở — chờ PM / khách
|
|
112
|
+
|
|
113
|
+
| Mã | Nội dung | Trạng thái |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| LĐ-01 | <…> | Chờ |
|
|
116
|
+
|
|
117
|
+
## 8. Tiêu chí đạt và tổng kết
|
|
118
|
+
|
|
119
|
+
**Điều kiện đạt:** mọi ca 🔴 phải `OK`. Ca 🟡 `NG` thì phải có ticket và được lead chấp nhận.
|
|
120
|
+
|
|
121
|
+
| Nhóm | Số ca | 🔴 | OK | NG | 保留 | N/A |
|
|
122
|
+
|---|:--:|:--:|:--:|:--:|:--:|:--:|
|
|
123
|
+
| 4.1 Giao diện | 1 | 0 | | | | |
|
|
124
|
+
| 4.2 Chức năng chính | 1 | 1 | | | | |
|
|
125
|
+
| 4.3 Ngoại lệ | 1 | 0 | | | | |
|
|
126
|
+
| 4.4 Biên | 1 | 0 | | | | |
|
|
127
|
+
| 4.5 Hồi quy | 1 | 0 | | | | |
|
|
128
|
+
| **Tổng** | **5** | **1** | | | | |
|
|
129
|
+
|
|
130
|
+
**Kết luận:** ☐ Đạt ☐ Không đạt
|
|
131
|
+
|
|
132
|
+
**Người xác nhận:** ______________ **Ngày:** ______________
|
|
133
|
+
|
|
134
|
+
## 9. Mẫu báo lỗi
|
|
135
|
+
|
|
136
|
+
| Mục | Nội dung |
|
|
137
|
+
|---|---|
|
|
138
|
+
| Mã ca | |
|
|
139
|
+
| Bản build | |
|
|
140
|
+
| Bước tái hiện | |
|
|
141
|
+
| Kết quả thực tế | |
|
|
142
|
+
| Kết quả mong đợi | |
|
|
143
|
+
| Ảnh / log | |
|
|
144
|
+
|
|
145
|
+
## Phụ lục A — Kiểm tra bổ sung cho dev
|
|
146
|
+
|
|
147
|
+
<log / DB / registry / file cấu hình cần kiểm cho từng ca — tester không cần đọc>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Template set `smoke-test/vi-default`
|
|
2
|
+
|
|
3
|
+
| Key | Value |
|
|
4
|
+
|---|---|
|
|
5
|
+
| Skill | `sdtk-smoke-test-spec` (>= 0.1) |
|
|
6
|
+
| Document language | Vietnamese; on-screen strings kept verbatim in the product's UI language |
|
|
7
|
+
| Files | `SMOKE_TEST_TEMPLATE.md` (skeleton to copy), `AUTHORING_RULES.md` (rules the author follows) |
|
|
8
|
+
| Output name | `SMOKE_TEST_<TASK>_<FEATURE>_VI.md` |
|
|
9
|
+
|
|
10
|
+
Copy this folder to `<project>/docs/templates/smoke-test/<set name>/` and edit it to give a customer or project its own
|
|
11
|
+
headings, columns or language; the project profile (`docs/qa/smoke_test_profile.md`) names the set to use.
|
|
12
|
+
|
|
13
|
+
The skill's validator (`scripts/validate_smoke_test.py` of `sdtk-smoke-test-spec`) reads the block below, so a
|
|
14
|
+
template set with other headings or column names stays checkable.
|
|
15
|
+
|
|
16
|
+
```json validator
|
|
17
|
+
{
|
|
18
|
+
"required_sections": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
19
|
+
"case_columns": ["ID", "Mức", "Tiền điều kiện", "Bước thực hiện", "Kết quả mong đợi", "Spec", "KQ", "Ghi chú"],
|
|
20
|
+
"severities": ["🔴", "🟡", ""],
|
|
21
|
+
"results": ["☐", "OK", "NG", "保留", "N/A"],
|
|
22
|
+
"total_label": "Tổng",
|
|
23
|
+
"placeholder": "〔[^〕]*〕"
|
|
24
|
+
}
|
|
25
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Test-case profile: <project name>
|
|
2
|
+
|
|
3
|
+
> Copy this file into the PROJECT repository as `testcase_profile.md` (next to where the test specification is
|
|
4
|
+
> written) and create `testcase_profile.base.json` beside it (cover, `viewpoints`, sheets with `screen_types`,
|
|
5
|
+
> db_prefixes, common report_notes — see SKILL.md Step 4). Fill every section by reading the project's docs; ask the user about anything that cannot
|
|
6
|
+
> be derived. Write it in English; Japanese / Vietnamese only for values that appear in the spec as-is
|
|
7
|
+
> (screen names, UI labels, IDs).
|
|
8
|
+
|
|
9
|
+
## 1. Output
|
|
10
|
+
| | |
|
|
11
|
+
|---|---|
|
|
12
|
+
| Files | `<dir>/<name>.spec.json` (source) · `.md` · `.xlsx` |
|
|
13
|
+
| Languages | JA (main) + VI |
|
|
14
|
+
|
|
15
|
+
## 2. Spec sources (read in full in Step 1)
|
|
16
|
+
| File | Used for |
|
|
17
|
+
|---|---|
|
|
18
|
+
| `…` | Main source — requirement IDs (column E) |
|
|
19
|
+
| `…` | Screen names, screen IDs, UI labels |
|
|
20
|
+
| `…` | Table / column names for column H |
|
|
21
|
+
| `…` | Error codes / messages for 異常系 |
|
|
22
|
+
|
|
23
|
+
## 3. Existing test cases (Step 2)
|
|
24
|
+
| Key | File | Main target sheet | Notes (cases that go to another sheet) |
|
|
25
|
+
|---|---|---|---|
|
|
26
|
+
| `…` | `…` | `NN_…` | |
|
|
27
|
+
|
|
28
|
+
- Boundary cases between sheets (decided): …
|
|
29
|
+
- Files that are NOT mandatory sources (superseded, summaries, notes): …
|
|
30
|
+
- "Known limitations / not a bug" sections: never write the opposite expectation; list in §11-3.
|
|
31
|
+
- "Already covered by automated tests" sections: <include / leave out and list in §11-3>.
|
|
32
|
+
|
|
33
|
+
Coverage check (Step 5):
|
|
34
|
+
```bash
|
|
35
|
+
python $S/scripts/check_coverage.py $W/spec.json KEY=<file.md> … [--exclude KEY-ID,…]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 4. Viewpoints and sheets
|
|
39
|
+
Viewpoints (§7.2, `viewpoints` in base JSON): platforms `[…]` (files in `viewpoints/platform/`), customer `<folder or none>`,
|
|
40
|
+
customer_tags `[…]` — and why.
|
|
41
|
+
|
|
42
|
+
Sheets (§3.2 — in the order the tester moves through the screens):
|
|
43
|
+
|
|
44
|
+
| Sheet | 中分類 (screen_name) | Screen ID (column E) | screen_types (§7.2) | Contains |
|
|
45
|
+
|---|---|---|---|---|
|
|
46
|
+
| `01_…` | … | … | … | … |
|
|
47
|
+
|
|
48
|
+
Out of scope: … (record in §11-3).
|
|
49
|
+
|
|
50
|
+
## 5. Column conventions
|
|
51
|
+
- **Column E:** `<requirement ID> / <screen ID> / <KEY>-<original case ID>` (cases from viewpoints: omit the third part;
|
|
52
|
+
split cases: `<KEY>-<ID>-a`, `-b`).
|
|
53
|
+
- **Column H:** <table.column = value; or the `db_prefixes` used and what each one means>.
|
|
54
|
+
|
|
55
|
+
## 6. Business → 大分類 mapping (§4-B — avoid new 大分類)
|
|
56
|
+
| 大分類 | What it covers in this project |
|
|
57
|
+
|---|---|
|
|
58
|
+
| 画面レイアウト | … |
|
|
59
|
+
| 各種コントロール | … |
|
|
60
|
+
| 登録 | … |
|
|
61
|
+
| 検索・絞り込み | … |
|
|
62
|
+
| 編集 | … |
|
|
63
|
+
| 削除 | … |
|
|
64
|
+
| 復元 | … |
|
|
65
|
+
| 権限・認可 | … |
|
|
66
|
+
| 排他制御 | … |
|
|
67
|
+
| 外部連携・I/F | … |
|
|
68
|
+
|
|
69
|
+
## 7. Standard test data (every agent uses exactly these names)
|
|
70
|
+
Placeholder accounts, machines, files, folders and records. Never real credentials, URLs or e-mail addresses.
|
|
71
|
+
|
|
72
|
+
## 8. Work split for sub-agents
|
|
73
|
+
| Part | Scope | Existing-case sources |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| 1 | … | … |
|
|
76
|
+
|
|
77
|
+
## 9. Project gotchas
|
|
78
|
+
- …
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Template set `test-case-xlsx/ja-default`
|
|
2
|
+
|
|
3
|
+
| Key | Value |
|
|
4
|
+
|---|---|
|
|
5
|
+
| Skill | `sdtk-test-case-xlsx` |
|
|
6
|
+
| Document language | Japanese (main) + Vietnamese (secondary columns), as in the writing rules |
|
|
7
|
+
| Output template | `テスト仕様書雛型.xlsx` — sheets 表紙 / テストデータ準備 / 00_雛型 (copied once per output sheet) |
|
|
8
|
+
| Writing rules | `テスト仕様書作成ルール.md` (mandatory; the report items of §11 are checked by the renderer) |
|
|
9
|
+
| Viewpoints | `viewpoints/` — `common/`, `platform/<platform>.xlsx`, `customer/<customer>/` (empty here: a customer's own files are dropped into the project's copy of the set) |
|
|
10
|
+
|
|
11
|
+
To give a customer its own format: copy this folder to `<project>/docs/templates/test-case-xlsx/<customer>/`, change
|
|
12
|
+
the workbook, rules or viewpoints there, and set `"template_set": "<customer>"` in the project's base.json. Keep the
|
|
13
|
+
sheet names and column letters below in step with the workbook — the scripts read them from here.
|
|
14
|
+
|
|
15
|
+
```json config
|
|
16
|
+
{
|
|
17
|
+
"output_template": "テスト仕様書雛型.xlsx",
|
|
18
|
+
"viewpoints_dir": "viewpoints",
|
|
19
|
+
"rules": "テスト仕様書作成ルール.md",
|
|
20
|
+
"results": {
|
|
21
|
+
"id_column": "A",
|
|
22
|
+
"first_row": 2,
|
|
23
|
+
"columns": {"date": "I", "tester": "J", "result": "K", "note": "M"},
|
|
24
|
+
"date_format": "%Y/%m/%d",
|
|
25
|
+
"labels": {"evidence": "エビデンス: ", "reviewer_comment": "確認者コメント: ", "reviewer": "確認:"}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Test viewpoints (テスト観点)
|
|
2
|
+
|
|
3
|
+
Three layers. A project uses: its customer's files (optional) + one or more platform files + common.
|
|
4
|
+
When the same check exists in several layers, the most specific wins: **customer > platform > common**.
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
viewpoints/
|
|
8
|
+
_template.xlsx empty file with the standard columns — copy it to start a new platform/customer file
|
|
9
|
+
common/*.xlsx valid for every software project
|
|
10
|
+
platform/<platform>.xlsx one file per kind of system
|
|
11
|
+
customer/<customer name>/*.xlsx files delivered by a customer, dropped in unchanged
|
|
12
|
+
customer/<customer name>/sheet_map.tsv optional, only when a sheet name cannot be recognized (see below)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Current platform files: `web.xlsx` (web on PC browsers), `smartphone_web.xlsx` (web on smartphone browsers),
|
|
16
|
+
`mobile_app.xlsx` (native iOS / Android apps), `windows_app.xlsx` (Windows desktop apps). Add another platform by
|
|
17
|
+
adding `platform/<name>.xlsx`; projects select it by that file name (without `.xlsx`).
|
|
18
|
+
|
|
19
|
+
## Sheet format (all layers)
|
|
20
|
+
|
|
21
|
+
Any sheet whose header row (within the first 10 rows) contains 「テスト観点」 and at least two other columns below is a
|
|
22
|
+
viewpoint sheet. Columns are matched **by header name**, so order does not matter and missing columns are allowed:
|
|
23
|
+
|
|
24
|
+
| Column | Meaning |
|
|
25
|
+
|---|---|
|
|
26
|
+
| 画面 | Screen type (informational) |
|
|
27
|
+
| 状態 | State (一覧: データあり / データなし; 登録・編集: 登録 / 編集 / 複製; otherwise `-`) |
|
|
28
|
+
| 対象 | Area of the screen |
|
|
29
|
+
| 項目 | Item (optional) |
|
|
30
|
+
| 分類 | 値表示 / レイアウト / 操作 / 制御 / データ |
|
|
31
|
+
| 小分類 | Kind of check within 分類 |
|
|
32
|
+
| テスト観点 | What to check — ends with 「〜こと」 |
|
|
33
|
+
| 確認内容・期待結果 | Pass criterion (also accepted: 期待結果, 確認内容) |
|
|
34
|
+
| 備考 | Condition such as 「〜がある画面のみ」, or 「過去障害あり」 (makes the viewpoint mandatory, rules §7.1) |
|
|
35
|
+
|
|
36
|
+
Sheets without such a header (table of contents, rules, open questions …) are ignored as viewpoints; their text is
|
|
37
|
+
dumped to `_meta.txt` for reference.
|
|
38
|
+
|
|
39
|
+
## Screen types (sheet names)
|
|
40
|
+
|
|
41
|
+
The sheet name decides the screen type. Standard types: `一覧画面`, `設定一覧画面`, `登録・編集画面`, `詳細画面`,
|
|
42
|
+
`ダイアログ`, `ポータル画面`. In platform files, a sheet named `全画面` applies to every screen type of that platform,
|
|
43
|
+
and any other name (e.g. `タスクトレイ・通知`, `プッシュ通知`) is a platform-specific screen type that projects can select.
|
|
44
|
+
|
|
45
|
+
Customer sheet names are recognized automatically (`scripts/extract_sources.py --list` shows the result):
|
|
46
|
+
- A trailing `(PC)` / `(SP)` / `(xxx)` becomes the sheet's **tag**; projects choose which tags apply (`customer_tags`).
|
|
47
|
+
- Name contains 設定一覧 → 設定一覧画面; ダイアログ / モーダル → ダイアログ; 登録 / 編集 / 複製 / 入力 → 登録・編集画面;
|
|
48
|
+
詳細 → 詳細画面; 一覧 → 一覧画面; ポータル / ホーム / トップ / ダッシュボード → ポータル画面.
|
|
49
|
+
- Anything else becomes its own screen type (its name without the tag).
|
|
50
|
+
|
|
51
|
+
If a name is recognized wrongly, add `customer/<name>/sheet_map.tsv` (tab-separated):
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
sheet screen_type tag
|
|
55
|
+
受注入力(PC) 登録・編集画面 PC
|
|
56
|
+
お知らせ管理 skip
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`skip` excludes the sheet.
|
|
60
|
+
|
|
61
|
+
## Adding a customer's files
|
|
62
|
+
|
|
63
|
+
1. Create `customer/<customer name>/` and copy the customer's `.xlsx` files into it unchanged.
|
|
64
|
+
2. Run `python toolkit/skills/sdtk-test-case-xlsx/scripts/extract_sources.py --list` and check that every viewpoint
|
|
65
|
+
sheet got the right screen type and tag; add `sheet_map.tsv` if not.
|
|
66
|
+
3. In the project's `testcase_profile.base.json` set `"viewpoints": {"customer": "<customer name>", "customer_tags": [...]}`.
|
|
67
|
+
|
|
68
|
+
## Adding viewpoints to common / platform files
|
|
69
|
+
|
|
70
|
+
Open the file in Excel and paste rows into the sheet of the right screen type (create the sheet if needed — copy an
|
|
71
|
+
existing sheet so the formatting stays). Keep these files project-independent: no product, customer, business-object
|
|
72
|
+
or screen names of a specific system, and no design values of a specific system (px, colors, fonts) — write
|
|
73
|
+
「画面設計書記載の値」 instead. Concrete values belong in the customer layer.
|