@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.
- package/HOW_TO_USE.md +5152 -1869
- package/README.md +155 -434
- package/THIRD_PARTY_NOTICES.md +210 -1
- package/dist/docs-site/CREDITS.md +6 -0
- package/dist/docs-site/architecture-map/index.html +1 -1
- package/dist/docs-site/docs/app-theme.css +126 -13
- package/dist/docs-site/docs/architecture/index.html +56 -530
- package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
- package/dist/docs-site/docs/area-api/index.html +491 -0
- package/dist/docs-site/docs/area-automated-tests/index.html +1777 -0
- package/dist/docs-site/docs/area-browser/index.html +472 -0
- package/dist/docs-site/docs/area-data/index.html +595 -0
- package/dist/docs-site/docs/area-desktop/index.html +802 -0
- package/dist/docs-site/docs/area-mobile/index.html +683 -0
- package/dist/docs-site/docs/area-operations/index.html +1243 -0
- package/dist/docs-site/docs/area-pull-requests/index.html +290 -0
- package/dist/docs-site/docs/area-quality/index.html +427 -0
- package/dist/docs-site/docs/area-release/index.html +435 -0
- package/dist/docs-site/docs/area-setup/index.html +1595 -0
- package/dist/docs-site/docs/area-systems/index.html +191 -0
- package/dist/docs-site/docs/area-test-cases/index.html +927 -0
- package/dist/docs-site/docs/containers/index.html +168 -189
- package/dist/docs-site/docs/cost-architecture/index.html +110 -113
- package/dist/docs-site/docs/custom-agents-first-run/index.html +121 -67
- package/dist/docs-site/docs/desktop/index.html +363 -373
- package/dist/docs-site/docs/desktop-ci/index.html +39 -36
- package/dist/docs-site/docs/docs-tabs.js +56 -0
- package/dist/docs-site/docs/evidence/index.html +297 -300
- package/dist/docs-site/docs/feature-test-prompts/index.html +79 -73
- package/dist/docs-site/docs/get-started/index.html +791 -0
- package/dist/docs-site/docs/graphify/index.html +45 -48
- package/dist/docs-site/docs/guardrails/index.html +35 -23
- package/dist/docs-site/docs/index.html +18 -6729
- package/dist/docs-site/docs/mobile/index.html +223 -210
- package/dist/docs-site/docs/model-routing/index.html +84 -65
- package/dist/docs-site/docs/overview/index.html +192 -0
- package/dist/docs-site/docs/product-graph/index.html +60 -62
- package/dist/docs-site/docs/product-knowledge/index.html +24 -17
- package/dist/docs-site/docs/product-views/index.html +57 -60
- package/dist/docs-site/docs/reference/index.html +409 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +798 -0
- package/dist/docs-site/docs/web-app/index.html +168 -111
- package/dist/docs-site/security/index.html +930 -0
- package/dist/docs-site/security/security-theme.css +161 -0
- package/dist/docs-site/security/security.js +1465 -0
- package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
- package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
- package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
- package/dist/forgeqe.js +1903 -1896
- package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
- package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
- package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
- package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
- package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
- package/dist/web/assets/Chat-DnBUm_97.js +3 -0
- package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
- package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
- package/dist/web/assets/Cost-CWrc4McH.js +1 -0
- package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
- package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
- package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
- package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
- package/dist/web/assets/Explore-CMAxWE_8.js +2 -0
- package/dist/web/assets/Features-haQchkhA.js +1 -0
- package/dist/web/assets/Flags-BaQjYi_t.js +2 -0
- package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
- package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
- package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
- package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
- package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
- package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
- package/dist/web/assets/Product-BQSiR28a.js +7 -0
- package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
- package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
- package/dist/web/assets/Readiness-CkknP87n.js +1 -0
- package/dist/web/assets/Record-09IsC9U-.js +1 -0
- package/dist/web/assets/Regression-BL4MfN47.js +5 -0
- package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
- package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
- package/dist/web/assets/Response-DTBFBeKB.js +9 -0
- package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
- package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
- package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
- package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
- package/dist/web/assets/Steps-HYHK9psI.js +2 -0
- package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
- package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
- package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
- package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
- package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
- package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
- package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
- package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
- package/dist/web/assets/dataParts-DEPK4eQE.js +3 -0
- package/dist/web/assets/diff-CcNwLCX6.js +2 -0
- package/dist/web/assets/families-gkpkloLT.js +1 -0
- package/dist/web/assets/filters-C7phIFfd.js +1 -0
- package/dist/web/assets/fold-i73P-EDV.js +1 -0
- package/dist/web/assets/head-BtTqyLlj.js +1 -0
- package/dist/web/assets/highlight-DZI39CzZ.js +4 -0
- package/dist/web/assets/index-ClFOh63x.css +2 -0
- package/dist/web/assets/index-YGWJEkAT.js +64 -0
- package/dist/web/assets/input-C2vQ9O3a.js +1 -0
- package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/web/assets/logos-BmbNTDu2.js +1 -0
- package/dist/web/assets/palette-XFlqvgZl.js +1 -0
- package/dist/web/assets/paletteCommands-DsbD2ASU.js +1 -0
- package/dist/web/assets/parts-DEVx2Sea.js +1 -0
- package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
- package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
- package/dist/web/assets/recordTest--Wr40QdN.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/route-Dg53WdFu.js +1 -0
- package/dist/web/index.html +11 -6
- package/docs/ARCHITECTURE.md +50 -563
- package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
- package/docs/BASAL.md +1 -1
- package/docs/CONTAINERS.md +87 -87
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
- package/docs/DESKTOP-CI.md +18 -3
- package/docs/DESKTOP.md +306 -286
- package/docs/EVIDENCE.md +1 -1
- package/docs/MOBILE.md +107 -75
- package/docs/MODEL_ROUTING.md +48 -15
- package/docs/PRODUCT_KNOWLEDGE.md +2 -0
- package/docs/WEB_APP.md +143 -75
- package/docs/feature-test-prompts.md +29 -16
- package/docs/user-guide.html +5402 -2269
- package/forgeqe.example.yaml +3 -3
- package/guardrails/README.md +22 -2
- package/knowledge/README.md +15 -2
- package/package.json +1 -1
- package/prompts/brain.md +1 -0
- package/prompts/page-differs.md +1 -1
- package/prompts/requests-rule.md +1 -1
- package/prompts/test-reviewer.md +1 -1
- package/prompts/test-rules.md +3 -4
- package/py/forgeqe_engine/recordsession.py +100 -24
- package/skills/web-guidance/LICENSE +202 -0
- package/skills/web-guidance/SKILL.md +76 -0
- package/skills/web-guidance/UPSTREAM +67 -0
- package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
- package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
- package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
- package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
- package/skills/web-guidance/references/css/responsive-design.md +16 -0
- package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
- package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
- package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
- package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
- package/skills/web-guidance/references/forms/forms.md +415 -0
- package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
- package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
- package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
- package/skills/web-guidance/references/forms/slider.md +184 -0
- package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
- package/skills/web-guidance/references/forms/switch.md +60 -0
- package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
- package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
- package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
- package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
- package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
- package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
- package/skills/web-guidance/references/performance/performance.md +384 -0
- package/skills/web-guidance/references/privacy/privacy.md +247 -0
- package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
- package/skills/web-guidance/references/security/passkey-management.md +310 -0
- package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
- package/skills/web-guidance/references/security/passkey-registration.md +186 -0
- package/skills/web-guidance/references/security/passkeys.md +39 -0
- package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
- package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
- package/skills/web-guidance/references/security/security.md +390 -0
- package/skills/web-guidance/references/security/trusted-types.md +141 -0
- package/skills/web-guidance/references/security/validate-origins.md +197 -0
- package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
- package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
- package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
- package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
- package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
- package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
- package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
- package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
- package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
- package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
- package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
- package/skills/web-guidance/references/ui-components/accordion.md +343 -0
- package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
- package/skills/web-guidance/references/ui-components/carousel.md +206 -0
- package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
- package/skills/web-guidance/references/ui-components/dialog.md +218 -0
- package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
- package/skills/web-guidance/references/ui-components/menu.md +415 -0
- package/skills/web-guidance/references/ui-components/navbar.md +281 -0
- package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
- package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
- package/skills/web-guidance/references/ui-components/progress.md +181 -0
- package/skills/web-guidance/references/ui-components/spinner.md +179 -0
- package/skills/web-guidance/references/ui-components/tabs.md +371 -0
- package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
- package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
- package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
- package/skills/web-guidance/references/visual-design/color.md +43 -0
- package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
- package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
- package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
- package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
- package/dist/web/assets/Chat-B3uhI94O.js +0 -3
- package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
- package/dist/web/assets/Compare-CN75w1p9.js +0 -1
- package/dist/web/assets/Cost-QoxyjR95.js +0 -1
- package/dist/web/assets/Data-BAvkcBVt.js +0 -6
- package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
- package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
- package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
- package/dist/web/assets/Explore-D9AuyTip.js +0 -2
- package/dist/web/assets/Features-CusGMDR9.js +0 -1
- package/dist/web/assets/Flags-CycGFuUP.js +0 -2
- package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
- package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
- package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
- package/dist/web/assets/KindPage-BielEIej.js +0 -6
- package/dist/web/assets/Migration-NwanKpJg.js +0 -2
- package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
- package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
- package/dist/web/assets/Production-D3zsyNIS.js +0 -1
- package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
- package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
- package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
- package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
- package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
- package/dist/web/assets/Response-BP0UwQcW.js +0 -9
- package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
- package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
- package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
- package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
- package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
- package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
- package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
- package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
- package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
- package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
- package/dist/web/assets/families-DYlN5v0i.js +0 -1
- package/dist/web/assets/filters-faaSnoIq.js +0 -1
- package/dist/web/assets/fold-CUjwWAK3.js +0 -1
- package/dist/web/assets/frame-BLPdAXUq.js +0 -13
- package/dist/web/assets/head-CsTxBsO0.js +0 -1
- package/dist/web/assets/index-CxiCvGZq.js +0 -78
- package/dist/web/assets/index-dOIsrzhD.css +0 -2
- package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
- package/dist/web/assets/logos-dGuc1jIM.js +0 -1
- package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
- package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
- package/dist/web/assets/parts-CdF1f7yS.js +0 -1
- package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
- package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
- package/dist/web/assets/recordTest-P792aBUt.js +0 -1
|
@@ -0,0 +1,1777 @@
|
|
|
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>Automated tests · 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-scribe" viewBox="0 0 256 256"><g fill="currentColor"><path d="M208 88h-56V32Z" opacity=".2"/><path d="M181.66 146.34a8 8 0 0 1 0 11.32l-24 24a8 8 0 0 1-11.32-11.32L164.69 152l-18.35-18.34a8 8 0 0 1 11.32-11.32Zm-72-24a8 8 0 0 0-11.32 0l-24 24a8 8 0 0 0 0 11.32l24 24a8 8 0 0 0 11.32-11.32L91.31 152l18.35-18.34a8 8 0 0 0 0-11.32M216 88v128a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V40a16 16 0 0 1 16-16h96a8 8 0 0 1 5.66 2.34l56 56A8 8 0 0 1 216 88m-56-8h28.69L160 51.31Zm40 136V96h-48a8 8 0 0 1-8-8V40H56v176z"/></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="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="index.html" aria-current="page"><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="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="index.html" aria-current="page"><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-write-tests">Turn a passed run into an automated test</a></li><li><a href="#doc-how_to_use-how-quill-writes-a-test">How Quill writes a test</a></li><li><a href="#cap-heal-tests">Heal failing tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a></li><li><a href="#cap-regression-packs">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</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-scribe"/></svg>Automated tests</h1>
|
|
122
|
+
<p class="guide-lead">Write, heal, find, run, and stabilise tests in your repository</p>
|
|
123
|
+
<article class="spec feat" id="cap-write-tests">
|
|
124
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Turn a passed run into an automated test</h3></div>
|
|
125
|
+
<p class="ds">Quill, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it.</p>
|
|
126
|
+
<div class="facts">
|
|
127
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Write a Playwright test for that run in ../app</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>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a repository to write the test in (default: the working directory)</span></li></ul></div>
|
|
129
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>write_test</code> <code>run_test</code></p></div>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
</article>
|
|
133
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-6-tests">
|
|
134
|
+
<h4>Tests</h4>
|
|
135
|
+
<div class="prose"><p>After a run passes, <strong>Quill</strong>, ForgeQE's coding agent, turns it into a test in your repository.</p>
|
|
136
|
+
<p><strong>Writing a test after a run.</strong> Every passed run becomes a test. So does each test case that passes when you ask ForgeQE
|
|
137
|
+
to run test cases. The test goes into the repository you give for that run, else the one set in <strong>Settings › Code</strong>
|
|
138
|
+
(<code>code.repo</code> in <code>forgeqe.yaml</code>), else the current folder. You can turn this off for a chat or a request, and still ask
|
|
139
|
+
for a test later ("write a Playwright test for that run").</p>
|
|
140
|
+
<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>
|
|
141
|
+
<ol>
|
|
142
|
+
<li>Open <strong>New chat</strong>.</li>
|
|
143
|
+
<li>Press <strong>Tools</strong> and keep <strong>Write the test</strong> on. It names the repository the test goes into. Turn it off for a chat
|
|
144
|
+
that writes no tests.</li>
|
|
145
|
+
<li>Ask for the run, for example <code>Log in and open the invoices page on staging.app.test</code>.</li>
|
|
146
|
+
</ol>
|
|
147
|
+
<p>For a recording you made by hand, open <strong>Record</strong>, open the recording and press <strong>Write the test</strong> (see
|
|
148
|
+
<a href="../area-browser/index.html#doc-how_to_use-recording-a-web-test-by-hand">Recording a web test by hand</a>).</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"><span class="cmd">forgeqe run "Log in and open the invoices page on staging.app.test" --repo ../app
|
|
151
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe run "..." --no-code</span><span class="pad"> </span><span class="cm"><span class="h">#</span> no tests for this request
|
|
152
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe start --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the shell writes its tests in that repository
|
|
153
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe start --no-code</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the shell writes no tests
|
|
154
|
+
</span></span></code></pre></div>
|
|
155
|
+
<p>In the shell you can also just ask ("write a test for the last run in ../app"). Esc stops Quill the same way it stops a
|
|
156
|
+
run.</p>
|
|
157
|
+
</div></div><p><strong>Settings.</strong> In <strong>Settings › Code</strong> (groups <strong>Where tests go</strong>, <strong>How hard it tries</strong> and <strong>Help it gets</strong>), or under
|
|
158
|
+
<code>code:</code> in <code>forgeqe.yaml</code>:</p>
|
|
159
|
+
<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">code:
|
|
160
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> repo: ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> relative to forgeqe.yaml
|
|
161
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> max_attempts: 5</span><span class="pad"> </span><span class="cm"><span class="h">#</span> test runs before giving up
|
|
162
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> test_timeout_seconds: 600</span><span class="pad"> </span><span class="cm"><span class="h">#</span> per test run
|
|
163
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> stall_after: 5</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop the agent's turn when one command it runs has failed this many times
|
|
164
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> repeat_after: 6</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop its turn after this many look-ups answered as before (a file re-read unchanged, the same diff)
|
|
165
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> edit_after: 8</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop its turn after this many edits to files it already changed, with no test run in between
|
|
166
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> replay: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> before the agent starts, run the steps as a Playwright script and hand over what worked
|
|
167
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> live_browser: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once a step fails, the agent looks at that page in a Playwright browser
|
|
168
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> graph: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the code graph: find page objects without reading files, and reuse what already locates an element
|
|
169
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> model: anthropic/claude-sonnet-4-5
|
|
170
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> runtime: /path/to/coding-agent # default: the coding agent ForgeQE downloads
|
|
171
|
+
</span></span></code></pre></div>
|
|
172
|
+
<p><strong>What happens after the run passes.</strong></p>
|
|
173
|
+
<ol>
|
|
174
|
+
<li>
|
|
175
|
+
<p><strong>The handoff.</strong> ForgeQE writes <code>handoff.md</code> into the run folder. It holds:</p>
|
|
176
|
+
<ul>
|
|
177
|
+
<li>the goal and the result;</li>
|
|
178
|
+
<li>how ForgeQE's browser was set up: browser and version, headless or headed, user agent, <code>navigator.webdriver</code>,
|
|
179
|
+
launch switches, extra headers, language, time zone, viewport;</li>
|
|
180
|
+
<li>every step in order, with the value typed (secrets as <code>process.env.NAME</code>) and the JavaScript the browser agent ran;</li>
|
|
181
|
+
<li>the browser agent's own note before each group of steps: what it saw and why it acted. So a sign-in pop-up it
|
|
182
|
+
closed, or steps it redid after a banner covered the page, read as such;</li>
|
|
183
|
+
<li>each element's best locator and the others, with their confidence %;</li>
|
|
184
|
+
<li>a short table of each visited page's other elements, for assertions. Weak locators (under 30%) are left out, and
|
|
185
|
+
elements the steps already use are listed with the steps, so the handoff stays small. The full lists are in the
|
|
186
|
+
page-memory files it points to;</li>
|
|
187
|
+
<li>the browser agent's <strong>checks</strong>. Before it finishes, the browser agent records each result the goal asks to verify,
|
|
188
|
+
with the exact text the page showed (a text the page does not show is refused). They are saved in <code>workflow.yaml</code>
|
|
189
|
+
under <code>checks:</code>. The test asserts these and nothing else.</li>
|
|
190
|
+
</ul>
|
|
191
|
+
<p>The handoff also tells Quill what not to copy:</p>
|
|
192
|
+
<ul>
|
|
193
|
+
<li>The agent's result and the final URL come from one run on live data. They are checked as rules (the results load,
|
|
194
|
+
the order holds, the fields have the right format), not copied as expected values.</li>
|
|
195
|
+
<li>Pop-ups and banners the run met are handled wherever they appear (Playwright's locator handlers or the
|
|
196
|
+
repository's helper), since the next run can show them at another moment or not at all. The agent's retries are
|
|
197
|
+
not copied.</li>
|
|
198
|
+
<li>A site can serve different versions of a page to different visits (A/B tests, such as a classic search box or a
|
|
199
|
+
free-text one). The test handles every version the run or the agent saw, or waits for one control from either
|
|
200
|
+
version.</li>
|
|
201
|
+
</ul>
|
|
202
|
+
</li>
|
|
203
|
+
<li>
|
|
204
|
+
<p><strong>The replay.</strong> ForgeQE replays the run's steps as a Playwright script (<code><run>/replay/flow.mjs</code>), in the run's browser
|
|
205
|
+
setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step.</p>
|
|
206
|
+
<ul>
|
|
207
|
+
<li>Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire.</li>
|
|
208
|
+
<li>If the replay does not reach the run's final page, it runs again without Playwright's automation switches
|
|
209
|
+
(<code>navigator.webdriver</code> false, as in ForgeQE's browser). When only this second launch got through, the handoff says
|
|
210
|
+
the browser setup is the difference and which launch settings fix it.</li>
|
|
211
|
+
<li>The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a
|
|
212
|
+
dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other
|
|
213
|
+
locators matched, and a screenshot and page snapshot.</li>
|
|
214
|
+
<li>It saves Playwright's page snapshot of each page the replay visited (roles, accessible names and text, as the
|
|
215
|
+
replay left the page; the last page once it stops changing). Quill takes locators for its steps and assertions
|
|
216
|
+
from these real pages instead of guessing them.</li>
|
|
217
|
+
<li>On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its
|
|
218
|
+
text into the handoff: a heading or text match, the container it sits in when there are several, or the form field
|
|
219
|
+
that holds it. So assertions come with a locator that worked.</li>
|
|
220
|
+
<li>For a heading it also gives the part of the page the heading names (an element labelled by it, the section it
|
|
221
|
+
heads, or the element right after it), with its locator and how many links and list items it holds. So a check
|
|
222
|
+
such as "an In the news section with at least one item" is asserted inside that part, not on the heading alone.</li>
|
|
223
|
+
<li>A step that fails while every step after it still works and the replay reaches the final page (a click that did
|
|
224
|
+
nothing on the run, or a control this version of the page doesn't have) does not count as a failed replay. Quill
|
|
225
|
+
decides from the step whether the goal needs it and ports the rest as it is.</li>
|
|
226
|
+
<li>The first time, Playwright (about 13 MB) is downloaded into <code>~/.forgeqe/tools</code>. It drives the installed Chrome.</li>
|
|
227
|
+
<li>A run that only opened a page still replays when it recorded checks, to look them up. With neither, the replay is
|
|
228
|
+
skipped. <code>replay: false</code> turns it off.</li>
|
|
229
|
+
</ul>
|
|
230
|
+
<p>While the replay runs, Quill first reads the repository as a read-only agent: it cannot change files or use the live
|
|
231
|
+
browser yet. What it learns (the framework, the command that runs one test, where page objects and config live, the
|
|
232
|
+
conventions) is saved with page memory in <code>scribe-notes.json</code>, with the tests each job writes there. The next job in
|
|
233
|
+
the same repository starts from those notes and that list instead of reading the repository again, and extends those
|
|
234
|
+
tests' page objects when its flow overlaps. Notes older than 30 days are read again.</p>
|
|
235
|
+
</li>
|
|
236
|
+
<li>
|
|
237
|
+
<p><strong>Quill writes the test in the repository.</strong></p>
|
|
238
|
+
<ul>
|
|
239
|
+
<li>It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures and helpers, and follows the
|
|
240
|
+
imports between them.</li>
|
|
241
|
+
<li>It writes the test in the repository's language and framework (a C# NUnit repository gets a C# NUnit test), to fit
|
|
242
|
+
its code: it extends an existing page object instead of duplicating it, and reuses the login flow, test data and
|
|
243
|
+
config. A repository with no tests gets Playwright Test in TypeScript.</li>
|
|
244
|
+
<li>When the test case names a framework ("Framework: Cypress + TypeScript + Cucumber BDD"), the test is written in
|
|
245
|
+
that one, in the folder that holds its setup. A test in another framework is not run and never kept as passed.</li>
|
|
246
|
+
<li>It never changes the test-runner configuration the whole suite shares (<code>playwright.config.*</code>, <code>cypress.config.*</code>,
|
|
247
|
+
<code>wdio.conf.*</code>, Nightwatch's config, a <code>.runsettings</code>). Browser options a test needs to get the page the run got go
|
|
248
|
+
in that test's own file, and only those it needs (Playwright Test: a top-level <code>test.use({ ... })</code> in the spec,
|
|
249
|
+
where <code>channel</code> and <code>launchOptions</code> must be). ForgeQE puts back its changes to those files after each turn (a
|
|
250
|
+
repository with none keeps the one it sets up) and tells it to move the options into the test.</li>
|
|
251
|
+
<li>It does not change a project's packages either: changes to <code>package.json</code>, lockfiles, <code>.npmrc</code>, <code>requirements.txt</code>
|
|
252
|
+
or <code>pyproject.toml</code> are put back, and its shell cannot run an installer.</li>
|
|
253
|
+
</ul>
|
|
254
|
+
<p>Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the
|
|
255
|
+
project's own lockfile (<code>npm ci</code>, <code>pnpm install --frozen-lockfile</code>, <code>yarn install --frozen-lockfile</code>,
|
|
256
|
+
<code>bun install --frozen-lockfile</code>; with no lockfile). It also installs Cypress's app or
|
|
257
|
+
a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry
|
|
258
|
+
unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run. It is
|
|
259
|
+
not tried again in that session until the project's files change.</p>
|
|
260
|
+
<p>What Quill may not do itself, it asks for: a package, a command its shell refuses, or a change to <code>package.json</code>,
|
|
261
|
+
<code>requirements.txt</code>, <code>pyproject.toml</code> or the suite's shared test-runner config. ForgeQE checks the request first:</p>
|
|
262
|
+
<ul>
|
|
263
|
+
<li>registry names and exact versions only;</li>
|
|
264
|
+
<li>a command only as an argument list: never a shell, push, container, process-ending, download or database
|
|
265
|
+
command, and nothing naming ForgeQE's secrets;</li>
|
|
266
|
+
<li>never <code>.npmrc</code> or a lockfile by hand.</li>
|
|
267
|
+
</ul>
|
|
268
|
+
<p>Then it asks you, with exactly what it would run or change. Only a yes does it. A no, or a run nobody watches,
|
|
269
|
+
changes nothing, and Quill reports the test as blocked. The healing agent (<code>forgeqe heal</code>) and Link ask the same way,
|
|
270
|
+
and their own edits to package files and the shared test-runner config are put back before their tests run.</p>
|
|
271
|
+
<p><strong>Settings › Code › Help it gets › When an agent asks for more</strong> (<code>code.requests</code> in forgeqe.yaml) decides what
|
|
272
|
+
happens to a request: <code>ask</code> (the default) asks you each time; <code>allow</code> does it after ForgeQE's checks without asking,
|
|
273
|
+
also in a run nobody watches; <code>off</code> refuses every request. What is always refused (a shell, a push, <code>.npmrc</code>, a
|
|
274
|
+
lockfile by hand…) stays refused whatever it says.</p>
|
|
275
|
+
<p>Before Quill starts, ForgeQE reads the repository into a <strong>code graph</strong>, without a model: every class, page object,
|
|
276
|
+
method, property and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each
|
|
277
|
+
one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in
|
|
278
|
+
<code>~/.forgeqe/cache/code-graph</code>, nothing leaves the machine, and the next job reads again only the files that changed.</p>
|
|
279
|
+
<ul>
|
|
280
|
+
<li>The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test
|
|
281
|
+
id). So when the run clicked <code>getByRole('button', { name: 'Login' })</code> and the repository's <code>LoginPage.LoginButton</code>
|
|
282
|
+
uses <code>#login-button</code>, the handoff says under that step "in this repository: LoginPage.LoginButton … used by
|
|
283
|
+
LoginPage.SignInAsync", and Quill calls the existing method instead of writing a second locator.</li>
|
|
284
|
+
<li>Quill gets tools that answer from the graph instead of searches and whole-file reads. They find classes, methods
|
|
285
|
+
and tests by name or by the text a locator uses; outline a file's or class's signatures and locators, or show the
|
|
286
|
+
source of one member; say which member already locates an element; say what calls a member, before it is changed;
|
|
287
|
+
and list the tests a change reaches, through flows and base classes, whatever the test files are called.</li>
|
|
288
|
+
<li>The handoff outlines the page objects its steps use and includes the repository's test that uses the most of them.
|
|
289
|
+
Quill takes the test conventions from that test instead of reading other tests, and reads a settings file only to
|
|
290
|
+
change it.</li>
|
|
291
|
+
<li><code>graph: false</code> turns the code graph off.</li>
|
|
292
|
+
</ul>
|
|
293
|
+
</li>
|
|
294
|
+
<li>
|
|
295
|
+
<p><strong>Porting the steps.</strong> Quill writes the test from the handoff and the replay script. Steps that worked are ported with
|
|
296
|
+
their locators; steps that failed are fixed first. Every locator, including those for assertions, comes from the
|
|
297
|
+
replay script, the page snapshots, page memory, or a check on the page. Steps where the browser agent ran JavaScript
|
|
298
|
+
to look around are left out. Quill does not walk the flow again or build tests to explore.</p>
|
|
299
|
+
<p>Once a step fails (in the replay, or in its test), ForgeQE switches on its <strong>live browser</strong>: a Chrome that Playwright
|
|
300
|
+
drives, set up like ForgeQE's. Quill looks at the failing step's page one action at a time (open, snapshot, click,
|
|
301
|
+
type, wait, screenshot, run JavaScript, console errors, failed requests). Until then the live browser is off, so no
|
|
302
|
+
tokens go into looking at pages that work. The live browser needs Node.js (<code>npx</code>), and its tools are downloaded on
|
|
303
|
+
first use. With <code>live_browser: false</code>, or without <code>npx</code>, Quill looks with a small throwaway script instead.</p>
|
|
304
|
+
<p>When its browser gets a different page than ForgeQE's did (an error, a challenge, a control that will not open),
|
|
305
|
+
Quill compares the two browsers (user agent, <code>navigator.webdriver</code>, headless, failed requests and CORS errors, headers
|
|
306
|
+
the framework adds, console errors) and fixes the difference in the repository's browser configuration. It never
|
|
307
|
+
judges the site with <code>curl</code> or a web fetch.</p>
|
|
308
|
+
</li>
|
|
309
|
+
<li>
|
|
310
|
+
<p><strong>Quill hands the test over.</strong> Quill does not run the test itself. It may build or compile, then reports the test file
|
|
311
|
+
and the command that runs only that test, and ForgeQE runs it.</p>
|
|
312
|
+
<ul>
|
|
313
|
+
<li>If one command it runs fails <code>stall_after</code> times in a row (the same build again and again, say), ForgeQE stops
|
|
314
|
+
that turn and sends the command and its last output back, asking it to change approach. If the same command stalls
|
|
315
|
+
again, the job stops as a failure with that output in the notes.</li>
|
|
316
|
+
<li>The same goes for going round in circles: re-reading files, outlines or <code>git diff</code> it has already seen, unchanged,
|
|
317
|
+
<code>repeat_after</code> times; changing files it already changed <code>edit_after</code> times without handing the test over; or making
|
|
318
|
+
3 edits that fail because the file no longer has the lines it expected (it then reads the file once and edits from
|
|
319
|
+
that). Its turn stops and it is asked for the test, which ForgeQE then runs. If it does it again, the job stops.</li>
|
|
320
|
+
</ul>
|
|
321
|
+
<p>Every model call sends the whole conversation again, so ForgeQE keeps conversations short. Each attempt after the
|
|
322
|
+
first, a rerun of a job that stopped while writing, and carrying on after you raise the token budget all start a new
|
|
323
|
+
session from a brief: the handoff, the plan, the notes, and the files the job wrote as they are now.</p>
|
|
324
|
+
<ul>
|
|
325
|
+
<li>For a recording, what the planner already looked up in the code goes to Quill too, and the planner's tokens count
|
|
326
|
+
toward <code>max_tokens</code>.</li>
|
|
327
|
+
<li>When a session's calls are mostly re-sent in full rather than read from the model's cache, ForgeQE says so once.</li>
|
|
328
|
+
<li>At the token budget, the question says whether ForgeQE has run the test yet. An unattended write never asks and
|
|
329
|
+
stops there.</li>
|
|
330
|
+
<li>A job that stops says whether a test ever ran and which files it left changed in the repository.</li>
|
|
331
|
+
</ul>
|
|
332
|
+
</li>
|
|
333
|
+
<li>
|
|
334
|
+
<p><strong>ForgeQE runs the test.</strong> It runs the command (with <code>CI=1</code>), checks the exit code, and watches the processes the
|
|
335
|
+
command starts for a browser launched by Playwright, Puppeteer, Selenium or Cypress.</p>
|
|
336
|
+
<ul>
|
|
337
|
+
<li>On a failure it sends the command, exit code and output back to Quill. The output is kept short so the error is
|
|
338
|
+
never cut off. The page dump Playwright puts into a failed assertion ("Aria snapshot:", often thousands of lines)
|
|
339
|
+
is taken out and saved as <code><run>/test-runs/attempt-N-page.aria.yml</code>. Then the start (where the first error and its
|
|
340
|
+
stack trace are) and the end (the summary) are sent. The full output is in <code><run>/test-runs/attempt-N.log</code>, and the
|
|
341
|
+
prompt names both files.</li>
|
|
342
|
+
<li>A command that exits 0 without starting a browser also goes back: the test must drive the app in a browser. If the
|
|
343
|
+
repository's browser runs on another machine (Selenium Grid, a cloud service, a container), the agent says where
|
|
344
|
+
and the check is skipped.</li>
|
|
345
|
+
</ul>
|
|
346
|
+
</li>
|
|
347
|
+
<li>
|
|
348
|
+
<p><strong>A reviewer checks it.</strong> A passing test goes to a separate reviewer agent, which can read files and <code>git diff</code> but
|
|
349
|
+
not change anything.</p>
|
|
350
|
+
<ul>
|
|
351
|
+
<li>It checks the change against the goal and the test rules: every part of the goal done through the page and
|
|
352
|
+
asserted, generic page objects with data in the test, no values or URLs copied from the run, browser settings in
|
|
353
|
+
the repository's configuration, no leftover files.</li>
|
|
354
|
+
<li>The changed files come inline in its prompt, so it reads nothing again. It does not ask to replace locators or
|
|
355
|
+
texts that came from the replay or the checks, since those matched the live site.</li>
|
|
356
|
+
<li>It judges only what this job changed. ForgeQE records the working tree before the job, so your uncommitted edits,
|
|
357
|
+
your untracked files and ForgeQE's own files (<code>.forgeqe/</code>, <code>forgeqe.yaml</code>, <code>llms.json</code>) are never part of the
|
|
358
|
+
review.</li>
|
|
359
|
+
<li>It checks the diff of every file that existed before the job: removing or rewriting an existing test, even a
|
|
360
|
+
commented-out one, is a correctness problem.</li>
|
|
361
|
+
<li>Credentials come from the environment. The exception is a public demo login that the application itself shows to
|
|
362
|
+
anyone (such as the logins on saucedemo.com's sign-in page), which may stay in the repository's test data.</li>
|
|
363
|
+
<li>It gets the outlines of the classes the changed code uses, the repository's browser settings and the same
|
|
364
|
+
code-graph tools, so it checks reuse and settings without reading those files. The code graph also tells it what
|
|
365
|
+
the job added that it can check in the code: a new member that locates an element an existing member already
|
|
366
|
+
locates (to reuse instead), and new XPath or position-based locators.</li>
|
|
367
|
+
<li>If it finds problems, they go back to Quill as the next attempt.</li>
|
|
368
|
+
</ul>
|
|
369
|
+
<p>The terminal shows the exchange as it happens, in order: the reviewer's verdict with its reason and each issue
|
|
370
|
+
(✗ correctness, ~ coding standard) with the file and the fix it asks for; then why Quill tries again and what it is
|
|
371
|
+
fixing (the reviewer's issues, or the test's first error); then what Quill says it did and which files it changed;
|
|
372
|
+
then the next verdict:</p>
|
|
373
|
+
</li>
|
|
374
|
+
</ol>
|
|
375
|
+
<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">⏺ Reviewer asked for changes attempt 1 of 5 · 1 to fix, 1 coding-standard
|
|
376
|
+
</span></span><span class="ln"><span class="cmd"> ⎿ The test never checks that the pie chart is shown.
|
|
377
|
+
</span></span><span class="ln"><span class="cmd"> ✗ Correctness · tests/PracticeTests.cs: No assertion on the SVG pie chart.
|
|
378
|
+
</span></span><span class="ln"><span class="cmd"> Fix: Assert the chart's heading and SVG are visible.
|
|
379
|
+
</span></span><span class="ln"><span class="cmd"> ~ Coding standard · tests/PracticeTests.cs: Test data is inline.
|
|
380
|
+
</span></span><span class="ln"><span class="cmd"> Fix: Move it to the page object.
|
|
381
|
+
</span></span><span class="ln"><span class="cmd">⏺ Quill tries again · attempt 2 of 5 the reviewer asked for changes
|
|
382
|
+
</span></span><span class="ln"><span class="cmd"> ⎿ → tests/PracticeTests.cs: No assertion on the SVG pie chart. — fix: Assert the chart's heading and SVG are visible.
|
|
383
|
+
</span></span><span class="ln"><span class="cmd"> ⎿ Quill (attempt 2): Added the pie chart assertion · changed tests/PracticeTests.cs, Pages/PracticePage.cs
|
|
384
|
+
</span></span><span class="ln"><span class="cmd">⏺ Reviewer approved the test attempt 2 of 5
|
|
385
|
+
</span></span></code></pre></div>
|
|
386
|
+
<p>The Activities panel has one line for each verdict and attempt, and <code>forgeqe</code> commands outside the terminal UI print
|
|
387
|
+
the same blocks.</p>
|
|
388
|
+
<p>Quill cannot edit ForgeQE's files or run folders, and cannot run <code>git clean</code>, <code>git reset --hard</code>, <code>git stash</code>,
|
|
389
|
+
<code>git restore</code> or <code>git checkout -- <path></code>. If it still removes a file that existed before the job, or reverts your
|
|
390
|
+
uncommitted edits, ForgeQE puts the file back after that attempt and tells the agent.
|
|
391
|
+
8. <strong>Done, or stopped.</strong> The job is done when ForgeQE's run passes with a browser, the reviewer approves, and the test
|
|
392
|
+
passes again unchanged until it has passed <code>code.confirm_runs</code> times in a row (<strong>Settings › Code › Passes in a row
|
|
393
|
+
before a test counts</strong>; default 3, <code>1</code> runs it once). A test that passes and then fails is flaky: the next attempt is
|
|
394
|
+
told which run failed and why, and to make that step wait for the page.</p>
|
|
395
|
+
<p>It stops as a failure:</p>
|
|
396
|
+
<ul>
|
|
397
|
+
<li>after <code>max_attempts</code> attempts;</li>
|
|
398
|
+
<li>when the job passes <code>code.max_tokens</code>;</li>
|
|
399
|
+
<li>when the reviewer rejects a passing test twice, or the review cannot finish;</li>
|
|
400
|
+
<li>when the test fails the same way three times in a row (the same output apart from numbers such as timings and line
|
|
401
|
+
numbers). The second time, Quill is told its change did not change the failure and to look at the failing step
|
|
402
|
+
before changing code;</li>
|
|
403
|
+
<li>straight away, on an auth, API or context-limit error from the model.</li>
|
|
404
|
+
</ul>
|
|
405
|
+
<p><strong>Blocked is a last resort.</strong> The first time the agent reports that the app blocks it, ForgeQE sends it back to compare
|
|
406
|
+
its browser with ForgeQE's and fix the difference. Only a second blocked report, with what it compared, ends the job as
|
|
407
|
+
blocked.</p>
|
|
408
|
+
<p><strong>What you see.</strong> In the web app, the chat shows each step under the agent doing it, with the handover between them. In
|
|
409
|
+
the terminal, the transcript shows the handover and Quill's work as it goes; files it writes or edits are marked ✎:</p>
|
|
410
|
+
<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">┃
|
|
411
|
+
</span></span><span class="ln"><span class="cmd">┃ ▸ Handing over to the coding agent browser agent → coding agent
|
|
412
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
413
|
+
</span></span><span class="ln"><span class="cmd">┃ Flow Log in and open the invoices page on staging.app.test
|
|
414
|
+
</span></span><span class="ln"><span class="cmd">┃ Run .forgeqe/reports/20260928-172700/
|
|
415
|
+
</span></span><span class="ln"><span class="cmd">┃ Repo ../app
|
|
416
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
417
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Handoff written: .forgeqe/reports/20260928-172700/handoff.md (7 steps, 3 pages from page memory)
|
|
418
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Quill, the coding agent (azure/gpt-5.4), reads the handoff and writes a test in /work/app
|
|
419
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ Reading .forgeqe/reports/20260928-172700/handoff.md
|
|
420
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ Reading tests/pages/LoginPage.ts
|
|
421
|
+
</span></span><span class="ln"><span class="cmd"> ✎ Editing tests/invoices.spec.ts
|
|
422
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ Running npx playwright test tests/invoices.spec.ts
|
|
423
|
+
</span></span><span class="ln"><span class="cmd"> ▸ ForgeQE runs the test: npx playwright test tests/invoices.spec.ts
|
|
424
|
+
</span></span><span class="ln"><span class="cmd"> ✗ tests/invoices.spec.ts failed, exit 1 (attempt 1/5)
|
|
425
|
+
</span></span><span class="ln"><span class="cmd"> ▸ tests/invoices.spec.ts passed in 9s in Google Chrome; a reviewer checks it against the goal
|
|
426
|
+
</span></span><span class="ln"><span class="cmd"> ✓ tests/invoices.spec.ts passed and was approved (attempt 2/5)
|
|
427
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
428
|
+
</span></span><span class="ln"><span class="cmd">┃ ✓ Test passed 2/5 attempts · 3m 12s · 88.4K tokens · azure/gpt-5.4
|
|
429
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
430
|
+
</span></span><span class="ln"><span class="cmd">┃ Added openInvoices() to DashboardPage and reused the loginAs fixture.
|
|
431
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
432
|
+
</span></span><span class="ln"><span class="cmd">┃ Test tests/invoices.spec.ts (in ../app)
|
|
433
|
+
</span></span><span class="ln"><span class="cmd">┃ Command npx playwright test tests/invoices.spec.ts
|
|
434
|
+
</span></span><span class="ln"><span class="cmd">┃ Reused LoginPage, fixtures/auth.ts
|
|
435
|
+
</span></span><span class="ln"><span class="cmd">┃ Changed tests/invoices.spec.ts, tests/pages/DashboardPage.ts
|
|
436
|
+
</span></span><span class="ln"><span class="cmd">┃ Browser Google Chrome
|
|
437
|
+
</span></span><span class="ln"><span class="cmd">┃ Review approved: Opens the invoices page through the dashboard and checks the table columns.
|
|
438
|
+
</span></span></code></pre></div>
|
|
439
|
+
<p>After ForgeQE's reply, the request ends with the files it produced:</p>
|
|
440
|
+
<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">┃ ✓ What this produced
|
|
441
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
442
|
+
</span></span><span class="ln"><span class="cmd">┃ Report .forgeqe/reports/20260928-172700/report.html
|
|
443
|
+
</span></span><span class="ln"><span class="cmd">┃ ✓ Test ../app/tests/invoices.spec.ts passed when ForgeQE ran it
|
|
444
|
+
</span></span><span class="ln"><span class="cmd">┃ Command npx playwright test tests/invoices.spec.ts
|
|
445
|
+
</span></span><span class="ln"><span class="cmd">┃ Handoff .forgeqe/reports/20260928-172700/handoff.md
|
|
446
|
+
</span></span></code></pre></div>
|
|
447
|
+
<p>When no test was written, the Test row says why: the run did not pass, the session has <code>--no-code</code>, or the run was not
|
|
448
|
+
handed to the coding agent.</p>
|
|
449
|
+
<p><strong>The model Quill uses.</strong> Quill uses the active <code>llms.json</code> profile, or, with <code>llm.routing: auto</code>, the profile the router
|
|
450
|
+
picks for the <code>coding</code> area (<code>--profile</code> and <code>code.model</code> still win; see <a href="../area-setup/index.html#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>).</p>
|
|
451
|
+
<ul>
|
|
452
|
+
<li>The key stays in your environment: Quill's settings refer to it by name (<code>{env:WP_AZURE_API_KEY}</code>) and never contain
|
|
453
|
+
the value.</li>
|
|
454
|
+
<li>An <code>auth: entra</code> profile reaches the model through ForgeQE's local token gateway (see
|
|
455
|
+
<a href="../get-started/index.html#doc-how_to_use-signing-in-to-the-model-without-a-key-microsoft-entra-id">Signing in to the model without a key</a>).</li>
|
|
456
|
+
<li>An Azure profile uses the Responses API on <code><endpoint>/openai/v1</code>, with the deployment as the model.</li>
|
|
457
|
+
<li><code>openai_compatible</code> and <code>ollama</code> profiles use their <code>base_url</code>.</li>
|
|
458
|
+
<li>A <code>github_copilot</code> profile runs Quill through ForgeQE's Copilot gateway (see
|
|
459
|
+
<a href="../get-started/index.html#doc-how_to_use-github-copilot-seats-as-the-model">GitHub Copilot seats as the model</a>). <code>code.model: github-copilot/...</code> is refused,
|
|
460
|
+
because it would sign in through a third-party app on your GitHub account.</li>
|
|
461
|
+
<li><code>code.model: provider/model</code> (or <code>--code-model</code>) uses one of Quill's built-in providers instead, with that provider's
|
|
462
|
+
usual key variable (for example <code>ANTHROPIC_API_KEY</code> for <code>anthropic/...</code>).</li>
|
|
463
|
+
</ul>
|
|
464
|
+
<p><strong>What Quill may touch.</strong> Quill may edit files and run commands anywhere in the repository without asking. <code>git push</code> in
|
|
465
|
+
any form is denied (pushing goes through ForgeQE's guarded push, section 8). It cannot touch files outside the
|
|
466
|
+
repository, except the run and memory folders, which it may read.</p>
|
|
467
|
+
<p><strong>Writing a test for an earlier run.</strong> This is done at a terminal only:</p>
|
|
468
|
+
<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 code --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the latest run in .forgeqe/reports/
|
|
469
|
+
</span></span><span class="ln"><span class="cmd">forgeqe code .forgeqe/reports/20260928-172700 --repo ../app --attempts 3
|
|
470
|
+
</span></span></code></pre></div>
|
|
471
|
+
<p>Exit codes for <code>forgeqe code</code>, and for <code>forgeqe run --direct</code> with a repository: <code>0</code> test passed, <code>1</code> run or test failed,
|
|
472
|
+
<code>2</code> stopped. The result (status, attempts, test file, command, what was reused and changed, the browsers ForgeQE saw,
|
|
473
|
+
the review, the last test output, tokens) is saved as <code>code.json</code> in the run folder, next to <code>handoff.md</code>.</p>
|
|
474
|
+
<p><strong>Carrying on after a cut-off.</strong> Quill's job can be cut off: ForgeQE closed, the machine restarted, you stopped it, or
|
|
475
|
+
the model could not be reached. Start it again for the same run and repository, and Quill reopens the same session, with
|
|
476
|
+
everything it read and said, and carries on with the files it already wrote. It does not read the repository again, and
|
|
477
|
+
ForgeQE uses the Playwright replay it already finished. The session is kept in <code>scribe-session.json</code> in the run folder
|
|
478
|
+
until the job ends with a result.</p>
|
|
479
|
+
<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>
|
|
480
|
+
<ol>
|
|
481
|
+
<li>Open <strong>Record</strong> and open the recording.</li>
|
|
482
|
+
<li>Press <strong>Write the test</strong> (or <strong>Update the test</strong>) again. It reopens Quill's session and carries on from there.</li>
|
|
483
|
+
</ol>
|
|
484
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
485
|
+
<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 code .forgeqe/reports/20260928-172700 --repo ../app
|
|
486
|
+
</span></span></code></pre></div>
|
|
487
|
+
</div></div></div>
|
|
488
|
+
</section>
|
|
489
|
+
<section class="doc" id="doc-how_to_use-how-quill-writes-a-test">
|
|
490
|
+
<h4>How Quill writes a test</h4>
|
|
491
|
+
<div class="prose"><p><strong>Reuse before rebuild, extend before duplicate.</strong> Before Quill writes anything, ForgeQE measures what the repository's
|
|
492
|
+
tests already cover of the run, from evidence rather than guesswork. Each step and check the browser agent made on an
|
|
493
|
+
element is matched, through page memory, to the page-object member that locates it, and the repository's code says which
|
|
494
|
+
tests reach that member (through the page methods they call, or a property they assert, such as
|
|
495
|
+
<code>Expect(practicePage.AjaxStatus)</code>). Steps on elements no page object locates yet are listed as not measured, since a test
|
|
496
|
+
may do them its own way. Then:</p>
|
|
497
|
+
<div class="tbl tbl--cols-2"><table>
|
|
498
|
+
<thead>
|
|
499
|
+
<tr><th>What it finds</th><th>What happens</th></tr>
|
|
500
|
+
</thead>
|
|
501
|
+
<tbody>
|
|
502
|
+
<tr><td data-label="What it finds">One test covers every measured step and check</td><td data-label="What happens"><strong>Reuse</strong>: Quill only finds the command that runs it, and changes nothing. If it fails, nothing is changed: you are asked whether to update it or write a new test.</td></tr>
|
|
503
|
+
<tr><td data-label="What it finds">One test covers most (40% or more)</td><td data-label="What happens"><strong>Extend</strong>: Quill adds only the missing steps and checks to that test, keeping every step and assertion it has; the reviewer rejects a removed or weakened assertion, or the steps copied into a new file</td></tr>
|
|
504
|
+
<tr><td data-label="What it finds">Two or more tests cover most of it</td><td data-label="What happens"><strong>You choose</strong>: the evidence and the options (reuse, extend with how many steps it adds, a new test, cancel)</td></tr>
|
|
505
|
+
<tr><td data-label="What it finds">Nothing covers much</td><td data-label="What happens"><strong>New</strong>: a new test, reusing the page objects and helpers as before</td></tr>
|
|
506
|
+
</tbody>
|
|
507
|
+
</table></div>
|
|
508
|
+
<p>A card says which it did and why (<em>Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing</em>). Say how when you
|
|
509
|
+
know ("extend the login test", "write a separate test", "update it") and ForgeQE's agent passes that on without asking.
|
|
510
|
+
In every mode, Quill adds page-object members rather than changing what an existing member does for the other tests that
|
|
511
|
+
use it.</p>
|
|
512
|
+
<p><strong>Copied code is measured.</strong> Before Quill starts, ForgeQE notes the copies the repository already has. When the test
|
|
513
|
+
passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in
|
|
514
|
+
the test (<code>tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26</code>), and judges it by the test rules: a
|
|
515
|
+
copy that should reuse what is there is an issue Quill fixes. To turn it off, set <code>code.duplicates: false</code> (in the web
|
|
516
|
+
app, <strong>Settings › Code</strong>, <strong>Check for copied code</strong>).</p>
|
|
517
|
+
<p><strong>The same flow asked again.</strong> When a session writes tests and you ask for a flow an earlier job already wrote a test for,
|
|
518
|
+
ForgeQE runs that test first, before any browser run.</p>
|
|
519
|
+
<ul>
|
|
520
|
+
<li>If it passes in a real browser, that is the answer: no browser run, no Quill, and no new test file, in the seconds the
|
|
521
|
+
test takes (<em>✓ Existing test passed · 19s · no browser run or new test needed</em>).</li>
|
|
522
|
+
<li>If it fails, the flow runs in the browser and Quill updates that test instead of writing another.</li>
|
|
523
|
+
<li>Goals count as the same flow when they share their content words (endings, case and phrasing aside) and the new goal
|
|
524
|
+
keeps everything the earlier one checked. The same steps with a different final check, a shorter flow, or another site
|
|
525
|
+
are a new flow. The agent also runs fresh when you ask for a check the earlier test does not have.</li>
|
|
526
|
+
<li>Ask for "a fresh run" or "a new test" to skip the reuse.</li>
|
|
527
|
+
</ul>
|
|
528
|
+
<p><strong>The run as a test would do it.</strong> The browser agent works through the same page a test meets, and the handoff tells
|
|
529
|
+
Quill everything it did on the way:</p>
|
|
530
|
+
<ul>
|
|
531
|
+
<li>A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so
|
|
532
|
+
the agent closes it as a user would and that step is in the flow. The step after says what covered it, and "What
|
|
533
|
+
covered the page before a click" lists them. What the agent still does from a script (a click, typing to the page) is
|
|
534
|
+
named on its step, since a test cannot do it that way.</li>
|
|
535
|
+
<li>Locators are the ones Playwright finds: no link role for an <code><a></code> without <code>href</code> (Chrome calls it a link, Playwright
|
|
536
|
+
does not), icon-font characters kept out of names (a name with one becomes a <code>role_pattern</code>), and a control that
|
|
537
|
+
repeats on every row or card gets a locator scoped to its row (<code>#product-1 a.cart_quantity_delete</code>).</li>
|
|
538
|
+
<li>An element in a frame says which frame, and the replay reaches it through <code>frameLocator</code>. Advertisements (Google's
|
|
539
|
+
full-page ads, ad frames) are marked and left out of the replay, and "Ads on these pages" says to block the ad hosts in
|
|
540
|
+
the test instead of closing them.</li>
|
|
541
|
+
<li>A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the
|
|
542
|
+
test will (<code>suite.restore_sessions: true</code> keeps them; a login with no username and password to sign in with keeps its
|
|
543
|
+
session, the only way in), and from the case's own start page (its URL, first step, description, or preconditions).
|
|
544
|
+
When a run did start with saved sessions, "State the run started with" says so.</li>
|
|
545
|
+
</ul>
|
|
546
|
+
<p><strong>When the flow cannot be reproduced.</strong> If ForgeQE's own replay of the run could not reach the run's final page and
|
|
547
|
+
Quill's test fails too, Quill is told where the replay stopped and what was open on the page. That is usually a pop-up,
|
|
548
|
+
consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart). Quill gets
|
|
549
|
+
another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails
|
|
550
|
+
the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded.</p>
|
|
551
|
+
<p><strong>Why a test failed.</strong> When ForgeQE's run of Quill's test fails, the ✗ line and the next attempt say why in the test's own
|
|
552
|
+
words: dotnet test's Error Message, pytest's <code>E</code> lines, or the error with its Expected and Received values (Playwright,
|
|
553
|
+
Jest, JUnit), not the runner's summary line.</p>
|
|
554
|
+
<p><strong>Keeping Quill's cost down.</strong></p>
|
|
555
|
+
<ul>
|
|
556
|
+
<li><strong>The setup, read for Quill.</strong> ForgeQE reads the repository's test setup itself before Quill starts (stack, settings
|
|
557
|
+
files and their browser values, the test id attribute, base classes, page objects and their methods, one test command)
|
|
558
|
+
and hands it over, so Quill does not discover it with dozens of file reads.</li>
|
|
559
|
+
<li><strong>A fresh session per attempt.</strong> Each attempt after the first starts from a summary of the job (handoff, files changed,
|
|
560
|
+
what each attempt did, the latest failure), so later attempts cost about what the first did.</li>
|
|
561
|
+
<li><strong>Tried already.</strong> The summary has a "Tried already, and did not work" list: for each failed attempt, what Quill said
|
|
562
|
+
it did, how it failed, the locator the test was waiting for and the element that covered it and took the click, and
|
|
563
|
+
whether an earlier attempt already failed on that locator. Quill must not try those again in the same form and must say
|
|
564
|
+
what it does differently. <code>forgeqe heal</code> keeps the same list across its attempts.</li>
|
|
565
|
+
<li><strong>Limits.</strong> <code>code.max_attempts</code> (default 3) and <code>code.max_tokens</code> (default 1,500,000; <code>0</code> turns it off) cap a job
|
|
566
|
+
(<strong>Settings › Code</strong>, <strong>Attempts</strong> and <strong>Token limit per job</strong>). The token budget is checked during an attempt too, so
|
|
567
|
+
one long attempt is stopped when the total passes it. Cached input counts at its share of the model's input price, and
|
|
568
|
+
in full when no cached price is known, such as with another <code>code.model</code>. <code>code.max_steps</code> (default 50) caps the tool
|
|
569
|
+
calls in one of Quill's turns.</li>
|
|
570
|
+
<li><strong>Correctness first.</strong> The reviewer sorts its issues into correctness (the test does not test what the goal says, or
|
|
571
|
+
not reliably) and coding standards (test data or credentials in a page object, naming, hard waits, leftovers). Coding
|
|
572
|
+
standards never fail a test that works: it is accepted, and Quill gets one more round (not counted in <code>max_attempts</code>)
|
|
573
|
+
to fix them. If that round breaks the test, ForgeQE puts back the version that passed and lists the standards issues in
|
|
574
|
+
the notes (<code>code.tidy: false</code> skips the round).</li>
|
|
575
|
+
<li><strong>Rejected twice.</strong> A test the reviewer rejects twice for correctness stops the job with its issues, since that usually
|
|
576
|
+
means the test case and the page disagree.</li>
|
|
577
|
+
<li><strong>A working test kept.</strong> When a test passed and the reviewer sent it back, and the changes for the review then break it
|
|
578
|
+
(or the attempts or the token budget run out first), ForgeQE puts back the version that passed. The result is passed
|
|
579
|
+
but not approved, with the reviewer's issues in the notes, so you get a working test to finish instead of none.</li>
|
|
580
|
+
<li><strong>Less to read.</strong> Under each step, the handoff shows that step's part of the page (its section and neighbours) instead
|
|
581
|
+
of whole snapshots. When a test fails, ForgeQE shows the failing element on the test's page at the failure and on the
|
|
582
|
+
replay's page, so most failures are fixed without opening a browser.</li>
|
|
583
|
+
<li><strong>A live browser only when needed.</strong> Quill's live browser is switched on only when the same failure repeats, or from
|
|
584
|
+
the start when ForgeQE's own replay got through the flow in no setup. It does not send a page snapshot after every click
|
|
585
|
+
or keystroke.</li>
|
|
586
|
+
<li><strong>A cheaper reviewer.</strong> <code>code.review_profile</code> runs the reviewer on a cheaper model (<strong>Settings › Code</strong>, <strong>Checker's
|
|
587
|
+
model</strong>).</li>
|
|
588
|
+
</ul>
|
|
589
|
+
<p><strong>Quill's rulebook: the same mistake once.</strong> When a job passes after a failed test run or a reviewer's change, Quill's
|
|
590
|
+
report gives up to three one-line rules that would have avoided the mistake ("Wait for the cart badge with toHaveText
|
|
591
|
+
before clicking Checkout; it updates after a request"). ForgeQE keeps them in <code>.forgeqe/scribe-rules.json</code> in the
|
|
592
|
+
repository, and every attempt of later jobs, and every healing session, starts with them.</p>
|
|
593
|
+
<ul>
|
|
594
|
+
<li>Only a fix that worked becomes a rule: a lesson from a job that did not pass, or that passed at once, is not kept.</li>
|
|
595
|
+
<li>The book stays small, since it is sent with each model call: at most 15 rules of one line each. A lesson learned again
|
|
596
|
+
is merged into its rule (shown as "learned 3 times"). When it is full, the rule confirmed least and longest ago goes,
|
|
597
|
+
and a rule not learned again for 180 days expires.</li>
|
|
598
|
+
<li>The rules are the coding agent's own words, so a rule with a link, something like a token, a destructive command, or
|
|
599
|
+
wording that tells an agent to drop its instructions is refused. The agents are told they are hints that never override
|
|
600
|
+
their instructions or the team's guardrails.</li>
|
|
601
|
+
<li>Commit the file to share the rules with the team and see each change in review; edit or delete a rule there (the agents
|
|
602
|
+
cannot change <code>.forgeqe</code>).</li>
|
|
603
|
+
<li>ForgeQE says each new rule as it learns it (<code>Learned for next time: …</code>).</li>
|
|
604
|
+
<li>To turn it off, set <code>code.rulebook: false</code> (<strong>Settings › Code</strong>, <strong>Learn from its own mistakes</strong>).</li>
|
|
605
|
+
</ul>
|
|
606
|
+
</div>
|
|
607
|
+
</section>
|
|
608
|
+
<p class="see">See <a href="../area-setup/index.html#doc-how_to_use-generated-code">Generated code</a>.</p>
|
|
609
|
+
</div>
|
|
610
|
+
<article class="spec feat" id="cap-heal-tests">
|
|
611
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Heal failing tests</h3></div>
|
|
612
|
+
<p class="ds">Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead.</p>
|
|
613
|
+
<div class="facts">
|
|
614
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Heal the failing tests in ../app</li></ul></div>
|
|
615
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li></ul></div>
|
|
616
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>heal_tests</code></p></div>
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
</article>
|
|
620
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-fixing-broken-tests">
|
|
621
|
+
<h4>Fixing broken tests</h4>
|
|
622
|
+
<div class="prose"><p>When a redesign or a renamed button breaks tests, ForgeQE fixes them, or tells you the app is what broke.</p>
|
|
623
|
+
<p><strong>Healing failing tests.</strong> Give the command that runs the tests, or leave it to ForgeQE: it uses <strong>Settings › Code ›
|
|
624
|
+
Test command</strong> (<code>code.test_command</code>), or finds the command itself.</p>
|
|
625
|
+
<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>
|
|
626
|
+
<ol>
|
|
627
|
+
<li>Open <strong>New chat</strong>.</li>
|
|
628
|
+
<li>Say what is failing, for example <code>the checkout tests are failing after the redesign, fix them</code>.</li>
|
|
629
|
+
<li>Answer ForgeQE's questions in the chat as it works.</li>
|
|
630
|
+
</ol>
|
|
631
|
+
<p>The failures of a regression pack are healed from the pack's triage on the <strong>Regression</strong> page (see
|
|
632
|
+
<a href="#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a>).</p>
|
|
633
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
634
|
+
<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 heal --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the command from code.test_command, or the agent finds it
|
|
635
|
+
</span></span><span class="ln"><span class="cmd">forgeqe heal "npx playwright test tests/checkout" --repo ../app
|
|
636
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe heal -- npx playwright test --project=chromium</span><span class="pad"> </span><span class="cm"><span class="h">#</span> everything after -- is the command
|
|
637
|
+
</span></span></code></pre></div>
|
|
638
|
+
<p>In the shell or with <code>forgeqe run</code>, "the checkout tests are failing after the redesign, fix them" does the same through
|
|
639
|
+
ForgeQE's agent.</p>
|
|
640
|
+
</div></div><p><strong>Settings.</strong></p>
|
|
641
|
+
<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">code:
|
|
642
|
+
</span></span><span class="ln"><span class="cmd"> repo: ../app
|
|
643
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> test_command: npx playwright test</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional
|
|
644
|
+
</span></span></code></pre></div>
|
|
645
|
+
<p><strong>How it heals.</strong></p>
|
|
646
|
+
<ol>
|
|
647
|
+
<li>ForgeQE runs the command. If it passes, there is nothing to heal and no model is called.</li>
|
|
648
|
+
<li>Quill starts in the repository as a healing agent, with the failing output. For each failing test it reads the test
|
|
649
|
+
and the page objects it uses. Then it runs the test's flow again in the real browser with ForgeQE's browser agent,
|
|
650
|
+
from the goal in plain words, not the old selectors.</li>
|
|
651
|
+
<li>If the browser run passes, the test is out of date. The agent reads that run's steps and locators, updates the test
|
|
652
|
+
(in the page object when the locators live there), and runs it.</li>
|
|
653
|
+
<li>If the browser run fails at the step where the test fails, the app is broken there. The test is left as it is and the
|
|
654
|
+
failure is reported as an app bug.</li>
|
|
655
|
+
<li>It never deletes or skips a test, loosens an assertion, or raises a timeout to make a test pass.</li>
|
|
656
|
+
<li>ForgeQE runs each healed test's own command, then the whole command. A healed test that still fails goes back to the
|
|
657
|
+
agent with the output, and so does any other failure left in the whole run, until everything passes or
|
|
658
|
+
<code>code.max_attempts</code> rounds are used.</li>
|
|
659
|
+
</ol>
|
|
660
|
+
<p><strong>Limits.</strong> A heal is capped, as a coding job is:</p>
|
|
661
|
+
<ul>
|
|
662
|
+
<li>by <code>code.max_attempts</code>;</li>
|
|
663
|
+
<li>by each attempt's deadline (one browser run and two test runs);</li>
|
|
664
|
+
<li>by <code>code.max_tokens</code> for the whole job.</li>
|
|
665
|
+
</ul>
|
|
666
|
+
<p>At each of these, and at a browser run's steps or time, it asks whether to carry on when someone can answer: in a
|
|
667
|
+
terminal, in a chat, or on the <strong>Regression</strong> page for a pack's heal (the question shows under the job's output, with
|
|
668
|
+
<strong>Carry on</strong> and <strong>Stop here</strong>).</p>
|
|
669
|
+
<ul>
|
|
670
|
+
<li>At the deadline or the token budget, the agent carries on in the same session, keeping what it worked out.</li>
|
|
671
|
+
<li>After the last attempt, a yes gives it as many attempts again, from what it changed so far.</li>
|
|
672
|
+
<li><strong>Stop here</strong> keeps its changes.</li>
|
|
673
|
+
<li>No answer in 10 minutes on the page is a stop. <code>--yes</code>, a schedule or CI stops at the limit.</li>
|
|
674
|
+
</ul>
|
|
675
|
+
<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"> ▸ ForgeQE runs the tests: npx playwright test
|
|
676
|
+
</span></span><span class="ln"><span class="cmd"> ✗ Tests failed, exit 1 (41s)
|
|
677
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Quill (azure/gpt-5.4) is healing the failing tests in app
|
|
678
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ read tests/pages/LoginPage.ts
|
|
679
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Browser: Sign in to staging.app.test and open the invoices page
|
|
680
|
+
</span></span><span class="ln"><span class="cmd"> ✓ Task complete · 9 steps
|
|
681
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ edit tests/pages/LoginPage.ts
|
|
682
|
+
</span></span><span class="ln"><span class="cmd"> ▸ ForgeQE runs: npx playwright test tests/login.spec.ts
|
|
683
|
+
</span></span><span class="ln"><span class="cmd"> ✓ login › signs in passed in 6s
|
|
684
|
+
</span></span><span class="ln"><span class="cmd"> ▸ ForgeQE runs the tests: npx playwright test
|
|
685
|
+
</span></span><span class="ln"><span class="cmd"> ✗ Tests still fail, exit 1 (39s)
|
|
686
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
687
|
+
</span></span><span class="ln"><span class="cmd">┃ ✗ Tests still failing 2/5 attempts · 2m 40s · 61.2K tokens · azure/gpt-5.4
|
|
688
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
689
|
+
</span></span><span class="ln"><span class="cmd">┃ ✓ login › signs in healed
|
|
690
|
+
</span></span><span class="ln"><span class="cmd">┃ The Sign in button is now "Log in"; LoginPage uses the new label
|
|
691
|
+
</span></span><span class="ln"><span class="cmd">┃ ! invoices › totals app bug
|
|
692
|
+
</span></span><span class="ln"><span class="cmd">┃ The total column is empty; the browser run failed at the same step
|
|
693
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
694
|
+
</span></span><span class="ln"><span class="cmd">┃ 1 failure is in the app, not the tests; the tests were left as they are.
|
|
695
|
+
</span></span><span class="ln"><span class="cmd">┃ Command npx playwright test (exit 1 after 39s)
|
|
696
|
+
</span></span><span class="ln"><span class="cmd">┃ Changed tests/pages/LoginPage.ts
|
|
697
|
+
</span></span><span class="ln"><span class="cmd">┃ Report .forgeqe/reports/heal/20260929-101500/heal.md
|
|
698
|
+
</span></span></code></pre></div>
|
|
699
|
+
<p><strong>The report.</strong> <code>heal.md</code> and <code>heal.json</code> in <code>.forgeqe/reports/heal/<time>/</code> hold each test's verdict and reason, the
|
|
700
|
+
files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit
|
|
701
|
+
codes: <code>0</code> the tests pass (or nothing needed healing), <code>1</code> some still fail, <code>2</code> stopped.</p>
|
|
702
|
+
</div>
|
|
703
|
+
</section>
|
|
704
|
+
</div>
|
|
705
|
+
<article class="spec feat" id="cap-migrate-tests">
|
|
706
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Migrate a test suite</h3></div>
|
|
707
|
+
<p class="ds">Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO, Selenium or Robot Framework), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working.</p>
|
|
708
|
+
<div class="facts">
|
|
709
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Migrate the Selenium tests in tests/ to Playwright TypeScript</li></ul></div>
|
|
710
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a git repository with the tests to migrate</span></li></ul></div>
|
|
711
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>migrate_tests</code></p></div>
|
|
712
|
+
</div>
|
|
713
|
+
|
|
714
|
+
</article>
|
|
715
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-migrating-a-test-suite">
|
|
716
|
+
<h4>Migrating a test suite</h4>
|
|
717
|
+
<div class="prose"><p>ForgeQE moves a test suite to another framework or language.</p>
|
|
718
|
+
<div class="tbl tbl--cols-2"><table>
|
|
719
|
+
<thead>
|
|
720
|
+
<tr><th>From</th><th>To</th></tr>
|
|
721
|
+
</thead>
|
|
722
|
+
<tbody>
|
|
723
|
+
<tr><td data-label="From">Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework, Playwright</td><td data-label="To">Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#), Robot Framework (with the Browser library)</td></tr>
|
|
724
|
+
</tbody>
|
|
725
|
+
</table></div>
|
|
726
|
+
<p><code>forgeqe migrate targets</code> lists the targets, and a project can add its own (see "A framework ForgeQE does not ship"
|
|
727
|
+
below). A migration always starts with a plan, which writes
|
|
728
|
+
nothing. A person confirms the plan, then it runs.</p>
|
|
729
|
+
<p><strong>Planning and running a migration.</strong></p>
|
|
730
|
+
<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>
|
|
731
|
+
<ol>
|
|
732
|
+
<li>Open <strong>Migration</strong>. On <strong>Agent</strong>, describe the migration in your words; or open <strong>Migrations</strong> and press <strong>New</strong>.</li>
|
|
733
|
+
<li><strong>Source</strong>: pick <strong>This project</strong>, <strong>Git</strong>, <strong>Folder</strong>, <strong>Upload</strong> or <strong>Paste</strong>. For a private git repository, pick
|
|
734
|
+
the <strong>Access token</strong> by its saved name, or <strong>Add a token</strong>. The detected <strong>Framework</strong> shows here; for a stack
|
|
735
|
+
ForgeQE does not know, pick <strong>Other (name it)</strong>.</li>
|
|
736
|
+
<li><strong>Target</strong>: pick the framework and language the tests move to.</li>
|
|
737
|
+
<li><strong>Instructions</strong>: anything the agent should follow, such as "Page objects go in pages/, one class per page".</li>
|
|
738
|
+
<li><strong>Review</strong>: read what is possible and accept the limits.</li>
|
|
739
|
+
<li>Press <strong>Start</strong>, type the plan's id, and press <strong>Start</strong> again.</li>
|
|
740
|
+
</ol>
|
|
741
|
+
<p>The migration's page follows the job: its stages, every file, the tests (<strong>Fix</strong> sends one to the fixing agent with a
|
|
742
|
+
note), <strong>Compare</strong> with the source and target side by side, and the activity as it happens. <strong>Run</strong> runs every migrated
|
|
743
|
+
test again.</p>
|
|
744
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
745
|
+
<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 migrate plan --from tests --to playwright-typescript</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the source stack is detected
|
|
746
|
+
</span></span><span class="ln"><span class="cmd">forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only "checkout/**" \
|
|
747
|
+
</span></span><span class="ln"><span class="cmd"> --instructions "Page objects go in pages/, one class per page"
|
|
748
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate confirm mig-20261103-101500-ab12 --accept-limits</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a person at a terminal types the plan's id
|
|
749
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate run mig-20261103-101500-ab12</span><span class="pad"> </span><span class="cm"><span class="h">#</span> here, or as a job:
|
|
750
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12
|
|
751
|
+
</span></span><span class="ln"><span class="cmd">forgeqe migrate plan --git https://github.com/org/ui-tests.git --branch main --token-var GIT_TOKEN --to playwright-python
|
|
752
|
+
</span></span><span class="ln"><span class="cmd">forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript
|
|
753
|
+
</span></span><span class="ln"><span class="cmd">forgeqe migrate plan --from perf --stack other --tests "*.jmx" --support "*.groovy" --source-name JMeter --to playwright-typescript
|
|
754
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate verify mig-… [--workspace ws-…]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> run every migrated test again (no model)
|
|
755
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate fix mig-… --unit u006 --note "The payment page opens in a new tab"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the fixing agent on one file
|
|
756
|
+
</span></span></code></pre></div>
|
|
757
|
+
<p>In the shell, "migrate our Selenium tests to Playwright" makes the plan and shows it. You confirm it yourself, and
|
|
758
|
+
ForgeQE's agent can then run it or add the job. Exit codes of <code>migrate run</code>: <code>0</code> every test migrated, <code>1</code> some or none,
|
|
759
|
+
<code>2</code> stopped.</p>
|
|
760
|
+
</div></div><p><strong>Where the tests can come from.</strong></p>
|
|
761
|
+
<ul>
|
|
762
|
+
<li>This project.</li>
|
|
763
|
+
<li>A git repository (https or ssh). A token is named only by the credential that holds it. It is passed to git through
|
|
764
|
+
its environment, never in the URL, the command line or the clone's config.</li>
|
|
765
|
+
<li>A folder anywhere on this computer.</li>
|
|
766
|
+
<li>Files uploaded or pasted on the <strong>Migration</strong> page.</li>
|
|
767
|
+
</ul>
|
|
768
|
+
<p>A source outside the project is copied into a workspace of its own under ForgeQE's home and migrated there; the original
|
|
769
|
+
is never changed. Links, hidden files and dependency folders are not copied.</p>
|
|
770
|
+
<p><strong>A stack ForgeQE does not know.</strong> Name it with <code>--stack other</code> (on the page, <strong>Other (name it)</strong> under <strong>Framework</strong>):</p>
|
|
771
|
+
<ul>
|
|
772
|
+
<li><code>--tests</code> and <code>--support</code> give the file types of its tests and support code, as plain extensions (<code>*.jmx</code>,
|
|
773
|
+
<code>*.groovy</code>; never a pattern, a credential file or a binary).</li>
|
|
774
|
+
<li><code>--source-name</code> says what to call it.</li>
|
|
775
|
+
</ul>
|
|
776
|
+
<p>Those files become the units, and test data they name is copied; nothing else is migrated. The agent reads each file as
|
|
777
|
+
it is, and the plan names this as a limit to accept: ForgeQE runs none of its checks for known stacks first. For a
|
|
778
|
+
format it does not read itself, the checks after migration only ask that the test declares a test, skips none and
|
|
779
|
+
passes.</p>
|
|
780
|
+
<p>ForgeQE reads JMeter test plans (<code>.jmx</code>) itself, as untrusted XML (a document type or entity declaration is refused,
|
|
781
|
+
sizes capped). The agent gets an outline of each request, assertion, capture, CSV data set and script beside the file:
|
|
782
|
+
credential headers and secret-named values are never repeated, and Groovy or BeanShell is quoted as data, never run.
|
|
783
|
+
Each request becomes a call with the target's own HTTP client. Load settings (threads, ramp-up, timers) are named as a
|
|
784
|
+
limit and dropped. The values the plan's assertions expect (never one under "not") are what the proof in step 5 below
|
|
785
|
+
makes wrong, so a migrated test that ignores them fails, and one that never mentions them is reported.</p>
|
|
786
|
+
<p><strong>How a migration goes.</strong></p>
|
|
787
|
+
<ol>
|
|
788
|
+
<li>
|
|
789
|
+
<p><strong>Plan.</strong> ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed,
|
|
790
|
+
never followed), test files, the support code they import, feature files and test data. It orders the files so
|
|
791
|
+
support code comes before the tests that use it, names each target file by the target's conventions
|
|
792
|
+
(<code>test_login.py</code> for pytest, <code>LoginTest.java</code> for JUnit, <code>login.cy.ts</code> for Cypress), and checks what is possible.</p>
|
|
793
|
+
</li>
|
|
794
|
+
<li>
|
|
795
|
+
<p><strong>What is possible.</strong></p>
|
|
796
|
+
<ul>
|
|
797
|
+
<li>A <em>blocker</em> stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to
|
|
798
|
+
migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn,
|
|
799
|
+
dotnet) missing on this computer.</li>
|
|
800
|
+
<li>A <em>limit</em> is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium
|
|
801
|
+
cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried
|
|
802
|
+
over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit
|
|
803
|
+
names the files it affects; confirming accepts them all.</li>
|
|
804
|
+
</ul>
|
|
805
|
+
</li>
|
|
806
|
+
<li>
|
|
807
|
+
<p><strong>Confirm.</strong> A person confirms the plan: at a terminal by typing its id, or on the <strong>Migration</strong> page. The
|
|
808
|
+
confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never
|
|
809
|
+
already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan
|
|
810
|
+
again from the source and refuses it if the files, targets or limits changed.</p>
|
|
811
|
+
</li>
|
|
812
|
+
<li>
|
|
813
|
+
<p><strong>Run.</strong> The setup step makes the target folder a project of its own (<code>package.json</code> and <code>playwright.config.ts</code>,
|
|
814
|
+
<code>requirements.txt</code> and <code>conftest.py</code>, <code>pom.xml</code>, a <code>.csproj</code>). Then a fresh agent session per file writes its target
|
|
815
|
+
version.</p>
|
|
816
|
+
<ul>
|
|
817
|
+
<li>The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes
|
|
818
|
+
symbolic links, and checks the file is at the planned path.</li>
|
|
819
|
+
<li>For a test it also checks that every test of the source file is there, none is skipped or focused, and the
|
|
820
|
+
assertions were kept.</li>
|
|
821
|
+
<li>Then ForgeQE runs that one test with its own command, built from the plan (<code>npx playwright test login.spec.ts</code>,
|
|
822
|
+
<code>python3 -m pytest test_login.py</code>, <code>mvn -q test -Dtest=LoginTest</code>) and started without a shell. A failure goes back
|
|
823
|
+
to the agent with the output, up to <code>code.max_attempts</code> times.</li>
|
|
824
|
+
</ul>
|
|
825
|
+
</li>
|
|
826
|
+
<li>
|
|
827
|
+
<p><strong>Validate and fix.</strong> When every file is done, ForgeQE runs each migrated test again with all files in place, and
|
|
828
|
+
counts its tests against the source. A test that passes is then <em>proved to check something</em>, by experiment rather
|
|
829
|
+
than by reading its code:</p>
|
|
830
|
+
<ul>
|
|
831
|
+
<li>ForgeQE takes the values the source expected, writes a copy of the migrated test with each of them made wrong, and
|
|
832
|
+
runs it once more. <strong>That run has to fail.</strong></li>
|
|
833
|
+
<li>A test that passes either way does not check what its source checked, whatever its framework and however its
|
|
834
|
+
assertions are spelled, so it is not migrated.</li>
|
|
835
|
+
<li>A value the source checked that the migrated file never mentions at all is reported without a run.</li>
|
|
836
|
+
<li>The copy is put back in every case, and the "Checks proved" column of <code>migrate.md</code> says which tests were proved
|
|
837
|
+
this way.</li>
|
|
838
|
+
<li>Where there is nothing to make wrong (the source checks only computed values), assertion lines are counted
|
|
839
|
+
instead.</li>
|
|
840
|
+
</ul>
|
|
841
|
+
<p>Each test that fails goes to the fixing agent with its output, then runs again. You can also send a test to the
|
|
842
|
+
fixing agent yourself with a note: <strong>Fix</strong> on the page, or <code>forgeqe migrate fix</code>.</p>
|
|
843
|
+
</li>
|
|
844
|
+
<li>
|
|
845
|
+
<p><strong>Report.</strong> A test is <em>migrated</em> only when ForgeQE's run of it passed. A support file is migrated when a test that uses
|
|
846
|
+
it passed, and <em>written</em> otherwise. A file the agent could not do is <em>failed</em> or <em>cannot be migrated</em>, with why. The
|
|
847
|
+
run is <code>migrated</code> (every test), <code>partial</code> or <code>failed</code>. A model error never counts as a migrated file. The source
|
|
848
|
+
tests are never changed. <code>migrate.md</code> and <code>result.json</code> are in <code>.forgeqe/migrations/<plan>/</code>. The results are saved
|
|
849
|
+
after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.</p>
|
|
850
|
+
</li>
|
|
851
|
+
</ol>
|
|
852
|
+
<p><strong>A framework ForgeQE does not ship.</strong> Every target above is data, not code, and a project adds its own the same way: a
|
|
853
|
+
profile in <code>.forgeqe/migrate-targets/<id>.yaml</code>. So Karate, Gauge, Behave or anything else your team uses is a file you
|
|
854
|
+
write, not a release you wait for.</p>
|
|
855
|
+
<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 ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> .forgeqe/migrate-targets/karate-java.yaml
|
|
856
|
+
</span></span><span class="ln"><span class="cmd">id: karate-java
|
|
857
|
+
</span></span><span class="ln"><span class="cmd">title: Karate (Java)
|
|
858
|
+
</span></span><span class="ln ln--pair"><span class="cmd">framework: Karate</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a name of your own; ForgeQE needs to know nothing about it
|
|
859
|
+
</span></span><span class="ln ln--pair"><span class="cmd">language: java</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one ForgeQE knows how to name files for (see below)
|
|
860
|
+
</span></span><span class="ln"><span class="cmd">ext: .feature
|
|
861
|
+
</span></span><span class="ln ln--pair"><span class="cmd">needs: [mvn]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> programs a run needs; {python} is this computer's python
|
|
862
|
+
</span></span><span class="ln ln--pair"><span class="cmd">setup: [pom.xml, karate-config.js]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what the setup step writes before the first test
|
|
863
|
+
</span></span><span class="ln ln--pair"><span class="cmd">runs: [mvn, -q, test, "-Dtest={class}"]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the command for ONE test, as arguments: {file} {class} {python} {evidenceDir}
|
|
864
|
+
</span></span><span class="ln ln--pair"><span class="cmd">ran_nothing: ["No tests were executed"]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> output that means it ran nothing although it exited 0
|
|
865
|
+
</span></span><span class="ln"><span class="cmd">conventions: Feature files with Scenario blocks; match for assertions; one Runner per feature.
|
|
866
|
+
</span></span><span class="ln"><span class="cmd">evidence:
|
|
867
|
+
</span></span><span class="ln"><span class="cmd"> how: In karate-config.js, set the report directory to test-results.
|
|
868
|
+
</span></span><span class="ln"><span class="cmd"> video: false
|
|
869
|
+
</span></span></code></pre></div>
|
|
870
|
+
<p>The same profiles serve a Tosca conversion (<code>forgeqe tosca plan --to karate-java</code>), so a framework you added is
|
|
871
|
+
available to both.</p>
|
|
872
|
+
<p><strong>Approving a target.</strong> This is done at a terminal only, by a person who types the target's id:</p>
|
|
873
|
+
<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 migrate targets</span><span class="pad"> </span><span class="cm"><span class="h">#</span> lists it, and whether it is approved
|
|
874
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate target approve karate-java</span><span class="pad"> </span><span class="cm"><span class="h">#</span> shows the command it would run; you type the id
|
|
875
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate plan --from tests --to karate-java</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a target like any other from here on
|
|
876
|
+
</span></span></code></pre></div>
|
|
877
|
+
<p>Why the approval: a profile can come with the repository, and it names a program ForgeQE will start.</p>
|
|
878
|
+
<ul>
|
|
879
|
+
<li>It is read as untrusted: unknown keys, YAML aliases and anything but an argument list are refused, and a shell,
|
|
880
|
+
downloader, container, database client or file-moving command is refused outright.</li>
|
|
881
|
+
<li>What migrates is the exact copy you approved, kept with its digest in <code>.approved/</code>. Edit the profile afterwards and the
|
|
882
|
+
approved copy still runs, with <code>forgeqe migrate targets</code> saying it changed, until you approve it again.</li>
|
|
883
|
+
<li>An unapproved profile cannot be migrated to at all, and a profile can never take one of ForgeQE's own ids.</li>
|
|
884
|
+
<li>Nothing in a profile is ever run as a pattern or a command line: <code>ran_nothing</code> and <code>evidence.signs</code> are plain words
|
|
885
|
+
ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.</li>
|
|
886
|
+
</ul>
|
|
887
|
+
<p>Whether a profile is <em>right</em> is settled by running it, not by trusting it. The validate stage runs every migrated test
|
|
888
|
+
again with the values its source expected made wrong, so a command that does not really run the test, or never reports
|
|
889
|
+
a failure, passes both times and fails the migration instead of signing it off.</p>
|
|
890
|
+
<p>What a profile cannot do is invent a language. <code>language</code> is one of typescript, javascript, python, java, csharp, ruby or
|
|
891
|
+
robot, because where a test file goes and what its class is called is code (a Java test is
|
|
892
|
+
<code>src/test/java/<Class>.java</code>, a Python one <code>test_<name>.py</code>). A new framework in one of those languages is a profile; a
|
|
893
|
+
new language still needs a change to ForgeQE. <code>naming</code> adjusts the rest where a language has no convention of its own:
|
|
894
|
+
<code>naming: { test_suffix: .cy, test_dirs: [cypress, e2e], support_dirs: [cypress, support] }</code> is how Cypress is described.</p>
|
|
895
|
+
</div>
|
|
896
|
+
</section>
|
|
897
|
+
</div>
|
|
898
|
+
<article class="spec feat" id="cap-tosca-convert">
|
|
899
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Convert Tosca test cases</h3></div>
|
|
900
|
+
<p class="ds">Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with Bridge, after a plan the user confirms; every Tosca step and check is marked in the converted test and checked, secrets become environment variables, and ForgeQE runs each test itself.</p>
|
|
901
|
+
<div class="facts">
|
|
902
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Convert the Tosca export tosca/checkout.tsu to Playwright TypeScript</li></ul></div>
|
|
903
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a Tosca .tsu export inside a git repository</span></li></ul></div>
|
|
904
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>convert_tosca</code></p></div>
|
|
905
|
+
</div>
|
|
906
|
+
|
|
907
|
+
</article>
|
|
908
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-converting-tosca-tests">
|
|
909
|
+
<h4>Converting Tosca tests</h4>
|
|
910
|
+
<div class="prose"><p>ForgeQE converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with <strong>Bridge</strong>, its
|
|
911
|
+
Tosca agent. Bridge is a separate agent from a migration: a Tosca export is not a folder of code but a graph of test
|
|
912
|
+
cases, modules, reusable blocks and parameters. Bridge knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value
|
|
913
|
+
tokens, expressions, locators, and how each maps to every target).</p>
|
|
914
|
+
<p>A Tosca conversion may target any framework a migration may. So a target profile of your own
|
|
915
|
+
(<code>.forgeqe/migrate-targets/<id>.yaml</code>, see <a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a>) is a Tosca target as soon
|
|
916
|
+
as a person has approved it: <code>forgeqe tosca plan --file shop.tsu --to karate-java</code>. <code>forgeqe tosca targets</code> says which of
|
|
917
|
+
your own are approved, and an unapproved one is refused here exactly as it is for a migration.</p>
|
|
918
|
+
<p><strong>Converting a Tosca export.</strong> Put the export (<code>.tsu</code>) inside the repository first.</p>
|
|
919
|
+
<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>
|
|
920
|
+
<ol>
|
|
921
|
+
<li>Open <strong>Migration</strong>, open <strong>Migrations</strong> and press <strong>New</strong>.</li>
|
|
922
|
+
<li><strong>Export</strong>: pick the <strong>Tosca</strong> source. ForgeQE lists the <code>.tsu</code> exports in the project; pick one or several, or a
|
|
923
|
+
folder, or clone a git repository of exports (<strong>From a git repository</strong>). It reads them and lets you choose their
|
|
924
|
+
test cases. Or press <strong>Help me choose</strong> and say what to convert in your words (see "The assistant" below).</li>
|
|
925
|
+
<li><strong>Target</strong> and <strong>Instructions</strong>, as for a migration.</li>
|
|
926
|
+
<li><strong>Review</strong>: what can be migrated, <strong>Before it runs</strong> (what running the tests needs) and the <strong>Estimate</strong>. Answer or
|
|
927
|
+
accept what is open; <strong>Check again</strong> reads it again after you install a program or set a variable.</li>
|
|
928
|
+
<li>Press <strong>Start</strong>, type the plan's id and accept every limit. Tick <strong>Convert in batches</strong> to convert a few test cases at
|
|
929
|
+
a time (see "In batches" below).</li>
|
|
930
|
+
</ol>
|
|
931
|
+
<p>The conversion's page follows the job: its stages; every file, with how many of its Tosca steps the test does and its
|
|
932
|
+
whole output (<strong>Fix</strong> sends one back to Bridge with a note); each test case's Tosca steps beside the converted code, with
|
|
933
|
+
a step's lines marked and the locators Tosca recorded; and the activity as it happens. <strong>Run</strong> runs every converted test
|
|
934
|
+
again, and each suite has a button that runs only its tests. <strong>Report</strong> opens the report. <strong>More</strong> has <strong>Re-import</strong>, <strong>CI</strong>, <strong>Pull request</strong> and
|
|
935
|
+
<strong>Delete</strong>. Every conversion is listed with the other migrations on <strong>Migrations</strong>.</p>
|
|
936
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
937
|
+
<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 tosca inspect tosca/checkout.tsu</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what the export holds; no model, nothing written
|
|
938
|
+
</span></span><span class="ln"><span class="cmd">forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698_submit_order] [--test-attribute data-qa]
|
|
939
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca confirm tsc-20261105-151116-1f21 --accept-limits</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a person at a terminal types the plan's id
|
|
940
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca run tsc-20261105-151116-1f21</span><span class="pad"> </span><span class="cm"><span class="h">#</span> here, or as a job:
|
|
941
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs add tosca-ui --now -- tosca run tsc-20261105-151116-1f21
|
|
942
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca plan tosca/ --to playwright-typescript</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every .tsu in a folder, as one plan
|
|
943
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca clone https://github.com/org/tosca-exports.git --branch main --token-var GITHUB_TOKEN</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exports from git
|
|
944
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca plan --workspace ws-… --to playwright-typescript</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every export of that clone (or name some)
|
|
945
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca reimport tsc-… [--refresh]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read the exports again: a new plan that keeps unchanged tests
|
|
946
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca map tsc-… [--json]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each Tosca test case by its unique id, and what became of it
|
|
947
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what running the tests needs, before it starts
|
|
948
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca verify tsc-… [--suite Smoke]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> run the converted tests again, no model
|
|
949
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one file back to Bridge
|
|
950
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca targets</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the targets, this project's own included
|
|
951
|
+
</span></span></code></pre></div>
|
|
952
|
+
<p>In the shell, "convert tosca/checkout.tsu to Playwright" inspects the export and makes the plan; you confirm it
|
|
953
|
+
yourself. Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped.</p>
|
|
954
|
+
</div></div><p><strong>How a conversion goes.</strong></p>
|
|
955
|
+
<ol>
|
|
956
|
+
<li>
|
|
957
|
+
<p><strong>Read.</strong> ForgeQE reads the export with no model. It follows folders, reusable blocks with their parameter layers, If
|
|
958
|
+
and Loop, buffers, and SelfHealingData, and writes each test case in a neutral form with numbered steps
|
|
959
|
+
(<code>.forgeqe/tosca/<plan>/read/</code>). The export is data: nothing in it is run, and its size is capped.</p>
|
|
960
|
+
</li>
|
|
961
|
+
<li>
|
|
962
|
+
<p><strong>Secrets.</strong> Tosca-encrypted values cannot be decrypted outside the Tosca workspace, and ForgeQE never tries. They and
|
|
963
|
+
configuration parameters (<code>{CP[…]}</code>) become environment variables; the plan and <code>.env.example</code> name each one and
|
|
964
|
+
where it comes from in Tosca. Values never reach the agent, the plan or the code.</p>
|
|
965
|
+
</li>
|
|
966
|
+
<li>
|
|
967
|
+
<p><strong>Plan.</strong> One page object per Tosca module and one test per web test case, named by the target's conventions and
|
|
968
|
+
placed under the test case's Tosca folders (<code>tests/orders/cart/…</code>; Tosca's own <code>TestCases</code> and similar folders left
|
|
969
|
+
out).</p>
|
|
970
|
+
<ul>
|
|
971
|
+
<li>Tosca's execution lists become suites. Each test is tagged with the lists that run it (Playwright
|
|
972
|
+
<code>{ tag: ['@smoke'] }</code>, <code>@pytest.mark.smoke</code>, JUnit <code>@Tag</code>, NUnit <code>[Category]</code>, <code>@smoke</code> in a Cypress or WebdriverIO
|
|
973
|
+
title), and ForgeQE checks the tags are there.</li>
|
|
974
|
+
<li>Test cases whose steps are desktop, SAP, API or mobile are left out for now, and named.</li>
|
|
975
|
+
<li>A step ForgeQE cannot convert (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it
|
|
976
|
+
stays in the test as a marked comment for a person to finish.</li>
|
|
977
|
+
</ul>
|
|
978
|
+
</li>
|
|
979
|
+
<li>
|
|
980
|
+
<p><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal or on the page. The confirmation is kept
|
|
981
|
+
under ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</p>
|
|
982
|
+
</li>
|
|
983
|
+
<li>
|
|
984
|
+
<p><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of Bridge, which may edit only the
|
|
985
|
+
target folder. The agent marks each line that does a Tosca step with its id (<code>// tosca: n12</code>). ForgeQE's fidelity
|
|
986
|
+
check needs every step and check marked (only the branch that runs, for an If that is always true or false), no
|
|
987
|
+
skipped test, and assertions where Tosca checked. Then it runs the test with the target's own command. A failure goes
|
|
988
|
+
back to the agent with the output, up to <code>code.max_attempts</code> times. At the end every converted test runs again with
|
|
989
|
+
all files in place.</p>
|
|
990
|
+
</li>
|
|
991
|
+
<li>
|
|
992
|
+
<p><strong>Check again.</strong> <strong>Run</strong> on the conversion's page, or <code>forgeqe tosca verify <plan></code>, runs the converted tests again with
|
|
993
|
+
no model: all of them, one Tosca execution list (<code>--suite</code>), or named tests (<code>--unit</code>). Each test's steps and tags are
|
|
994
|
+
checked again, it is run with the target's own command, and its outcome and whole output are kept.
|
|
995
|
+
<code>tosca-suites.json</code> in the target folder lists each suite with its tag and test files, and each test with its Tosca
|
|
996
|
+
folders, suites and last outcome.</p>
|
|
997
|
+
</li>
|
|
998
|
+
<li>
|
|
999
|
+
<p><strong>Report.</strong> <code>tosca.md</code> in <code>.forgeqe/tosca/<plan>/</code> gives each test case's outcome and fidelity (steps marked of steps
|
|
1000
|
+
required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
|
|
1001
|
+
files that are done and unchanged.</p>
|
|
1002
|
+
<p><code>report.html</code> beside it is ForgeQE's HTML run report of the conversion, written when a run or <code>tosca verify</code> ends:
|
|
1003
|
+
one case per Tosca test case, its Tosca steps as passed, failed or left for a person, its problems and output, and
|
|
1004
|
+
its failure screenshot and video (in <code>report-cases/</code>, so the folder opens offline).</p>
|
|
1005
|
+
<p>The web app's <strong>Report</strong> shows the totals, the model's tokens and cost, and where the tests came from and went to at
|
|
1006
|
+
the top. The test cases are grouped as Failed, Needs a look, Passed, Not run and Left out, 50 at a time and
|
|
1007
|
+
searchable, with the picked one's details beside them. <strong>HTML report</strong> downloads <code>report.html</code> with the failure
|
|
1008
|
+
screenshots inside. <strong>Zip with videos</strong> downloads <code>report.zip</code> (<code>report.html</code> and <code>report-cases/</code> with every
|
|
1009
|
+
screenshot and video, made when asked and once the run has ended): unzip it and open <code>report.html</code>.</p>
|
|
1010
|
+
</li>
|
|
1011
|
+
<li>
|
|
1012
|
+
<p><strong>Screenshots and video, by default.</strong> Every test ForgeQE runs after the conversion (each try, the final run, and
|
|
1013
|
+
<code>tosca verify</code>) keeps a screenshot when it fails and a video of the run, under <code>test-results/</code> in the target folder
|
|
1014
|
+
(the run gets that folder as <code>FORGEQE_EVIDENCE_DIR</code>). They are copied to <code>.forgeqe/tosca/<plan>/evidence/<unit>/</code> and
|
|
1015
|
+
shown on the report page.</p>
|
|
1016
|
+
<ul>
|
|
1017
|
+
<li>Where the runner has switches for it, ForgeQE passes them itself (pytest-playwright's
|
|
1018
|
+
<code>--screenshot=only-on-failure --video=on</code>, Cypress's <code>--config video=true,…</code>).</li>
|
|
1019
|
+
<li>Elsewhere the setup step sets it up (<code>playwright.config</code>'s <code>screenshot: 'only-on-failure', video: 'on'</code>, a test base
|
|
1020
|
+
for Java and C#, an <code>afterTest</code> hook and wdio-video-reporter for WebdriverIO), and ForgeQE checks the project for
|
|
1021
|
+
it, setting it up again when it is missing.</li>
|
|
1022
|
+
<li>Selenium has no video recorder: its tests keep failure screenshots only.</li>
|
|
1023
|
+
</ul>
|
|
1024
|
+
</li>
|
|
1025
|
+
</ol>
|
|
1026
|
+
<p><strong>Several exports, or a git repository.</strong> A plan can read many <code>.tsu</code> files: picked on the page, named on the command
|
|
1027
|
+
line, or a folder (every export in it, at most 50). Each is read on its own and the readings merged:</p>
|
|
1028
|
+
<ul>
|
|
1029
|
+
<li>a test case that two exports both hold (same id, name, folders and steps) is converted once, and the plan says so;</li>
|
|
1030
|
+
<li>a different test case with the same id gets its export's number;</li>
|
|
1031
|
+
<li>a module of the same name becomes one page object;</li>
|
|
1032
|
+
<li>execution lists and variables join.</li>
|
|
1033
|
+
</ul>
|
|
1034
|
+
<p>Exports can come from a git repository instead of the project: <code>forgeqe tosca clone <url></code> (or <strong>From a git
|
|
1035
|
+
repository</strong> on the page) makes a shallow copy under ForgeQE's home. The same checks as a migration's clone apply: https
|
|
1036
|
+
or git@ only, no user name in the address, the token by its variable's name and only as a header, no hooks, submodules or
|
|
1037
|
+
links. The copy is kept only when it holds an export, and it is a Tosca source, never listed as a migration's. Every file
|
|
1038
|
+
of a plan is checked by its digest before each run, so a changed or removed export (or a removed copy) stops it until a
|
|
1039
|
+
new plan is made.</p>
|
|
1040
|
+
<p><strong>Back to Tosca.</strong> Each test case keeps Tosca's unique id (its surrogate). <code>tosca-map.json</code> in the target folder (beside
|
|
1041
|
+
<code>tosca-suites.json</code>, written by ForgeQE after each run and verify) lists every Tosca test case of the plan by that id,
|
|
1042
|
+
its Tosca path and export, and what became of it: its test file, last outcome, the Tosca steps in the test and those
|
|
1043
|
+
left for a person. <code>forgeqe tosca map <plan></code> prints it. The report shows the id on each test case and downloads it as a
|
|
1044
|
+
Traceability CSV, so a team can run both side by side and retire Tosca test cases one by one.</p>
|
|
1045
|
+
<p><strong>Reading the exports again.</strong> When Tosca changes, <strong>More › Re-import</strong> on the conversion's page (or
|
|
1046
|
+
<code>forgeqe tosca reimport <plan></code>) makes a new plan from the same exports, for the same target and folder. It compares each
|
|
1047
|
+
test case with the earlier plan by its unique id (or, for a plan made before ids were kept, its id) and its steps:</p>
|
|
1048
|
+
<ul>
|
|
1049
|
+
<li>unchanged ones keep their tests (no agent call, as long as the file is still as it was converted);</li>
|
|
1050
|
+
<li>changed and new ones are converted;</li>
|
|
1051
|
+
<li>ones no longer in the exports are listed, with their tests left in place for a person to remove;</li>
|
|
1052
|
+
<li>test cases left unpicked before stay unpicked.</li>
|
|
1053
|
+
</ul>
|
|
1054
|
+
<p><strong>Get the newest commit of the cloned repositories</strong> (or <code>--refresh</code>) clones each repository again for its newest
|
|
1055
|
+
commit; the old copy stays for the old plan.</p>
|
|
1056
|
+
<p><strong>What can be migrated.</strong> <code>forgeqe tosca inspect</code>, <code>show</code> and the page's <strong>What can be migrated</strong> put every test case of
|
|
1057
|
+
the export in one kind:</p>
|
|
1058
|
+
<ul>
|
|
1059
|
+
<li>web (converted), or web with steps for a person;</li>
|
|
1060
|
+
<li>API (converted), or API with steps for a person;</li>
|
|
1061
|
+
<li>web and API (converted);</li>
|
|
1062
|
+
<li>web or API mixed with another engine (converted: its web and API steps; each desktop, mobile or database step stays in
|
|
1063
|
+
the test as a marked comment saying what it does, for a person to code);</li>
|
|
1064
|
+
<li>desktop, mobile, database and files;</li>
|
|
1065
|
+
<li>steps nothing reads, nothing to convert, not picked.</li>
|
|
1066
|
+
</ul>
|
|
1067
|
+
<p>Each kind says what becomes of it and the Tosca modules (with their engine) behind it, or, for steps left to a person,
|
|
1068
|
+
the reasons. The page downloads it as a CSV per test case.</p>
|
|
1069
|
+
<p><strong>Ready to run.</strong> Before a conversion starts, ForgeQE checks what running its tests needs and asks for what is missing
|
|
1070
|
+
(<strong>Before it runs</strong> on the page, or <code>forgeqe tosca ready <plan></code>):</p>
|
|
1071
|
+
<ul>
|
|
1072
|
+
<li>where the tests start: the address the export recorded, an app of env.yaml (never an environment named like
|
|
1073
|
+
production), or one given (http(s) only, no user name in it);</li>
|
|
1074
|
+
<li>every environment variable the tests read: set, or saved in the credential store from the page, never its value in a
|
|
1075
|
+
file;</li>
|
|
1076
|
+
<li>the programs the target runs with (<code>npx</code>, <code>mvn</code>, <code>dotnet</code>, looked up on PATH);</li>
|
|
1077
|
+
<li>Tosca test data the export does not hold.</li>
|
|
1078
|
+
</ul>
|
|
1079
|
+
<p>A missing address or program blocks the start; a variable or the test data is answered or accepted ("convert without
|
|
1080
|
+
it"). Answers are kept in <code>.forgeqe/tosca/<plan>/ready.json</code>. <code>run</code>, <code>fix</code> and <code>verify</code> refuse until nothing is open, and
|
|
1081
|
+
the tests get the reviewed address as <code>BASE_URL</code>.</p>
|
|
1082
|
+
<p><strong>What it may cost.</strong> Review's <strong>Estimate</strong> (and <code>forgeqe tosca show</code> or <code>confirm</code>) gives the model tokens of the files
|
|
1083
|
+
still to write, as a range, and their price with the model Bridge is routed to, when that model has a price in
|
|
1084
|
+
<code>llms.json</code> (<code>price:</code>; none for a Copilot seat). It is worked out from this project's earlier Tosca conversions once they
|
|
1085
|
+
have written at least 5 files (tokens per file), else from defaults sized by each test case's steps. Files already
|
|
1086
|
+
written are not counted again. It is an estimate, never a limit: a hard test case takes more tries.</p>
|
|
1087
|
+
<p><strong>The assistant.</strong> <strong>Help me choose</strong> (under <strong>New</strong>, then the <strong>Tosca</strong> source) lets you say in your words what to
|
|
1088
|
+
convert ("checkout.tsu to Playwright in TypeScript on QA, into e2e/tosca"). The assistant asks only what it still needs,
|
|
1089
|
+
one thing at a time: the exports, the framework, the language, where the tests start, then a folder or rules for the
|
|
1090
|
+
code. Each question offers its options to pick; you can also type, and change anything you said. <strong>Open the prefilled
|
|
1091
|
+
wizard</strong> then reads the exports, makes the plan and opens it on Review with every stage filled in. Nothing starts until
|
|
1092
|
+
you confirm.</p>
|
|
1093
|
+
<ul>
|
|
1094
|
+
<li>A model with no tools only reads your words. ForgeQE keeps only what your project has (an export it lists, a target it
|
|
1095
|
+
runs, a web app of env.yaml outside production), an address only of http(s) that you wrote and that is not
|
|
1096
|
+
production's, and a folder only inside the repository. ForgeQE chooses the next question itself. Without a model,
|
|
1097
|
+
ForgeQE's rules read the same words.</li>
|
|
1098
|
+
<li>The exports question lets you pick several, or clone a git repository of exports: paste its address (add
|
|
1099
|
+
"branch <name>" for a branch), and the assistant asks <strong>Clone it</strong> first. It clones as the wizard does and picks the
|
|
1100
|
+
clone's exports.</li>
|
|
1101
|
+
<li>For a private repository, the question has an <strong>Access token</strong> field. Pick a token already saved (in <strong>Settings ›
|
|
1102
|
+
Secrets</strong> under Repository tokens, or a variable such as GITHUB_TOKEN; <strong>Check again</strong> reads the list once you have
|
|
1103
|
+
saved one there), or <strong>Add a token</strong>, which keeps the value in ForgeQE's credential store under its name. The chat and
|
|
1104
|
+
the model only ever see the name. <strong>Clone it</strong> waits until a value is saved, and a token typed into the chat itself is
|
|
1105
|
+
refused and never sent.</li>
|
|
1106
|
+
<li>When the picked exports hold desktop or mobile test cases, or database checks, the assistant also asks which desktop
|
|
1107
|
+
or mobile app their workflows start and which database their queries read (only the names Settings has, or <strong>Tell you
|
|
1108
|
+
later</strong>). The wizard puts the answers on Review.</li>
|
|
1109
|
+
<li>Each conversation is kept in ForgeQE's home (<code>~/.forgeqe/tosca-assistant</code>, readable by you only, two weeks, the newest
|
|
1110
|
+
30), so it survives <code>forgeqe web</code> starting again, and the page reopens the last one. <strong>New conversation</strong> removes it.
|
|
1111
|
+
Nothing is written to the project until the wizard makes the plan (or you agree to a clone).</li>
|
|
1112
|
+
</ul>
|
|
1113
|
+
<p><strong>API test cases.</strong> Test cases of Tosca's API engine are converted too, alone or in a test case with web steps. (They are
|
|
1114
|
+
API Scan modules: one per call, its Method, Endpoint and Resource as the module's settings, the request and the response
|
|
1115
|
+
as attribute trees.)</p>
|
|
1116
|
+
<ul>
|
|
1117
|
+
<li>Each call becomes a request with the target's own HTTP client (Playwright's <code>request</code>, Cypress's <code>cy.request</code>, Node's
|
|
1118
|
+
<code>fetch</code> for WebdriverIO, the language's standard client for Selenium); no dependency is added for HTTP.</li>
|
|
1119
|
+
<li>Then comes a check for each Tosca verify: the status, a header, a JSON value (Tosca's <code>==</code>, <code>!=</code>, <code><</code>, <code>></code>, <code>*</code>
|
|
1120
|
+
comparisons kept) or the body. A buffer keeps a response value for a later call.</li>
|
|
1121
|
+
<li>The API's address and any token in a header (<code>Bearer {CP[ApiToken]}</code>) are variables the tests read, the token a
|
|
1122
|
+
secret, never in the code.</li>
|
|
1123
|
+
<li>An attribute ForgeQE cannot place (a timeout, a certificate) stays a marked comment for a person, and the fidelity
|
|
1124
|
+
check counts every request and check as it does a web step.</li>
|
|
1125
|
+
<li>A plan of API test cases only needs no start address. A variable the tests read that holds an address of production
|
|
1126
|
+
in env.yaml blocks the start, since the tests change data.</li>
|
|
1127
|
+
</ul>
|
|
1128
|
+
<p><strong>Tosca's test data.</strong> A template test case reads its values from a TestCaseDesign test sheet (<code>{XL[Name]}</code>), which a
|
|
1129
|
+
<code>.tsu</code> export does not hold. Under <strong>Before it runs</strong>, pick <strong>A data file of the project</strong> and press <strong>Use it</strong> (or run
|
|
1130
|
+
<code>forgeqe tosca data <plan> <file> [--sheet NAME]</code>). The file is Tosca's Export to Excel of the test sheet, or any CSV,
|
|
1131
|
+
Excel or JSON with the values. Several files can be named, one per test sheet.</p>
|
|
1132
|
+
<ul>
|
|
1133
|
+
<li>ForgeQE matches each name to a column (ignoring case, spaces and punctuation, then by the last part of a dotted name),
|
|
1134
|
+
in either layout: one row per instance, or Tosca's own with the attributes down the first column and the instances
|
|
1135
|
+
across.</li>
|
|
1136
|
+
<li>At conversion, each test case whose values are all found gets its rows in <code>tosca-data/<case>.json</code> in the target
|
|
1137
|
+
folder, with only the columns it reads, and its test runs once per row.</li>
|
|
1138
|
+
<li>A value named like a password or token is never written to that file (it would be committed). The test reads it from
|
|
1139
|
+
an environment variable, <code>TOSCA_DATA_<NAME></code>, which Review lists to set like any other.</li>
|
|
1140
|
+
<li>The file is read with the project's own reader (inside the project, no hidden part, no link out, sizes capped, a
|
|
1141
|
+
formula never worked out), and the values never reach the agent: it is told the file and the names.</li>
|
|
1142
|
+
<li>A value still not found stays a marked spot for a person, or you accept leaving them all for a person (<strong>Leave them
|
|
1143
|
+
for a person</strong>).</li>
|
|
1144
|
+
<li><code>{XL[...]}</code> is kept as test data even inside a longer value (<code>Welcome {XL[Customer.FirstName]}</code>). Before, a <code>$XL:</code>
|
|
1145
|
+
text could reach a test as typed text.</li>
|
|
1146
|
+
</ul>
|
|
1147
|
+
<p><strong>Database steps.</strong> A Tosca database step (a module of a database engine: an SQL statement and checks of its result)
|
|
1148
|
+
becomes code in the test. The code runs the statement with the target's own database client and asserts each checked
|
|
1149
|
+
cell (row and column) as Tosca did, beside the test's web and API steps. A test case of database checks alone is
|
|
1150
|
+
converted too.</p>
|
|
1151
|
+
<ul>
|
|
1152
|
+
<li>Only a statement that reads is converted: one <code>SELECT</code> (or <code>WITH … SELECT</code>), nothing that changes data or the schema,
|
|
1153
|
+
runs a procedure, writes a table or holds a second statement.</li>
|
|
1154
|
+
<li>A statement Tosca fills with its own values (<code>{B[...]}</code>, <code>{CP[...]}</code>, <code>{XL[...]}</code>) is converted with each value as a
|
|
1155
|
+
bound query parameter, never pasted into the statement. One whose value sits inside quotes, and any other statement,
|
|
1156
|
+
stays a marked comment for a person.</li>
|
|
1157
|
+
<li>Before it runs, Review asks which database: one of <strong>Settings › Databases</strong> whose connection string is in a variable
|
|
1158
|
+
(<code>url_env</code>), never one named like production (<code>forgeqe tosca ready <plan> --database NAME</code>).</li>
|
|
1159
|
+
<li>The test reads that connection string from <code>TOSCA_DB_URL</code>, which ForgeQE gives only the test run. The export's own
|
|
1160
|
+
connection string (and any password in it) is never read into the plan, the brief or the code. The CI pipeline names
|
|
1161
|
+
<code>TOSCA_DB_URL</code> as a secret.</li>
|
|
1162
|
+
</ul>
|
|
1163
|
+
<p><strong>File and Excel steps.</strong> A Tosca step that reads a file (a TBox file module: whether it is there, its text, two text
|
|
1164
|
+
files compared) or a workbook (Tosca's Excel engine: a sheet's cells) becomes a check in the test, made with the target's
|
|
1165
|
+
own code, read only, as database steps are. The file is found by its name, among the files the test downloaded or in the
|
|
1166
|
+
folder <code>TOSCA_FILES_DIR</code> names (Review asks for it), never at the Tosca machine's own path. A step that writes, copies,
|
|
1167
|
+
moves, renames or deletes a file, or sets a cell, stays a marked comment for a person.</p>
|
|
1168
|
+
<p><strong>Desktop and mobile test cases.</strong> A Tosca test case of desktop steps (UI Automation: WinForms, WPF, Win32) or of mobile
|
|
1169
|
+
steps becomes one of ForgeQE's own workflows, <code>forgeqe-desktop-v1</code> or <code>forgeqe-mobile-v1</code>, written with no model. Tosca
|
|
1170
|
+
finds each control by its UI Automation properties (AutomationId, Name, ControlType, ClassName) or its resource id,
|
|
1171
|
+
accessibility id, text and class, which are what a workflow's targets are.</p>
|
|
1172
|
+
<ul>
|
|
1173
|
+
<li>Each step becomes a workflow step (type, click or tap, select, keys, expect, wait for); a Tosca-encrypted value becomes
|
|
1174
|
+
<code>{{secret:NAME}}</code>, and test data <code>{{name}}</code>.</li>
|
|
1175
|
+
<li>With a data file picked on Review (see Tosca's test data), its rows go into <code><case>.data.csv</code> beside the workflow, for
|
|
1176
|
+
<code>--data</code>. A value named like a secret is typed from <code>TOSCA_DATA_<NAME></code> instead and never written.</li>
|
|
1177
|
+
<li>A step a workflow cannot do (a condition, a loop, a buffer, a Tosca expression, a TBox module, a control with no id or
|
|
1178
|
+
name recorded) is left out and listed with why in the conversion's results, for a person to add.</li>
|
|
1179
|
+
<li>Before it runs, Review asks which app the workflows start: one of the desktop or mobile apps of <strong>Settings ›
|
|
1180
|
+
Environments</strong> (or <code>desktop.apps</code>, <code>mobile.apps</code>); at a terminal,
|
|
1181
|
+
<code>forgeqe tosca ready <plan> --desktop-app NAME --mobile-app NAME</code>.</li>
|
|
1182
|
+
<li>Review also checks that every secret the workflows type is listed in <code>desktop.secrets</code> (or <code>mobile.secrets</code>), which
|
|
1183
|
+
replay requires, and says which to add in Settings.</li>
|
|
1184
|
+
<li>The workflows are written under <code>workflows/</code> in the target folder (so the pull request carries them) and checked again
|
|
1185
|
+
before they are written. Replay them on a computer with the app, or a device, with <code>forgeqe desktop replay</code> or
|
|
1186
|
+
<code>forgeqe mobile replay</code>.</li>
|
|
1187
|
+
<li>A plan of workflows only needs no model and no setup.</li>
|
|
1188
|
+
<li>SAP GUI, Java Swing, Delphi and PowerBuilder controls are not ones UI Automation finds, so such cases stay out.</li>
|
|
1189
|
+
</ul>
|
|
1190
|
+
<p>In a case that also drives the web or an API, each run of desktop or mobile steps becomes a small workflow of its own
|
|
1191
|
+
(<code>workflows/<case>-part<N>.yaml</code>). The test replays it at that point by starting <code>forgeqe desktop replay</code> (or
|
|
1192
|
+
<code>mobile replay</code>) with an argument list, failing when it fails. ForgeQE's own runs (and the CI file's tests job) set
|
|
1193
|
+
<code>TOSCA_SKIP_APP_STEPS=1</code>, so the test skips those parts on a computer without the app; a run on a machine with the app
|
|
1194
|
+
and ForgeQE installed leaves it unset. Steps a workflow cannot do (SAP GUI, Java Swing) stay marked comments.</p>
|
|
1195
|
+
<p><strong>In batches.</strong> A large export need not be one long run. Tick <strong>Convert in batches</strong> when you start (or
|
|
1196
|
+
<code>forgeqe tosca run <plan> --batch N</code>), and ForgeQE converts the set-up, then the next N test cases not tried yet with the
|
|
1197
|
+
page objects they use, checks every converted test again, and stops. The others wait for a later batch. Check the batch
|
|
1198
|
+
(fix a test, or accept it), then press <strong>Continue with the next batch</strong> on the conversion's page (or run the same command
|
|
1199
|
+
again). What is done is kept. A test that failed is never tried again by a batch (fix it with <strong>Fix</strong>), so one hard case
|
|
1200
|
+
never stalls the rest. A run without <code>--batch</code> tries everything not done.</p>
|
|
1201
|
+
<p><strong>A CI pipeline per execution list.</strong> When a conversion has run, <strong>More › CI</strong> on its page (or
|
|
1202
|
+
<code>forgeqe tosca ci <plan> [--azure] [--write]</code>) gives a GitHub Actions workflow or an Azure Pipelines file. It runs the
|
|
1203
|
+
converted tests in your CI, one job per Tosca execution list with the runner's own filter (Playwright's <code>--grep @tag</code>,
|
|
1204
|
+
pytest's <code>-m</code>, Maven's <code>-Dgroups</code>, <code>dotnet test --filter TestCategory=</code>), picked by hand (one list or all) or on a pull
|
|
1205
|
+
request that changes the target folder.</p>
|
|
1206
|
+
<ul>
|
|
1207
|
+
<li>It sets up the target's toolchain, installs the dependencies and browsers, and keeps the failure screenshots and videos
|
|
1208
|
+
as artifacts.</li>
|
|
1209
|
+
<li>It names the variables the tests read: <code>BASE_URL</code> as a variable and the others as secrets, by name only
|
|
1210
|
+
(<code>${{ secrets.NAME }}</code>, <code>$(NAME)</code>), passed to the step that runs the tests and not to the installs. No value, address
|
|
1211
|
+
or Tosca text goes in the file.</li>
|
|
1212
|
+
<li>Copy it, <strong>Download</strong> it, or <strong>Add to the target folder</strong> (its <code>ci/</code>, so the pull request carries it). GitHub runs a
|
|
1213
|
+
workflow only from <code>.github/workflows/</code>, so move it there.</li>
|
|
1214
|
+
<li>Desktop and mobile workflows replay in jobs of their own (<code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code> of each,
|
|
1215
|
+
with its <code>.data.csv</code>, results as JUnit), with ForgeQE installed at this version: the desktop job on a self-hosted
|
|
1216
|
+
Windows runner or agent that has the app, the mobile one on a hosted runner with a device cloud set in <code>forgeqe.yaml</code>
|
|
1217
|
+
(or your own Appium machine). Each replay step gets only the secrets its workflow types, by name.</li>
|
|
1218
|
+
</ul>
|
|
1219
|
+
<p><strong>A pull request of the conversion.</strong> When a conversion has run, <strong>More › Pull request</strong> on its page (or
|
|
1220
|
+
<code>forgeqe tosca pr <plan> [--base BRANCH] [--title TEXT] [--draft]</code> at a terminal, where you type the plan's id to confirm)
|
|
1221
|
+
shows what goes in. <strong>Push and open the pull request</strong> then commits the target folder on ForgeQE's own branch
|
|
1222
|
+
<code>forgeqe/tosca/<plan></code> from the branch it merges into (the remote's default unless you name one), pushes it and opens the
|
|
1223
|
+
pull request: on GitHub with the GitHub CLI (<code>gh</code>), on Azure DevOps with ForgeQE's Azure DevOps sign-in (the remote must
|
|
1224
|
+
be in that organization).</p>
|
|
1225
|
+
<ul>
|
|
1226
|
+
<li>The commit is made in a separate copy of the repository (a git worktree), so your own branch and edits stay as they
|
|
1227
|
+
are, and the repository's git hooks do not run.</li>
|
|
1228
|
+
<li>Only the target folder's own files go in: never a link, a dependency, build or run-output folder (<code>node_modules</code>,
|
|
1229
|
+
<code>test-results</code>, …), a <code>.env</code> (its <code>.env.example</code> does), a file named like credentials, or one over 2 MB. The panel
|
|
1230
|
+
lists what was left out and why.</li>
|
|
1231
|
+
<li>The description lists each Tosca test case, its test and how it ran, and points to <code>tosca-map.json</code>.</li>
|
|
1232
|
+
<li>Pushing again updates the same branch and pull request; with nothing new, nothing is pushed.</li>
|
|
1233
|
+
<li>git uses the sign-in it already has on this computer (<code>gh auth setup-git</code>, Git Credential Manager or ssh). ForgeQE
|
|
1234
|
+
merges nothing.</li>
|
|
1235
|
+
</ul>
|
|
1236
|
+
<p><strong>Secrets for the converted tests.</strong> A Tosca export's encrypted and <code>{CP[...]}</code> values become variables the tests read
|
|
1237
|
+
(<code>USER_PWD</code>, <code>TOSCA_PASSWORD</code>). Once the exports are picked, the assistant reads which ones the tests need and, for each
|
|
1238
|
+
with no value, asks which saved secret holds it (<strong>Settings › Secrets</strong>: typed there or pulled from a vault), or leaves it
|
|
1239
|
+
for Review. <strong>Before it runs</strong> offers the same: <strong>Save</strong> a value under the variable's name, <strong>Or use a saved secret</strong>
|
|
1240
|
+
under another name.</p>
|
|
1241
|
+
<ul>
|
|
1242
|
+
<li>The tests then get that secret's value under the name they read. The agents see only names, and no model sees a
|
|
1243
|
+
secret's name.</li>
|
|
1244
|
+
<li>Which secret a variable uses is kept on this computer (<code>~/.forgeqe/tosca-secrets</code>), never in the plan's folder in the
|
|
1245
|
+
repository.</li>
|
|
1246
|
+
<li>ForgeQE's own keys (its models', trackers') are never offered or given to a test.</li>
|
|
1247
|
+
</ul>
|
|
1248
|
+
</div>
|
|
1249
|
+
</section>
|
|
1250
|
+
</div>
|
|
1251
|
+
<article class="spec feat" id="cap-find-run-tests">
|
|
1252
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Find and run existing tests</h3></div>
|
|
1253
|
+
<p class="ds">Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test.</p>
|
|
1254
|
+
<div class="facts">
|
|
1255
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Run the checkout tests</li><li>Run the tests added in sprint 12</li></ul></div>
|
|
1256
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to pick tests by sprint: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
|
|
1257
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>find_tests</code> <code>run_tests</code> <code>list_sprints</code></p></div>
|
|
1258
|
+
</div>
|
|
1259
|
+
|
|
1260
|
+
</article>
|
|
1261
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-finding-and-running-existing-tests">
|
|
1262
|
+
<h4>Finding and running existing tests</h4>
|
|
1263
|
+
<div class="prose"><p>Ask for the tests you want in your own words:</p>
|
|
1264
|
+
<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">Run all test cases related to login
|
|
1265
|
+
</span></span><span class="ln"><span class="cmd">Run the tests added this sprint
|
|
1266
|
+
</span></span><span class="ln"><span class="cmd">Which tests cover checkout? Don't run them
|
|
1267
|
+
</span></span><span class="ln"><span class="cmd">Run the tests added since 2026-09-01
|
|
1268
|
+
</span></span></code></pre></div>
|
|
1269
|
+
<p><strong>Finding and running tests.</strong></p>
|
|
1270
|
+
<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>
|
|
1271
|
+
<ol>
|
|
1272
|
+
<li>Open <strong>New chat</strong>.</li>
|
|
1273
|
+
<li>Ask for the tests, for example <code>Run all test cases related to login</code>.</li>
|
|
1274
|
+
<li>Read the list, then answer <strong>Run N tests?</strong> with <strong>Run</strong> or <strong>Don't run</strong>.</li>
|
|
1275
|
+
</ol>
|
|
1276
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1277
|
+
<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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then ask in the shell; the question is a dialog
|
|
1278
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe run "Run all test cases related to login"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the question is a numbered prompt
|
|
1279
|
+
</span></span></code></pre></div>
|
|
1280
|
+
</div></div><p><strong>How it works.</strong></p>
|
|
1281
|
+
<ol>
|
|
1282
|
+
<li>Quill starts read-only in the repository. It works out the test framework and decides each test by reading it: its
|
|
1283
|
+
body, and the page objects and helpers it calls. A test named <code>guest can pay</code> that signs in through <code>LoginPage</code> counts
|
|
1284
|
+
as a login test; a test that only mentions login in its name but checks something else does not. For a date range or
|
|
1285
|
+
sprint, it reads git history and selects the tests added in that range, including new test functions in files that
|
|
1286
|
+
already existed. It cannot change files or run anything.</li>
|
|
1287
|
+
<li>It gives two commands in the framework's own terms: one that lists exactly those tests (<code>playwright test --list</code>,
|
|
1288
|
+
<code>pytest --collect-only</code>, <code>dotnet test --list-tests</code>, …) and one that runs them and writes JUnit XML or TRX results.
|
|
1289
|
+
ForgeQE runs the list command, and Quill checks the listing is exactly its selection, fixing the command when it is
|
|
1290
|
+
not (up to three rounds).</li>
|
|
1291
|
+
<li>The list appears as a card: each test with its file and why it matches, the near misses that were left out, and the
|
|
1292
|
+
commands.</li>
|
|
1293
|
+
<li>Nothing runs until you say so. ForgeQE asks <strong>Run N tests?</strong> with <strong>Run</strong> and <strong>Don't run</strong>. When you only asked which
|
|
1294
|
+
tests exist, it stops at the list.</li>
|
|
1295
|
+
<li>ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then
|
|
1296
|
+
the command, the result files and the output. When tests fail, ForgeQE's agent offers to heal them.</li>
|
|
1297
|
+
</ol>
|
|
1298
|
+
<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">┃ ▸ 3 tests found for "tests related to login" · Playwright (TypeScript)
|
|
1299
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
1300
|
+
</span></span><span class="ln"><span class="cmd">┃ • login › signs in with a valid user
|
|
1301
|
+
</span></span><span class="ln"><span class="cmd">┃ tests/login.spec.ts · Fills the sign-in form and checks the account menu
|
|
1302
|
+
</span></span><span class="ln"><span class="cmd">┃ • login › rejects a wrong password
|
|
1303
|
+
</span></span><span class="ln"><span class="cmd">┃ tests/login.spec.ts · Submits a bad password and checks the error
|
|
1304
|
+
</span></span><span class="ln"><span class="cmd">┃ • checkout › guest can pay
|
|
1305
|
+
</span></span><span class="ln"><span class="cmd">┃ tests/checkout.spec.ts · Signs in through LoginPage before paying
|
|
1306
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
1307
|
+
</span></span><span class="ln"><span class="cmd">┃ Left out:
|
|
1308
|
+
</span></span><span class="ln"><span class="cmd">┃ • signup › creates an account · Signs up; never signs in
|
|
1309
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
1310
|
+
</span></span><span class="ln"><span class="cmd">┃ List npx playwright test --list --grep "login|guest can pay" (ForgeQE ran it: lists exactly these)
|
|
1311
|
+
</span></span><span class="ln"><span class="cmd">┃ Run npx playwright test --grep "login|guest can pay" --reporter=junit
|
|
1312
|
+
</span></span></code></pre></div>
|
|
1313
|
+
<p><strong>This sprint.</strong> For "tests added this sprint" or "last sprint", ForgeQE fetches the sprints from the Azure DevOps team
|
|
1314
|
+
(<code>sources.azure_devops</code>; iterations of the project's default team unless you name one) and the Jira scrum boards
|
|
1315
|
+
(<code>sources.jira</code>). It asks which one you mean: the current, the three latest past, and the next sprint of each team or
|
|
1316
|
+
board, with their dates. The sprint's start and end dates become the range. Name a sprint ("tests added in Sprint 41")
|
|
1317
|
+
and it is matched without asking; give dates ("since 2026-09-01") and no sprint is fetched.</p>
|
|
1318
|
+
<p><strong>What is kept.</strong> The selection, the output and the results are saved in <code>.forgeqe/reports/tests/<time>/</code>:
|
|
1319
|
+
<code>selection.json</code>, <code>output.log</code>, <code>results.json</code>, and the JUnit or TRX file. When a framework cannot write results (for
|
|
1320
|
+
example Jest without <code>jest-junit</code>), the exit code decides and the card shows the end of the output instead.</p>
|
|
1321
|
+
<p><strong>From another agent.</strong> Through <code>forgeqe mcp</code>, ForgeQE cannot ask you, so its <code>run_tests</code> tool returns the list and runs
|
|
1322
|
+
only when called again with <code>confirmed: true</code>. The MCP client should ask you first.</p>
|
|
1323
|
+
</div>
|
|
1324
|
+
</section>
|
|
1325
|
+
<section class="doc" id="doc-how_to_use-reports-for-tests-run-outside-forgeqe">
|
|
1326
|
+
<h4>Reports for tests run outside ForgeQE</h4>
|
|
1327
|
+
<div class="prose"><p>ForgeQE's HTML report is not only for runs it makes. Running existing tests and <code>pr-tests --run</code> write one, and so can
|
|
1328
|
+
any run in a terminal, an IDE's test runner, or CI. This is set up at a terminal only:</p>
|
|
1329
|
+
<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 report test-results/junit.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> from JUnit XML or TRX: any framework, after the run
|
|
1330
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe report setup</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a report after every Playwright or pytest run, automatically
|
|
1331
|
+
</span></span></code></pre></div>
|
|
1332
|
+
<p><strong><code>forgeqe report</code></strong> reads JUnit XML or TRX files, or the folder they are in (Playwright <code>--reporter=junit</code>, pytest
|
|
1333
|
+
<code>--junitxml=results.xml</code>, <code>dotnet test --logger trx</code>), and exits 1 when a test failed. Each report is saved in
|
|
1334
|
+
<code><out_dir>/results/<time>/</code>, so its Trends and Flaky tests pages cover the earlier runs, whoever ran them. JUnit carries
|
|
1335
|
+
one line per failure; a skipped test is counted, not shown.</p>
|
|
1336
|
+
<p><strong><code>forgeqe report setup</code></strong> sets up the framework the repository uses:</p>
|
|
1337
|
+
<ul>
|
|
1338
|
+
<li><strong>Playwright</strong>: it copies a reporter to <code>.forgeqe/playwright-reporter.mjs</code> (commit it) and prints the line to add to
|
|
1339
|
+
<code>playwright.config</code>: <code>reporter: [["list"], ["./.forgeqe/playwright-reporter.mjs"]]</code>. Every run then ends with a
|
|
1340
|
+
report, from <code>npx playwright test</code>, the VS Code Playwright extension, or CI. With <code>screenshot: "only-on-failure"</code> and
|
|
1341
|
+
<code>trace: "retain-on-failure"</code>, each failure shows its screenshot, the full error and stack, and the trace.</li>
|
|
1342
|
+
<li><strong>pytest</strong>: install ForgeQE in the environment that runs the tests. Its plugin loads
|
|
1343
|
+
by itself, from the terminal, VS Code's test explorer, or CI, in a folder with <code>forgeqe.yaml</code> or <code>.forgeqe/</code> (elsewhere
|
|
1344
|
+
with <code>pytest --forgeqe-report</code>). A test that passes when pytest-rerunfailures runs it again is reported as flaky.</li>
|
|
1345
|
+
</ul>
|
|
1346
|
+
<p><strong>Turning them off.</strong> <code>FORGEQE_REPORT=0</code> turns the reporters off for a run (ForgeQE does this when it runs existing tests
|
|
1347
|
+
itself, as it writes its own report). The reporters call <code>forgeqe</code> on PATH, or <code>FORGEQE_BIN</code>; without it they keep the
|
|
1348
|
+
results file and print the command that builds the report. Screenshots and traces are copied into the report only from
|
|
1349
|
+
the working folder, never from a hidden folder or a file named like a key.</p>
|
|
1350
|
+
</div>
|
|
1351
|
+
</section>
|
|
1352
|
+
</div>
|
|
1353
|
+
<article class="spec feat" id="cap-regression-packs">
|
|
1354
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Regression packs for a release</h3></div>
|
|
1355
|
+
<p class="ds">Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug.</p>
|
|
1356
|
+
<div class="facts">
|
|
1357
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Build a regression pack for sprint 12 and run it on TestMu</li><li>Which tests should we run for the PRs merged this week?</li></ul></div>
|
|
1358
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>a repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to read a sprint's or release's work items: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
|
|
1359
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>build_regression_pack</code> <code>run_regression_pack</code> <code>list_regression_packs</code> <code>regression_sources</code> <code>edit_regression_pack</code></p></div>
|
|
1360
|
+
</div>
|
|
1361
|
+
|
|
1362
|
+
</article>
|
|
1363
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-regression-packs-for-a-release">
|
|
1364
|
+
<h4>Regression packs for a release</h4>
|
|
1365
|
+
<div class="prose"><p>A regression pack is the set of your repository's tests that a release's changes can break, saved under a name so you
|
|
1366
|
+
can run it again (here, on TestMu AI, or in a pipeline) and compare runs. Ask in your own words:</p>
|
|
1367
|
+
<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">Build a regression pack for sprint 12 and run it on TestMu
|
|
1368
|
+
</span></span><span class="ln"><span class="cmd">Which tests should we run for the PRs merged this week?
|
|
1369
|
+
</span></span><span class="ln"><span class="cmd">Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../shop-app
|
|
1370
|
+
</span></span></code></pre></div>
|
|
1371
|
+
<p><strong>Building a pack.</strong> None of the sources is required, and nothing runs until you say so.</p>
|
|
1372
|
+
<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>
|
|
1373
|
+
<ol>
|
|
1374
|
+
<li>Open <strong>Regression</strong>.</li>
|
|
1375
|
+
<li>On <strong>Agent</strong>, ask for a pack in a sentence ("Create a regression pack for Release 22"). The line at the top says which
|
|
1376
|
+
sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management,
|
|
1377
|
+
docs, a pipeline). The agent says what a missing one would add and offers to connect it.</li>
|
|
1378
|
+
<li>Answer the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then
|
|
1379
|
+
whether to save it and run it now or on a schedule. Above the message box, <em>The pack needs</em> ticks off each detail as
|
|
1380
|
+
it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it.</li>
|
|
1381
|
+
</ol>
|
|
1382
|
+
<p>To pick the sprint, commits or pull requests yourself (also without a model set up), press <strong>Build</strong> on <strong>Packs</strong>.</p>
|
|
1383
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1384
|
+
<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 pack build --name release-22 --sprint "Sprint 12" --release "Release 22"
|
|
1385
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --from release/2.3 --range-repo ../shop-app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the commits since a ref
|
|
1386
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --merged-days 7</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the pull requests merged this week
|
|
1387
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --refresh release-22</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same changes read again
|
|
1388
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --based-on release-22 --sprint "Sprint 13"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the next release, keeping the edits
|
|
1389
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack list</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the saved packs
|
|
1390
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack show release-22</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one pack's tests and gaps
|
|
1391
|
+
</span></span></code></pre></div>
|
|
1392
|
+
<p>In the shell or with <code>forgeqe run</code>, the requests above do the same through ForgeQE's agent.</p>
|
|
1393
|
+
</div></div><p><strong>Where the changes come from.</strong> Any mix of:</p>
|
|
1394
|
+
<ul>
|
|
1395
|
+
<li>an Azure DevOps sprint, area, epic or feature, or work item ids: their stories and bugs, the test cases each is tested
|
|
1396
|
+
by, and the files their linked pull requests changed;</li>
|
|
1397
|
+
<li>the commits between two refs of a repository (<code>from</code> and <code>to</code>): the product's repository, or the test repository's
|
|
1398
|
+
own. Work items the commit messages name (<code>AB#123</code>, <code>#123</code>, <code>PAY-12</code>) are read too;</li>
|
|
1399
|
+
<li>pull requests by number or URL, or the ones merged in the last N days (Azure DevOps or GitHub);</li>
|
|
1400
|
+
<li>anything ForgeQE's agent can read through its connected tools (a Jira release, GitHub issues, a Confluence release
|
|
1401
|
+
note): it reads the items and passes them in with their text and links.</li>
|
|
1402
|
+
</ul>
|
|
1403
|
+
<p><strong>Why each test is in.</strong> A test can be in for more than one reason, and the card and <code><name>.md</code> say each one:</p>
|
|
1404
|
+
<div class="tbl tbl--cols-2"><table>
|
|
1405
|
+
<thead>
|
|
1406
|
+
<tr><th>Reason</th><th>Meaning</th></tr>
|
|
1407
|
+
</thead>
|
|
1408
|
+
<tbody>
|
|
1409
|
+
<tr><td data-label="Reason">linked</td><td data-label="Meaning">it automates a test case that tests a changed work item (<code>.forgeqe/test-cases.json</code>, or a case id in the test's attributes)</td></tr>
|
|
1410
|
+
<tr><td data-label="Reason">test code changed</td><td data-label="Meaning">the change is in the test repository, in code the test uses</td></tr>
|
|
1411
|
+
<tr><td data-label="Reason">matches a change</td><td data-label="Meaning">the work item's or pull request's words name what the test does: the elements it uses, its page, its name</td></tr>
|
|
1412
|
+
<tr><td data-label="Reason">risk area</td><td data-label="Meaning">the release touches an area with defects or failures before, and the test works there</td></tr>
|
|
1413
|
+
<tr><td data-label="Reason">smoke</td><td data-label="Meaning">the test is tagged smoke, so it is in every pack</td></tr>
|
|
1414
|
+
</tbody>
|
|
1415
|
+
</table></div>
|
|
1416
|
+
<p><strong>Gaps.</strong> Changes no test is in for are listed as <em>not covered</em>, each with the closest existing test and what it lacks,
|
|
1417
|
+
so you can extend that test rather than write a new one.</p>
|
|
1418
|
+
<p><strong>The plan: what the release needs.</strong> Besides the tests to run, a pack is a plan in four groups, so what is ready is
|
|
1419
|
+
never mixed up with what someone still has to do:</p>
|
|
1420
|
+
<div class="tbl tbl--cols-3"><table>
|
|
1421
|
+
<thead>
|
|
1422
|
+
<tr><th>Group</th><th>What it is</th><th>Its script</th></tr>
|
|
1423
|
+
</thead>
|
|
1424
|
+
<tbody>
|
|
1425
|
+
<tr><td data-label="Group">A Automated</td><td data-label="What it is">tests of the repository the pack found (the reasons above)</td><td data-label="Its script"><em>checked</em> only while its file is in the repository and still names the test; otherwise <em>missing</em> (moved, renamed or deleted since)</td></tr>
|
|
1426
|
+
<tr><td data-label="Group">B Manual</td><td data-label="What it is">test cases linked to a changed work item that no automated test runs</td><td data-label="Its script">run by a person</td></tr>
|
|
1427
|
+
<tr><td data-label="Group">C New automation</td><td data-label="What it is">changes no test covers: a test to write, or the closest one to extend</td><td data-label="Its script">to write</td></tr>
|
|
1428
|
+
<tr><td data-label="Group">D Exploratory</td><td data-label="What it is">the risk areas the release touches</td><td data-label="Its script">a session for a person</td></tr>
|
|
1429
|
+
</tbody>
|
|
1430
|
+
</table></div>
|
|
1431
|
+
<p>Each entry has a priority, says where it came from (<em>found</em> in the sources and the code, or <em>suggested</em> by ForgeQE or its
|
|
1432
|
+
agent) and keeps its evidence (the work item, pull request or defect history, with links).</p>
|
|
1433
|
+
<ul>
|
|
1434
|
+
<li>Change it in your words ("take out the flaky ones", "add a manual check of the invoice PDF", "why is this in?"), or on
|
|
1435
|
+
the page: priority, take out and put back, move between B, C and D, add an entry.</li>
|
|
1436
|
+
<li>An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the
|
|
1437
|
+
pack never claims a script it has not found.</li>
|
|
1438
|
+
<li>Every change is kept in the pack's history, with who made it.</li>
|
|
1439
|
+
</ul>
|
|
1440
|
+
<p><strong>Saving and reusing a pack.</strong> A pack starts as a <strong>Draft</strong>. Save it (a <strong>Name</strong> and the <strong>Release</strong>) when it is right,
|
|
1441
|
+
then run it now or on a schedule (a job that runs <code>forgeqe pack run</code>). Reuse it:</p>
|
|
1442
|
+
<ul>
|
|
1443
|
+
<li><strong>Refresh</strong>: the same changes read again (<code>forgeqe pack build --refresh release-22</code>); your edits and its runs stay.</li>
|
|
1444
|
+
<li><strong>The next release</strong>: a new pack from new changes that keeps the edits of an earlier one (<code>--based-on release-22</code>).</li>
|
|
1445
|
+
<li><strong>Compare</strong> two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and
|
|
1446
|
+
the other not, and their last runs.</li>
|
|
1447
|
+
</ul>
|
|
1448
|
+
<p><code>--release "Release 22"</code> names the release a pack is for.</p>
|
|
1449
|
+
<p><strong>The Packs tab.</strong> The packs are a table, newest first: each with how many entries are ready to run, scripts missing,
|
|
1450
|
+
manual, to automate and exploratory, and its last run. A row opens the pack's page:</p>
|
|
1451
|
+
<ul>
|
|
1452
|
+
<li>one strip of numbers: ready to run, script missing, the four groups, high priority, coverage of the release's changes,
|
|
1453
|
+
the last run. Click one to show those entries;</li>
|
|
1454
|
+
<li>the plan as a table: all or one group, high priority, script missing, flaky or taken out, a search over tests, files
|
|
1455
|
+
and features, 50 rows a page with the highest priority first. A row opens its evidence;</li>
|
|
1456
|
+
<li>beside it, the release's changes, risk areas, runs and triage, history, and a comparison with another release;</li>
|
|
1457
|
+
<li><strong>Save</strong> (a draft), <strong>Run</strong>, <strong>Schedule</strong>, <strong>Refresh</strong>, and <strong>Ask</strong> for the agent.</li>
|
|
1458
|
+
</ul>
|
|
1459
|
+
<p>The Agent tab looks and works like the API tests page's Agent tab.</p>
|
|
1460
|
+
<p><strong>Running a pack.</strong> ForgeQE asks before it runs anything.</p>
|
|
1461
|
+
<ul>
|
|
1462
|
+
<li><em>This machine</em>: ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test
|
|
1463
|
+
(for .NET, a <code>--filter</code> with each test, the settings an earlier job used, TRX results), runs it, and reads each result.
|
|
1464
|
+
A failed test runs once more; one that then passes is flaky.</li>
|
|
1465
|
+
<li><em>TestMu AI</em>: the same command, with the variable <code>FORGEQE_PW_WS_ENDPOINT</code> set to TestMu AI's Playwright endpoint for
|
|
1466
|
+
the browser and platform in <code>testmu.yaml</code>. The access key goes in the variable, never in the command, and is removed
|
|
1467
|
+
from the output. The tests must connect to it when it is set: for NUnit, override <code>ConnectOptionsAsync</code> in the test
|
|
1468
|
+
base class; for Playwright Test, set <code>connectOptions</code> from it in <code>playwright.config</code>. ForgeQE refuses a TestMu run when
|
|
1469
|
+
the tests do not read the variable, so a run never looks remote while it ran locally.</li>
|
|
1470
|
+
<li><em>A pipeline</em> (at a terminal only): starts the pack in GitHub Actions or Azure Pipelines, waits for it, and reads its
|
|
1471
|
+
results. <code>forgeqe pack pipeline init</code> writes the workflow (<code>.github/workflows/forgeqe-pack.yml</code>) and the Azure DevOps
|
|
1472
|
+
pipeline. Commit them, then name them under <code>packs.pipeline</code> in forgeqe.yaml (<code>default: github</code> or <code>azure_devops</code>;
|
|
1473
|
+
<code>github: { repo, workflow, ref }</code>; <code>azure_devops: { project, pipeline_id, ref }</code>; <code>timeout_minutes</code>, 60 by default).
|
|
1474
|
+
For TestMu AI, add the secrets <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> to the pipeline. The Azure DevOps PAT needs Build
|
|
1475
|
+
(read and execute) and Test Management (read).</li>
|
|
1476
|
+
</ul>
|
|
1477
|
+
<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>
|
|
1478
|
+
<ol>
|
|
1479
|
+
<li>Open <strong>Regression</strong> › <strong>Packs</strong> and open the pack.</li>
|
|
1480
|
+
<li>Press <strong>Run</strong>, pick <strong>This machine</strong> or <strong>TestMu AI</strong>, and confirm. Or press <strong>Schedule</strong>, pick when and where, and
|
|
1481
|
+
confirm: the job is on the <strong>Jobs</strong> page.</li>
|
|
1482
|
+
</ol>
|
|
1483
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1484
|
+
<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 pack run release-22</span><span class="pad"> </span><span class="cm"><span class="h">#</span> this machine (asks first)
|
|
1485
|
+
</span></span><span class="ln"><span class="cmd">forgeqe pack run release-22 --on testmu
|
|
1486
|
+
</span></span><span class="ln"><span class="cmd">forgeqe pack run release-22 --on pipeline [--pipeline github|azure_devops] [--browsers local|testmu]
|
|
1487
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack pipeline init [--github] [--azure-devops]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> write the pipeline files once
|
|
1488
|
+
</span></span></code></pre></div>
|
|
1489
|
+
</div></div><p><strong>Each run is kept with the pack.</strong> The card says which tests fail now that passed in the last run, and which were
|
|
1490
|
+
fixed.</p>
|
|
1491
|
+
<p><strong>Triage: heal, re-run, or file a bug?</strong> After each run ForgeQE sorts every failed or flaky test into one route. It
|
|
1492
|
+
starts from evidence that costs nothing (the retry in the same run, the failure message, the test's history), so the AI
|
|
1493
|
+
is spent only where it decides something:</p>
|
|
1494
|
+
<div class="tbl tbl--cols-3"><table>
|
|
1495
|
+
<thead>
|
|
1496
|
+
<tr><th>Route</th><th>When</th><th>What happens</th></tr>
|
|
1497
|
+
</thead>
|
|
1498
|
+
<tbody>
|
|
1499
|
+
<tr><td data-label="Route">flaky</td><td data-label="When">it passed when run again in the same run, or its history flip-flops</td><td data-label="What happens">not healed: quarantine it, or fix the cause it flakes on</td></tr>
|
|
1500
|
+
<tr><td data-label="Route">environment</td><td data-label="When">network errors, 5xx, a crashed browser, sign-in failing</td><td data-label="What happens">run again once the environment works; no heal and no bug</td></tr>
|
|
1501
|
+
<tr><td data-label="Route">test code broken</td><td data-label="When">a missing module, a compile error, a missing fixture</td><td data-label="What happens">fix the test's code; healing against the page cannot fix it</td></tr>
|
|
1502
|
+
<tr><td data-label="Route">heal</td><td data-label="When">an element the test uses is no longer found (high confidence when it passed its last runs)</td><td data-label="What happens">the healing agent re-runs the flow in the browser and updates the steps and locators</td></tr>
|
|
1503
|
+
<tr><td data-label="Route">AI re-run decides</td><td data-label="When">an expected value does not hold, a timeout, or something covers the element</td><td data-label="What happens">the healing agent re-runs the flow in the browser: heals the test when the flow works, reports an app bug when it fails at the same step</td></tr>
|
|
1504
|
+
</tbody>
|
|
1505
|
+
</table></div>
|
|
1506
|
+
<p>Failures that name the same element or the same message are shown as <strong>one cause</strong> (a page object or a shared step
|
|
1507
|
+
changed), so one fix can heal them together. When most failures are the environment, ForgeQE says to run the pack again
|
|
1508
|
+
before healing anything, and refuses to heal until you name the tests.</p>
|
|
1509
|
+
<p>The triage is on the run's card and in <code>triage.md</code> and <code>triage.json</code> in the run's folder. Healing the tests it sent to
|
|
1510
|
+
healing builds a command for just those tests, and the healing agent re-runs each flow in the browser before it changes
|
|
1511
|
+
anything.</p>
|
|
1512
|
+
<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>
|
|
1513
|
+
<ol>
|
|
1514
|
+
<li>Open the pack on <strong>Regression</strong> › <strong>Packs</strong>. <strong>Triage of the last run</strong> lists each route.</li>
|
|
1515
|
+
<li>Tick the tests to heal (or <strong>All</strong>) and press <strong>Heal</strong>.</li>
|
|
1516
|
+
<li>At a limit, answer <strong>Carry on</strong> or <strong>Stop here</strong> under the job's output.</li>
|
|
1517
|
+
</ol>
|
|
1518
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1519
|
+
<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 pack triage release-1.5</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the last run's triage again
|
|
1520
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack heal release-1.5 [--tests a,b]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> heal only the tests triage sent to healing
|
|
1521
|
+
</span></span></code></pre></div>
|
|
1522
|
+
<p>In the shell, "heal the failures of pack release-1.5" does the same.</p>
|
|
1523
|
+
</div></div><p><strong>Where packs are kept.</strong> Packs are saved in <code>.forgeqe/packs/<name>.json</code> and <code><name>.md</code>; run output and results in
|
|
1524
|
+
<code>.forgeqe/reports/packs/<name>/<time>/</code>.</p>
|
|
1525
|
+
</div>
|
|
1526
|
+
</section>
|
|
1527
|
+
</div>
|
|
1528
|
+
<article class="spec feat" id="cap-flaky-tests">
|
|
1529
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Flaky test detection and quarantine</h3></div>
|
|
1530
|
+
<p class="ds">Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees.</p>
|
|
1531
|
+
<div class="facts">
|
|
1532
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Which tests are flaky?</li><li>Quarantine the flaky login test</li></ul></div>
|
|
1533
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>a repository whose tests ForgeQE has run</span></li></ul></div>
|
|
1534
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>flaky_tests</code> <code>quarantine_tests</code></p></div>
|
|
1535
|
+
</div>
|
|
1536
|
+
|
|
1537
|
+
</article>
|
|
1538
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-flaky-tests">
|
|
1539
|
+
<h4>Flaky tests</h4>
|
|
1540
|
+
<div class="prose"><p>Every run of existing tests and every <code>pr-tests</code> run keeps each test's result in <code>.forgeqe/test-history.json</code> in the
|
|
1541
|
+
repository (commit it to share the history, or keep it between CI runs as a cache). A test that fails runs once more in
|
|
1542
|
+
the same run, with the framework's own option (Playwright <code>--last-failed</code>, pytest <code>--lf</code>, Jest <code>--onlyFailures</code>;
|
|
1543
|
+
otherwise the whole command again when the selection is small). When it then passes it is <strong>flaky</strong>, not failed, and the
|
|
1544
|
+
run does not fail because of it.</p>
|
|
1545
|
+
<p>The history gives each test's last results (<code>✓✗✓↻✓</code>, where ↻ means it passed only when run again), its pass rate, a
|
|
1546
|
+
flakiness score (passes on retry plus pairs of flip-flops in the last 20 runs), and the likely cause from its failure
|
|
1547
|
+
messages, with an example:</p>
|
|
1548
|
+
<div class="tbl tbl--cols-2"><table>
|
|
1549
|
+
<thead>
|
|
1550
|
+
<tr><th>Cause</th><th>From messages like</th></tr>
|
|
1551
|
+
</thead>
|
|
1552
|
+
<tbody>
|
|
1553
|
+
<tr><td data-label="Cause">Timing</td><td data-label="From messages like">timeouts, waiting for an element, detached or stale elements</td></tr>
|
|
1554
|
+
<tr><td data-label="Cause">An overlay</td><td data-label="From messages like">another element intercepts the click, the element is covered or not visible</td></tr>
|
|
1555
|
+
<tr><td data-label="Cause">Data</td><td data-label="From messages like">expected one value, received another</td></tr>
|
|
1556
|
+
<tr><td data-label="Cause">Network</td><td data-label="From messages like"><code>net::ERR_…</code>, resets, 5xx responses</td></tr>
|
|
1557
|
+
<tr><td data-label="Cause">Environment</td><td data-label="From messages like">the browser closed or crashed, the server was not ready</td></tr>
|
|
1558
|
+
</tbody>
|
|
1559
|
+
</table></div>
|
|
1560
|
+
<p>A test that only fails is broken, not flaky. <strong>Quarantine</strong> keeps a flaky test running, so its history goes on, but its
|
|
1561
|
+
failures stop failing the run and CI (<code>pr-tests --run</code> exits 0 when only quarantined tests fail); no test code changes. A
|
|
1562
|
+
quarantined test that passes 5 runs in a row is offered for release.</p>
|
|
1563
|
+
<p><strong>Seeing and quarantining flaky tests.</strong></p>
|
|
1564
|
+
<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>
|
|
1565
|
+
<ol>
|
|
1566
|
+
<li>Open <strong>Flaky tests</strong>. Each test shows its last results, flips, retry passes, run time and likely cause.</li>
|
|
1567
|
+
<li>Pick tests and press <strong>Quarantine</strong> (or <strong>Release</strong> for quarantined ones), add a reason if you like, and confirm.</li>
|
|
1568
|
+
<li>To fix the cause, the heal button on a test's row heals it in the regression pack whose last run sent it to healing.</li>
|
|
1569
|
+
</ol>
|
|
1570
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1571
|
+
<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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then: Which tests are flaky?
|
|
1572
|
+
</span></span></code></pre></div>
|
|
1573
|
+
<p>ForgeQE's agent offers to quarantine tests (it asks you first) and to heal them to fix the cause.</p>
|
|
1574
|
+
</div></div><p><strong>Settings.</strong> In <strong>Settings › Reports and memory</strong>, or in forgeqe.yaml:</p>
|
|
1575
|
+
<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">flaky:
|
|
1576
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> retries: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> runs of a failed test in the same run (0 to 3)
|
|
1577
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> quarantine: suggest</span><span class="pad"> </span><span class="cm"><span class="h">#</span> suggest (the agent asks), auto (ForgeQE quarantines), or off (history only)
|
|
1578
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> flaky_after: 2</span><span class="pad"> </span><span class="cm"><span class="h">#</span> flakiness score from which a test counts as flaky
|
|
1579
|
+
</span></span></code></pre></div>
|
|
1580
|
+
</div>
|
|
1581
|
+
</section>
|
|
1582
|
+
</div>
|
|
1583
|
+
<article class="spec feat" id="cap-run-diff">
|
|
1584
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Compare two runs step by step</h3></div>
|
|
1585
|
+
<p class="ds">Lines two browser runs up step by step and says where they first differ and what kind of difference it is: the server's answer, a missing element, another page, data, or timing; with calls, errors and screenshots.</p>
|
|
1586
|
+
<div class="facts">
|
|
1587
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>It passed yesterday and fails today: why?</li><li>Compare runs of checkout on QA and staging</li></ul></div>
|
|
1588
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>two browser runs</span></li></ul></div>
|
|
1589
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>run_diff</code></p></div>
|
|
1590
|
+
</div>
|
|
1591
|
+
|
|
1592
|
+
</article>
|
|
1593
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-comparing-two-runs">
|
|
1594
|
+
<h4>Comparing two runs</h4>
|
|
1595
|
+
<div class="prose"><p>"Why does it fail today when it passed yesterday?" ForgeQE lines two browser runs up step by step, by page and action,
|
|
1596
|
+
so a step only one run did (a cookie banner, a retry) does not shift the rest.</p>
|
|
1597
|
+
<ul>
|
|
1598
|
+
<li>Each step shows how it ended, the API calls that answered otherwise (method, path and status only), new browser
|
|
1599
|
+
errors, its time and both screenshots.</li>
|
|
1600
|
+
<li>The step to look at first is marked with what it likely is: the server answered differently (likely a product change),
|
|
1601
|
+
an element was not found (the page changed: heal the test if the change was meant), another page or path, other data,
|
|
1602
|
+
or only timing (a slow environment or a race).</li>
|
|
1603
|
+
</ul>
|
|
1604
|
+
<p>Use it for a pass and a fail of one test, the same test on two environments or devices, or a test before and after it
|
|
1605
|
+
was healed.</p>
|
|
1606
|
+
<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>
|
|
1607
|
+
<ol>
|
|
1608
|
+
<li>Open <strong>Run diff</strong>.</li>
|
|
1609
|
+
<li>Pick the first run, then the run to compare.</li>
|
|
1610
|
+
</ol>
|
|
1611
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1612
|
+
<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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then: Why does it fail today when it passed yesterday?
|
|
1613
|
+
</span></span></code></pre></div>
|
|
1614
|
+
</div></div></div>
|
|
1615
|
+
</section>
|
|
1616
|
+
</div>
|
|
1617
|
+
<article class="spec feat" id="cap-test-debt">
|
|
1618
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Test debt and coverage gaps</h3></div>
|
|
1619
|
+
<p class="ds">Lists code areas and business rules no test reaches, tests that never fail or whose file is gone, near-duplicate tests, and test cases not yet automated, each with a request to draft its test.</p>
|
|
1620
|
+
<div class="facts">
|
|
1621
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What has no test?</li><li>Which test cases are not automated yet?</li></ul></div>
|
|
1622
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The product's repositories: product.repos in forgeqe.yaml, a name and the path of a local clone each</span></li></ul></div>
|
|
1623
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_debt</code></p></div>
|
|
1624
|
+
</div>
|
|
1625
|
+
|
|
1626
|
+
</article>
|
|
1627
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-test-debt-and-coverage-gaps">
|
|
1628
|
+
<h4>Test debt and coverage gaps</h4>
|
|
1629
|
+
<div class="prose"><p>"What has no test?" ForgeQE lists:</p>
|
|
1630
|
+
<ul>
|
|
1631
|
+
<li>code areas and business rules no test reaches (from the product graph, <code>forgeqe knowledge build</code>, and the knowledge
|
|
1632
|
+
folder);</li>
|
|
1633
|
+
<li>tests that tell little: 30 passes in a row, or whose file is gone from the repository;</li>
|
|
1634
|
+
<li>near-duplicate tests, by their shared words;</li>
|
|
1635
|
+
<li>each test case of the connected trackers, with whether it is automated.</li>
|
|
1636
|
+
</ul>
|
|
1637
|
+
<p>Each gap can become a request to draft its test, which the agent offers and runs only when you agree.</p>
|
|
1638
|
+
<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>
|
|
1639
|
+
<ol>
|
|
1640
|
+
<li>Open <strong>Test debt</strong>.</li>
|
|
1641
|
+
<li>Pick <strong>Untested code and rules</strong>, <strong>Low-signal tests</strong>, <strong>Near-duplicates</strong> or <strong>Test cases</strong>.</li>
|
|
1642
|
+
<li>To draft a test for a gap, press its draft button: it asks in a chat, and nothing changes until you agree there.</li>
|
|
1643
|
+
</ol>
|
|
1644
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1645
|
+
<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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then: What has no test?
|
|
1646
|
+
</span></span></code></pre></div>
|
|
1647
|
+
</div></div></div>
|
|
1648
|
+
</section>
|
|
1649
|
+
</div>
|
|
1650
|
+
<article class="spec feat" id="cap-test-management">
|
|
1651
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Test management</h3></div>
|
|
1652
|
+
<p class="ds">Plans' test cases, their tests and runs; gaps; suites.</p>
|
|
1653
|
+
<div class="facts">
|
|
1654
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Show the test inventory</li></ul></div>
|
|
1655
|
+
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
1656
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_inventory</code></p></div>
|
|
1657
|
+
</div>
|
|
1658
|
+
|
|
1659
|
+
</article>
|
|
1660
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-test-management">
|
|
1661
|
+
<h4>Test management</h4>
|
|
1662
|
+
<div class="prose"><p>The <strong>Test management</strong> page shows every test case of your test plans in one place, so you do not open the tracker or
|
|
1663
|
+
the repository to see them. ForgeQE's agent can answer from the same list in a chat or the shell.</p>
|
|
1664
|
+
<p><strong>Connecting your test plans.</strong></p>
|
|
1665
|
+
<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>
|
|
1666
|
+
<ol>
|
|
1667
|
+
<li>Open <strong>Settings › Integrations</strong>. Under each system, fill <strong>Test plans in Test management</strong>
|
|
1668
|
+
(<code>sources.azure_devops.test_plans: [plan=12]</code>, and the same for <code>xray</code>, <code>testrail</code>, <code>zephyr</code> and <code>qtest</code>).</li>
|
|
1669
|
+
<li>Open <strong>Test management</strong> and press <strong>Sync</strong>.</li>
|
|
1670
|
+
</ol>
|
|
1671
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1672
|
+
<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 testmgmt sync</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read every case of the connected plans now
|
|
1673
|
+
</span></span></code></pre></div>
|
|
1674
|
+
</div></div><p><strong>What the page shows.</strong> In the web app only:</p>
|
|
1675
|
+
<ul>
|
|
1676
|
+
<li><strong>Dashboard</strong>: cases, automated, not automated, pending, failing and generated by ForgeQE, each with its change over
|
|
1677
|
+
the week; coverage over time; cases generated and automated each week; and each suite's last run, with <strong>Run</strong> and
|
|
1678
|
+
<strong>Rerun failed</strong>.</li>
|
|
1679
|
+
<li><strong>Test cases</strong>: every case with its automated test, last run, tags and suite, in views (not automated, failing,
|
|
1680
|
+
pending, generated, steps changed, tracker disagrees) and filters. Pick cases to <strong>Run</strong>, <strong>Tag</strong> or make a suite. A
|
|
1681
|
+
case opens on its own page with its steps, test and runs.</li>
|
|
1682
|
+
<li><strong>Automated</strong>: the repository's automated tests, as a test explorer lists them: each with ForgeQE's id (<code>T-…</code>), its
|
|
1683
|
+
framework's own id, its file and line, its tags, its last runs and the test cases it is linked to. Filter by <strong>No test
|
|
1684
|
+
case</strong>, <strong>Linked</strong> or <strong>Read from the code</strong>.</li>
|
|
1685
|
+
<li><strong>Gaps</strong>: cases not automated, ranked by priority, failures, packs and smoke tags, with why; pending, never run and
|
|
1686
|
+
failing cases; cases whose steps changed or whose tracker disagrees; tests with no case; and the release's <strong>Stories
|
|
1687
|
+
with no case</strong> and <strong>Criteria not covered</strong>. Say which stories with <strong>Read stories</strong>: in Azure DevOps a sprint,
|
|
1688
|
+
iteration path, area path, epic or feature, or work item ids; in Jira (also Xray and Zephyr Scale) a sprint, fix
|
|
1689
|
+
version, epic or story keys; in qTest a requirements module or requirement ids. Until you read some, the newest
|
|
1690
|
+
Release readiness report is used. Every sync reads them again.</li>
|
|
1691
|
+
<li><strong>Suites</strong>: tell the <strong>Suite agent</strong> (Sorter) what the suite is for, such as "P1 payments and anything failing lately".
|
|
1692
|
+
It builds the suite from rules over your cases, which ForgeQE checks, and you save it. A suite runs as <code>forgeqe suite</code>
|
|
1693
|
+
on a test environment you pick, never one named like production.</li>
|
|
1694
|
+
<li><strong>Tags</strong>: tags from your trackers, your tests (<code>@smoke</code>) and ForgeQE (<code>.forgeqe/testmgmt/tags.json</code>), with which are
|
|
1695
|
+
out of step.</li>
|
|
1696
|
+
</ul>
|
|
1697
|
+
<p>The Test case and Gap agents, docked on the right, start a chat from what you picked: automate, find why they fail,
|
|
1698
|
+
suggest tags, <strong>Write tags into tests</strong> (the coding agent writes the cases' tags into their linked tests as the framework
|
|
1699
|
+
writes tags, and shows the diff before saving), and <strong>Cases for stories with none</strong> (test cases for the stories you
|
|
1700
|
+
picked in Gaps, shown before they are saved).</p>
|
|
1701
|
+
<p><strong>Syncing on a schedule.</strong> ForgeQE reads the plans again on a schedule you set, while this computer is on. Each scheduled sync also reads again the stories Gaps shows, and can discover the tests first.</p>
|
|
1702
|
+
<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>
|
|
1703
|
+
<ol>
|
|
1704
|
+
<li>Open <strong>Test management</strong>.</li>
|
|
1705
|
+
<li>Press the button beside <strong>Sync</strong> (it says <code>Sync: off</code>, <code>Sync: hourly</code> or <code>Sync: daily 07:00</code>).</li>
|
|
1706
|
+
<li>Pick <strong>Off</strong>, <strong>Every hour</strong> or <strong>Daily</strong> and its <strong>Time</strong> (this computer's clock).</li>
|
|
1707
|
+
<li>To discover the tests before each sync, tick <strong>Also discover the tests first</strong>; the sheet shows the commands that will run. If the test projects change, it stops discovering until you confirm again.</li>
|
|
1708
|
+
<li>Press <strong>Save</strong>.</li>
|
|
1709
|
+
</ol>
|
|
1710
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1711
|
+
<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 testmgmt sync</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read every case of the connected plans now
|
|
1712
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe testmgmt schedule</span><span class="pad"> </span><span class="cm"><span class="h">#</span> when they are synced
|
|
1713
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe testmgmt schedule daily 07:00</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or: hourly, off
|
|
1714
|
+
</span></span></code></pre></div>
|
|
1715
|
+
</div></div><p><strong>Discovering the tests.</strong> In the web app only: on <strong>Automated</strong>, <strong>Discover tests</strong> asks each test project's own
|
|
1716
|
+
framework for its tests: pytest, .NET (NUnit, xUnit, MSTest), Playwright, Jest, Vitest, Mocha and Robot Framework.
|
|
1717
|
+
Gherkin <code>.feature</code> files are read as text.</p>
|
|
1718
|
+
<ul>
|
|
1719
|
+
<li>This runs the repository's code (pytest imports <code>conftest.py</code>, .NET builds the project), so the sheet shows the exact
|
|
1720
|
+
commands first and runs only those, without ForgeQE's secrets.</li>
|
|
1721
|
+
<li>A test its framework cannot list is read from the code instead.</li>
|
|
1722
|
+
<li>Each test gets ForgeQE's id (<code>T-</code> and hex), kept in <code>.forgeqe/testmgmt/tests.json</code>; commit it so the team shares the
|
|
1723
|
+
ids. A test keeps its id when it is renamed or moved.</li>
|
|
1724
|
+
</ul>
|
|
1725
|
+
<p><strong>Linking cases and tests.</strong> In the web app only. A case can have several tests, and a test several cases.</p>
|
|
1726
|
+
<ul>
|
|
1727
|
+
<li>ForgeQE links them by itself when a test's marker or attribute names the case (<code>@pytest.mark.testcase("C12")</code>,
|
|
1728
|
+
<code>[Property("TestCaseId", "123")]</code>, <code>[WorkItem(123)]</code>, <code>@id:ADO-5</code>), when the case's tracker names the test, or when
|
|
1729
|
+
the case's id is in the test's name or tags (<code>TC-123 adds to the basket</code>).</li>
|
|
1730
|
+
<li>You can link by hand: <strong>Link to a test case</strong> on <strong>Automated</strong>, or <strong>Link a test</strong> on a case's page. <strong>Unlink</strong> removes
|
|
1731
|
+
one, and it is not linked again by itself.</li>
|
|
1732
|
+
<li><strong>Link with the agent</strong> (or <strong>Ask the agent</strong> on a case's page) asks the mapping agent (Matchmaker) to find the tests
|
|
1733
|
+
for cases that have none. It links only when it is sure and the case and test share most of their words; the rest
|
|
1734
|
+
wait on the case's page as proposals to <strong>Accept</strong> or <strong>Refuse</strong>.</li>
|
|
1735
|
+
<li>Links, proposals and refusals are kept in <code>.forgeqe/testmgmt/links.json</code>; commit it to share them.</li>
|
|
1736
|
+
</ul>
|
|
1737
|
+
<p><strong>A case's main test.</strong> When a case has several tests, make one its <strong>Main test</strong> on the case's page. It is listed first,
|
|
1738
|
+
its tracker records it as the case's automated test, and a run uses it first.</p>
|
|
1739
|
+
<p><strong>Running linked tests.</strong> Run a case, or a suite, and ForgeQE first records the case's linked tests in its mapping
|
|
1740
|
+
(<code>.forgeqe/test-cases.json</code>) with one command that runs them all, so <code>forgeqe suite</code> runs them too. A Gherkin scenario
|
|
1741
|
+
runs through its feature's own runner, found from the project's files: Cucumber.js, Behave, pytest-bdd, Cucumber JVM
|
|
1742
|
+
(Maven or Gradle), or SpecFlow or Reqnroll. A scenario with no runner found cannot be run this way.</p>
|
|
1743
|
+
<p><strong>Writing back to the trackers.</strong> In the web app only. Test management can also change the trackers. It always shows
|
|
1744
|
+
exactly what would change first, and writes only that list:</p>
|
|
1745
|
+
<ul>
|
|
1746
|
+
<li><strong>Mark automated</strong> (picked cases, or <strong>Mark automated in its system</strong> on a case's page): each case whose test ForgeQE
|
|
1747
|
+
knows, from its mapping or a link, gets Azure DevOps' Associated Automation, or the <code>automated</code> label on its Jira or
|
|
1748
|
+
Xray test.</li>
|
|
1749
|
+
<li><strong>Write tags</strong> (picked cases, <strong>Write tags to its system</strong> on a case's page, or a tag on the Tags page): ForgeQE's tags
|
|
1750
|
+
are added to the case's Azure DevOps tags or Jira labels. Tags the case already has stay.</li>
|
|
1751
|
+
<li><strong>Take tags off</strong> (<strong>Take tags off in its system</strong> on a case's page, or a tag on the Tags page): ForgeQE's own tags are
|
|
1752
|
+
taken off the case's Azure DevOps tags or Jira labels. The tracker's other tags stay.</li>
|
|
1753
|
+
<li><strong>Keep in tracker</strong> (a suite): the suite is made as a static suite in a connected Azure DevOps plan, or as an Xray Test
|
|
1754
|
+
Set (Xray Cloud, or Xray Server/Data Center over https), with its cases. <strong>Keep in step</strong> later adds the cases it
|
|
1755
|
+
gained and takes out the ones it lost.</li>
|
|
1756
|
+
</ul>
|
|
1757
|
+
<p>Each write is audited. If a tracker refuses a case, the sheet says why for that case and the rest still go through.</p>
|
|
1758
|
+
</div>
|
|
1759
|
+
</section>
|
|
1760
|
+
</div>
|
|
1761
|
+
|
|
1762
|
+
<nav class="pager" aria-label="Previous and next">
|
|
1763
|
+
<a class="prev" href="../area-test-cases/index.html"><small>Previous</small><span>Test cases</span></a>
|
|
1764
|
+
<a class="next" href="../feature-test-prompts/index.html"><small>Next</small><span>Feature test prompts</span></a>
|
|
1765
|
+
</nav>
|
|
1766
|
+
</main>
|
|
1767
|
+
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-write-tests">Turn a passed run into an automated test</a></li><li><a href="#doc-how_to_use-how-quill-writes-a-test">How Quill writes a test</a></li><li><a href="#cap-heal-tests">Heal failing tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a></li><li><a href="#cap-regression-packs">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li></ul></aside>
|
|
1768
|
+
</div>
|
|
1769
|
+
<footer class="foot">
|
|
1770
|
+
<div class="container foot__row">
|
|
1771
|
+
<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>
|
|
1772
|
+
<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>
|
|
1773
|
+
</div>
|
|
1774
|
+
<p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
|
|
1775
|
+
</footer>
|
|
1776
|
+
</body>
|
|
1777
|
+
</html>
|