@capagents/forgeqe 3.1.1 → 3.1.3

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.
Files changed (258) hide show
  1. package/HOW_TO_USE.md +5152 -1869
  2. package/README.md +155 -434
  3. package/THIRD_PARTY_NOTICES.md +210 -1
  4. package/dist/docs-site/CREDITS.md +6 -0
  5. package/dist/docs-site/architecture-map/index.html +1 -1
  6. package/dist/docs-site/docs/app-theme.css +126 -13
  7. package/dist/docs-site/docs/architecture/index.html +56 -530
  8. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  9. package/dist/docs-site/docs/area-api/index.html +491 -0
  10. package/dist/docs-site/docs/area-automated-tests/index.html +1777 -0
  11. package/dist/docs-site/docs/area-browser/index.html +472 -0
  12. package/dist/docs-site/docs/area-data/index.html +595 -0
  13. package/dist/docs-site/docs/area-desktop/index.html +802 -0
  14. package/dist/docs-site/docs/area-mobile/index.html +683 -0
  15. package/dist/docs-site/docs/area-operations/index.html +1243 -0
  16. package/dist/docs-site/docs/area-pull-requests/index.html +290 -0
  17. package/dist/docs-site/docs/area-quality/index.html +427 -0
  18. package/dist/docs-site/docs/area-release/index.html +435 -0
  19. package/dist/docs-site/docs/area-setup/index.html +1595 -0
  20. package/dist/docs-site/docs/area-systems/index.html +191 -0
  21. package/dist/docs-site/docs/area-test-cases/index.html +927 -0
  22. package/dist/docs-site/docs/containers/index.html +168 -189
  23. package/dist/docs-site/docs/cost-architecture/index.html +110 -113
  24. package/dist/docs-site/docs/custom-agents-first-run/index.html +121 -67
  25. package/dist/docs-site/docs/desktop/index.html +363 -373
  26. package/dist/docs-site/docs/desktop-ci/index.html +39 -36
  27. package/dist/docs-site/docs/docs-tabs.js +56 -0
  28. package/dist/docs-site/docs/evidence/index.html +297 -300
  29. package/dist/docs-site/docs/feature-test-prompts/index.html +79 -73
  30. package/dist/docs-site/docs/get-started/index.html +791 -0
  31. package/dist/docs-site/docs/graphify/index.html +45 -48
  32. package/dist/docs-site/docs/guardrails/index.html +35 -23
  33. package/dist/docs-site/docs/index.html +18 -6729
  34. package/dist/docs-site/docs/mobile/index.html +223 -210
  35. package/dist/docs-site/docs/model-routing/index.html +84 -65
  36. package/dist/docs-site/docs/overview/index.html +192 -0
  37. package/dist/docs-site/docs/product-graph/index.html +60 -62
  38. package/dist/docs-site/docs/product-knowledge/index.html +24 -17
  39. package/dist/docs-site/docs/product-views/index.html +57 -60
  40. package/dist/docs-site/docs/reference/index.html +409 -0
  41. package/dist/docs-site/docs/search.js +1 -1
  42. package/dist/docs-site/docs/using/index.html +798 -0
  43. package/dist/docs-site/docs/web-app/index.html +168 -111
  44. package/dist/docs-site/security/index.html +930 -0
  45. package/dist/docs-site/security/security-theme.css +161 -0
  46. package/dist/docs-site/security/security.js +1465 -0
  47. package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
  48. package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
  49. package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
  50. package/dist/forgeqe.js +1903 -1896
  51. package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
  52. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  53. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  54. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  55. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  56. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  57. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  58. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  59. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  60. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  61. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  62. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  63. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  64. package/dist/web/assets/Explore-CMAxWE_8.js +2 -0
  65. package/dist/web/assets/Features-haQchkhA.js +1 -0
  66. package/dist/web/assets/Flags-BaQjYi_t.js +2 -0
  67. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  68. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  69. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  70. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  71. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  72. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  73. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  74. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  75. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  76. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  77. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  78. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  79. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  80. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  81. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  82. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  83. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  84. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  85. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  86. package/dist/web/assets/Steps-HYHK9psI.js +2 -0
  87. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  88. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  89. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  90. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  91. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  92. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  93. package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
  94. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  95. package/dist/web/assets/dataParts-DEPK4eQE.js +3 -0
  96. package/dist/web/assets/diff-CcNwLCX6.js +2 -0
  97. package/dist/web/assets/families-gkpkloLT.js +1 -0
  98. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  99. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  100. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  101. package/dist/web/assets/highlight-DZI39CzZ.js +4 -0
  102. package/dist/web/assets/index-ClFOh63x.css +2 -0
  103. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  104. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  105. package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
  106. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  107. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  108. package/dist/web/assets/paletteCommands-DsbD2ASU.js +1 -0
  109. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  110. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  111. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  112. package/dist/web/assets/recordTest--Wr40QdN.js +1 -0
  113. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  114. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  115. package/dist/web/index.html +11 -6
  116. package/docs/ARCHITECTURE.md +50 -563
  117. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  118. package/docs/BASAL.md +1 -1
  119. package/docs/CONTAINERS.md +87 -87
  120. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  121. package/docs/DESKTOP-CI.md +18 -3
  122. package/docs/DESKTOP.md +306 -286
  123. package/docs/EVIDENCE.md +1 -1
  124. package/docs/MOBILE.md +107 -75
  125. package/docs/MODEL_ROUTING.md +48 -15
  126. package/docs/PRODUCT_KNOWLEDGE.md +2 -0
  127. package/docs/WEB_APP.md +143 -75
  128. package/docs/feature-test-prompts.md +29 -16
  129. package/docs/user-guide.html +5402 -2269
  130. package/forgeqe.example.yaml +3 -3
  131. package/guardrails/README.md +22 -2
  132. package/knowledge/README.md +15 -2
  133. package/package.json +1 -1
  134. package/prompts/brain.md +1 -0
  135. package/prompts/page-differs.md +1 -1
  136. package/prompts/requests-rule.md +1 -1
  137. package/prompts/test-reviewer.md +1 -1
  138. package/prompts/test-rules.md +3 -4
  139. package/py/forgeqe_engine/recordsession.py +100 -24
  140. package/skills/web-guidance/LICENSE +202 -0
  141. package/skills/web-guidance/SKILL.md +76 -0
  142. package/skills/web-guidance/UPSTREAM +67 -0
  143. package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
  144. package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
  145. package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
  146. package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
  147. package/skills/web-guidance/references/css/responsive-design.md +16 -0
  148. package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
  149. package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
  150. package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
  151. package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
  152. package/skills/web-guidance/references/forms/forms.md +415 -0
  153. package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
  154. package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
  155. package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
  156. package/skills/web-guidance/references/forms/slider.md +184 -0
  157. package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
  158. package/skills/web-guidance/references/forms/switch.md +60 -0
  159. package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
  160. package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
  161. package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
  162. package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
  163. package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
  164. package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
  165. package/skills/web-guidance/references/performance/performance.md +384 -0
  166. package/skills/web-guidance/references/privacy/privacy.md +247 -0
  167. package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
  168. package/skills/web-guidance/references/security/passkey-management.md +310 -0
  169. package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
  170. package/skills/web-guidance/references/security/passkey-registration.md +186 -0
  171. package/skills/web-guidance/references/security/passkeys.md +39 -0
  172. package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
  173. package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
  174. package/skills/web-guidance/references/security/security.md +390 -0
  175. package/skills/web-guidance/references/security/trusted-types.md +141 -0
  176. package/skills/web-guidance/references/security/validate-origins.md +197 -0
  177. package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
  178. package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
  179. package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
  180. package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
  181. package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
  182. package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
  183. package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
  184. package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
  185. package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
  186. package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
  187. package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
  188. package/skills/web-guidance/references/ui-components/accordion.md +343 -0
  189. package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
  190. package/skills/web-guidance/references/ui-components/carousel.md +206 -0
  191. package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
  192. package/skills/web-guidance/references/ui-components/dialog.md +218 -0
  193. package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
  194. package/skills/web-guidance/references/ui-components/menu.md +415 -0
  195. package/skills/web-guidance/references/ui-components/navbar.md +281 -0
  196. package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
  197. package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
  198. package/skills/web-guidance/references/ui-components/progress.md +181 -0
  199. package/skills/web-guidance/references/ui-components/spinner.md +179 -0
  200. package/skills/web-guidance/references/ui-components/tabs.md +371 -0
  201. package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
  202. package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
  203. package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
  204. package/skills/web-guidance/references/visual-design/color.md +43 -0
  205. package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
  206. package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
  207. package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
  208. package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
  209. package/dist/web/assets/Chat-B3uhI94O.js +0 -3
  210. package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
  211. package/dist/web/assets/Compare-CN75w1p9.js +0 -1
  212. package/dist/web/assets/Cost-QoxyjR95.js +0 -1
  213. package/dist/web/assets/Data-BAvkcBVt.js +0 -6
  214. package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
  215. package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
  216. package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
  217. package/dist/web/assets/Explore-D9AuyTip.js +0 -2
  218. package/dist/web/assets/Features-CusGMDR9.js +0 -1
  219. package/dist/web/assets/Flags-CycGFuUP.js +0 -2
  220. package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
  221. package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
  222. package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
  223. package/dist/web/assets/KindPage-BielEIej.js +0 -6
  224. package/dist/web/assets/Migration-NwanKpJg.js +0 -2
  225. package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
  226. package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
  227. package/dist/web/assets/Production-D3zsyNIS.js +0 -1
  228. package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
  229. package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
  230. package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
  231. package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
  232. package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
  233. package/dist/web/assets/Response-BP0UwQcW.js +0 -9
  234. package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
  235. package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
  236. package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
  237. package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
  238. package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
  239. package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
  240. package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
  241. package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
  242. package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
  243. package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
  244. package/dist/web/assets/families-DYlN5v0i.js +0 -1
  245. package/dist/web/assets/filters-faaSnoIq.js +0 -1
  246. package/dist/web/assets/fold-CUjwWAK3.js +0 -1
  247. package/dist/web/assets/frame-BLPdAXUq.js +0 -13
  248. package/dist/web/assets/head-CsTxBsO0.js +0 -1
  249. package/dist/web/assets/index-CxiCvGZq.js +0 -78
  250. package/dist/web/assets/index-dOIsrzhD.css +0 -2
  251. package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
  252. package/dist/web/assets/logos-dGuc1jIM.js +0 -1
  253. package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
  254. package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
  255. package/dist/web/assets/parts-CdF1f7yS.js +0 -1
  256. package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
  257. package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
  258. package/dist/web/assets/recordTest-P792aBUt.js +0 -1
@@ -0,0 +1,927 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Test cases · ForgeQE docs</title>
7
+ <meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
8
+ <meta name="theme-color" content="#ffffff">
9
+ <link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
10
+ <link rel="icon" type="image/png" href="../../img/favicon.png">
11
+ <link rel="stylesheet" href="../docs.css">
12
+ <script src="../search.js" defer></script>
13
+ <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
15
+ <link rel="stylesheet" href="../../app-look.css">
16
+ <link rel="stylesheet" href="../app-theme.css">
17
+ </head>
18
+ <body class="docs">
19
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-case" viewBox="0 0 256 256"><g fill="currentColor"><path d="M80 40v176H48a8 8 0 0 1-8-8V48a8 8 0 0 1 8-8Z" opacity=".2"/><path d="M184 112a8 8 0 0 1-8 8h-64a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8m-8 24h-64a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16m48-88v160a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16M48 208h24V48H48Zm160 0V48H88v160z"/></g></symbol></svg>
20
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
21
+ <symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
22
+ <line x1="8" x2="16" y1="21" y2="21" />
23
+ <line x1="12" x2="12" y1="17" y2="21" /></symbol>
24
+ <symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
25
+ <path d="M12 18h.01" /></symbol>
26
+ <symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
27
+ <path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
28
+ <symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
29
+ <path d="M10 21.9V14L2.1 9.1" />
30
+ <path d="m10 14 11.9-6.9" />
31
+ <path d="M14 19.8v-8.1" />
32
+ <path d="M18 17.5V9.4" /></symbol>
33
+ <symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
34
+ <path d="m9 12 2 2 4-4" /></symbol>
35
+ <symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
36
+ <path d="M14 2v4a2 2 0 0 0 2 2h4" />
37
+ <path d="M10 9H8" />
38
+ <path d="M16 13H8" />
39
+ <path d="M16 17H8" /></symbol>
40
+ <symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
41
+ <line x1="12" x2="20" y1="19" y2="19" /></symbol>
42
+ <symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
43
+ <path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
44
+ <path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
45
+ <path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
46
+ <path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
47
+ <path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
48
+ <path d="M19.938 10.5a4 4 0 0 1 .585.396" />
49
+ <path d="M6 18a4 4 0 0 1-1.967-.516" />
50
+ <path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
51
+ <symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
52
+ <circle cx="18" cy="6" r="3" />
53
+ <circle cx="6" cy="18" r="3" />
54
+ <path d="M18 9a9 9 0 0 1-9 9" /></symbol>
55
+ <symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
56
+ <path d="M3 5V19A9 3 0 0 0 21 19V5" />
57
+ <path d="M3 12A9 3 0 0 0 21 12" /></symbol>
58
+ <symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
59
+ <symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
60
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
61
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
62
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
63
+ <circle cx="12" cy="12" r="3" />
64
+ <path d="m16 16-1.9-1.9" /></symbol>
65
+ <symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
66
+ <path d="M14.12 3.88 16 2" />
67
+ <path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
68
+ <path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
69
+ <path d="M12 20v-9" />
70
+ <path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
71
+ <path d="M6 13H2" />
72
+ <path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
73
+ <path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
74
+ <path d="M22 13h-4" />
75
+ <path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
76
+ <symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
77
+ <path d="M3 11v-1a4 4 0 0 1 4-4h14" />
78
+ <path d="m7 22-4-4 4-4" />
79
+ <path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
80
+ <symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
81
+ <polyline points="8 6 2 12 8 18" /></symbol>
82
+ <symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
83
+ <path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
84
+ <symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
85
+ <path d="M9 8V2" />
86
+ <path d="M15 8V2" />
87
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
88
+ <symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
89
+ <path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
90
+ <path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
91
+ <symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
92
+ <symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
93
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
94
+ <symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
95
+ <symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
96
+ <symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
97
+ <symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
98
+ <symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
99
+ </svg>
100
+
101
+ <a class="skip" href="#main">Skip to content</a>
102
+ <header class="nav" id="navigation">
103
+ <div class="nav__bar">
104
+ <a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
105
+ <nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
106
+ <div class="nav__end">
107
+ <button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
108
+ <button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
109
+ </div>
110
+ </div>
111
+ <div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
112
+ </header>
113
+ <div class="container docs-layout">
114
+ <nav class="docs-side" aria-label="Docs">
115
+ <a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
116
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="index.html" aria-current="page"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
117
+ </nav>
118
+ <main id="main" class="docs-main guide chapter-page">
119
+ <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Browser and tests</p>
120
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="index.html" aria-current="page"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-run-test-cases">Run manual test cases in browsers</a></li><li><a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a></li><li><a href="#doc-how_to_use-running">Running</a></li><li><a href="#doc-how_to_use-results-back-in-the-source">Results back in the source</a></li><li><a href="#doc-how_to_use-bugs-for-failures">Bugs for failures</a></li><li><a href="#cap-test-case-quality">Check and improve test cases</a></li><li><a href="#cap-write-test-cases">Write test cases from a story</a></li><li><a href="#cap-domain-compliance">Domain and regulatory test design</a></li><li><a href="#cap-exploratory-testing">Exploratory testing of a story</a></li><li><a href="#cap-business-personas">Business personas for testing</a></li><li><a href="#cap-basal">BASAL: business testing that acts</a></li></ul></nav></details></div>
121
+ <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-case"/></svg>Test cases</h1>
122
+ <p class="guide-lead">Run, check, write, and explore manual test cases</p>
123
+ <article class="spec feat" id="cap-run-test-cases">
124
+ <div class="hd"><span class="mono">Test cases</span><h3>Run manual test cases in browsers</h3></div>
125
+ <p class="ds">Reads test cases from Azure DevOps, Jira, Xray, TestRail, Zephyr Scale, qTest, a file, or pasted text, runs each in a real browser with a verdict per step, writes report.html and junit.xml, posts results back, and files or updates bugs for failures.</p>
126
+ <div class="facts">
127
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Run SHOP-12 and SHOP-14 from Jira, two browsers at once</li><li>Run test plan 12 suite 34 from Azure DevOps and don't post results</li></ul></div>
128
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira or Xray or TestRail or Zephyr Scale or qTest, to read cases from a test management system and post results back (files and pasted text work without one): set up under sources: in forgeqe.yaml, or sign in with /auth</span></li><li><span class="need opt">Optional</span><span>Bug filing: sources.bugs in forgeqe.yaml (Jira or Azure DevOps)</span></li></ul></div>
129
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>find_test_cases</code> <code>run_test_cases</code></p></div>
130
+ </div>
131
+
132
+ </article>
133
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-7-test-cases-and-suites">
134
+ <h4>Test cases and suites</h4>
135
+ <div class="prose"><p>You can run the test cases you already have in two ways:</p>
136
+ <ul>
137
+ <li><strong>Ask in plain words.</strong> In the web app's chat, the shell or <code>forgeqe run</code>, say &quot;run SHOP-12 and SHOP-14&quot;, &quot;run test plan 12 suite 34&quot; or &quot;run the cases in smoke.yaml&quot;, or paste the cases. The agent works out where they come from.</li>
138
+ <li><strong>Run a fixed suite.</strong> <code>forgeqe suite</code>, and the <strong>Run</strong> buttons of <strong>Test management</strong>, take exact references and run the same way every time, with no agent choosing. This is what pipelines call.</li>
139
+ </ul>
140
+ <p>Each case is one goal. ForgeQE tells the agent to do the steps in order and to check every expected result, and the agent's verdict decides whether the case passed. A case with no steps (plain text, a Jira story) is run from its description.</p>
141
+ <p><strong>Running test cases.</strong></p>
142
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
143
+ <ol>
144
+ <li>Open <strong>Test management</strong> (Quality Engineering › Test design).</li>
145
+ <li>On the <strong>Test cases</strong> tab, tick the cases and press <strong>Run</strong> with their number (or <strong>Run</strong> on one row). On the <strong>Suites</strong> tab, press <strong>Run</strong> beside a suite, or <strong>Rerun failed</strong> for its failed cases.</li>
146
+ <li>Pick the <strong>Environment</strong>, then press <strong>Run</strong> with the number of cases.</li>
147
+ </ol>
148
+ <p>Results go to <strong>Runs</strong> and back to each case's system, as your settings say. To run cases Test management does not list, ask in <strong>New chat</strong> (&quot;run SHOP-12 and SHOP-14, two at a time&quot;).</p>
149
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
150
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe suite smoke.yaml jira:SHOP-7 testrail:C12</span><span class="pad"> </span><span class="cm"><span class="h">#</span> fixed references, as pipelines run them
151
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe run &quot;run SHOP-12 and SHOP-14&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> in plain words; the agent finds the source
152
+ </span></span></code></pre></div>
153
+ </div></div></div>
154
+ <section class="doc sub" id="doc-how_to_use-api-steps-in-a-test-case"><h5>API steps in a test case</h5><div class="prose"><p>A test case can mix API and UI steps (&quot;add three products with POST /add_to_cart/{id}, then remove the first one in the cart, then pay&quot;). The browser agent makes each API step from the page, in the browser's own session: the logged-in user's cookies go with the call, and the CSRF token comes from the cookie or the page's form when the site needs one. So what an API step changes (a cart, an order) is what the next UI step sees.</p>
155
+ <ul>
156
+ <li><strong>The verdict</strong> of an API step rests on the status the server answered, not on the agent's account of it.</li>
157
+ <li><strong>The run records it</strong> as an <code>api</code> step in <code>workflow.yaml</code>: method, URL, body, CSRF source, and the status and final URL the server gave.</li>
158
+ <li><strong>ForgeQE's replay repeats it</strong> the same way, and fails that step when the server answers differently (403 where the run got 200). So the replay and the test get past it instead of stalling on an empty cart.</li>
159
+ <li><strong>Quill's handoff</strong> lists each API step with what was sent and answered, and tells Quill to make it through the framework's API request context that shares the browser's cookies (Playwright's <code>page.request</code>), asserting the status.</li>
160
+ <li><strong>Kept for reuse:</strong> the calls are saved as an API scenario, one per test case (<code>out/api/case-ado-2287/</code>, updated by each run). <code>forgeqe api</code> and the <strong>API tests</strong> page run it again without a browser. The run's card says where (<em>API 2 calls saved as a reusable API scenario</em>).</li>
161
+ </ul>
162
+ <p><strong>Addresses as given.</strong> URLs the case gives are opened exactly as given: when the model adds a trailing slash (<code>/login/</code>, a 404 on many sites), ForgeQE opens and records the URL from the case.</p>
163
+ <p><strong>Fixing a case that does not fit.</strong> When a run finds a test case does not fit the application, the agent drafts the steps as they should be, from what the run found, and offers to save them. It shows the current and the new steps and asks before it changes the Azure DevOps Test Case. The reason goes into the work item's history, where the old steps stay.</p>
164
+ </div></section>
165
+ <section class="doc sub" id="doc-how_to_use-when-a-case-fails"><h5>When a case fails</h5><div class="prose"><p>The browser run of a test case is the test, so when a case does not pass, ForgeQE works out what kind of failure it was and acts on it. The browser agent reports a cause for each failed step (it saw the page). Clear evidence in the run, such as an unreachable site or a 503 page, overrides &quot;I could not operate it&quot;.</p>
166
+ <div class="tbl tbl--cols-4"><table>
167
+ <thead>
168
+ <tr><th>Failure</th><th>What it means</th><th>Bug</th><th>Automation script</th></tr>
169
+ </thead>
170
+ <tbody>
171
+ <tr><td data-label="Failure">Functional defect</td><td data-label="What it means">Every step was done and the application behaves wrong (a wrong total, no confirmation)</td><td data-label="Bug">Filed straight away</td><td data-label="Automation script">Written for the correct behaviour (the test case's expected results) and marked as an expected failure naming the bug: Playwright <code>test.fail()</code>, pytest <code>xfail(strict=True)</code>. It passes while the defect is there and fails once it is fixed, telling you to remove the marker</td></tr>
172
+ <tr><td data-label="Failure">Test case needs updating</td><td data-label="What it means">The test case does not fit the application (a field or page it names is not there)</td><td data-label="Bug">No</td><td data-label="Automation script">No: update the test case. The report and the comment on the test case say what the application shows instead</td></tr>
173
+ <tr><td data-label="Failure">Environment problem</td><td data-label="What it means">The application or something it needs was unavailable (an error page, a 5xx, a network failure, sign-in or test data missing, a bot check)</td><td data-label="Bug">No</td><td data-label="Automation script">No. The case runs once more straight away; if it still fails, check the environment first</td></tr>
174
+ <tr><td data-label="Failure">Automation problem</td><td data-label="What it means">A control that is there could not be operated, or the run ran out of steps</td><td data-label="Bug">No</td><td data-label="Automation script">Not yet: page memory keeps the steps that worked and the next run resumes from them</td></tr>
175
+ </tbody>
176
+ </table></div>
177
+ <p>In Azure DevOps a test plan point is recorded as Blocked, not Failed, for the last three kinds, so the plan's failures are product defects. The comment on the test case names the kind of failure.</p>
178
+ <p><strong>Tests that need attention.</strong> A coding job that ends without a passing, approved test does not leave a failing test among your tests.</p>
179
+ <ul>
180
+ <li>The files it created move to a <code>needs-attention/&lt;case id&gt;/</code> folder beside the test, with their relative imports fixed. A README says which test case it is for, why it stopped (the last failure, the reviewer's issues), and how to pick it up; <code>needs-attention/README.md</code> lists them all.</li>
181
+ <li>The job's edits to files that were committed before it are saved as <code>changes.patch</code> in that folder and taken out of the files. Files you had already changed are left as they are.</li>
182
+ <li>The folder is kept out of test runs and builds: Playwright's config gets <code>testIgnore: ['**/needs-attention/**']</code>, TypeScript files a <code>// @ts-nocheck</code> line, a Python folder a <code>conftest.py</code> that collects nothing, and C#, Java or Kotlin files a <code>.txt</code> suffix.</li>
183
+ <li><code>code.needs_attention: false</code> leaves unfinished tests where they are.</li>
184
+ </ul>
185
+ <p><strong>Running a case again.</strong> A case that already has a test (in <code>.forgeqe/test-cases.json</code>) does not get a new one. After its browser run, ForgeQE runs the existing test first.</p>
186
+ <ul>
187
+ <li>When it passes, there is no coding job at all.</li>
188
+ <li>When it fails, the coding agent updates that test (with the failure and the new verified run) instead of writing one from scratch.</li>
189
+ <li>A known-defect test whose defect is fixed (the case now passes) is updated to drop its expected-failure marker. A test that passes although the run found a defect gets the defect's assertion and the marker.</li>
190
+ </ul>
191
+ <p><strong>Mapping tests to test cases.</strong> Each test written for a test case is named <code>&lt;case id&gt; &lt;title&gt;</code> and tagged with the case id and link in the framework's own way (Playwright tags and annotations, a pytest marker, an NUnit property).</p>
192
+ <ul>
193
+ <li><code>.forgeqe/test-cases.json</code> in the repository maps every test case to its test, with its status (<code>automated</code>, <code>known_defect</code> with the bug, or <code>needs_attention</code> with the folder). Commit it with the tests.</li>
194
+ <li>For Azure DevOps test cases, a passing test is also set as the work item's Associated Automation (test name, file, type, and a stable id, with Automation status Automated), so the test plan shows the case as automated.</li>
195
+ </ul>
196
+ </div></section>
197
+ <section class="doc sub" id="doc-how_to_use-in-the-shell"><h5>In the shell</h5><div class="prose"><p>Ask for the cases in plain words, for example &quot;run SHOP-12 and SHOP-14, two at a time&quot; or &quot;show me what's in test plan 12 without running it&quot;. The transcript shows each case's steps as it runs, and a suite card at the end:</p>
198
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">┃ ✗ Suite failed 1/2 passed · 1m 12s · 48.2K tokens
199
+ </span></span><span class="ln"><span class="cmd">┃
200
+ </span></span><span class="ln"><span class="cmd">┃ ✓ SF-1 Search Mumbai 38s
201
+ </span></span><span class="ln"><span class="cmd">┃ ✗ SF-2 Open a hotel 34s
202
+ </span></span><span class="ln"><span class="cmd">┃ No hotel link on the results page
203
+ </span></span><span class="ln"><span class="cmd">┃
204
+ </span></span><span class="ln"><span class="cmd">┃ Report .forgeqe/reports/suites/20260928-215438/report.html
205
+ </span></span><span class="ln"><span class="cmd">┃ JUnit .forgeqe/reports/suites/20260928-215438/junit.xml
206
+ </span></span></code></pre></div>
207
+ </div></section>
208
+ </section>
209
+ <section class="doc" id="doc-how_to_use-where-cases-come-from">
210
+ <h4>Where cases come from</h4>
211
+ <div class="prose"><p>This is done at a terminal only (in the web app or the shell, ask the agent &quot;show me what's in test plan 12 without running it&quot;):</p>
212
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe cases cases.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> list them
213
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe cases cases.yaml --goal</span><span class="pad"> </span><span class="cm"><span class="h">#</span> and the exact goal each one runs
214
+ </span></span></code></pre></div>
215
+ <p><strong>Plain text.</strong> A quoted string is one case: <code>forgeqe suite &quot;Log in as the demo user and open Invoices&quot;</code>.</p>
216
+ <p><strong>Text or Markdown file.</strong> Without case headings, each block between <code>---</code> lines is a case, and its first line is the title:</p>
217
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">Search for hotels in Mumbai and check at least one result is shown
218
+ </span></span><span class="ln"><span class="cmd">---
219
+ </span></span><span class="ln"><span class="cmd">Open the Deals page
220
+ </span></span><span class="ln"><span class="cmd">Check every deal has a price
221
+ </span></span></code></pre></div>
222
+ <p><strong>Markdown with a heading per case.</strong> A heading that starts with a case id starts a case: <code>## 5458-02 Empty state</code>, <code>### TC-3: Sign in</code>, <code>## Test case 4 – Search</code>. A section number (<code>## 1. Introduction</code>) does not.</p>
223
+ <ul>
224
+ <li><strong>Sections outside a case go with every case.</strong> This covers the introduction, <code>## Common steps</code>, <code>## Preconditions</code>, <code>## Test data</code> and business rules. Common steps (or setup, background, sign-in) come before the case's own steps, preconditions join its preconditions, and the rest goes in its description.</li>
225
+ <li><strong>Inside a case,</strong> <code>Preconditions</code>, <code>Steps</code> (a numbered list, or a table with Step, Data and Expected columns) and <code>Expected results</code> are read as sub-headings or as <code>**Label:**</code> lines.</li>
226
+ <li><strong>One case of the file</strong> runs by its id: &quot;run test case 5458-02 from TestCases/DTPE-5458-View-Documents.md&quot;. An id the file does not have is an error that lists the ids it has.</li>
227
+ <li><strong>Preconditions</strong> are taken as met by the test data the case names: the run does not stop to prove them.</li>
228
+ </ul>
229
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>markdown</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd"># DTPE-5458 View Documents
230
+ </span></span><span class="ln ln--gap">
231
+ </span><span class="ln"><span class="cmd">## Common steps
232
+ </span></span><span class="ln"><span class="cmd">1. Open the Corporate Portal.
233
+ </span></span><span class="ln"><span class="cmd">2. Sign in with the account the case names.
234
+ </span></span><span class="ln ln--gap">
235
+ </span><span class="ln"><span class="cmd">## 5458-02 Empty state when the user has no documents
236
+ </span></span><span class="ln"><span class="cmd">### Preconditions
237
+ </span></span><span class="ln"><span class="cmd">- Sign in as withoutdocs_user, who has no documents.
238
+ </span></span><span class="ln"><span class="cmd">### Steps
239
+ </span></span><span class="ln"><span class="cmd">1. Open Documents.
240
+ </span></span><span class="ln"><span class="cmd">### Expected results
241
+ </span></span><span class="ln"><span class="cmd">- &quot;You have no documents&quot; is shown.
242
+ </span></span></code></pre></div>
243
+ <p><strong>YAML or JSON.</strong> A list, or <code>{cases: [...]}</code>:</p>
244
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">- id: SHOP-12
245
+ </span></span><span class="ln"><span class="cmd"> title: Valid login
246
+ </span></span><span class="ln ln--pair"><span class="cmd"> url: https://staging.shop.test/login</span><span class="pad"> </span><span class="cm"><span class="h">#</span> start page (optional)
247
+ </span></span><span class="ln"><span class="cmd"> preconditions: [The demo user exists]
248
+ </span></span><span class="ln"><span class="cmd"> steps:
249
+ </span></span><span class="ln"><span class="cmd"> - action: Sign in as demo@shop.test
250
+ </span></span><span class="ln"><span class="cmd"> data: password from DEMO_PASSWORD
251
+ </span></span><span class="ln"><span class="cmd"> expected: The dashboard greets the user by name
252
+ </span></span><span class="ln ln--pair"><span class="cmd"> - Open the Orders page</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a step can be a plain string
253
+ </span></span><span class="ln ln--pair"><span class="cmd"> group: Accounts</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: area for the Coverage page (or suite, area)
254
+ </span></span><span class="ln ln--pair"><span class="cmd"> requirements: [SHOP-3, SHOP-4]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: stories it covers (or refs)
255
+ </span></span></code></pre></div>
256
+ <p><strong>CSV.</strong> A header row, then a row per case. A row with an empty id (or the id above) adds a step to that case:</p>
257
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>csv</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id,title,url,action,expected
258
+ </span></span><span class="ln"><span class="cmd">SHOP-12,Valid login,https://staging.shop.test/login,Sign in as demo,Dashboard shows
259
+ </span></span><span class="ln"><span class="cmd">,,,Open Orders,Orders list shows
260
+ </span></span></code></pre></div>
261
+ <p>Columns: <code>id</code> (or <code>key</code>), <code>title</code> (or <code>name</code>, <code>summary</code>), <code>url</code>, <code>description</code>, <code>preconditions</code>, <code>tags</code>, <code>group</code> (or <code>suite</code>, <code>area</code>), <code>requirements</code> (or <code>refs</code>), <code>action</code> (or <code>step</code>), <code>data</code>, <code>expected</code> (or <code>expected_result</code>, <code>result</code>). Lists in a cell are separated by <code>;</code>.</p>
262
+ <p><strong>Gherkin.</strong> Each <code>Scenario</code> in a <code>.feature</code> file is a case, and each <code>Examples</code> row of a <code>Scenario Outline</code> is its own case. <code>Background</code> steps come first, and <code>Then</code> steps are the expected results of the step before them.</p>
263
+ <p><strong>Test systems.</strong> Connect each one in <strong>Settings › Integrations</strong>, or in <code>sources:</code> in <code>forgeqe.yaml</code> as shown below. Its token goes in an environment variable (or <strong>Settings › Secrets</strong>), never in the file.</p>
264
+ <p><strong>Azure DevOps.</strong> Set the organization, and put a PAT with Test Management and Work Items (read and write) in <code>ADO_PAT</code>. ForgeQE's agent reaches the whole organization. Leave <code>project</code> unset (or set it to <code>*</code> or <code>all</code>) and ForgeQE's own calls cover every project; set <code>project</code> only to limit those calls to one.</p>
265
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
266
+ </span></span><span class="ln"><span class="cmd"> azure_devops:
267
+ </span></span><span class="ln"><span class="cmd"> org_url: https://dev.azure.com/acme
268
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> project: Shop # optional
269
+ </span></span></code></pre></div>
270
+ <ul>
271
+ <li><code>ado:123,456</code> reads test case work items: their steps and expected results (HTML turned into text), with shared steps inlined, and one case per parameter row with the <code>@param</code> values filled in. Work item ids are unique in the organization, so they need no project.</li>
272
+ <li><code>ado:plan=12</code> reads every suite in a test plan, and <code>ado:plan=12/suite=34</code> one suite, with each test point's configuration. With no project configured, the plan is looked up in every project; <code>ado:project=Shop/plan=12</code> names one.</li>
273
+ </ul>
274
+ <p><strong>Jira.</strong> <code>jira:SHOP-1,SHOP-2</code> or <code>jira:jql=project = SHOP AND labels = e2e</code>. The summary is the title and the description holds the steps. Jira Cloud (<code>*.atlassian.net</code>) needs <code>JIRA_EMAIL</code> and an API token in <code>JIRA_API_TOKEN</code>; Server and Data Center use a personal access token in <code>JIRA_API_TOKEN</code>.</p>
275
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
276
+ </span></span><span class="ln"><span class="cmd"> jira:
277
+ </span></span><span class="ln"><span class="cmd"> url: https://acme.atlassian.net
278
+ </span></span></code></pre></div>
279
+ <p><strong>Xray.</strong> <code>xray:SHOP-1</code>, <code>xray:jql=&lt;query&gt;</code>, or <code>xray:plan=SHOP-100</code> for a test plan's tests, with Xray's own steps, data and expected results. Xray Cloud needs an API key pair in <code>XRAY_CLIENT_ID</code> and <code>XRAY_CLIENT_SECRET</code>. Xray Server and Data Center go through the Jira settings above.</p>
280
+ <p><strong>TestRail.</strong> It needs the user's email in <code>TESTRAIL_EMAIL</code> and an API key in <code>TESTRAIL_API_KEY</code>.</p>
281
+ <ul>
282
+ <li><code>testrail:C12,C13</code> reads cases by id, and <code>testrail:run=45</code> the tests of a run (results go back to that run).</li>
283
+ <li><code>testrail:plan=7</code> reads every run in a plan, and <code>testrail:suite=3</code> a suite (this needs <code>project_id</code>).</li>
284
+ <li>Separated steps (<code>custom_steps_separated</code>) become steps with expected results; the text template's steps become one step.</li>
285
+ </ul>
286
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
287
+ </span></span><span class="ln"><span class="cmd"> testrail:
288
+ </span></span><span class="ln"><span class="cmd"> url: https://acme.testrail.io
289
+ </span></span><span class="ln ln--pair"><span class="cmd"> project_id: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> needed for suites, and to create a run for cases read by id
290
+ </span></span></code></pre></div>
291
+ <p><strong>Zephyr Scale (Cloud).</strong> <code>zephyr:SHOP-T1,SHOP-T2</code>, <code>zephyr:cycle=SHOP-R5</code> (results go back to that cycle), or <code>zephyr:folder=12</code> (this needs <code>project_key</code>). Call-to-test steps are inlined. It needs an API access token in <code>ZEPHYR_API_TOKEN</code>; setting the variable is enough to turn it on.</p>
292
+ <p><strong>qTest.</strong> <code>qtest:1234</code> reads test cases by the id in their URL. <code>qtest:cycle=88</code> and <code>qtest:suite=9</code> read the test runs under a cycle or suite, and results go back to those runs. It needs <code>url</code>, <code>project_id</code>, and an API token in <code>QTEST_TOKEN</code>. Result statuses are the automation status names your qTest uses; the defaults are PASS, FAIL and BLOCKED:</p>
293
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
294
+ </span></span><span class="ln"><span class="cmd"> qtest:
295
+ </span></span><span class="ln"><span class="cmd"> url: https://acme.qtestnet.com
296
+ </span></span><span class="ln"><span class="cmd"> project_id: 12345
297
+ </span></span><span class="ln"><span class="cmd"> statuses: { passed: PASS, failed: FAIL, error: BLOCKED }
298
+ </span></span></code></pre></div>
299
+ <p><strong>ServiceNow (read only).</strong> <code>servicenow:TST0001234</code> (record numbers or sys_ids) or <code>servicenow:query=active=true^short_descriptionLIKElogin</code> (the first 100) reads Test Management tests and their steps through the Table API. Results are not posted back.</p>
300
+ <ul>
301
+ <li>With <code>user_env</code> set, ForgeQE signs in as that user, with <code>token_env</code> as the password.</li>
302
+ <li>With <code>user_env: &quot;&quot;</code>, the token variable holds an OAuth access token.</li>
303
+ <li>Table names differ between releases, so check them in your instance:</li>
304
+ </ul>
305
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
306
+ </span></span><span class="ln"><span class="cmd"> servicenow:
307
+ </span></span><span class="ln"><span class="cmd"> url: https://acme.service-now.com
308
+ </span></span><span class="ln"><span class="cmd"> user_env: SERVICENOW_USER
309
+ </span></span><span class="ln"><span class="cmd"> token_env: SERVICENOW_PASSWORD
310
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> test_table: sn_test_management_test
311
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> step_table: sn_test_management_step
312
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> step_parent: test # the step's field naming its test
313
+ </span></span></code></pre></div>
314
+ <p><strong>Mixing sources.</strong> Several sources can go in one suite: <code>forgeqe suite smoke.yaml jira:SHOP-7 testrail:C12</code>.</p>
315
+ <p><strong>Which system an id is in.</strong> A prefix (<code>jira:TA-2344</code>, <code>ado:1234</code>) or a link to a configured site always settles it. A bare id is matched by its shape against the systems you set up:</p>
316
+ <div class="tbl tbl--cols-2"><table>
317
+ <thead>
318
+ <tr><th>Shape</th><th>System</th></tr>
319
+ </thead>
320
+ <tbody>
321
+ <tr><td data-label="Shape"><code>C12</code></td><td data-label="System">TestRail</td></tr>
322
+ <tr><td data-label="Shape"><code>SHOP-T3</code></td><td data-label="System">Zephyr Scale</td></tr>
323
+ <tr><td data-label="Shape"><code>SHOP-12</code></td><td data-label="System">Jira</td></tr>
324
+ <tr><td data-label="Shape"><code>TST0001234</code></td><td data-label="System">ServiceNow</td></tr>
325
+ <tr><td data-label="Shape">A plain number</td><td data-label="System">Azure DevOps, GitHub or qTest</td></tr>
326
+ </tbody>
327
+ </table></div>
328
+ <p>If only one configured system fits, that one is used. If several fit, the command stops and the agent asks you which; it never guesses. Map ids for good with <code>id_routes</code> (<strong>Settings › Integrations</strong>, &quot;Which system an id is in&quot;): a prefix and <code>*</code> (never a regular expression), or <code>*</code> alone for plain numbers.</p>
329
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
330
+ </span></span><span class="ln"><span class="cmd"> id_routes:
331
+ </span></span><span class="ln"><span class="cmd"> &quot;TA-*&quot;: jira
332
+ </span></span><span class="ln"><span class="cmd"> &quot;TST*&quot;: servicenow
333
+ </span></span><span class="ln"><span class="cmd"> &quot;*&quot;: azure_devops
334
+ </span></span></code></pre></div>
335
+ <p><strong>From requirements.</strong> Ask the agent to test a Confluence page, a story or a spec file (&quot;write and run test cases for the refund rules page in Confluence&quot;). It reads the requirements, writes one case per rule or acceptance criterion with the main negative paths, shows them, and runs them as text cases. It saves them into a test system only when you ask. Confluence needs <code>sources.confluence</code>:</p>
336
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
337
+ </span></span><span class="ln ln--pair"><span class="cmd"> confluence: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the wiki on the Jira Cloud site above, same account
338
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> or
339
+ </span></span><span class="ln"><span class="cmd"> confluence:
340
+ </span></span><span class="ln ln--pair"><span class="cmd"> url: https://confluence.acme.com</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Cloud: https://acme.atlassian.net/wiki
341
+ </span></span><span class="ln ln--pair"><span class="cmd"> token_env: CONFLUENCE_TOKEN</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Server/DC personal access token; Cloud also email_env
342
+ </span></span><span class="ln ln--pair"><span class="cmd"> space: QA</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: keep searches in one space
343
+ </span></span></code></pre></div>
344
+ </div>
345
+ </section>
346
+ <section class="doc" id="doc-how_to_use-running">
347
+ <h4>Running</h4>
348
+ <div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe suite cases.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one case at a time
349
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe suite ado:plan=12 --parallel 3</span><span class="pad"> </span><span class="cm"><span class="h">#</span> three browsers at once
350
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe suite cases.yaml --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> passed cases get a test in ../app
351
+ </span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke
352
+ </span></span></code></pre></div>
353
+ <p>The same settings for every suite are in <code>forgeqe.yaml</code>, and in the web app under <strong>Settings › Parallel execution</strong> (browsers at once) and <strong>Settings › Reports and memory</strong> (the report folder, writing tests for passed cases, starting signed in):</p>
354
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">suite:
355
+ </span></span><span class="ln ln--pair"><span class="cmd"> parallel: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> browsers at once
356
+ </span></span><span class="ln ln--pair"><span class="cmd"> code: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> with a repo set, passed cases go to Quill
357
+ </span></span><span class="ln ln--pair"><span class="cmd"> restore_sessions: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> true: each case starts signed in from the saved logins' sessions
358
+ </span></span><span class="ln"><span class="cmd"> out_dir: ./.forgeqe/reports/suites
359
+ </span></span></code></pre></div>
360
+ <p><strong>How a suite runs.</strong></p>
361
+ <ul>
362
+ <li><strong>Browsers:</strong> browser runs happen <code>parallel</code> at a time and share page memory safely.</li>
363
+ <li><strong>Tests:</strong> each passed case goes to the coding agent as soon as its own browser run ends. Its test is written and run before that browser slot starts the next case: explore, hand off, code, next case.</li>
364
+ <li><strong>One coding job at a time,</strong> so two never edit the repository at once. A case with no test says why in the report (it failed, or no model is set up).</li>
365
+ <li><strong>Output:</strong> with <code>--parallel</code> above 1, each line of output starts with the case id.</li>
366
+ <li><strong>Stopping:</strong> Ctrl-C stops the suite. Cases already running finish closing their browsers, and cases that never started are reported as not run.</li>
367
+ </ul>
368
+ <p>At the end, ForgeQE prints the result of every case and writes these files to <code>.forgeqe/reports/suites/&lt;time&gt;/</code>:</p>
369
+ <ul>
370
+ <li><code>report.html</code>: one file with every screenshot embedded. Open it from disk; no server is needed. Its menu is described below.</li>
371
+ <li><code>junit.xml</code>: for CI test reporting. A failed case is a <code>&lt;failure&gt;</code>, a crash an <code>&lt;error&gt;</code>, a case not run <code>&lt;skipped&gt;</code>; step verdicts are in <code>system-out</code>.</li>
372
+ <li><code>suite.json</code>: everything in the report, as data.</li>
373
+ <li><code>01-SHOP-12/</code>, <code>02-…</code>: each case's normal run folder (with its own <code>report.html</code>, <code>steps.json</code>, and <code>steps/NN.jpg</code> screenshots), plus <code>testcase.json</code>.</li>
374
+ </ul>
375
+ <p><strong>The report's menu, This run.</strong></p>
376
+ <ul>
377
+ <li><strong>Overview</strong>: the verdict, totals, step checks, browser steps, tokens, cost, what page memory saved, browser errors, accessibility issues, tests written and bugs filed. Also: what changed since the last run, results over the earlier runs in <code>.forgeqe/reports/suites/</code>, the cases that need attention and why, results by source and by tag, the slowest cases, and what was posted where.</li>
378
+ <li><strong>Test results</strong>: search and filter the cases. For each case:
379
+ <ul>
380
+ <li>its step table (action, expected, the agent's verdict, what it actually saw), and why it failed (the failed step, the agent's last evaluation, failed actions, the screenshot);</li>
381
+ <li><strong>last good vs now</strong>: the same page from the case's last passing run beside this run's, and where their browser steps start to differ;</li>
382
+ <li>the browser errors per step (console errors, uncaught exceptions, failed and slow requests);</li>
383
+ <li>page memory: steps replayed, tokens and time saved against the last run where the agent took every step, locators that healed, flows repaired;</li>
384
+ <li>the browser agent's steps (goal, actions, errors, time and model time, a screenshot each with the element it acted on outlined), and a timing waterfall (waiting for the model, acting in the browser, replayed from memory);</li>
385
+ <li>the accessibility issues of each page, a screenshot gallery, and its trace, workflow and handoff to read in place. Run history links to earlier reports.</li>
386
+ </ul>
387
+ </li>
388
+ <li><strong>Failures</strong>: each failed case with what the agent reported, the evidence (browser errors included), its last passing screenshot, its bug, and text to copy into a bug report.</li>
389
+ <li><strong>Defects</strong>: failures grouped by what caused them, so one fix clears every case it breaks. The defects that break the most cases come first, each with its root-cause hypothesis when there is one. It downloads as Markdown.</li>
390
+ <li><strong>Since last run</strong>: new failures, fixes, cases still failing, cases at least 5 s and 25% slower or faster, and new or dropped cases, against the previous run in the folder.</li>
391
+ </ul>
392
+ <p><strong>The report's menu, Analysis.</strong></p>
393
+ <ul>
394
+ <li><strong>Trends</strong> and <strong>Flaky tests</strong>: pass rate, outcomes, duration, tokens and cost per run; cases whose result keeps changing, and cases that started failing. Both need earlier suite runs in the same folder.</li>
395
+ <li><strong>Time and cost</strong>: where the time went (model, browser, page memory), a timeline of the cases on each parallel worker, page memory savings per case, and tokens and cost per case.</li>
396
+ <li><strong>Coverage</strong>: results by requirement (a requirement fails when any case covering it fails), by group, by tag and by source. Groups and requirements come from the source: the area path in Azure DevOps, the section and refs in TestRail, the folder in Zephyr Scale, components (or the parent issue) and &quot;tests&quot; links in Jira, and <code>group</code> / <code>requirements</code> in case files.</li>
397
+ <li><strong>Accessibility</strong>: the WCAG rules of the standard you chose, checked on every page the agent visited. It lists the rules that passed, and each rule that failed with its success criterion, level, impact, the elements and a link to how to fix it, and any accessibility budget exceeded. Automated checks are a pre-check, not conformance.</li>
398
+ <li><strong>Visual</strong>: every page against its approved baseline: baseline, this run, and the difference side by side, changed pages first, with the share of pixels changed and the visual budget.</li>
399
+ <li><strong>Performance</strong>: each page's Core Web Vitals (LCP, CLS, INP, FCP, TTFB) and load time, coloured good / needs improvement / poor by Google's thresholds, with the budgets each page went over.</li>
400
+ </ul>
401
+ <p><strong>The report's menu, Tokenomics</strong> (reports with token usage).</p>
402
+ <ul>
403
+ <li><strong>Usage</strong>: a usage summary, tokens by case, tokens over the run, and the calls that used the most tokens.</li>
404
+ <li><strong>Breakdown</strong>: what the tokens paid for, by agent, job, task, purpose, model, user and machine.</li>
405
+ <li><strong>Model calls</strong>: every request the agents sent to a model.</li>
406
+ <li><strong>Models</strong>: the models behind the calls, and what the listed alternatives would cost.</li>
407
+ <li><strong>Trends and forecast</strong>: model spend on this machine so far, and the next days at the recent pace, against the budget.</li>
408
+ <li><strong>Calculator</strong>: estimate what a suite will cost before you run it, starting from this run's real numbers.</li>
409
+ <li><strong>Optimise</strong>: where the report could have spent less on models, by how much, and what to change.</li>
410
+ </ul>
411
+ <p><strong>Environment</strong> opens from the model card at the foot of the menu: model, browser, the model's price, start URL, ForgeQE version, machine, CI build, branch, commit, and the sites visited.</p>
412
+ <p>The report exports Markdown and JSON and prints cleanly. Up to 40 MB of screenshots are embedded, failed cases first; beyond that they load from the run folders next to the report. Two report settings (<strong>Settings › Reports and memory</strong> and <strong>Settings › Quality checks</strong>):</p>
413
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">report:
414
+ </span></span><span class="ln ln--pair"><span class="cmd"> screenshots: all</span><span class="pad"> </span><span class="cm"><span class="h">#</span> all | failures (only failed runs keep step screenshots) | off
415
+ </span></span><span class="ln ln--pair"><span class="cmd"> accessibility: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> check each page the agent visits; false skips the checks
416
+ </span></span></code></pre></div>
417
+ <p><strong>Bugs and exit codes.</strong> Bugs filed for failed cases list the run's console errors and failed requests under &quot;Browser errors&quot;. <code>forgeqe suite</code> exits <code>0</code> when every case passed (and every test written for them passes), <code>1</code> when anything failed, and <code>2</code> when it was stopped.</p>
418
+ </div>
419
+ </section>
420
+ <section class="doc" id="doc-how_to_use-results-back-in-the-source">
421
+ <h4>Results back in the source</h4>
422
+ <div class="prose"><p><strong>Saving the cases the agent writes.</strong> Test cases the agent writes from an Azure DevOps or Jira story are saved there, linked to the story, and the reply lists them as links. Set <code>sources.save_cases: false</code> to keep them in the reply only. Replies render as Markdown (headings, lists, tables, links), in the shell as in the web app.</p>
423
+ <p><strong>Reusing the cases a feature already has.</strong> A story often changes a feature that already has test cases, linked to an older story. Map where those cases live, and saving reuses or extends them instead of writing new ones. Settings › Integrations has the same field for each system:</p>
424
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
425
+ </span></span><span class="ln"><span class="cmd"> azure_devops:
426
+ </span></span><span class="ln ln--pair"><span class="cmd"> test_cases:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the story's area path (or a parent of it) = where its cases are
427
+ </span></span><span class="ln ln--pair"><span class="cmd"> Shop\Checkout: plan=12/suite=34</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a suite; plan=12 alone is every suite of the plan (the first 25)
428
+ </span></span><span class="ln ln--pair"><span class="cmd"> &quot;*&quot;: area=Shop\Regression</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Test Cases under an area path; * is every other story
429
+ </span></span><span class="ln"><span class="cmd"> jira:
430
+ </span></span><span class="ln ln--pair"><span class="cmd"> test_cases:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the story's project key = where its cases are
431
+ </span></span><span class="ln ln--pair"><span class="cmd"> SHOP: label=regression; component=Checkout</span><span class="pad"> </span><span class="cm"><span class="h">#</span> also project= and type= (default Test)
432
+ </span></span></code></pre></div>
433
+ <p>ForgeQE reads that one place itself: at most 300 cases by title, and the steps of only the few closest to each new case. The agent never searches for cases and spends nothing on it. Each case the agent wrote is then marked:</p>
434
+ <div class="tbl tbl--cols-3"><table>
435
+ <thead>
436
+ <tr><th>Mark</th><th>When</th><th>What is offered</th></tr>
437
+ </thead>
438
+ <tbody>
439
+ <tr><td data-label="Mark"><strong>reuse</strong></td><td data-label="When">A case there has the same steps</td><td data-label="What is offered">Linking that case to the story. The question shows each case with the other stories it tests, and asks before linking</td></tr>
440
+ <tr><td data-label="Mark"><strong>extends</strong></td><td data-label="When">A case there has all of this case's steps in order, and this one adds some</td><td data-label="What is offered">Adding only the new steps. The question shows just those steps and where they go, links the case to the story in the same answer, and names the other stories the case tests, since the change applies to them too. When the old steps must stay for those, the agent saves your case as a new one instead</td></tr>
441
+ <tr><td data-label="Mark"><strong>differs</strong> or <strong>similar</strong></td><td data-label="When">As for linked cases</td><td data-label="What is offered"></td></tr>
442
+ <tr><td data-label="Mark"><strong>created</strong></td><td data-label="When">Anything else</td><td data-label="What is offered">A new case</td></tr>
443
+ </tbody>
444
+ </table></div>
445
+ <p>Nothing is written to an existing case until you agree. A case is linked only when it is a test case of the story's project (in Jira, or of the project its <code>test_cases</code> names), at most 20 at once. With no <code>test_cases</code>, only the cases linked to the story are compared.</p>
446
+ <p><strong>Reviewing a story's cases and changes.</strong> A story's linked cases (those older than the story's last change are marked), its acceptance criteria with the cases traced to each, what ForgeQE changed, and the changes the agent proposed.</p>
447
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
448
+ <ol>
449
+ <li>Open <strong>Test cases</strong> (Quality Engineering › Test design).</li>
450
+ <li>Pick the system (<strong>Azure DevOps</strong>, <strong>Jira</strong>, <strong>TestRail</strong>, <strong>Zephyr Scale</strong> or <strong>qTest</strong>), type the <strong>Story</strong>, and press <strong>Open</strong>.</li>
451
+ <li>Under <strong>Proposed changes</strong>, tick the changes to make and press <strong>Review</strong>.</li>
452
+ <li>Press <strong>Apply</strong>. The server checks every change again, and nothing is written before <strong>Apply</strong>.</li>
453
+ </ol>
454
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
455
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe run &quot;show the test cases of story 1234 and what changed since the story did&quot;
456
+ </span></span></code></pre></div>
457
+ </div></div><p><strong>More of managing test cases.</strong> Each is set in <code>forgeqe.yaml</code> (and Settings › Integrations), or asked of the agent:</p>
458
+ <ul>
459
+ <li><strong>Where new cases go.</strong> When <code>test_cases</code> maps a story to a suite (<code>plan=12/suite=34</code>), new Azure DevOps cases are added to that suite and run from it, so their results are recorded as a test run in the plan rather than as comments. In other systems:
460
+ <ul>
461
+ <li>Xray tests are written with their steps in Xray (<code>sources.xray.save_steps: true</code>, Cloud and Server/DC);</li>
462
+ <li>TestRail cases go in <code>sources.testrail.section_id</code>, with the story in refs;</li>
463
+ <li>Zephyr Scale cases go in <code>sources.zephyr.folder_id</code>, linked to the Jira story;</li>
464
+ <li>qTest cases go in <code>module_id</code>, linked to the story's requirement.</li>
465
+ </ul>
466
+ </li>
467
+ <li><strong>Fields on new cases.</strong> <code>new_cases</code> gives every new case a priority, tags or labels, and in Azure DevOps a state: <code>state: Design</code> makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags.</li>
468
+ <li><strong>Shared steps and data.</strong> <code>sources.azure_devops.shared_steps</code> lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters (<code>@user</code>) and a data table.</li>
469
+ <li><strong>Cases left behind by a story change.</strong> Ask the agent for a story's test cases: it reads the story's history and marks the linked cases last changed before the story's title, description or acceptance criteria were (stale), with what changed. It offers to update each one the change affects, or to retire one that tests behaviour the story no longer has.</li>
470
+ <li><strong>Retiring a case.</strong> The agent asks first, then closes the case or labels it, with the reason. Nothing is deleted, and retired cases are not offered for reuse.
471
+ <ul>
472
+ <li>Azure DevOps: <code>retire_state</code>. By default it is a state the project itself calls done, so a workflow that ends in <em>Verified</em> or <em>Shipped</em> needs no setting.</li>
473
+ <li>Jira: <code>retire_label</code>, by default <code>obsolete</code>.</li>
474
+ <li>TestRail: moved to <code>retired_section_id</code>. Zephyr Scale: status Deprecated.</li>
475
+ </ul>
476
+ </li>
477
+ <li><strong>Duplicates before saving.</strong> Ask the agent to check cases against a story: it compares them with the story's linked cases and its scope. The same steps is a duplicate naming the existing case; more steps or a close title is an overlap.</li>
478
+ <li><strong>Cases with no story.</strong> Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, and compared with that area's or project's scope.</li>
479
+ <li><strong>The feature's other stories.</strong> <code>sibling_cases: true</code> also compares with the cases of the other stories under the story's feature or epic (the first 30 stories). In Jira Cloud that is the parent field used for epics; on Jira Server, Epic Link.</li>
480
+ <li><strong>Automation status.</strong> A test that passes for a Jira or Xray case labels it <code>automated</code> and records the test on the issue, as Azure DevOps cases get their Associated Automation; a comment is added only when the test is new. TestRail uses <code>automation_field</code>, Zephyr Scale the <code>automated</code> label.</li>
481
+ <li><strong>Release readiness in Jira.</strong> Asked for a Jira scope (<code>system: jira</code>), release readiness reads a sprint, a fix version, an epic or story keys: each story's tests, which are automated, their last results (ForgeQE's runs, Xray test runs and Zephyr Scale executions, the newest of them), open bugs by priority, and the same verdict.</li>
482
+ <li><strong>Matching by steps.</strong> Saving keeps an index of the scope's cases in <code>.forgeqe/cases-index/</code> (git-ignored): every case's steps read once, then only those changed since, 40 per save. A case with the same steps is found whatever its title, and a slightly reworded step still counts for extends.</li>
483
+ <li><strong>Several changes at once.</strong> The agent can link, extend, update and retire several cases with one question, every change checked and read first.</li>
484
+ <li><strong>What ForgeQE changed.</strong> Every case it creates, links, updates or retires is logged in <code>.forgeqe/history/case-changes.jsonl</code>. A story's case list and the readiness report list the changes for their stories.</li>
485
+ <li><strong>Acceptance criteria traced to cases.</strong> Saved cases carry the criteria they cover, and ForgeQE records which linked cases cover which. A story's case list shows each criterion with its cases, and readiness names the criteria no traced case covers.</li>
486
+ <li><strong>Healing and test cases.</strong> When healing fixes a test because the application changed, it names the test cases that test automates (heal.md, Test cases to review), and the agent offers to update their steps.</li>
487
+ <li><strong>From Requirements Agent.</strong> Requirements Agent writes <code>requirements.json</code> next to its report. Give the agent that file, and it writes a case per requirement, traced by its id (FR-001).</li>
488
+ <li><strong>Settings checks.</strong> A <code>test_cases</code>, <code>new_cases</code> or retire setting ForgeQE would refuse when saving cases is refused when Settings saves it, with the setting named. In a saved Azure DevOps or Jira connection, <strong>Try</strong> beside each <code>test_cases</code> line says how many cases it finds, with a few of their titles.</li>
489
+ </ul>
490
+ <p><strong>Posting results.</strong> With <code>sources.write_back: true</code> (the default; <strong>Settings › Integrations</strong>, &quot;Post results back&quot;), results go back after the suite:</p>
491
+ <div class="tbl tbl--cols-2"><table>
492
+ <thead>
493
+ <tr><th>System</th><th>What is posted</th></tr>
494
+ </thead>
495
+ <tbody>
496
+ <tr><td data-label="System">Azure DevOps plan</td><td data-label="What is posted">A completed test run for the plan, with each test point's outcome and the agent's summary as the comment. Cases read by id get a comment on the work item instead</td></tr>
497
+ <tr><td data-label="System">Jira</td><td data-label="What is posted">A comment on each issue with the result, the summary, where the run ended, and the test file if one was written</td></tr>
498
+ <tr><td data-label="System">Xray</td><td data-label="What is posted">One Test Execution per test plan (linked to the plan), with each test's status, step statuses and actual results, the summary, and the failure screenshot as evidence</td></tr>
499
+ <tr><td data-label="System">TestRail</td><td data-label="What is posted">Results in the run the cases came from, or a new run per suite for cases read by id, with step results and the failure screenshot attached</td></tr>
500
+ <tr><td data-label="System">Zephyr Scale</td><td data-label="What is posted">A test execution per case with step results, in the cycle the cases came from or a new cycle per project</td></tr>
501
+ <tr><td data-label="System">qTest</td><td data-label="What is posted">An automation test log per case with step logs, on the test run it came from, or on new test runs in a new test cycle</td></tr>
502
+ </tbody>
503
+ </table></div>
504
+ <p>Every comment and result includes the step verdicts. If a system rejects the step details (a TestRail project without separated steps, say), ForgeQE posts the result again without them rather than losing it. Stopped cases are never posted. <code>--no-write-back</code> skips posting for one suite.</p>
505
+ </div>
506
+ </section>
507
+ <section class="doc" id="doc-how_to_use-bugs-for-failures">
508
+ <h4>Bugs for failures</h4>
509
+ <div class="prose"><p>Set up the bug tracker in <strong>Settings › Integrations</strong> (the <strong>Bugs</strong> group), or in <code>forgeqe.yaml</code>:</p>
510
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
511
+ </span></span><span class="ln"><span class="cmd"> bugs:
512
+ </span></span><span class="ln ln--pair"><span class="cmd"> system: jira</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or azure_devops
513
+ </span></span><span class="ln ln--pair"><span class="cmd"> project: SHOP</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Jira project key; Azure DevOps uses azure_devops.project
514
+ </span></span><span class="ln ln--pair"><span class="cmd"> type: Bug</span><span class="pad"> </span><span class="cm"><span class="h">#</span> issue type or work item type
515
+ </span></span><span class="ln ln--pair"><span class="cmd"> labels: [forgeqe]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Jira labels or Azure DevOps tags
516
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> area_path: Shop\Web # Azure DevOps
517
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> on_error: true # also for cases that could not run
518
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> group_by: defect # defect (default): cases failing the same way share a bug; case: a bug per case
519
+ </span></span></code></pre></div>
520
+ <p><strong>What a bug holds.</strong> When results are posted, each case that failed with a functional defect (see <a href="index.html#doc-how_to_use-when-a-case-fails">When a case fails</a>) gets a bug:</p>
521
+ <ul>
522
+ <li><strong>Title:</strong> <code>[ForgeQE] &lt;case id&gt;: &lt;title&gt;</code>.</li>
523
+ <li><strong>Description:</strong> the result, the steps with verdicts, the preconditions, where the run ended, the build link and the run folder. The last screenshot is attached.</li>
524
+ <li><strong>Links:</strong> in Jira the bug &quot;relates to&quot; the Jira or Xray test; in Azure DevOps it is &quot;tested by&quot; the test case work item.</li>
525
+ </ul>
526
+ <p><strong>Following a bug over runs.</strong> Each bug carries a label or tag that fingerprints the case (<code>forgeqe-</code> and ten hex digits).</p>
527
+ <ul>
528
+ <li>The next failure comments &quot;Still failing&quot; on the open bug instead of filing a new one, and a pass adds a note that it passes again.</li>
529
+ <li>A closed bug is not reopened. A new failure after that files a new bug, titled <code>[ForgeQE] Regression: …</code>, that says when the old one was closed and links to it (Jira &quot;relates to&quot;, Azure DevOps &quot;Related&quot;, a mention on GitHub). A GitHub issue closed as not planned does not count.</li>
530
+ </ul>
531
+ <p><strong>One bug per defect.</strong> Cases that fail the same way share one bug (<code>group_by: defect</code>, the default).</p>
532
+ <ul>
533
+ <li><strong>The signature.</strong> ForgeQE gives each failing case a signature from the strongest evidence its run recorded: a failed request (a 5xx before a 4xx) by its route and status, then an uncaught page error, then a console error. Ids, numbers and times are taken out, so <code>POST /api/cart/123 → 500</code> and <code>/api/cart/456 → 500</code> match.</li>
534
+ <li><strong>Noise.</strong> Errors that the suite's passing runs show too (an analytics call, a missing favicon) do not count.</li>
535
+ <li><strong>The bug.</strong> The first case of a defect files the bug, titled after the defect (<code>[ForgeQE] shop.example.com/api/cart/:id returns 500</code>) and labelled with the defect's fingerprint (<code>forgeqe-d-</code> and ten hex digits) as well as the case's. Every other case failing the same way is added as a comment and gets its own case label on that bug. The next run finds the open bug by either label.</li>
536
+ <li><strong>No browser evidence.</strong> Such a failure is matched by its page and what the agent saw, within one run only, and its bug is titled after the case.</li>
537
+ <li><code>group_by: case</code> files one bug per failing case.</li>
538
+ </ul>
539
+ <p>The report's <strong>Defects</strong> page, the terminal summary and the CI job summary list every defect with the cases it breaks.</p>
540
+ <p><strong>Defect history.</strong> Each suite adds its defects to <code>defect-history.json</code> next to the suite folders. Keep it between CI runs as a cache, like the suite folders, to track a pipeline's defects.</p>
541
+ <ul>
542
+ <li>A defect is <strong>new</strong> the first time, then <strong>known</strong> (&quot;seen in 3 earlier runs since 2 Oct&quot;).</li>
543
+ <li>It <strong>went away</strong> when a run did not see it while a case it broke passed. Seen again after that, or matching a closed bug in the tracker, it is a <strong>regression</strong>.</li>
544
+ <li>A defect whose cases keep changing between passing and failing across the last 20 suites (pass, fail, pass) is <strong>intermittent</strong>. It still gets a bug, which says so.</li>
545
+ <li>When a new bug is filed, ForgeQE also searches the tracker once for open bugs people filed about the same route or error (<code>/api/cart</code>, <code>price is undefined</code>) and lists them on the bug as possibly related. It never merges them.</li>
546
+ <li>Only defects found by browser evidence are kept in the history: a defect matched by the agent's words gets new words every run.</li>
547
+ </ul>
548
+ <p>The Defects page shows the history and filters new defects and regressions; the summaries say it next to each defect.</p>
549
+ <p><strong>Reproducing.</strong> Each defect gets a repro file, <code>defects/&lt;defect id&gt;.md</code> in the suite folder, and the same steps go in its bug: how reproducible it is, the case's steps with the agent's verdicts, what the browser did, where it ended, the environment (browser, device, build, commit), the failing request as a <code>curl</code> command with its response (credentials are taken out of the recorded requests), and the run's files (screenshot, replay flow, every step, every API call).</p>
550
+ <p>The first case of a new product defect runs once more into its <code>reproduce/</code> folder. Failing the same way makes it <strong>always</strong> reproducible; not failing again makes it <strong>intermittent</strong>. A defect seen in earlier runs is not run again.</p>
551
+ <p><strong>Root cause.</strong> The root cause is always a hypothesis, from three sources:</p>
552
+ <ul>
553
+ <li><strong>The evidence, at no cost:</strong> the layer (the server, the front end, access, a route that is not there, the environment) and the component (the route or the script).</li>
554
+ <li><strong>Suspect commits,</strong> with <code>defects.product_repo</code> set: commits made since the defect's cases last passed whose changes mention its route or error (<code>git log -G</code>), or whose files are named after it.</li>
555
+ <li><strong>An analysis,</strong> for new defects and regressions: a read-only agent (prompt <code>defect-rca</code>) reads the evidence, the suspect commits and the product's code. It writes a hypothesis with its confidence (high only when it read the code that fails and the change that broke it), what it rests on, and checks to confirm it. The hypothesis is added to the bug as a comment and shown on the Defects page. It runs for at most <code>max_analyses</code> defects per suite. Each is one agent session (about 90K–120K tokens with gpt-5.4 in our runs), shown on its own line under Usage.</li>
556
+ </ul>
557
+ <p>These settings are in <strong>Settings › Reports and memory</strong> (Defect analysis):</p>
558
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">defects:
559
+ </span></span><span class="ln ln--pair"><span class="cmd"> product_repo: ../shop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the application's repository: suspect commits, and the code the analysis reads
560
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> reproduce: true # run the first case of each new defect once more
561
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> analyze: true # a model writes a root-cause hypothesis for new defects and regressions
562
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> max_analyses: 3 # most analyses per suite
563
+ </span></span></code></pre></div>
564
+ </div>
565
+ </section>
566
+ </div>
567
+ <article class="spec feat" id="cap-test-case-quality">
568
+ <div class="hd"><span class="mono">Test cases</span><h3>Check and improve test cases</h3></div>
569
+ <p class="ds">Checks test cases before they run (vague or missing expected results, missing test data, placeholders, duplicates) against the story, feature, and epic they test, then rewrites Azure DevOps or Jira cases in place once the user agrees.</p>
570
+ <div class="facts">
571
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Are the cases in test plan 12 good enough to run?</li><li>Fix the expected results of case 4512</li></ul></div>
572
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to rewrite cases in place: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
573
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>check_test_cases</code> <code>update_test_case</code> <code>retire_test_case</code></p></div>
574
+ </div>
575
+
576
+ </article>
577
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-checking-test-cases-before-they-run">
578
+ <h4>Checking test cases before they run</h4>
579
+ <div class="prose"><p>ForgeQE checks cases before it runs them. Ask it to check cases without running anything (&quot;are these test cases ready?&quot;, &quot;check test plan 12 against its stories&quot;), in the web app's chat or the shell. A check uses everything ForgeQE can know about a case:</p>
580
+ <div class="tbl tbl--cols-3"><table>
581
+ <thead>
582
+ <tr><th>Source</th><th>What it finds</th><th>Cost</th></tr>
583
+ </thead>
584
+ <tbody>
585
+ <tr><td data-label="Source">Rules on the case's text</td><td data-label="What it finds">No steps or expected results; vague expected results (&quot;works correctly&quot;, &quot;submitted successfully&quot;); steps that need values the case does not give (&quot;enter valid user details&quot;); placeholders (<code>TBD</code>, <code>&lt;username&gt;</code>); passwords in the case; several actions in one step; no start page; duplicate cases</td><td data-label="Cost">None</td></tr>
586
+ <tr><td data-label="Source">Page memory</td><td data-label="What it finds">Steps that name a field or control earlier runs never saw on that page (&quot;email&quot; on a form that has no email field), with what the page does have</td><td data-label="Cost">None</td></tr>
587
+ <tr><td data-label="Source">The requirements it tests</td><td data-label="What it finds">Azure DevOps: the story or PBI the case tests (&quot;Tests&quot; link), then its feature and epic, with descriptions and acceptance criteria. Jira: the issues the test is linked to, then their parents</td><td data-label="Cost">A few API calls, each requirement read once per check</td></tr>
588
+ <tr><td data-label="Source">Linked documents</td><td data-label="What it finds">Confluence pages linked from the case or its requirements</td><td data-label="Cost">A few API calls</td></tr>
589
+ <tr><td data-label="Source">A RAG service (optional)</td><td data-label="What it finds">Passages your own search finds for the case</td><td data-label="Cost">Your service</td></tr>
590
+ </tbody>
591
+ </table></div>
592
+ <p><strong>The result.</strong> Each case is <strong>ready</strong>, <strong>to review</strong>, or <strong>not runnable</strong>. It shows as a card with what it tests (<code>tests PBI 2211 &quot;Contact Us form&quot; ← Feature 300 ← Epic 12</code>) and the acceptance criteria no step seems to cover.</p>
593
+ <p>ForgeQE's agent then judges each case against its requirements: criteria no step covers, steps no requirement asks for, expected results that contradict the requirement, and controls the application does not have. The check before a run uses the rules and page memory only (no reads); a quick check you ask for does the same.</p>
594
+ <p><strong>RAG, plug and play.</strong> Point ForgeQE at any search service over your requirements (Confluence, a wiki, specs), in <strong>Settings › Product knowledge</strong> (Search service) or <code>forgeqe.yaml</code>, and the check adds its passages:</p>
595
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">rag:
596
+ </span></span><span class="ln ln--pair"><span class="cmd"> url: http://localhost:8080/search</span><span class="pad"> </span><span class="cm"><span class="h">#</span> POST {&quot;query&quot;: &quot;...&quot;, &quot;top_k&quot;: 5}; answers a list of {text, source, score}
597
+ </span></span><span class="ln ln--pair"><span class="cmd"> token_env: RAG_TOKEN</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional, sent as a bearer token
598
+ </span></span><span class="ln"><span class="cmd"> top_k: 5
599
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> or a local command: gets {&quot;query&quot;, &quot;top_k&quot;} on stdin, prints the list on stdout
600
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> rag:
601
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> command: [&quot;python&quot;, &quot;rag/search.py&quot;]
602
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> or ForgeQE's own search of the project's documents, no vectors (Searching your documents, without vectors)
603
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> rag:
604
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> documents: { folders: [docs/requirements], reasoning: false }
605
+ </span></span></code></pre></div>
606
+ <p>The answer can also be an object with <code>results</code>, <code>passages</code>, <code>documents</code> or <code>hits</code>, and a passage's text can be <code>text</code>, <code>content</code> or <code>page_content</code> (LangChain's shape). A RAG server with an MCP interface works through <code>mcp:</code> instead: ForgeQE's agent calls its tools.</p>
607
+ <p><strong>What happens before a run.</strong> <code>suite.case_check</code> (<strong>Settings › Reports and memory</strong>, &quot;Before a run, check the cases&quot;) decides:</p>
608
+ <ul>
609
+ <li><code>warn</code> (the default) shows the findings and runs every case.</li>
610
+ <li><code>block</code> leaves out the cases that cannot run as written.</li>
611
+ <li><code>off</code> skips the check.</li>
612
+ </ul>
613
+ <p>Ask to run a case and it runs, whatever the check found: ForgeQE's agent reports the findings with the result instead of refusing. A case whose steps have no expected results runs too. It passes when every step can be done, and the check lists it <strong>to review</strong>, since it checks no result the page should show.</p>
614
+ </div>
615
+ </section>
616
+ </div>
617
+ <article class="spec feat" id="cap-write-test-cases">
618
+ <div class="hd"><span class="mono">Test cases</span><h3>Write test cases from a story</h3></div>
619
+ <p class="ds">Writes test cases from an understanding of the feature, not only a story's acceptance criteria: it reads the feature and epic above the story, their other stories, linked Confluence pages, the RAG service, product knowledge, the app's pages and flows in page memory, and the area's past defects (from earlier runs and the tracker's bugs), then analyses each criterion before it designs cases. Each case names what it covers, and nothing is saved while a criterion has no case or reason. Saves them in Azure DevOps or Jira, linked to the story. Reads the cases already linked first, so asking again adds only what is missing and updates cases in place instead of duplicating them; plans end-to-end journeys from the existing cases.</p>
620
+ <div class="facts">
621
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Write test cases for story 1234 and save them</li><li>Build an end-to-end journey from story 1234's cases</li></ul></div>
622
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>Azure DevOps or Jira: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
623
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>story_test_cases</code> <code>save_test_cases</code> <code>link_test_case</code> <code>apply_case_changes</code> <code>trace_criteria</code> <code>requirements_file</code> <code>e2e_journey</code></p></div>
624
+ </div>
625
+
626
+ </article>
627
+ <div class="feat-detail"><p class="see">See <a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a>.</p>
628
+ </div>
629
+ <article class="spec feat" id="cap-domain-compliance">
630
+ <div class="hd"><span class="mono">Test cases</span><h3>Domain and regulatory test design</h3></div>
631
+ <p class="ds">Every agent works as an expert in the product's industry would, automatically: the risks the industry is known for and the obligations of its regulations and standards (for example DORA, PSD2, GDPR, ISO 27001), declared in forgeqe.yaml or worked out from the story and the application. It applies to analysing requirements, writing and checking test cases, exploration, writing, reviewing, and healing test code, API tests, finding tests, and pull request reviews, labelled so coverage can be traced and citing only the control ids in the team's compliance file. forgeqe eval domain measures how well the agent does it.</p>
632
+ <div class="facts">
633
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Write test cases for story 1234, covering our DORA and PSD2 obligations</li><li>Which GDPR obligations do these cases miss?</li></ul></div>
634
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The product's industry and regulations: domain: in forgeqe.yaml, with your applicable controls in .forgeqe/knowledge/compliance.md</span></li></ul></div>
635
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Designs and checks tests for regulatory obligations; it does not certify compliance or replace an audit.</li><li>Cites control or article ids only from the team's compliance file, never from memory.</li></ul></div>
636
+ <div class="fact"><span class="mono">Tools</span><p class="tools"></p></div>
637
+ </div>
638
+
639
+ </article>
640
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-16-domain-and-regulations">
641
+ <h4>Domain and regulations</h4>
642
+ <div class="prose"><p>ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job: analysing requirements, writing and checking test cases, planning exploration, writing test code (Quill), reviewing it, healing it, writing and planning API tests, finding tests, and reviewing pull requests. Without a declaration, each works out the industry and regulations from the story, the product knowledge, and the application, and says what it assumed. Declaring yours removes the guesswork.</p>
643
+ <p><strong>Declaring your domain.</strong></p>
644
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
645
+ <ol>
646
+ <li>Open <strong>Settings › Product knowledge</strong> (under <strong>Connections</strong>).</li>
647
+ <li>Under <strong>The product</strong>, fill in <strong>Industry</strong>, <strong>Regulations</strong> (comma separated) and <strong>Notes</strong>.</li>
648
+ </ol>
649
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
650
+ <p>Add <code>domain:</code> to <code>forgeqe.yaml</code>:</p>
651
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">domain:
652
+ </span></span><span class="ln"><span class="cmd"> industry: retail banking
653
+ </span></span><span class="ln"><span class="cmd"> regulations: [DORA, PSD2, GDPR, ISO 27001]
654
+ </span></span><span class="ln"><span class="cmd"> notes: Payments to UK and EU accounts; customers are consumers and small businesses.
655
+ </span></span></code></pre></div>
656
+ </div></div><p><strong>What the agents do with it.</strong> They add the risks the industry is known for (duplicate submissions, limits, cut-off times, effective dates, recalculated premiums) and the obligations of each regulation a feature touches (audit trail, segregation of duties, data protection, incident logging, resilience), and label each test case, charter, test, or finding with what it covers, for example <code>Domain: duplicate payment</code> or <code>GDPR: right to erasure</code>.</p>
657
+ <div class="tbl tbl--cols-2"><table>
658
+ <thead>
659
+ <tr><th>Agent</th><th>What it does with the domain</th></tr>
660
+ </thead>
661
+ <tbody>
662
+ <tr><td data-label="Agent">ForgeQE's agent</td><td data-label="What it does with the domain">Adds domain and regulatory cases when it writes test cases or tests from requirements, and judges cases and release readiness against them</td></tr>
663
+ <tr><td data-label="Agent">Exploratory charters</td><td data-label="What it does with the domain">Plans charters for the domain's risks and obligations</td></tr>
664
+ <tr><td data-label="Agent">Quill (writing tests)</td><td data-label="What it does with the domain">Asserts a covered risk or obligation explicitly (the amount, the approval, the audit entry), and carries its label into the test's name or tag</td></tr>
665
+ <tr><td data-label="Agent">Test reviewer</td><td data-label="What it does with the domain">Treats a test that drops or weakens such an assertion as a correctness issue</td></tr>
666
+ <tr><td data-label="Agent">Healing</td><td data-label="What it does with the domain">Never makes a test pass by loosening such an assertion: if the app no longer meets it, it is an app bug</td></tr>
667
+ <tr><td data-label="Agent">API tests and scenarios</td><td data-label="What it does with the domain">Idempotent money-moving calls, access per role, no excess personal data in responses, no leaked internals, audited changes</td></tr>
668
+ <tr><td data-label="Agent">Finding tests</td><td data-label="What it does with the domain">&quot;The DORA tests&quot; matches tests by their labels and what they assert</td></tr>
669
+ <tr><td data-label="Agent">Pull request review</td><td data-label="What it does with the domain">A change that weakens a domain safeguard or an obligation is at least a major finding</td></tr>
670
+ </tbody>
671
+ </table></div>
672
+ <p>Every agent gets the domain in its instructions from one place. The rule itself is <code>domain-rule.md</code> in <code>.forgeqe/prompts/</code>, included in every agent that analyses requirements or designs, writes, reviews, or heals tests.</p>
673
+ <p><strong>Your compliance list.</strong> Which requirements apply to your product, and the ids your auditors use, are your organisation's decision: list them in <code>.forgeqe/knowledge/compliance.md</code> (<code>forgeqe init</code> adds a template), with what is out of scope. Agents cite a control, article, or clause id only when it is listed there, and name the obligation in words otherwise, so nothing in a test traces to an id recalled from memory. ForgeQE designs and checks tests for these obligations; it does not certify compliance or replace an audit.</p>
674
+ </div>
675
+ <section class="doc sub" id="doc-how_to_use-evaluating-the-agents-domain-knowledge"><h5>Evaluating the agent's domain knowledge</h5><div class="prose"><p>The domain check measures whether the agent applies all this, with your model. Each evaluation case is a realistic story whose acceptance criteria leave the industry's risks and the regulations' obligations unstated, with what a domain expert expects its test cases to check. ForgeQE's own agent writes test cases for each story twice, with the domain declared (and a compliance file) and without, and a separate read-only judge decides, expectation by expectation, whether a test case actually checks it, and lists every id the cases cite.</p>
676
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
677
+ <ol>
678
+ <li>Open <strong>Settings › Product knowledge</strong>.</li>
679
+ <li>Under <strong>Check the agent's domain knowledge</strong>, pick one case, or keep all of them.</li>
680
+ <li>Press <strong>Run</strong>. It asks first, since each case is a model session with the domain and one without, plus a judge; it takes a few minutes and costs tokens.</li>
681
+ </ol>
682
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
683
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe eval domain</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the bundled cases: banking, insurance, access control, data protection, lending
684
+ </span></span><span class="ln"><span class="cmd">forgeqe eval domain --only banking-payment-transfer --repeat 3
685
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe eval domain --cases ./evals/our-domain</span><span class="pad"> </span><span class="cm"><span class="h">#</span> your own cases
686
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe eval domain --judge-profile judge</span><span class="pad"> </span><span class="cm"><span class="h">#</span> judge with another llms.json profile
687
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe eval domain --variant declared --min 0.8</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 under 80% coverage, or on any invented id: a CI gate
688
+ </span></span></code></pre></div>
689
+ </div></div><p><strong>The report</strong> (<code>.forgeqe/reports/evals/domain/&lt;time&gt;/report.md</code> and <code>report.json</code>) shows coverage of the story's own expectations, the industry's, and the regulations', for each variant, the expectations each run missed with the judge's reason, and any invented ids (cited, but not in the compliance file). The gap between the two variants is what declaring the domain adds; the declared coverage is what you can rely on. Model answers vary, so use <code>--repeat</code> before drawing conclusions from one case.</p>
690
+ <p><strong>Your own cases.</strong> A case is a YAML file:</p>
691
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id: banking-payment-transfer
692
+ </span></span><span class="ln"><span class="cmd">title: Send money to a saved beneficiary
693
+ </span></span><span class="ln"><span class="cmd">domain: { industry: retail banking, regulations: [PSD2, DORA, GDPR] }
694
+ </span></span><span class="ln ln--pair"><span class="cmd">compliance: |</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the team's compliance file for this product (optional)
695
+ </span></span><span class="ln"><span class="cmd"> - CTL-AUD-01 (DORA): every payment is written to the audit log with who, when, and the values.
696
+ </span></span><span class="ln"><span class="cmd">story:
697
+ </span></span><span class="ln"><span class="cmd"> title: Pay a saved beneficiary
698
+ </span></span><span class="ln"><span class="cmd"> description: As a customer I want to send money to a beneficiary I saved earlier.
699
+ </span></span><span class="ln"><span class="cmd"> acceptance: |
700
+ </span></span><span class="ln"><span class="cmd"> - The customer picks a saved beneficiary, enters an amount and a reference, and confirms.
701
+ </span></span><span class="ln ln--pair"><span class="cmd">expect:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> source: story, domain, or regulation
702
+ </span></span><span class="ln"><span class="cmd"> - { id: duplicate, source: domain, covers: Submitting twice does not create a second payment. }
703
+ </span></span><span class="ln"><span class="cmd"> - { id: sca, source: regulation, covers: Confirming the payment requires strong customer authentication. }
704
+ </span></span></code></pre></div>
705
+ <hr />
706
+ </div></section>
707
+ </section>
708
+ </div>
709
+ <article class="spec feat" id="cap-exploratory-testing">
710
+ <div class="hd"><span class="mono">Test cases</span><h3>Exploratory testing of a story</h3></div>
711
+ <p class="ds">Explores a story in real browsers beyond its scripted cases (edge cases, invalid input, boundaries, roles, state), confirms each defect by reproducing it, proposes test cases, and files bugs once the user agrees.</p>
712
+ <div class="facts">
713
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Explore story 1234 and find bugs</li><li>Test this feature beyond the test cases</li></ul></div>
714
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to read the story and file bugs: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
715
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>explore_story</code></p></div>
716
+ </div>
717
+
718
+ </article>
719
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-exploratory-testing-from-a-story">
720
+ <h4>Exploratory testing from a story</h4>
721
+ <div class="prose"><p>Exploratory testing tests a story's feature beyond its scripted test cases, in real browsers. A session works in seven steps:</p>
722
+ <ol>
723
+ <li><strong>Reads the story:</strong> description and acceptance criteria, the feature and epic above it, the test cases that already script it (Azure DevOps &quot;Tested By&quot;, Jira test links), and passages from the requirements search when one is set up. A Jira key, a link, or the story's text with its acceptance criteria works too.</li>
724
+ <li><strong>Plans charters</strong> (6 by default, at most 12). Each has a mission, concrete steps and data, and an expected result per step. Charters cover other paths and valid data, edge cases (empty, long, special characters, duplicates), invalid input, the boundaries the story states, <strong>role differences</strong>, state (refresh, back, double submit, a second tab, an expired session), and what must not happen.
725
+ <ul>
726
+ <li>Expected results come from the acceptance criteria. Where the story says nothing, they come from what a well-behaved application does, and the charter says so.</li>
727
+ <li>Nothing irreversible beyond test data is planned, and charters that create or change data are marked.</li>
728
+ <li>You see the charters and choose to run them all, only those that change no data, or none.</li>
729
+ </ul>
730
+ </li>
731
+ <li><strong>Explores:</strong> each charter is a browser run. The browser agent judges each expected result on the page and lists anything else that looks wrong. <strong>Roles</strong> are your saved logins (<code>logins:</code> in <code>forgeqe.yaml</code>); by default every one is used when there are two or more. A role's charter signs in with only that role's login on the site.</li>
732
+ <li><strong>Confirms:</strong> a charter that finds a functional defect runs a second time. It counts as a <strong>confirmed defect</strong> only when it fails the same way again. The failure classification decides what is a defect: an environment problem (run once more), a test that could not be done, or a charter that does not fit the application is reported as &quot;could not explore&quot;, not as a defect.</li>
733
+ <li><strong>Reports</strong> in <code>.forgeqe/reports/explore/&lt;id&gt;/exploration.md</code> (and <code>.json</code>): each charter's result, the confirmed defects with both runs' evidence, and <strong>observations</strong>. Observations are defects that did not reproduce, browser errors (failed requests, console errors), and what the agent noticed beyond the steps. They are never filed as bugs.</li>
734
+ <li><strong>Bugs for confirmed defects only,</strong> through the bug tracker set up under <code>bugs:</code> (Jira or Azure DevOps), after you agree. A bug filed before for the same charter gets a comment instead of a duplicate.</li>
735
+ <li><strong>Proposed test cases:</strong> the charters that ran clean become regression cases, and each confirmed defect becomes a case that checks the correct behaviour (it fails until the defect is fixed). The agent offers to save the ones you pick to the story.</li>
736
+ </ol>
737
+ <p><strong>Cost and limits.</strong> Each charter is a browser run (two for a possible defect), so a session takes several minutes and costs about as much as running that many test cases. A session can have a time limit: at it, the running charter stops, the rest are marked stopped, and what ran is saved.</p>
738
+ <p><strong>Running a session.</strong></p>
739
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
740
+ <ol>
741
+ <li>Open <strong>Exploratory</strong> (Quality Engineering › Test design).</li>
742
+ <li>Under <strong>New session</strong>, write the <strong>Goal</strong>: what to try to break, or what to look for.</li>
743
+ <li>Pick where to <strong>Start at</strong> (an app of the active environment, or <strong>Another address…</strong> and its <strong>Address</strong>), and optionally a <strong>Story</strong> (<code>ado:1234</code> or <code>SHOP-12</code>).</li>
744
+ <li>Pick <strong>Charters, at most</strong> and the <strong>Time limit</strong>. With two or more saved logins, pick the <strong>Roles</strong> to explore as (none picked: each of them).</li>
745
+ <li>Press <strong>Explore</strong>, then <strong>Start</strong>.</li>
746
+ <li>When the charters are planned, choose which ones run. At the end, answer whether to file bugs.</li>
747
+ </ol>
748
+ <p>The page always asks for a goal, a cap on the charters and a time limit. <strong>Stop</strong> ends a session; what ran is kept. Each session's charters, <strong>Defects</strong> and <strong>Proposed test cases</strong> stay on the page.</p>
749
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
750
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe explore ado:1234 --url https://staging.shop.example/orders
751
+ </span></span><span class="ln"><span class="cmd">forgeqe explore SHOP-12 --charters 8 --roles shop_admin,shop_viewer --focus &quot;the address form&quot;
752
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe explore SHOP-12 --max-minutes 30</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a time limit
753
+ </span></span><span class="ln"><span class="cmd">forgeqe explore &quot;Change the delivery address
754
+ </span></span><span class="ln"><span class="cmd">Customers can change the address of an open order.
755
+ </span></span><span class="ln"><span class="cmd">Acceptance criteria:
756
+ </span></span><span class="ln"><span class="cmd">- Postcode is required and validated&quot; --url https://staging.shop.example
757
+ </span></span></code></pre></div>
758
+ <p><code>forgeqe explore</code> exits 1 when a defect is confirmed. <code>--file-bugs</code> files bugs where nobody can be asked. In the shell, say &quot;explore story 1234&quot;.</p>
759
+ </div></div><p><strong>On a schedule.</strong> A job can run a session on a schedule, and it must have both a goal and a time limit: <code>forgeqe jobs add nightly-explore --cron &quot;0 2 * * 1-5&quot; -- explore --url URL --max-minutes 30 -- &quot;Try to break checkout&quot;</code>.</p>
760
+ </div>
761
+ </section>
762
+ </div>
763
+ <article class="spec feat" id="cap-business-personas">
764
+ <div class="hd"><span class="mono">Test cases</span><h3>Business personas for testing</h3></div>
765
+ <p class="ds">Personas that test the software the way the business would: a subject matter expert (a payments SME who checks refunds, settlement cut-offs and currency rounding), an end user, a specialist (compliance) or a business user (an operations manager with approval limits). Mask drafts a new one from your words; any agent then acts as it in a browser run, designs test cases from what it validates, or reviews a feature through its eyes. Kept in the project for every agent.</p>
766
+ <div class="facts">
767
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create a persona of an SME in payments</li><li>Test the refund flow as a payments SME</li><li>Make a business persona for an operations manager who approves orders</li><li>Which business personas do we have?</li></ul></div>
768
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
769
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>A persona is a description for agents to act on, not a real user: its checks come from its validates list and the domain the model knows</li><li>Saved only after you agree, as .forgeqe/business-personas/&lt;id&gt;.yaml; a persona never changes what an agent may do</li></ul></div>
770
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>business_persona</code></p></div>
771
+ </div>
772
+
773
+ </article>
774
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-business-personas">
775
+ <h4>Business personas</h4>
776
+ <div class="prose"><p>A <strong>business persona</strong> is a person who validates the software the way the business does:</p>
777
+ <ul>
778
+ <li>a <strong>subject matter expert</strong>: a payments SME who checks refunds, settlement cut-offs and currency rounding;</li>
779
+ <li>an <strong>end user</strong>: an everyday customer, a first-time user;</li>
780
+ <li>a <strong>specialist</strong>: a KYC and AML compliance reviewer;</li>
781
+ <li>a <strong>business user</strong>: an operations manager with approval limits.</li>
782
+ </ul>
783
+ <p>Each persona says who the person is, what they want, what they know, and above all <strong>what they check before they accept the software</strong> (<code>validates</code>).</p>
784
+ <p><strong>Who uses personas.</strong></p>
785
+ <ul>
786
+ <li><strong>Atlas</strong> makes personas too (&quot;create a persona of an SME in payments&quot;), with Mask. It acts as a persona in a browser run (the persona's brief goes at the start of the goal), designs test cases from what it validates, or reviews a feature through its eyes: &quot;test the refund flow as a payments SME&quot;, &quot;write test cases for checkout as a first-time user&quot;.</li>
787
+ <li><strong>Other agents</strong> (<code>forgeqe mcp</code> clients such as Claude Code or Copilot, and custom agents) call the <code>business_persona</code> tool: <code>op: list</code>, <code>op: get</code> (the persona and its brief), or <code>op: create</code>.</li>
788
+ <li><strong>A person</strong>, in the web app or at a terminal.</li>
789
+ </ul>
790
+ <p><strong>Built in:</strong> <code>payments-sme</code> (<code>/priya</code>), <code>retail-customer</code> (<code>/sam</code>), <code>compliance-specialist</code> (<code>/dana</code>), <code>operations-manager</code> (<code>/lee</code>), <code>first-time-user</code> (<code>/alex</code>), and three risk-oriented personas for testing misuse on a test environment:</p>
791
+ <ul>
792
+ <li><code>incentive-exploiter</code> (<code>/max</code>), an opportunistic deal hunter;</li>
793
+ <li><code>insider-agent</code> (<code>/rory</code>), a customer service agent who misuses refund and credit rights;</li>
794
+ <li><code>partner-merchant</code> (<code>/morgan</code>), a marketplace merchant watching payout timing.</li>
795
+ </ul>
796
+ <p><a href="#doc-how_to_use-basal-business-testing">BASAL</a> casts its own personas for each business test.</p>
797
+ <p><strong>What else a persona can say:</strong> <strong>why they act</strong> (<code>intent</code>: <code>legitimate</code>, <code>opportunistic</code> or <code>adversarial</code>, with a <code>risk_appetite</code>), what drives them (<code>motivations</code>), what their role lets them do in the app (<code>permissions</code>), the limits they work within (<code>constraints</code>), the mistakes they plausibly make (<code>mistakes</code>) and who they deal with (<code>relationships</code>, by persona id). Each saved change raises its <code>version</code>.</p>
798
+ <p><strong>Making a persona.</strong> Mask drafts a new persona from your words. It answers in a fixed shape, and ForgeQE keeps only the persona's fields, checked. A draft is shown first and saved only when you agree. It needs a live model; without one, write the persona yourself.</p>
799
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
800
+ <ol>
801
+ <li>Open Mask's page (<strong>All agents</strong> › Mask). It has three pages, linked at the top right of each: <strong>Agent</strong>, <strong>Personas</strong> and <strong>Tools and runs</strong>.</li>
802
+ <li>On <strong>Agent</strong>, describe a person in your words (&quot;a compliance officer who reviews every refund over 10,000 EUR&quot;). The agent turns them into a persona in the conversation, shows it, and asks before saving it.</li>
803
+ <li>Or, on <strong>Personas</strong>, press <strong>New persona</strong>: Mask drafts one from your words (or write it yourself), you change any field, and <strong>Save</strong> keeps it.</li>
804
+ </ol>
805
+ <p>On <strong>Personas</strong>, every persona is listed by kind. Open one to read what it checks in a side panel, with <strong>Edit</strong> for your own and <strong>Copy to edit</strong> for a built-in one.</p>
806
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
807
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe persona</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the personas: built in, and the project's
808
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe persona show payments-sme</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one persona and the brief agents act on
809
+ </span></span><span class="ln"><span class="cmd">forgeqe persona create &quot;an SME in card payments who reconciles settlements&quot; --domain payments --kind sme [--save]
810
+ </span></span></code></pre></div>
811
+ <p><code>--save</code> asks before it saves.</p>
812
+ </div></div><p><strong>Every persona is a command in every agent's chat.</strong> Start a message with it and the task (<code>/priya Validate the payment change</code>), or name personas anywhere in the words (<code>check @steps.json as /sam and /priya</code>), up to four in one message. A word that names no persona, such as <code>/tmp</code>, stays as it is.</p>
813
+ <ul>
814
+ <li><strong>Where it works:</strong> the terminal shell (typing <code>/</code> suggests the personas with the shell's commands), <code>forgeqe run &quot;/priya …&quot;</code>, every chat box of the web app (typing <code>/</code> at the start offers the personas) and a custom agent's chat.</li>
815
+ <li><strong>What it does:</strong> ForgeQE turns the command into the persona's brief, quoted as data, and your task after it. The agent acts as that person, puts the brief at the start of its browser runs, and judges the app by what they check.</li>
816
+ <li><strong>The command</strong> is the persona's <code>handle</code> (its id when it has none): a word of lower-case letters, digits and dashes that is never one of the shell's own commands or another persona's.</li>
817
+ </ul>
818
+ <p><strong>Sharing personas.</strong> The file is JSON of the personas' fields. An import is checked as strictly as a persona file. The whole file is refused when any persona in it is refused, and a persona whose id or command this project already has is skipped and listed, never replaced.</p>
819
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
820
+ <ol>
821
+ <li>Open Mask's page, <strong>Personas</strong>.</li>
822
+ <li>Press <strong>Export</strong> to save your own personas as a file, or <strong>Import</strong> to add another project's.</li>
823
+ </ol>
824
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
825
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe persona export --out personas.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> your own personas, as a file to share
826
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe persona import personas.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> another project's: new ones only, never replacing one here
827
+ </span></span></code></pre></div>
828
+ </div></div><p><strong>A persona's own skills and knowledge</strong> are used only when an agent works as that persona (its command in a chat), never by other agents. They are kept in <code>.forgeqe/business-personas/&lt;id&gt;/skills/&lt;name&gt;/SKILL.md</code> and <code>.forgeqe/business-personas/&lt;id&gt;/knowledge/&lt;name&gt;.md</code>, a folder the skills list and the document search do not read.</p>
829
+ <ul>
830
+ <li>Mask drafts a skill and a knowledge note from the persona right after you save a new persona or a copy, and on <strong>Generate skill and knowledge</strong> in any persona's panel (a built-in one too).</li>
831
+ <li>You review and change them, and nothing is saved until you press <strong>Save</strong>. Edit or remove them in the panel.</li>
832
+ <li>A persona can also use the project's shared skills and documents, picked in <strong>Edit</strong>, with suggestions that match its domain.</li>
833
+ </ul>
834
+ <p><strong>Your own personas</strong> are <code>.forgeqe/business-personas/&lt;id&gt;.yaml</code>, shared with everyone who uses the repository. Saving one also writes its profile as <code>&lt;id&gt;.md</code> beside it, made from its fields, for people and agents that read the project's documents. The YAML is the persona; the <code>.md</code> is written again whenever the persona is saved:</p>
835
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id: merchant-onboarding-sme
836
+ </span></span><span class="ln ln--pair"><span class="cmd">handle: omar</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its command in any agent's chat: /omar Validate the merchant onboarding change
837
+ </span></span><span class="ln"><span class="cmd">name: Omar, merchant onboarding SME
838
+ </span></span><span class="ln ln--pair"><span class="cmd">kind: sme</span><span class="pad"> </span><span class="cm"><span class="h">#</span> sme, end_user, specialist, business_user
839
+ </span></span><span class="ln"><span class="cmd">role: Merchant onboarding lead
840
+ </span></span><span class="ln"><span class="cmd">domain: payments
841
+ </span></span><span class="ln ln--pair"><span class="cmd">expertise: expert</span><span class="pad"> </span><span class="cm"><span class="h">#</span> novice, intermediate, expert
842
+ </span></span><span class="ln"><span class="cmd">description: Onboards new merchants and sets their fees and payout schedules.
843
+ </span></span><span class="ln"><span class="cmd">goals:
844
+ </span></span><span class="ln"><span class="cmd"> - onboard a merchant in one session
845
+ </span></span><span class="ln"><span class="cmd">knows:
846
+ </span></span><span class="ln"><span class="cmd"> - merchant category codes
847
+ </span></span><span class="ln"><span class="cmd"> - payout schedules and reserves
848
+ </span></span><span class="ln"><span class="cmd">validates:
849
+ </span></span><span class="ln"><span class="cmd"> - a merchant cannot take payments before KYC is approved
850
+ </span></span><span class="ln"><span class="cmd"> - the fee shown at onboarding is the fee charged on the first payout
851
+ </span></span><span class="ln"><span class="cmd">frustrations:
852
+ </span></span><span class="ln"><span class="cmd"> - having to enter the same company details twice
853
+ </span></span><span class="ln"><span class="cmd">scenarios:
854
+ </span></span><span class="ln"><span class="cmd"> - Onboard a merchant and take its first test payment
855
+ </span></span></code></pre></div>
856
+ <p><strong>Read strictly.</strong> A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each choice from its list, no YAML aliases, every text one line and clipped, at most 12 items in a list, a regular file only (no link). A text that reads as an instruction to an agent (&quot;ignore the rules&quot;, &quot;run this command&quot;) is refused. A persona only describes a person: it never changes what an agent may do.</p>
857
+ <p>These personas are separate from the accessibility personas (<code>.forgeqe/personas</code>), which set how the browser perceives the page.</p>
858
+ </div>
859
+ </section>
860
+ </div>
861
+ <article class="spec feat" id="cap-basal">
862
+ <div class="hd"><span class="mono">Test cases</span><h3>BASAL: business testing that acts</h3></div>
863
+ <p class="ds">BASAL turns a business question (should we launch saved cards with a fee? are prices the same from list to cart before the sale?) into a test that ForgeQE's own agents play as the people it affects. It reads the question's brief and data with the product knowledge graph (searched by meaning) into a scenario: the decision, stakeholders, success criteria and facts, observed or inferred; writes a test strategy whose steps are on browser, API, mobile, desktop or a person; casts a persona for each stakeholder; rehearses their reactions on a feed; and, once a person approves, hands each step to WebPilot, the API workbench, the mobile or desktop agent as that persona on a test environment. Code judges each scenario from what the agents observed: confirmed failure, policy ambiguity, potential risk, missing evidence or expected behaviour.</p>
864
+ <div class="facts">
865
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Should we launch saved cards with a fee? Test how merchants, shoppers and support would really be affected</li><li>Before our weekend sale, test that prices stay the same from list to cart</li><li>Test our refunds and coupons the way an opportunistic customer would</li></ul></div>
866
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
867
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>It knows the product from the knowledge graph (forgeqe knowledge build) and the files you give it: what neither shows, it does not know</li><li>A person approves every strategy before anything runs; steps that change data run only after you agree, and only on a test environment of env.yaml</li><li>A rehearsal's posts are the personas' opinions, never evidence; a verdict comes only from what the agents observed</li></ul></div>
868
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>basal</code></p></div>
869
+ </div>
870
+
871
+ </article>
872
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-basal-business-testing">
873
+ <h4>BASAL: business testing</h4>
874
+ <div class="prose"><p><strong>BASAL</strong> tests a business decision the way real people meet it. Ask a business question with its brief (&quot;Should we launch saved cards as Option A or B? Test how merchants, shoppers and support would really be affected&quot;), and BASAL works it through eight steps:</p>
875
+ <ol>
876
+ <li><strong>Ask</strong>: the question, the files it rests on (a brief, survey data, policy extracts) and work items. In the web app you give the question; files and work items are added at a terminal (<code>--file</code>, <code>--story</code>).</li>
877
+ <li><strong>Understand</strong>: the decision, its options, the stakeholders, the success criteria and the facts, read from the sources and the product knowledge graph (found by meaning). An item is <strong>observed</strong> only when its quote is in the source it names; otherwise it is <strong>inferred</strong>.</li>
878
+ <li><strong>Strategy</strong>: scenarios that decide the question. Each step is played by a stakeholder on a channel ForgeQE's agents play (browser, API, mobile, desktop, a person, or opinion only), with the business expectations that judge it. Only stakeholders, apps, saved API calls and test environments the project has are kept. An expectation is <strong>policy</strong> only when it rests on an observed success criterion.</li>
879
+ <li><strong>Cast</strong>: one persona per stakeholder who acts: what they check, what they object to, the mistakes they bring.</li>
880
+ <li><strong>Rehearse</strong>: the cast react on a feed (post, comment, share, like) to the decision, to each other, and to what the agents saw on the product. What they want tried picks what to play next. Their posts are opinions, never evidence.</li>
881
+ <li><strong>Approve</strong>: nothing runs until a person approves the strategy, with the test's id typed. An agent never approves.</li>
882
+ <li><strong>Act</strong>: each step goes to WebPilot, the API workbench, or the mobile or desktop agent, as its persona, on a test environment. A journey of one persona in one app is one handover. Steps that change data run only when you agree to the list shown. The operations board shows each handover as it happens.</li>
883
+ <li><strong>Judge</strong>: code judges each scenario from what was observed: <strong>confirmed failure</strong>, <strong>policy ambiguity</strong>, <strong>potential risk</strong>, <strong>missing evidence</strong> or <strong>expected behaviour</strong>. A step only a person can see waits for you. &quot;Next round&quot; sends the outcomes back to the cast.</li>
884
+ </ol>
885
+ <p><strong>Running a business test.</strong></p>
886
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
887
+ <ol>
888
+ <li>Open <strong>BASAL</strong> (Quality Engineering › Test design).</li>
889
+ <li>On <strong>Agent</strong>, write your business question and press <strong>Start</strong>.</li>
890
+ <li>On <strong>Tests</strong>, open the test and work through its steps, each a page of its own beside the live knowledge graph. <strong>Approve</strong> it when the strategy is right.</li>
891
+ </ol>
892
+ <p>The <strong>Personas</strong> tab shows who each test was cast with, and <strong>Findings</strong> shows every scenario's latest verdict, the ones that need attention first. You can also ask Atlas in any chat (&quot;test whether we should launch saved cards with a fee, here is the brief&quot;): it starts the test and works through the steps, but never approves. It tells you where to approve, and acts only after you have.</p>
893
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
894
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe basal</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the business tests here (same as: forgeqe basal list)
895
+ </span></span><span class="ln"><span class="cmd">forgeqe basal new &quot;Should we launch saved cards with a fee?&quot; --file briefs/brief.md --file briefs/survey.csv [--story ID] [--env qa]
896
+ </span></span><span class="ln"><span class="cmd">forgeqe basal understand &lt;id&gt;
897
+ </span></span><span class="ln"><span class="cmd">forgeqe basal strategy &lt;id&gt;
898
+ </span></span><span class="ln"><span class="cmd">forgeqe basal cast &lt;id&gt;
899
+ </span></span><span class="ln"><span class="cmd">forgeqe basal rehearse &lt;id&gt;
900
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe basal show &lt;id&gt;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the scenario, cast and strategy
901
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe basal approve &lt;id&gt;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a person types the id
902
+ </span></span><span class="ln"><span class="cmd">forgeqe basal act &lt;id&gt; [--scenario s1,s2] [--yes-writes]
903
+ </span></span><span class="ln"><span class="cmd">forgeqe basal judge &lt;id&gt;
904
+ </span></span><span class="ln"><span class="cmd">forgeqe basal observe &lt;id&gt; &lt;scenario&gt; --step 3 --accepted|--refused [--values name=value] [--note TEXT]
905
+ </span></span></code></pre></div>
906
+ <p><code>act</code> lists the steps that change data and runs them only when you type <code>yes</code>; <code>--yes-writes</code> agrees in advance.</p>
907
+ </div></div><p><strong>What BASAL needs.</strong> A model, and it is best with the graph store (<code>forgeqe graph setup</code>, after you agree) and an embedding model (<code>graph.embedding</code>). Its files are in <code>.forgeqe/basal/tests/&lt;id&gt;/</code>. BASAL replaced the Business assurance agent: <code>forgeqe business</code> now only says where BASAL is, and tests kept in <code>.forgeqe/business</code> are not read.</p>
908
+ </div>
909
+ </section>
910
+ </div>
911
+
912
+ <nav class="pager" aria-label="Previous and next">
913
+ <a class="prev" href="../area-browser/index.html"><small>Previous</small><span>Browser testing</span></a>
914
+ <a class="next" href="../area-automated-tests/index.html"><small>Next</small><span>Automated tests</span></a>
915
+ </nav>
916
+ </main>
917
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-run-test-cases">Run manual test cases in browsers</a></li><li><a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a></li><li><a href="#doc-how_to_use-running">Running</a></li><li><a href="#doc-how_to_use-results-back-in-the-source">Results back in the source</a></li><li><a href="#doc-how_to_use-bugs-for-failures">Bugs for failures</a></li><li><a href="#cap-test-case-quality">Check and improve test cases</a></li><li><a href="#cap-write-test-cases">Write test cases from a story</a></li><li><a href="#cap-domain-compliance">Domain and regulatory test design</a></li><li><a href="#cap-exploratory-testing">Exploratory testing of a story</a></li><li><a href="#cap-business-personas">Business personas for testing</a></li><li><a href="#cap-basal">BASAL: business testing that acts</a></li></ul></aside>
918
+ </div>
919
+ <footer class="foot">
920
+ <div class="container foot__row">
921
+ <a class="foot__brand" href="https://forgeqe.github.io/"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="ForgeQE" width="160" height="76"></picture><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
922
+ <nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="../../security/index.html">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
923
+ </div>
924
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
925
+ </footer>
926
+ </body>
927
+ </html>