@capagents/forgeqe 3.1.1 → 3.1.2
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 +435 -78
- package/README.md +21 -6
- 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 +100 -8
- package/dist/docs-site/docs/architecture/index.html +210 -214
- package/dist/docs-site/docs/area-api/index.html +350 -0
- package/dist/docs-site/docs/area-automated-tests/index.html +967 -0
- package/dist/docs-site/docs/area-browser/index.html +430 -0
- package/dist/docs-site/docs/area-data/index.html +605 -0
- package/dist/docs-site/docs/area-desktop/index.html +755 -0
- package/dist/docs-site/docs/area-mobile/index.html +631 -0
- package/dist/docs-site/docs/area-operations/index.html +1069 -0
- package/dist/docs-site/docs/area-pull-requests/index.html +208 -0
- package/dist/docs-site/docs/area-quality/index.html +365 -0
- package/dist/docs-site/docs/area-release/index.html +320 -0
- package/dist/docs-site/docs/area-setup/index.html +1192 -0
- package/dist/docs-site/docs/area-systems/index.html +207 -0
- package/dist/docs-site/docs/area-test-cases/index.html +694 -0
- package/dist/docs-site/docs/containers/index.html +97 -104
- package/dist/docs-site/docs/cost-architecture/index.html +108 -112
- package/dist/docs-site/docs/custom-agents-first-run/index.html +19 -23
- package/dist/docs-site/docs/desktop/index.html +172 -162
- package/dist/docs-site/docs/desktop-ci/index.html +26 -33
- package/dist/docs-site/docs/evidence/index.html +253 -257
- package/dist/docs-site/docs/feature-test-prompts/index.html +66 -70
- package/dist/docs-site/docs/get-started/index.html +495 -0
- package/dist/docs-site/docs/graphify/index.html +42 -46
- package/dist/docs-site/docs/guardrails/index.html +17 -21
- package/dist/docs-site/docs/index.html +17 -6729
- package/dist/docs-site/docs/mobile/index.html +155 -162
- package/dist/docs-site/docs/model-routing/index.html +44 -51
- package/dist/docs-site/docs/overview/index.html +176 -0
- package/dist/docs-site/docs/product-graph/index.html +52 -55
- package/dist/docs-site/docs/product-knowledge/index.html +11 -15
- package/dist/docs-site/docs/product-views/index.html +53 -57
- package/dist/docs-site/docs/reference/index.html +379 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +480 -0
- package/dist/docs-site/docs/web-app/index.html +147 -93
- 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 +1902 -1895
- package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
- package/dist/web/assets/Agent-CPhmZdFX.js +8 -0
- package/dist/web/assets/AgentWork-BXdN9xgi.js +2 -0
- package/dist/web/assets/ApiTests-Do3xLjfB.js +10 -0
- package/dist/web/assets/Browse-WVkJT6Bs.js +2 -0
- package/dist/web/assets/Chat-CDc9UcQX.js +3 -0
- package/dist/web/assets/CommandPalette-BAZm62lV.js +1 -0
- package/dist/web/assets/Compare-Br6n9T9L.js +1 -0
- package/dist/web/assets/Cost-BBUyBu3Y.js +1 -0
- package/dist/web/assets/Data-Ch2DPEWp.js +6 -0
- package/dist/web/assets/Desktop-Qzoq-cQv.js +1 -0
- package/dist/web/assets/DesktopReview-CF_jQYAM.js +1 -0
- package/dist/web/assets/Evidence-C72Lj5_Q.js +1 -0
- package/dist/web/assets/Explore-ObkEpUyS.js +2 -0
- package/dist/web/assets/Features-CQzNo_WP.js +1 -0
- package/dist/web/assets/Flags-0-RniPJm.js +2 -0
- package/dist/web/assets/Flaky-BPJvNLCA.js +1 -0
- package/dist/web/assets/Impact-CfccsL_k.js +3 -0
- package/dist/web/assets/Jobs-T6m4zhDy.js +5 -0
- package/dist/web/assets/KindPage-BDUvWe2p.js +6 -0
- package/dist/web/assets/Migration-Dqeh4x5u.js +2 -0
- package/dist/web/assets/PageAgent-DNjzIgeY.js +1 -0
- package/dist/web/assets/Product-nYV_scOV.js +7 -0
- package/dist/web/assets/Production-CGSbEWVa.js +1 -0
- package/dist/web/assets/Quality-BIypojZm.js +1 -0
- package/dist/web/assets/Readiness-BlRjwJRg.js +1 -0
- package/dist/web/assets/Record-v2KLI-_Z.js +1 -0
- package/dist/web/assets/Regression-B-jSt4Jz.js +5 -0
- package/dist/web/assets/RelationGraph-8J98lOVG.js +1 -0
- package/dist/web/assets/Reports-GI4u6SyW.js +2 -0
- package/dist/web/assets/Response-mhBThq2b.js +9 -0
- package/dist/web/assets/Responsive-DXu7Ra7K.js +3 -0
- package/dist/web/assets/RunDiff-D0SHDNp0.js +1 -0
- package/dist/web/assets/Runs-C1Gjdi9M.js +2 -0
- package/dist/web/assets/Settings-BGGeuvyF.js +21 -0
- package/dist/web/assets/Steps-D-YG0eJy.js +2 -0
- package/dist/web/assets/TestCases-DC4w77eQ.js +1 -0
- package/dist/web/assets/TestData-CvKWRVVV.js +2 -0
- package/dist/web/assets/TestDebt-D8YzN29_.js +1 -0
- package/dist/web/assets/TestManagement-C5cDCqrD.js +1 -0
- package/dist/web/assets/Tosca-BGUv3RiJ.js +3 -0
- package/dist/web/assets/WhatsNew-B_Gyuv8O.js +1 -0
- package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
- package/dist/web/assets/coverage-BMP6ELFJ.js +5 -0
- package/dist/web/assets/dataParts-DbeCj9ga.js +3 -0
- package/dist/web/assets/diff-BStuTmsN.js +2 -0
- package/dist/web/assets/families-BBFFrUlo.js +1 -0
- package/dist/web/assets/filters-CnAMr286.js +1 -0
- package/dist/web/assets/fold-D_O_VZui.js +1 -0
- package/dist/web/assets/head-CRo48rPt.js +1 -0
- package/dist/web/assets/highlight-BcFZIf59.js +4 -0
- package/dist/web/assets/index-B3JsM7tv.js +64 -0
- package/dist/web/assets/index-CafApcbZ.css +2 -0
- package/dist/web/assets/input-CtzK50ZF.js +1 -0
- package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/web/assets/line-icons-rdF8DYDJ.js +1 -0
- package/dist/web/assets/logos-D4oVWzqa.js +1 -0
- package/dist/web/assets/palette-DAaGSao7.js +1 -0
- package/dist/web/assets/paletteCommands-Co-RlQ8q.js +1 -0
- package/dist/web/assets/parts-D357Wolo.js +1 -0
- package/dist/web/assets/productParts-B8oHRCJF.js +1 -0
- package/dist/web/assets/qualityParts-BLkmIfDY.js +1 -0
- package/dist/web/assets/recordTest-Cez2sDJO.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/route-BloYJWgw.js +1 -0
- package/dist/web/index.html +12 -6
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/BASAL.md +1 -1
- package/docs/DESKTOP.md +20 -1
- package/docs/EVIDENCE.md +1 -1
- package/docs/MOBILE.md +4 -4
- package/docs/PRODUCT_KNOWLEDGE.md +2 -0
- package/docs/WEB_APP.md +114 -51
- package/docs/user-guide.html +404 -81
- package/forgeqe.example.yaml +3 -3
- package/package.json +1 -1
- 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/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,967 @@
|
|
|
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
|
+
<link rel="stylesheet" href="../../app-look.css">
|
|
15
|
+
<link rel="stylesheet" href="../app-theme.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body class="docs">
|
|
18
|
+
<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>
|
|
19
|
+
<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) -->
|
|
20
|
+
<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" />
|
|
21
|
+
<line x1="8" x2="16" y1="21" y2="21" />
|
|
22
|
+
<line x1="12" x2="12" y1="17" y2="21" /></symbol>
|
|
23
|
+
<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" />
|
|
24
|
+
<path d="M12 18h.01" /></symbol>
|
|
25
|
+
<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" />
|
|
26
|
+
<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>
|
|
27
|
+
<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" />
|
|
28
|
+
<path d="M10 21.9V14L2.1 9.1" />
|
|
29
|
+
<path d="m10 14 11.9-6.9" />
|
|
30
|
+
<path d="M14 19.8v-8.1" />
|
|
31
|
+
<path d="M18 17.5V9.4" /></symbol>
|
|
32
|
+
<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" />
|
|
33
|
+
<path d="m9 12 2 2 4-4" /></symbol>
|
|
34
|
+
<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" />
|
|
35
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
36
|
+
<path d="M10 9H8" />
|
|
37
|
+
<path d="M16 13H8" />
|
|
38
|
+
<path d="M16 17H8" /></symbol>
|
|
39
|
+
<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" />
|
|
40
|
+
<line x1="12" x2="20" y1="19" y2="19" /></symbol>
|
|
41
|
+
<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" />
|
|
42
|
+
<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" />
|
|
43
|
+
<path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
|
|
44
|
+
<path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
|
|
45
|
+
<path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
|
|
46
|
+
<path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
|
|
47
|
+
<path d="M19.938 10.5a4 4 0 0 1 .585.396" />
|
|
48
|
+
<path d="M6 18a4 4 0 0 1-1.967-.516" />
|
|
49
|
+
<path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
|
|
50
|
+
<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" />
|
|
51
|
+
<circle cx="18" cy="6" r="3" />
|
|
52
|
+
<circle cx="6" cy="18" r="3" />
|
|
53
|
+
<path d="M18 9a9 9 0 0 1-9 9" /></symbol>
|
|
54
|
+
<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" />
|
|
55
|
+
<path d="M3 5V19A9 3 0 0 0 21 19V5" />
|
|
56
|
+
<path d="M3 12A9 3 0 0 0 21 12" /></symbol>
|
|
57
|
+
<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>
|
|
58
|
+
<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" />
|
|
59
|
+
<path d="M17 3h2a2 2 0 0 1 2 2v2" />
|
|
60
|
+
<path d="M21 17v2a2 2 0 0 1-2 2h-2" />
|
|
61
|
+
<path d="M7 21H5a2 2 0 0 1-2-2v-2" />
|
|
62
|
+
<circle cx="12" cy="12" r="3" />
|
|
63
|
+
<path d="m16 16-1.9-1.9" /></symbol>
|
|
64
|
+
<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" />
|
|
65
|
+
<path d="M14.12 3.88 16 2" />
|
|
66
|
+
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
|
|
67
|
+
<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" />
|
|
68
|
+
<path d="M12 20v-9" />
|
|
69
|
+
<path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
|
|
70
|
+
<path d="M6 13H2" />
|
|
71
|
+
<path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
|
|
72
|
+
<path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
|
|
73
|
+
<path d="M22 13h-4" />
|
|
74
|
+
<path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
|
|
75
|
+
<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" />
|
|
76
|
+
<path d="M3 11v-1a4 4 0 0 1 4-4h14" />
|
|
77
|
+
<path d="m7 22-4-4 4-4" />
|
|
78
|
+
<path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
|
|
79
|
+
<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" />
|
|
80
|
+
<polyline points="8 6 2 12 8 18" /></symbol>
|
|
81
|
+
<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" />
|
|
82
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
|
|
83
|
+
<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" />
|
|
84
|
+
<path d="M9 8V2" />
|
|
85
|
+
<path d="M15 8V2" />
|
|
86
|
+
<path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
|
|
87
|
+
<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" />
|
|
88
|
+
<path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
|
|
89
|
+
<path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
|
|
90
|
+
<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>
|
|
91
|
+
<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" />
|
|
92
|
+
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
|
|
93
|
+
<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>
|
|
94
|
+
<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>
|
|
95
|
+
<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>
|
|
96
|
+
<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>
|
|
97
|
+
<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>
|
|
98
|
+
</svg>
|
|
99
|
+
|
|
100
|
+
<a class="skip" href="#main">Skip to content</a>
|
|
101
|
+
<header class="nav" id="navigation">
|
|
102
|
+
<div class="nav__bar">
|
|
103
|
+
<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>
|
|
104
|
+
<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>
|
|
105
|
+
<div class="nav__end">
|
|
106
|
+
<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>
|
|
107
|
+
<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>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<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>
|
|
111
|
+
</header>
|
|
112
|
+
<div class="container docs-layout">
|
|
113
|
+
<nav class="docs-side" aria-label="Docs">
|
|
114
|
+
<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>
|
|
115
|
+
<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><li><a href="../graphify/index.html"><span>Reading product code</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>Architecture</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="../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="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
|
|
116
|
+
</nav>
|
|
117
|
+
<main id="main" class="docs-main guide chapter-page">
|
|
118
|
+
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Browser and tests</p>
|
|
119
|
+
<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><li><a href="../graphify/index.html"><span>Reading product code</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>Architecture</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="../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="../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-6-tests">Tests</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="#doc-how_to_use-fixing-broken-tests">Fixing broken tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#doc-how_to_use-converting-tosca-tests">Converting Tosca tests</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-finding-and-running-existing-tests">Finding and running 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="#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#doc-how_to_use-flaky-tests">Flaky tests</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#doc-how_to_use-comparing-two-runs">Comparing two runs</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#doc-how_to_use-test-debt-and-coverage-gaps">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li><li><a href="#doc-how_to_use-test-management">Test management</a></li></ul></nav></details></div>
|
|
120
|
+
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-scribe"/></svg>Automated tests</h1>
|
|
121
|
+
<p class="guide-lead">Write, heal, find, run, and stabilise tests in your repository</p>
|
|
122
|
+
<article class="spec feat" id="cap-write-tests">
|
|
123
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Turn a passed run into an automated test</h3></div>
|
|
124
|
+
<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>
|
|
125
|
+
<div class="facts">
|
|
126
|
+
<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>
|
|
127
|
+
<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 the agent runtime, which forgeqe setup installs</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>
|
|
128
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>write_test</code> <code>run_test</code></p></div>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
131
|
+
<section class="doc" id="doc-how_to_use-6-tests">
|
|
132
|
+
<h4>Tests</h4>
|
|
133
|
+
<div class="prose"><p>After a run passes, <strong>Quill</strong>, ForgeQE's coding agent, turns it into a test in your repo.</p>
|
|
134
|
+
<p>In the shell and <code>forgeqe run</code>, every passed run then becomes a test, and so does each test case that passes when you ask the shell to run test cases: in the current folder, or in the repo you give per run or in <code>forgeqe.yaml</code>. <code>--no-code</code> turns it off; you can still ask for a test ("write a Playwright test for that run").</p>
|
|
135
|
+
<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
|
|
136
|
+
</span></span></code></pre></div>
|
|
137
|
+
<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:
|
|
138
|
+
</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
|
|
139
|
+
</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
|
|
140
|
+
</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
|
|
141
|
+
</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
|
|
142
|
+
</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)
|
|
143
|
+
</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
|
|
144
|
+
</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
|
|
145
|
+
</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
|
|
146
|
+
</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
|
|
147
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> model: anthropic/claude-sonnet-4-5
|
|
148
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> runtime: /path/to/agent-runtime # default: the runtime ForgeQE downloads
|
|
149
|
+
</span></span></code></pre></div>
|
|
150
|
+
<p>What happens after the run passes:</p>
|
|
151
|
+
<ol>
|
|
152
|
+
<li>
|
|
153
|
+
<p>ForgeQE writes <code>handoff.md</code> into the run directory: the goal and result, how ForgeQE's browser was set up (browser and version, headless or headed, user agent, <code>navigator.webdriver</code>, launch switches, extra headers, language, time zone, viewport), every step in order with the value typed (secrets as <code>process.env.NAME</code>) and the JavaScript the browser agent ran, 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 closed or steps it redid after a banner covered the page read as such), each element's best locator and the others with their confidence %, and a short table of each visited page's other elements for assertions (weak locators under 30% are left out, and elements the steps already use are listed with the steps, so the handoff stays small; the full lists are in the page-memory files it points to). The agent's result and the final URL are marked as coming from one run on live data, to be checked as rules (the results load, the order holds, the fields have the right format), not copied as expected values. Pop-ups and banners the run met are handled wherever they appear (Playwright's locator handlers or the repository's helper), since the next run can show them at another moment or not at all; the agent's retries are not copied. A site can also serve different versions of a page to different visits (A/B tests, such as a classic search box or a free-text one), so the test handles every version the run or the agent saw, or waits for one control from either version.</p>
|
|
154
|
+
<p>The handoff also lists the browser agent's <strong>checks</strong>: before it finishes, the browser agent records each result the goal asks to verify with the exact text the page showed (<code>record_check</code>; a text the page does not show is refused). They are saved in <code>workflow.yaml</code> under <code>checks:</code>. The test asserts these and nothing else.</p>
|
|
155
|
+
</li>
|
|
156
|
+
<li>
|
|
157
|
+
<p>ForgeQE replays the run's steps as a Playwright script (<code><run>/replay/flow.mjs</code>), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches (<code>navigator.webdriver</code> false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so Quill takes locators for its steps and assertions from real pages instead of guessing them. On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its text into the handoff (a heading or text match, the container it sits in when there are several, or the form field that holds it), so assertions come with a locator that worked. For a heading it also gives the part of the page the heading names (an element labelled by it, the section it heads, or the element right after it), with its locator and how many links and list items it holds, so a check such as "an In the news section with at least one item" is asserted inside that part, not on the heading alone. A step that fails while every step after it still works and the replay reaches the final page (a click that did nothing on the run, or a control this version of the page doesn't have) doesn't count as a failed replay: Quill decides from the step whether the goal needs it and ports the rest as it is. When only the second launch got through, the handoff says the browser setup is the difference and which launch settings fix it. The first time, Playwright (about 13 MB) is downloaded into <code>~/.forgeqe/tools</code>; it drives the installed Chrome. A run that only opened a page still replays when it recorded checks, to look them up; with neither it skips this, and <code>replay: false</code> turns it off.</p>
|
|
158
|
+
<p>Quill first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in <code>scribe-notes.json</code>, with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again.</p>
|
|
159
|
+
</li>
|
|
160
|
+
<li>
|
|
161
|
+
<p>Quill starts in the repo. It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. When the test case names a framework ("Framework: Cypress + TypeScript + Cucumber BDD"), the test is written in that one, in the folder that holds its setup; a test in another framework is not run and never kept as passed. It never changes the test-runner configuration the whole suite shares (<code>playwright.config.*</code>, <code>cypress.config.*</code>, <code>wdio.conf.*</code>, Nightwatch's config, a <code>.runsettings</code>): browser options a test needs to get the page the run got go in that test's own file, and only those it needs (Playwright Test: a top-level <code>test.use({ ... })</code> in the spec, where <code>channel</code> and <code>launchOptions</code> must be). ForgeQE puts back its changes to those files after each turn (a repository with none keeps the one it sets up) and tells it to move the options into the test. Nor does it change a project's packages: changes to <code>package.json</code>, lockfiles, <code>.npmrc</code>, <code>requirements.txt</code> or <code>pyproject.toml</code> are put back, and its shell cannot run an installer. Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the project's own lockfile (<code>npm ci</code>, <code>pnpm install --frozen-lockfile</code>, <code>yarn install --frozen-lockfile</code>, <code>bun install --frozen-lockfile</code>; with no lockfile), and Cypress's app or a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run, and is not tried again in that session until the project's files change. What Quill may not do itself, it asks for: a package (<code>request_install</code>), a command its shell refuses (<code>request_run</code>), or a change to <code>package.json</code>, <code>requirements.txt</code>, <code>pyproject.toml</code> or the suite's shared test-runner config (<code>request_change</code>). ForgeQE checks the request (registry names and exact versions only; a command as an argument list, never a shell, push, container, process-ending, download or database command, and nothing naming ForgeQE's secrets; never <code>.npmrc</code> or a lockfile by hand), then asks you with exactly what it would run or change. Only a yes does it; a no, or a run nobody watches, changes nothing and Quill reports the test as blocked. The healing agent (<code>forgeqe heal</code>) and Link ask the same way, and their own edits to package files and the shared test-runner config are put back before their tests run. <code>code.requests</code> in forgeqe.yaml (Settings › Code › Help it gets › When an agent asks for more) decides what happens to a request: <code>ask</code> (the default) asks you each time; <code>allow</code> does it after ForgeQE's checks without asking, also in a run nobody watches; <code>off</code> refuses every request. What is always refused (a shell, a push, <code>.npmrc</code>, a lockfile by hand…) stays refused whatever it says.</p>
|
|
162
|
+
<p>Before Quill starts, ForgeQE reads the repo into a <strong>code graph</strong>, without a model: every class, page object, method, property, and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in <code>~/.forgeqe/cache/code-graph</code>, nothing leaves the machine, and the next job reads again only the files that changed. The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test id): so when the run clicked <code>getByRole('button', { name: 'Login' })</code> and the repo's <code>LoginPage.LoginButton</code> uses <code>#login-button</code>, the handoff says under that step "in this repository: LoginPage.LoginButton … used by LoginPage.SignInAsync", and Quill calls the existing method instead of writing a second locator. Quill also gets tools that answer from the graph instead of grep and whole-file reads: <code>code_find</code> (classes, methods, and tests by name, or by the text a locator uses), <code>code_outline</code> (a file's or class's signatures and locators, or the source of one member), <code>code_element</code> (which member already locates an element), <code>code_references</code> (what calls a member, before it is changed), and <code>code_impact</code> (the tests a change reaches, through flows and base classes, whatever the test files are called). <code>graph: false</code> turns it off. The handoff also outlines the page objects its steps use and includes the repo's test that uses the most of them, so Quill takes the test conventions from that test instead of reading other tests, and reads a settings file only to change it.</p>
|
|
163
|
+
</li>
|
|
164
|
+
<li>
|
|
165
|
+
<p>It writes the test from the handoff and the replay script: steps that worked are ported with their locators, steps that failed are fixed first. Every locator, including those for assertions, comes from the replay script, the page snapshots, page memory, or a check on the page; steps where the browser agent ran JavaScript to look around are left out. It does not walk the flow again or build tests to explore. Once a step fails (in the replay, or in its test), ForgeQE switches on its live browser: a Chrome that Playwright drives, set up like ForgeQE's, where it looks at the failing step's page one tool call per action (open, snapshot, click, type, wait, screenshot, run JavaScript, console errors, failed requests). Until then the live browser tools are off, so no tokens go into looking at pages that work. The live browser needs Node.js (<code>npx</code>), and Microsoft's Playwright MCP server is downloaded on first use; with <code>live_browser: false</code>, or without <code>npx</code>, it looks with a small throwaway script instead. When its browser gets a different page than ForgeQE's did (an error, a challenge, a control that will not open), it compares the two browsers (user agent, <code>navigator.webdriver</code>, headless, failed requests and CORS errors, headers the framework adds, console errors) and fixes the difference in the repo's browser configuration. It never judges the site with <code>curl</code> or <code>webfetch</code>.</p>
|
|
166
|
+
</li>
|
|
167
|
+
<li>
|
|
168
|
+
<p>Quill does not run the test itself: it may build or compile, then reports the test file and the command that runs only that test, and ForgeQE runs it. If one command it runs fails <code>stall_after</code> times in a row within its work (the same build again and again, say), ForgeQE stops that turn and sends the command and its last output back, asking it to change approach. If the same command stalls again, the job stops as a failure with that output in the notes. The same goes for going round in circles: re-reading files, outlines or <code>git diff</code> it has already seen, unchanged, <code>repeat_after</code> times, or changing files it already changed <code>edit_after</code> times without handing the test over, or making 3 edits that fail because the file no longer has the lines it expected (it then reads the file once and edits from that). Its turn stops and it is asked for the test, which ForgeQE then runs; if it does it again, the job stops.</p>
|
|
169
|
+
</li>
|
|
170
|
+
</ol>
|
|
171
|
+
<p>Every model call sends the whole conversation again, so ForgeQE keeps conversations short. Each attempt after the first, a rerun of a job that stopped while writing, and carrying on after you raise the token budget all start a new session from a brief: the handoff, the plan, the notes, and the files the job wrote as they are now. For a recording, what the planner already looked up in the code goes to Quill too, and the planner's tokens count toward <code>max_tokens</code>. When a session's calls are mostly re-sent in full rather than read from the model's cache, ForgeQE says so once. At the token budget, the question says whether ForgeQE has run the test yet; an unattended write never asks and stops there. A job that stops says whether a test ever ran and which files it left changed in the repository.
|
|
172
|
+
6. ForgeQE runs that command (with <code>CI=1</code>) and checks the exit code, and it watches the processes the command starts for a browser launched by Playwright, Puppeteer, Selenium, or Cypress. On a failure it sends the command, exit code, and output back to Quill. The output is kept short so the error is never cut off: the page dump Playwright puts into a failed assertion ("Aria snapshot:", often thousands of lines) 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 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 prompt names both files. A command that exits 0 without starting a browser also goes back: the test must drive the app in a browser. If the repo's browser runs on another machine (Selenium Grid, a cloud service, a container), the agent says where and the check is skipped.
|
|
173
|
+
7. A passing test then goes to a separate reviewer agent, which can read files and <code>git diff</code> but not change anything. It checks the change against the goal and the test rules: every part of the goal done through the page and asserted, generic page objects with data in the test, no values or URLs copied from the run, browser settings in the repo's configuration, no leftover files. The changed files come inline in its prompt, so it reads nothing again, and it does not ask to replace locators or texts that came from the replay or the checks, since those matched the live site. It judges only what this job changed: ForgeQE records the working tree before the job, so your uncommitted edits, your untracked files, and ForgeQE's own files (<code>.forgeqe/</code>, <code>forgeqe.yaml</code>, <code>llms.json</code>) are never part of the review. It checks the diff of every file that existed before the job: removing or rewriting an existing test, even a commented-out one, is a correctness problem. Credentials come from the environment, except a public demo login that the application itself shows to anyone (such as the logins on saucedemo.com's sign-in page), which may stay in the repo's test data. It gets the outlines of the classes the changed code uses, the repo's browser settings, and the same <code>code_*</code> tools, so it checks reuse and settings without reading those files. The code graph also tells it what the job added that it can check in the code: a new member that locates an element an existing member already locates (to reuse instead), and new XPath or position-based locators. If it finds problems, they go back to Quill as the next attempt. The terminal shows the exchange as it happens, in order: the reviewer's verdict with its reason and each issue (✗ correctness, ~ coding standard) with the file and the fix it asks for; then why Quill tries again and what it is fixing (the reviewer's issues, or the test's first error); then what Quill says it did and which files it changed; then the next verdict:</p>
|
|
174
|
+
<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
|
|
175
|
+
</span></span><span class="ln"><span class="cmd"> ⎿ The test never checks that the pie chart is shown.
|
|
176
|
+
</span></span><span class="ln"><span class="cmd"> ✗ Correctness · tests/PracticeTests.cs: No assertion on the SVG pie chart.
|
|
177
|
+
</span></span><span class="ln"><span class="cmd"> Fix: Assert the chart's heading and SVG are visible.
|
|
178
|
+
</span></span><span class="ln"><span class="cmd"> ~ Coding standard · tests/PracticeTests.cs: Test data is inline.
|
|
179
|
+
</span></span><span class="ln"><span class="cmd"> Fix: Move it to the page object.
|
|
180
|
+
</span></span><span class="ln"><span class="cmd">⏺ Quill tries again · attempt 2 of 5 the reviewer asked for changes
|
|
181
|
+
</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.
|
|
182
|
+
</span></span><span class="ln"><span class="cmd"> ⎿ Quill (attempt 2): Added the pie chart assertion · changed tests/PracticeTests.cs, Pages/PracticePage.cs
|
|
183
|
+
</span></span><span class="ln"><span class="cmd">⏺ Reviewer approved the test attempt 2 of 5
|
|
184
|
+
</span></span></code></pre></div>
|
|
185
|
+
<p>The Activities panel has one line for each verdict and attempt, and <code>forgeqe</code> commands outside the terminal UI print the same blocks.</p>
|
|
186
|
+
<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>, <code>git restore</code>, or <code>git checkout -- <path></code>. If it still removes a file that existed before the job, or reverts your uncommitted edits, ForgeQE puts the file back after that attempt and tells the agent.
|
|
187
|
+
8. The job is done when ForgeQE's run passes with a browser, the reviewer approves, and the test passes again unchanged until it has passed <code>code.confirm_runs</code> times in a row (default 3; <code>1</code> runs it once). A test that passes and then fails is flaky: the next attempt is told which run failed and why, and to make that step wait for the page. It stops as a failure after <code>max_attempts</code> attempts, when the job passes <code>code.max_tokens</code>, when the reviewer rejects a passing test twice, if the review cannot finish, when the test fails the same way three times in a row (the same output apart from numbers such as timings and line numbers; the second time, Quill is told its change did not change the failure and to look at the failing step before changing code), or straight away on an auth, API, or context-limit error from the model.</p>
|
|
188
|
+
<p><code>blocked</code> is a last resort. The first time the agent reports that the app blocks it, ForgeQE sends it back to compare its browser with ForgeQE's and fix the difference; only a second blocked report, with what it compared, ends the job as blocked.</p>
|
|
189
|
+
<p>The transcript shows the handover and Quill's work as it goes; files it writes or edits are marked ✎:</p>
|
|
190
|
+
<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">┃
|
|
191
|
+
</span></span><span class="ln"><span class="cmd">┃ ▸ Handing over to the coding agent browser agent → coding agent
|
|
192
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
193
|
+
</span></span><span class="ln"><span class="cmd">┃ Flow Log in and open the invoices page on staging.app.test
|
|
194
|
+
</span></span><span class="ln"><span class="cmd">┃ Run .forgeqe/reports/20260928-172700/
|
|
195
|
+
</span></span><span class="ln"><span class="cmd">┃ Repo ../app
|
|
196
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
197
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Handoff written: .forgeqe/reports/20260928-172700/handoff.md (7 steps, 3 pages from page memory)
|
|
198
|
+
</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
|
|
199
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ Reading .forgeqe/reports/20260928-172700/handoff.md
|
|
200
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ Reading tests/pages/LoginPage.ts
|
|
201
|
+
</span></span><span class="ln"><span class="cmd"> ✎ Editing tests/invoices.spec.ts
|
|
202
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ Running npx playwright test tests/invoices.spec.ts
|
|
203
|
+
</span></span><span class="ln"><span class="cmd"> ▸ ForgeQE runs the test: npx playwright test tests/invoices.spec.ts
|
|
204
|
+
</span></span><span class="ln"><span class="cmd"> ✗ tests/invoices.spec.ts failed, exit 1 (attempt 1/5)
|
|
205
|
+
</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
|
|
206
|
+
</span></span><span class="ln"><span class="cmd"> ✓ tests/invoices.spec.ts passed and was approved (attempt 2/5)
|
|
207
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
208
|
+
</span></span><span class="ln"><span class="cmd">┃ ✓ Test passed 2/5 attempts · 3m 12s · 88.4K tokens · azure/gpt-5.4
|
|
209
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
210
|
+
</span></span><span class="ln"><span class="cmd">┃ Added openInvoices() to DashboardPage and reused the loginAs fixture.
|
|
211
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
212
|
+
</span></span><span class="ln"><span class="cmd">┃ Test tests/invoices.spec.ts (in ../app)
|
|
213
|
+
</span></span><span class="ln"><span class="cmd">┃ Command npx playwright test tests/invoices.spec.ts
|
|
214
|
+
</span></span><span class="ln"><span class="cmd">┃ Reused LoginPage, fixtures/auth.ts
|
|
215
|
+
</span></span><span class="ln"><span class="cmd">┃ Changed tests/invoices.spec.ts, tests/pages/DashboardPage.ts
|
|
216
|
+
</span></span><span class="ln"><span class="cmd">┃ Browser Google Chrome
|
|
217
|
+
</span></span><span class="ln"><span class="cmd">┃ Review approved: Opens the invoices page through the dashboard and checks the table columns.
|
|
218
|
+
</span></span></code></pre></div>
|
|
219
|
+
<p>After ForgeQE's reply, the request ends with the files it produced:</p>
|
|
220
|
+
<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
|
|
221
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
222
|
+
</span></span><span class="ln"><span class="cmd">┃ Report .forgeqe/reports/20260928-172700/report.html
|
|
223
|
+
</span></span><span class="ln"><span class="cmd">┃ ✓ Test ../app/tests/invoices.spec.ts passed when ForgeQE ran it
|
|
224
|
+
</span></span><span class="ln"><span class="cmd">┃ Command npx playwright test tests/invoices.spec.ts
|
|
225
|
+
</span></span><span class="ln"><span class="cmd">┃ Handoff .forgeqe/reports/20260928-172700/handoff.md
|
|
226
|
+
</span></span></code></pre></div>
|
|
227
|
+
<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 handed to the coding agent.</p>
|
|
228
|
+
<p>Quill uses the active <code>llms.json</code> profile, or, with <code>llm.routing: auto</code>, the profile the router 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>). The key stays in your environment: the agent runtime's config refers to it as <code>{env:WP_AZURE_API_KEY}</code> and never contains the value. An <code>auth: entra</code> profile reaches the model through ForgeQE's local token gateway (see <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>). An Azure profile goes through the agent runtime's <code>azure</code> provider on <code><endpoint>/openai/v1</code> (the Responses API, with the deployment as the model). <code>openai_compatible</code> and <code>ollama</code> profiles use their <code>base_url</code>. A <code>github_copilot</code> profile runs Quill through ForgeQE's Copilot gateway (see <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: the agent runtime's own Copilot provider signs in through a third-party app on your GitHub account. <code>code.model: provider/model</code> (or <code>--code-model</code>) uses one of the agent runtime's built-in providers instead, with that provider's usual key variable (for example <code>ANTHROPIC_API_KEY</code> for <code>anthropic/...</code>).</p>
|
|
229
|
+
<p>Quill may edit files and run commands anywhere in the repo without asking. <code>git push</code> in any form is denied (pushing goes through ForgeQE's guarded <code>push_branch</code> tool, section 8), and it cannot touch files outside the repo except the run and memory directories, which it may read.</p>
|
|
230
|
+
<p>More ways to run it:</p>
|
|
231
|
+
<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/
|
|
232
|
+
</span></span><span class="ln"><span class="cmd">forgeqe code .forgeqe/reports/20260928-172700 --repo ../app --attempts 3
|
|
233
|
+
</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
|
|
234
|
+
</span></span></code></pre></div>
|
|
235
|
+
<p>In the shell, <code>forgeqe start --repo ../app</code> writes the tests in that repo instead of the current folder and <code>--no-code</code> turns them off; you can also just ask ("write a test for the last run in ../app"). Esc stops the agent the same way it stops a run.</p>
|
|
236
|
+
<p>Exit codes for <code>forgeqe code</code> and for <code>forgeqe run --direct</code> with a repo: <code>0</code> test passed, <code>1</code> run or test failed, <code>2</code> stopped. The result (status, attempts, test file, command, what was reused and changed, the browsers ForgeQE saw, the review, the last test output, tokens) is saved as <code>code.json</code> in the run directory, next to <code>handoff.md</code>.</p>
|
|
237
|
+
<p>If Quill's job is cut off (ForgeQE closed, the machine restarted, you stopped it, or the model could not be reached), run it again for the same run and repo, for example <code>forgeqe code .forgeqe/reports/20260928-172700 --repo ../app</code>. Quill reopens the same session, with everything it read and said, and carries on with the files it already wrote; it doesn't read the repo again, and ForgeQE uses the Playwright replay it already finished. The session is kept in <code>scribe-session.json</code> in the run folder until the job ends with a result.</p>
|
|
238
|
+
</div>
|
|
239
|
+
</section>
|
|
240
|
+
<section class="doc" id="doc-how_to_use-how-quill-writes-a-test">
|
|
241
|
+
<h4>How Quill writes a test</h4>
|
|
242
|
+
<div class="prose"><p><strong>Reuse before rebuild, extend before duplicate.</strong> Before Quill writes anything, <code>write_test</code> measures what the repository's tests already cover of the run, from evidence rather than guesswork: each step and check the browser agent made on an element is matched, through page memory, to the page-object member that locates it, and the code graph says which tests reach that member (through the page methods they call, or a property they assert, such as <code>Expect(practicePage.AjaxStatus)</code>). Steps on elements no page object locates yet are listed as not measured, since a test may do them its own way. Then:</p>
|
|
243
|
+
<div class="tbl tbl--cols-2"><table>
|
|
244
|
+
<thead>
|
|
245
|
+
<tr><th>What it finds</th><th>What happens</th></tr>
|
|
246
|
+
</thead>
|
|
247
|
+
<tbody>
|
|
248
|
+
<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>
|
|
249
|
+
<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>
|
|
250
|
+
<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>
|
|
251
|
+
<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>
|
|
252
|
+
</tbody>
|
|
253
|
+
</table></div>
|
|
254
|
+
<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 know ("extend the login test", "write a separate test", "update it") and ForgeQE's agent passes that on without asking. In every mode Quill adds page-object members rather than changing what an existing member does for the other tests that use it.</p>
|
|
255
|
+
<p><strong>Copied code is measured.</strong> Before Quill starts, ForgeQE notes the copies the repository already has (jscpd). When the test passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in 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 copy that should reuse what is there is an issue Quill fixes. <code>code.duplicates: false</code> turns it off.</p>
|
|
256
|
+
<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, ForgeQE runs that test first, before any browser run. 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 test takes (<em>✓ Existing test passed · 19s · no browser run or new test needed</em>). If it fails, the flow runs in the browser and Quill updates that test instead of writing another. ForgeQE's agent rewords a goal a little each time, so goals count as the same flow when they share their content words (endings, case, and phrasing aside) and the new goal keeps everything the earlier one checked; the same steps with a different final check, a shorter flow, or another site are a new flow. The agent also compares the earlier goal with your request and runs fresh when you ask for a check the earlier test does not have. Ask for "a fresh run" or "a new test" to skip the reuse.</p>
|
|
257
|
+
<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 Quill everything it did on the way:</p>
|
|
258
|
+
<ul>
|
|
259
|
+
<li>A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so the agent closes it as a user would and that step is in the flow; the step after says what covered it, and "What covered the page before a click" lists them. The engine library would otherwise click the element from JavaScript, which a test cannot do. What it still does from a script (a click, typing to the page) is named on its step.</li>
|
|
260
|
+
<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 does not), icon-font characters kept out of names (a name with one becomes a <code>role_pattern</code>), and a control that repeats on every row or card gets a locator scoped to its row (<code>#product-1 a.cart_quantity_delete</code>).</li>
|
|
261
|
+
<li>An element in a frame says which frame, and the replay reaches it through <code>frameLocator</code>. Advertisements (Google's full-page ads, ad frames) are marked, left out of the replay, and "Ads on these pages" says to block the ad hosts in the test instead of closing them.</li>
|
|
262
|
+
<li>A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the test will (<code>suite.restore_sessions: true</code> keeps them; a login with no username and password to sign in with keeps its session, the only way in) and from the case's own start page (its URL, first step, description, or preconditions). When a run did start with saved sessions, "State the run started with" says so.</li>
|
|
263
|
+
</ul>
|
|
264
|
+
<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 Quill's test fails too, Quill is told where the replay stopped and what was open on the page, since that is usually a pop-up, consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart), and gets another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded.</p>
|
|
265
|
+
<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 words: dotnet test's Error Message, pytest's <code>E</code> lines, or the error with its Expected and Received values (Playwright, Jest, JUnit), not the runner's summary line.</p>
|
|
266
|
+
<p><strong>Keeping Quill's cost down.</strong> ForgeQE reads the repository's test setup itself before Quill starts (stack, settings files and their browser values, the test id attribute, base classes, page objects and their methods, one test command) and hands it over, so Quill does not discover it with dozens of file reads. Each attempt after the first starts a fresh session from a summary of the job (handoff, files changed, what each attempt did, the latest failure), so later attempts cost about what the first did. The summary has a "Tried already, and did not work" list: for each failed attempt, what Quill said it did (it reports each change in <code>tried</code>), how it failed, the locator the test was waiting for and the element that covered it and took the click, both read from the test's output, and whether an earlier attempt already failed on that locator. Quill must not try those again in the same form and must say what it does differently. <code>forgeqe heal</code> keeps the same list across its attempts. <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, and the token budget is checked during an attempt too, so one long attempt is stopped when the total passes it. Cached input counts at its share of the profile's input price (a session re-reads its own context, and that is most of its input), and in full when no cached price is known, such as with another <code>code.model</code>. The reviewer sorts its issues into correctness (the test does not test what the goal says, or not reliably) and coding standards (test data or credentials in a page object, naming, hard waits, leftovers). Coding standards never fail a test that works: it is accepted, and the coding agent gets one more round (not counted in <code>max_attempts</code>) to fix them; if that round breaks the test, ForgeQE puts back the version that passed and lists the standards issues in the notes (<code>code.tidy: false</code> skips the round). A test the reviewer rejects twice for correctness stops the job with its issues, since that usually means the test case and the page disagree. When a test passed and the reviewer sent it back, and the changes for the review then break it (or the attempts or the token budget run out first), ForgeQE puts back the version that passed: the result is passed but not approved, with the reviewer's issues in the notes, so you get a working test to finish instead of none. Under each step, the handoff shows that step's part of the page (its section and neighbours, from the replay's page snapshot) instead of whole snapshots. When a test fails, ForgeQE shows the failing element on the test's page at the failure and on the replay's page, so most failures are fixed without opening a browser. Quill's live browser is switched on only when the same failure repeats, or from the start when ForgeQE's own replay got through the flow in no setup (Quill would otherwise patch the failing steps blind until a test ran), and it does not send a page snapshot after every click or keystroke. <code>code.max_steps</code> (default 50) caps the tool calls in one of Quill's turns. <code>code.review_profile</code> runs the reviewer on a cheaper llms.json profile.</p>
|
|
267
|
+
<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 report gives up to three one-line rules that would have avoided the mistake ("Wait for the cart badge with toHaveText before clicking Checkout; it updates after a request"). ForgeQE keeps them in <code>.forgeqe/scribe-rules.json</code> in the repository, and every attempt of later jobs, and every healing session, starts with them. A lesson from a job that did not pass, or that passed at once, is not kept: only a fix that worked becomes a rule. The book stays small, since it is sent with each model call: at most 15 rules of one line each; a lesson learned again is merged into its rule (shown as "learned 3 times") instead of added; when it is full, the rule confirmed least and longest ago goes, and a rule not learned again for 180 days expires. The rules are the coding agent's own words, so a rule with a link, something like a token, a destructive command, or wording that tells an agent to drop its instructions is refused, and the agents are told they are hints that never override their instructions or the team's guardrails. Commit the file to share the rules with the team and see each change in review; edit or delete a rule there (the agents cannot change <code>.forgeqe</code>). ForgeQE says each new rule as it learns it (<code>Learned for next time: …</code>). <code>code.rulebook: false</code> turns it off.</p>
|
|
268
|
+
</div>
|
|
269
|
+
</section>
|
|
270
|
+
<p class="see">See <a href="../area-setup/index.html#doc-how_to_use-generated-code">Generated code</a>.</p>
|
|
271
|
+
</div>
|
|
272
|
+
</article>
|
|
273
|
+
<article class="spec feat" id="cap-heal-tests">
|
|
274
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Heal failing tests</h3></div>
|
|
275
|
+
<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>
|
|
276
|
+
<div class="facts">
|
|
277
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Heal the failing tests in ../app</li></ul></div>
|
|
278
|
+
<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 the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li></ul></div>
|
|
279
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>heal_tests</code></p></div>
|
|
280
|
+
</div>
|
|
281
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
282
|
+
<section class="doc" id="doc-how_to_use-fixing-broken-tests">
|
|
283
|
+
<h4>Fixing broken tests</h4>
|
|
284
|
+
<div class="prose"><p>When a redesign or a renamed button breaks tests, <code>forgeqe heal</code> fixes them, or tells you the app is what broke:</p>
|
|
285
|
+
<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
|
|
286
|
+
</span></span><span class="ln"><span class="cmd">forgeqe heal "npx playwright test tests/checkout" --repo ../app
|
|
287
|
+
</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
|
|
288
|
+
</span></span></code></pre></div>
|
|
289
|
+
<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:
|
|
290
|
+
</span></span><span class="ln"><span class="cmd"> repo: ../app
|
|
291
|
+
</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
|
|
292
|
+
</span></span></code></pre></div>
|
|
293
|
+
<ol>
|
|
294
|
+
<li>ForgeQE runs the command. If it passes, there is nothing to heal and no model is called.</li>
|
|
295
|
+
<li>Quill starts in the repo as a healing agent, with the failing output. For each failing test it reads the test and the page objects it uses, then re-runs the test's flow in the real browser with ForgeQE's <code>browser_run</code> (the goal in plain words, not the old selectors).</li>
|
|
296
|
+
<li>If the browser run passes, the test is out of date. The agent reads that run's steps and locators with <code>run_details</code>, updates the test (in the page object when the locators live there), and runs it with <code>run_test</code>.</li>
|
|
297
|
+
<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 failure is reported as an app bug.</li>
|
|
298
|
+
<li>It never deletes or skips a test, loosens an assertion, or raises a timeout to make a test pass.</li>
|
|
299
|
+
<li>ForgeQE runs each healed test's own command, then the whole command. A healed test that still fails goes back to the agent with the output, and so does any other failure left in the whole run, until everything passes or <code>code.max_attempts</code> rounds are used.</li>
|
|
300
|
+
</ol>
|
|
301
|
+
<p><strong>Limits.</strong> A heal is capped by <code>code.max_attempts</code>, by each attempt's deadline (one browser run and two test runs), and
|
|
302
|
+
by <code>code.max_tokens</code> for the whole job, as a coding job is. At each of these, and at a browser run's steps or time, it
|
|
303
|
+
asks whether to carry on when someone can answer: in a terminal, in a chat, or on the Regression page for
|
|
304
|
+
<code>forgeqe pack heal</code> (the question shows under the job's output, with Carry on and Stop here). At the deadline or the
|
|
305
|
+
token budget the agent carries on in the same session, keeping what it worked out; after the last attempt, a yes gives
|
|
306
|
+
it as many attempts again, from what it changed so far. Stop keeps its changes. No answer in 10 minutes on the page is
|
|
307
|
+
a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
|
|
308
|
+
<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
|
|
309
|
+
</span></span><span class="ln"><span class="cmd"> ✗ Tests failed, exit 1 (41s)
|
|
310
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Quill (azure/gpt-5.4) is healing the failing tests in app
|
|
311
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ read tests/pages/LoginPage.ts
|
|
312
|
+
</span></span><span class="ln"><span class="cmd"> ▸ Browser: Sign in to staging.app.test and open the invoices page
|
|
313
|
+
</span></span><span class="ln"><span class="cmd"> ✓ Task complete · 9 steps
|
|
314
|
+
</span></span><span class="ln"><span class="cmd"> ⚙ edit tests/pages/LoginPage.ts
|
|
315
|
+
</span></span><span class="ln"><span class="cmd"> ▸ ForgeQE runs: npx playwright test tests/login.spec.ts
|
|
316
|
+
</span></span><span class="ln"><span class="cmd"> ✓ login › signs in passed in 6s
|
|
317
|
+
</span></span><span class="ln"><span class="cmd"> ▸ ForgeQE runs the tests: npx playwright test
|
|
318
|
+
</span></span><span class="ln"><span class="cmd"> ✗ Tests still fail, exit 1 (39s)
|
|
319
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
320
|
+
</span></span><span class="ln"><span class="cmd">┃ ✗ Tests still failing 2/5 attempts · 2m 40s · 61.2K tokens · azure/gpt-5.4
|
|
321
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
322
|
+
</span></span><span class="ln"><span class="cmd">┃ ✓ login › signs in healed
|
|
323
|
+
</span></span><span class="ln"><span class="cmd">┃ The Sign in button is now "Log in"; LoginPage uses the new label
|
|
324
|
+
</span></span><span class="ln"><span class="cmd">┃ ! invoices › totals app bug
|
|
325
|
+
</span></span><span class="ln"><span class="cmd">┃ The total column is empty; the browser run failed at the same step
|
|
326
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
327
|
+
</span></span><span class="ln"><span class="cmd">┃ 1 failure is in the app, not the tests; the tests were left as they are.
|
|
328
|
+
</span></span><span class="ln"><span class="cmd">┃ Command npx playwright test (exit 1 after 39s)
|
|
329
|
+
</span></span><span class="ln"><span class="cmd">┃ Changed tests/pages/LoginPage.ts
|
|
330
|
+
</span></span><span class="ln"><span class="cmd">┃ Report .forgeqe/reports/heal/20260929-101500/heal.md
|
|
331
|
+
</span></span></code></pre></div>
|
|
332
|
+
<p>The report is <code>heal.md</code> and <code>heal.json</code> in <code>.forgeqe/reports/heal/<time>/</code>: each test's verdict and reason, the files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit codes: <code>0</code> the tests pass (or nothing needed healing), <code>1</code> some still fail, <code>2</code> stopped. In the shell or with <code>forgeqe run</code>, "the checkout tests are failing after the redesign, fix them" does the same through ForgeQE's agent.</p>
|
|
333
|
+
</div>
|
|
334
|
+
</section>
|
|
335
|
+
</div>
|
|
336
|
+
</article>
|
|
337
|
+
<article class="spec feat" id="cap-migrate-tests">
|
|
338
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Migrate a test suite</h3></div>
|
|
339
|
+
<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>
|
|
340
|
+
<div class="facts">
|
|
341
|
+
<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>
|
|
342
|
+
<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 the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a git repository with the tests to migrate</span></li></ul></div>
|
|
343
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>migrate_tests</code></p></div>
|
|
344
|
+
</div>
|
|
345
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
346
|
+
<section class="doc" id="doc-how_to_use-migrating-a-test-suite">
|
|
347
|
+
<h4>Migrating a test suite</h4>
|
|
348
|
+
<div class="prose"><p><code>forgeqe migrate</code> moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#) or Robot Framework (with the Browser library). <code>forgeqe migrate targets</code> lists them, and a project adds its own (below). It always starts with a plan, which writes nothing:</p>
|
|
349
|
+
<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
|
|
350
|
+
</span></span><span class="ln"><span class="cmd">forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only "checkout/**" \
|
|
351
|
+
</span></span><span class="ln"><span class="cmd"> --instructions "Page objects go in pages/, one class per page"
|
|
352
|
+
</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
|
|
353
|
+
</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:
|
|
354
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12
|
|
355
|
+
</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
|
|
356
|
+
</span></span><span class="ln"><span class="cmd">forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript
|
|
357
|
+
</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
|
|
358
|
+
</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)
|
|
359
|
+
</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
|
|
360
|
+
</span></span></code></pre></div>
|
|
361
|
+
<p>The tests can come from this project, a git repository (https or ssh; a token only by the name of the credential that
|
|
362
|
+
holds it, passed to git through its environment and never in the URL, the command line or the clone's config), a folder
|
|
363
|
+
anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into
|
|
364
|
+
a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and
|
|
365
|
+
dependency folders are not copied.</p>
|
|
366
|
+
<p>A stack ForgeQE does not know is named with <code>--stack other</code> (on the Migration page, "Other (name it)" under Framework):
|
|
367
|
+
<code>--tests</code> and <code>--support</code> give the file types of its tests and support code as plain extensions (<code>*.jmx</code>, <code>*.groovy</code>,
|
|
368
|
+
never a pattern, a credential file or a binary), and <code>--source-name</code> what to call it. Those files become the units; test
|
|
369
|
+
data they name is copied; nothing else is migrated. The agent reads each file as it is, and the plan names this as a
|
|
370
|
+
limit to accept: ForgeQE runs none of its checks for known stacks first, and for a format it does not read itself, the
|
|
371
|
+
checks after migration only ask that the test declares a test, skips none and passes. ForgeQE reads JMeter test plans
|
|
372
|
+
(<code>.jmx</code>) itself, as untrusted XML (a document type or entity declaration is refused, sizes capped): the agent gets an
|
|
373
|
+
outline of each request, assertion, capture, CSV data set and script beside the file, with credential headers and
|
|
374
|
+
secret-named values never repeated and Groovy or BeanShell quoted as data, never run; each request becomes a call with
|
|
375
|
+
the target's own HTTP client, and load settings (threads, ramp-up, timers) are named as a limit and dropped. The values
|
|
376
|
+
the plan's assertions expect (never one under "not") are what the mutation oracle below corrupts, so a migrated test
|
|
377
|
+
that ignores them fails, and one that never mentions them is reported.</p>
|
|
378
|
+
<ol>
|
|
379
|
+
<li><strong>Plan.</strong> ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions (<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.</li>
|
|
380
|
+
<li><strong>What is possible.</strong> A <em>blocker</em> stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A <em>limit</em> is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all.</li>
|
|
381
|
+
<li><strong>Confirm.</strong> A person confirms the plan: at a terminal by typing its id, or on the Migration page of <code>forgeqe web</code>. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.</li>
|
|
382
|
+
<li><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>, <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 version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (<code>npx playwright test login.spec.ts</code>, <code>python3 -m pytest test_login.py</code>, <code>mvn -q test -Dtest=LoginTest</code>) and started without a shell. A failure goes back to the agent with the output, up to <code>code.max_attempts</code> times.</li>
|
|
383
|
+
<li><strong>Validate and fix.</strong> When every file is done, ForgeQE runs each migrated test again with all files in place, and
|
|
384
|
+
counts its tests against the source. A test that passes is then <em>proved to check something</em>, by experiment rather
|
|
385
|
+
than by reading its code: ForgeQE takes the values the source expected, writes a copy of the migrated test with each
|
|
386
|
+
of them made wrong, and runs it once more. <strong>That run has to fail.</strong> A test that passes either way does not check
|
|
387
|
+
what its source checked, whatever its framework and however its assertions are spelled, so it is not migrated — and
|
|
388
|
+
a value the source checked that the migrated file never mentions at all is reported without a run. The copy is put
|
|
389
|
+
back in every case, and the "Checks proved" column of <code>migrate.md</code> says which tests were proved this way. Where
|
|
390
|
+
there is nothing to corrupt (the source checks only computed values), assertion lines are counted as before. Each
|
|
391
|
+
test that fails goes to the fixing agent with its output, then runs again. From the page or with
|
|
392
|
+
<code>forgeqe migrate fix</code>, you can send a test to the fixing agent yourself with a note.</li>
|
|
393
|
+
<li><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 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 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 tests are never changed. <code>migrate.md</code> and <code>result.json</code> are in <code>.forgeqe/migrations/<plan>/</code>, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.</li>
|
|
394
|
+
</ol>
|
|
395
|
+
<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:
|
|
396
|
+
a profile in <code>.forgeqe/migrate-targets/<id>.yaml</code>. So Karate, Gauge, Behave or anything else your team uses is a file
|
|
397
|
+
you write, not a release you wait for.</p>
|
|
398
|
+
<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
|
|
399
|
+
</span></span><span class="ln"><span class="cmd">id: karate-java
|
|
400
|
+
</span></span><span class="ln"><span class="cmd">title: Karate (Java)
|
|
401
|
+
</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
|
|
402
|
+
</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)
|
|
403
|
+
</span></span><span class="ln"><span class="cmd">ext: .feature
|
|
404
|
+
</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
|
|
405
|
+
</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
|
|
406
|
+
</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}
|
|
407
|
+
</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
|
|
408
|
+
</span></span><span class="ln"><span class="cmd">conventions: Feature files with Scenario blocks; match for assertions; one Runner per feature.
|
|
409
|
+
</span></span><span class="ln"><span class="cmd">evidence:
|
|
410
|
+
</span></span><span class="ln"><span class="cmd"> how: In karate-config.js, set the report directory to test-results.
|
|
411
|
+
</span></span><span class="ln"><span class="cmd"> video: false
|
|
412
|
+
</span></span></code></pre></div>
|
|
413
|
+
<p>The same profiles serve a Tosca conversion (<code>forgeqe tosca plan --to karate-java</code>), so a framework you added is
|
|
414
|
+
available to both. Then a person approves it at a terminal, by typing its id:</p>
|
|
415
|
+
<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
|
|
416
|
+
</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
|
|
417
|
+
</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
|
|
418
|
+
</span></span></code></pre></div>
|
|
419
|
+
<p>Why the approval: a profile can come with the repository, and it names a program ForgeQE will start. So it is read as
|
|
420
|
+
untrusted (unknown keys, YAML aliases and anything but an argument list are refused, and a shell, downloader,
|
|
421
|
+
container, database client or file-moving command is refused outright), and what migrates is the exact copy you
|
|
422
|
+
approved, kept with its digest in <code>.approved/</code>. Edit the profile afterwards and the approved copy still runs, with
|
|
423
|
+
<code>forgeqe migrate targets</code> saying it changed, until you approve it again. An unapproved profile cannot be migrated to at
|
|
424
|
+
all, and a profile can never take one of ForgeQE's own ids.</p>
|
|
425
|
+
<p>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
|
|
426
|
+
ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.</p>
|
|
427
|
+
<p>Whether a profile is <em>right</em> is settled by running it, not by trusting it: the validate stage runs every migrated test
|
|
428
|
+
again with the values its source expected made wrong, so a command that does not really run the test, or never reports
|
|
429
|
+
a failure, passes both times and fails the migration instead of signing it off.</p>
|
|
430
|
+
<p>What a profile cannot do is invent a language: <code>language</code> is one of typescript, javascript, python, java, csharp, ruby
|
|
431
|
+
or robot, because where a test file goes and what its class is called is code (a Java test is <code>src/test/java/<Class>.java</code>,
|
|
432
|
+
a Python one <code>test_<name>.py</code>). A new framework in one of those languages is a profile; a new language still needs a
|
|
433
|
+
change to ForgeQE. <code>naming</code> adjusts the rest where a language has no convention of its own:
|
|
434
|
+
<code>naming: { test_suffix: .cy, test_dirs: [cypress, e2e], support_dirs: [cypress, support] }</code> is how Cypress is described.</p>
|
|
435
|
+
<p>Exit codes of <code>migrate run</code>: <code>0</code> every test migrated, <code>1</code> some or none, <code>2</code> stopped. The Migration page of <code>forgeqe web</code> does all of this in four steps (source, target, instructions, review), then follows
|
|
436
|
+
the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
|
|
437
|
+
In the shell, "migrate our Selenium tests to Playwright" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job.</p>
|
|
438
|
+
</div>
|
|
439
|
+
</section>
|
|
440
|
+
</div>
|
|
441
|
+
</article>
|
|
442
|
+
<article class="spec feat" id="cap-tosca-convert">
|
|
443
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Convert Tosca test cases</h3></div>
|
|
444
|
+
<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>
|
|
445
|
+
<div class="facts">
|
|
446
|
+
<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>
|
|
447
|
+
<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 the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a Tosca .tsu export inside a git repository</span></li></ul></div>
|
|
448
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>convert_tosca</code></p></div>
|
|
449
|
+
</div>
|
|
450
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
451
|
+
<section class="doc" id="doc-how_to_use-converting-tosca-tests">
|
|
452
|
+
<h4>Converting Tosca tests</h4>
|
|
453
|
+
<div class="prose"><p><code>forgeqe tosca</code> converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with
|
|
454
|
+
Bridge. It is a separate agent from <code>forgeqe migrate</code>: a Tosca export is not a folder of code but a graph of test
|
|
455
|
+
cases, modules, reusable blocks and parameters. Put the export (<code>.tsu</code>) inside the repository, then:</p>
|
|
456
|
+
<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
|
|
457
|
+
</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]
|
|
458
|
+
</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
|
|
459
|
+
</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:
|
|
460
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs add tosca-ui --now -- tosca run tsc-20261105-151116-1f21
|
|
461
|
+
</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
|
|
462
|
+
</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
|
|
463
|
+
</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)
|
|
464
|
+
</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
|
|
465
|
+
</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
|
|
466
|
+
</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
|
|
467
|
+
</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
|
|
468
|
+
</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
|
|
469
|
+
</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
|
|
470
|
+
</span></span></code></pre></div>
|
|
471
|
+
<p>A Tosca conversion may target any framework a migration may, so a target profile of your own
|
|
472
|
+
(<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
|
|
473
|
+
as a person has approved it: <code>forgeqe tosca plan --file shop.tsu --to karate-java</code>. <code>forgeqe tosca targets</code> says which
|
|
474
|
+
of your own are approved, and an unapproved one is refused here exactly as it is for a migration.</p>
|
|
475
|
+
<ol>
|
|
476
|
+
<li><strong>Read.</strong> ForgeQE reads the export with no model, through <a href="https://github.com/bermudas/ToscaTSU" class="ext" rel="noopener">ToscaTSU</a>'s parser
|
|
477
|
+
(MIT, included unchanged in <code>py/forgeqe_tosca/vendor/toscatsu</code>). It follows folders, reusable blocks with their
|
|
478
|
+
parameter layers, If and Loop, buffers, and SelfHealingData, and writes each test case as NTIR, a neutral JSON form
|
|
479
|
+
with numbered steps (<code>.forgeqe/tosca/<plan>/read/</code>). The export is data: nothing in it is run, and its size is capped.</li>
|
|
480
|
+
<li><strong>Secrets.</strong> Tosca-encrypted values cannot be decrypted outside the Tosca workspace, and ForgeQE never tries. They
|
|
481
|
+
and configuration parameters (<code>{CP[…]}</code>) become environment variables; the plan and <code>.env.example</code> name each one and
|
|
482
|
+
where it comes from in Tosca. Values never reach the agent, the plan or the code.</li>
|
|
483
|
+
<li><strong>Plan.</strong> One page object per Tosca module and one test per web test case, named by the target's conventions and
|
|
484
|
+
placed under the test case's Tosca folders (<code>tests/orders/cart/…</code>; Tosca's own <code>TestCases</code> and similar folders left
|
|
485
|
+
out). Tosca's execution lists become suites: each test is tagged with the lists that run it (Playwright
|
|
486
|
+
<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
|
|
487
|
+
title), and ForgeQE checks the tags are there. Test
|
|
488
|
+
cases whose steps are desktop, SAP, API or mobile are left out for now, and named. A step ForgeQE cannot convert
|
|
489
|
+
(an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it stays in the test as a marked
|
|
490
|
+
comment for a person to finish.
|
|
491
|
+
<strong>Several exports, or a git repository.</strong> A plan can read many <code>.tsu</code> files: picked on the page, named on the
|
|
492
|
+
command line, or a folder (every export in it, at most 50). Each is read on its own and the readings merged: a test
|
|
493
|
+
case that two exports both hold (same id, name, folders and steps) is converted once and the plan says so; a
|
|
494
|
+
different test case with the same id gets its export's number; a module of the same name becomes one page object;
|
|
495
|
+
execution lists and variables join. Exports can come from a git repository instead of the project:
|
|
496
|
+
<code>forgeqe tosca clone <url></code> (or From a git repository on the page) makes a shallow copy under ForgeQE's home with
|
|
497
|
+
Mover's checks (https or git@ only, no user name in the address, the token by its variable's name and
|
|
498
|
+
only as a header, no hooks, submodules or links) and keeps it only when it holds an export; such a copy is a Tosca
|
|
499
|
+
source, never listed as a migration's. Every file of a plan is checked by its digest before each run, so a changed
|
|
500
|
+
or removed export (or a removed copy) stops it until a new plan is made.
|
|
501
|
+
<strong>Back to Tosca.</strong> Each test case keeps Tosca's unique id (its surrogate). <code>tosca-map.json</code> in the target folder
|
|
502
|
+
(beside <code>tosca-suites.json</code>, written by ForgeQE after each run and verify) lists every Tosca test case of the plan
|
|
503
|
+
by that id, its Tosca path and export, and what became of it: its test file, last outcome, the Tosca steps in the
|
|
504
|
+
test and those left for a person. <code>forgeqe tosca map <plan></code> prints it; the report shows the id on each test case
|
|
505
|
+
and downloads it as a Traceability CSV, so a team can run both side by side and retire Tosca test cases one by one.
|
|
506
|
+
<strong>Reading the exports again.</strong> When Tosca changes, <code>forgeqe tosca reimport <plan></code> (or Read exports again on the
|
|
507
|
+
conversion's page) makes a new plan from the same exports, for the same target and folder, and compares each test
|
|
508
|
+
case with the earlier plan by its unique id (or, for a plan made before ids were kept, its id) and its steps:
|
|
509
|
+
unchanged ones keep their tests (no agent call, as long as the file is still as it was converted), changed and new
|
|
510
|
+
ones are converted, and ones no longer in the exports are listed with their tests left in place for a person to
|
|
511
|
+
remove. Test cases left unpicked before stay unpicked. <code>--refresh</code> (or the page's option) clones each repository
|
|
512
|
+
again for its newest commit, as before; the old copy stays for the old plan.
|
|
513
|
+
<strong>What can be migrated.</strong> <code>forgeqe tosca inspect</code>, <code>show</code> and a Tosca migration's page (Migration) put every test case of the export in
|
|
514
|
+
one kind: web (converted), web with steps for a person, API (converted), API with steps for a person, web and API
|
|
515
|
+
(converted), web or API mixed with another engine (converted: its web and API steps, and each desktop, mobile or
|
|
516
|
+
database step stays in the test as a marked comment saying what it does, for a person to code), desktop, mobile,
|
|
517
|
+
database and files, steps nothing reads, nothing to convert, not picked. Each kind says what becomes of it and the Tosca
|
|
518
|
+
modules (with their engine) behind it, or for steps left to a person the reasons; the page downloads it as a CSV
|
|
519
|
+
per test case.
|
|
520
|
+
<strong>Ready to run.</strong> Before a conversion starts, ForgeQE checks what running its tests needs and asks for what is
|
|
521
|
+
missing (<code>forgeqe tosca ready <plan></code>, or the page's Before it runs): where the tests start (the address the export
|
|
522
|
+
recorded, an app of env.yaml, never an environment named like production, or one given: http(s) only, no user name
|
|
523
|
+
in it), every environment variable the tests read (set, or saved in the credential store from the page; never its
|
|
524
|
+
value in a file), the programs the target runs with (<code>npx</code>, <code>mvn</code>, <code>dotnet</code>, looked up on PATH), and Tosca test
|
|
525
|
+
data the export does not hold. A missing address or program blocks the start; a variable or the test data is
|
|
526
|
+
answered or accepted ("convert without it"). Answers are kept in <code>.forgeqe/tosca/<plan>/ready.json</code>; <code>run</code>, <code>fix</code>
|
|
527
|
+
and <code>verify</code> refuse until nothing is open, and the tests get the reviewed address as <code>BASE_URL</code>.
|
|
528
|
+
<strong>What it may cost.</strong> Review's Estimate (and <code>forgeqe tosca show</code> or <code>confirm</code>) gives the model tokens of the
|
|
529
|
+
files still to write, as a range, and their price with the model Bridge is routed to when that model has a
|
|
530
|
+
price in <code>llms.json</code> (<code>price:</code>; none for a Copilot seat). It is worked out from this project's earlier Tosca
|
|
531
|
+
conversions once they have written at least 5 files (tokens per file), else from defaults sized by each test case's
|
|
532
|
+
steps; files already written are not counted again. An estimate, never a limit: a hard test case takes more tries.</li>
|
|
533
|
+
<li><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
|
|
534
|
+
ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</li>
|
|
535
|
+
<li><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of Bridge, which may edit
|
|
536
|
+
only the target folder. The agent marks each line that does a Tosca step with its id (<code>// tosca: n12</code>). ForgeQE's
|
|
537
|
+
fidelity check needs every step and check marked (only the branch that runs of an If that is always true or false),
|
|
538
|
+
no skipped test, and assertions where Tosca checked; then it runs the test with the target's own command. A failure
|
|
539
|
+
goes back to the agent with the output, up to <code>code.max_attempts</code> times. At the end every converted test runs again
|
|
540
|
+
with all files in place.</li>
|
|
541
|
+
<li><strong>Check again.</strong> <code>forgeqe tosca verify <plan></code> runs the converted tests again with no model: all of them, one
|
|
542
|
+
Tosca execution list (<code>--suite</code>), or named tests (<code>--unit</code>). Each test's steps and tags are checked again, it is run
|
|
543
|
+
with the target's own command, and its outcome and whole output are kept. <code>tosca-suites.json</code> in the target folder
|
|
544
|
+
lists each suite with its tag and test files, and each test with its Tosca folders, suites and last outcome.</li>
|
|
545
|
+
<li><strong>Report.</strong> <code>tosca.md</code> in <code>.forgeqe/tosca/<plan>/</code>: each test case's outcome and fidelity (steps marked of steps
|
|
546
|
+
required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
|
|
547
|
+
files that are done and unchanged. <code>report.html</code> beside it is ForgeQE's HTML run report of the conversion, written
|
|
548
|
+
when a run or <code>tosca verify</code> ends: one case per Tosca test case, its Tosca steps as passed, failed or left for a
|
|
549
|
+
person, its problems and output, and its failure screenshot and video (in <code>report-cases/</code>, so the folder opens
|
|
550
|
+
offline). The web app's report shows the totals, the model's tokens and cost, and where the tests came from and went
|
|
551
|
+
to at the top; the test cases grouped as Failed, Needs a look, Passed, Not run and Left out, 50 at a time and
|
|
552
|
+
searchable; and the picked one's details beside them. Its HTML report button downloads <code>report.html</code> with the failure
|
|
553
|
+
screenshots inside; Zip with videos downloads <code>report.zip</code> (<code>report.html</code> and <code>report-cases/</code> with every screenshot
|
|
554
|
+
and video, made when asked and once the run has ended): unzip it and open <code>report.html</code>.</li>
|
|
555
|
+
<li><strong>Screenshots and video, by default.</strong> Every test ForgeQE runs after the conversion (each try, the final run, and
|
|
556
|
+
<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
|
|
557
|
+
(the run gets that folder as <code>FORGEQE_EVIDENCE_DIR</code>); they are copied to <code>.forgeqe/tosca/<plan>/evidence/<unit>/</code>
|
|
558
|
+
and shown on the report page. Where the runner has switches for it, ForgeQE passes them itself (pytest-playwright's
|
|
559
|
+
<code>--screenshot=only-on-failure --video=on</code>, Cypress's <code>--config video=true,…</code>); elsewhere the setup step sets it up
|
|
560
|
+
(<code>playwright.config</code>'s <code>screenshot: 'only-on-failure', video: 'on'</code>, a test base for Java and C#, an <code>afterTest</code>
|
|
561
|
+
hook and wdio-video-reporter for WebdriverIO) and ForgeQE checks the project for it, setting it up again when it is
|
|
562
|
+
missing. Selenium has no video recorder: its tests keep failure screenshots only.</li>
|
|
563
|
+
</ol>
|
|
564
|
+
<p>Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped. The Migration page of <code>forgeqe web</code>
|
|
565
|
+
(New, then the <em>Tosca</em> source) does the same in four steps (export, target, instructions, review): it lists the <code>.tsu</code> exports in
|
|
566
|
+
the project, reads the one you pick and lets you choose its test cases, then follows the job: its stages, every file
|
|
567
|
+
with how many of its Tosca steps the test does and its whole output (Fix sends one back to Bridge with a note),
|
|
568
|
+
Run tests again for all of them or Run for one suite, each test case's
|
|
569
|
+
Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
|
|
570
|
+
happens.</p>
|
|
571
|
+
<p><strong>Guide.</strong> Tosca exports are migrated on the Migration page of <code>forgeqe web</code>, listed with every other migration under its Migrations tab. New, then the <em>Tosca</em> source, offers <em>Help me choose</em>: say in your words what to migrate ("checkout.tsu to
|
|
572
|
+
Playwright in TypeScript on QA, into e2e/tosca") and the assistant asks only what it still needs, one thing at a time:
|
|
573
|
+
the exports, the framework, the language, where the tests start, then a folder or rules for the code. Each question
|
|
574
|
+
offers its options to pick; you can also type, and change anything you said. Open the prefilled wizard then reads the
|
|
575
|
+
exports, makes the plan and opens it on Review with every stage filled in; nothing starts until you confirm, as before.
|
|
576
|
+
ForgeQE's model (<code>forgeqe-tosca-assistant</code>: no tools, a fixed answer shape) only reads your words. ForgeQE keeps only
|
|
577
|
+
what your project has (an export it lists, a target it runs, a web app of env.yaml outside production), an address only
|
|
578
|
+
of http(s) that you wrote and that is not production's, and a folder only inside the repository; it chooses the next
|
|
579
|
+
question itself. Without a model, ForgeQE's rules read the same words. The exports question lets you pick several, or
|
|
580
|
+
clone a git repository of exports: paste its address (add "branch <name>" for a branch), and the assistant asks "Clone
|
|
581
|
+
it?" first; it clones as the wizard does and picks the clone's exports. For a private repository, the question has an
|
|
582
|
+
Access token field: pick a token already saved (in Settings › Secrets › Repository tokens, or a variable such as GITHUB_TOKEN;
|
|
583
|
+
Check again reads the list once you have saved one there), or Add a token, which keeps the value in ForgeQE's
|
|
584
|
+
credential store under its name. The chat and the model only ever see the name, Clone it waits until a value is saved, and a token typed into the
|
|
585
|
+
chat itself is refused and never sent. Each conversation is kept in ForgeQE's home (<code>~/.forgeqe/tosca-assistant</code>, readable by you only,
|
|
586
|
+
two weeks, the newest 30), so it survives <code>forgeqe web</code> starting again, and the page reopens the last one; New
|
|
587
|
+
conversation removes it. Nothing is written to the project until the wizard makes the plan (or you agree to a clone).
|
|
588
|
+
When the picked exports hold desktop or mobile test cases, or database checks, the assistant also asks which desktop
|
|
589
|
+
or mobile app their workflows start and which database their queries read (only the names Settings has, or "Tell you
|
|
590
|
+
later"); the wizard puts the answers on Review.</p>
|
|
591
|
+
<p><strong>API test cases.</strong> Test cases of Tosca's API engine (API Scan modules: one per call, its Method, Endpoint and
|
|
592
|
+
Resource as the module's settings, the request and the response as attribute trees) are converted too, alone or in a
|
|
593
|
+
test case with web steps. Each call becomes a request with the target's own HTTP client (Playwright's <code>request</code>,
|
|
594
|
+
Cypress's <code>cy.request</code>, Node's <code>fetch</code> for WebdriverIO, the language's standard client for Selenium; no dependency is
|
|
595
|
+
added for HTTP), then a check for each Tosca verify: the status, a header, a JSON value (Tosca's <code>==</code>, <code>!=</code>, <code><</code>, <code>></code>,
|
|
596
|
+
<code>*</code> comparisons kept) or the body; a buffer keeps a response value for a later call. The API's address and any token
|
|
597
|
+
in a header (<code>Bearer {CP[ApiToken]}</code>) are variables the tests read, the token a secret, never in the code. An
|
|
598
|
+
attribute ForgeQE cannot place (a timeout, a certificate) stays a marked comment for a person, and the fidelity check
|
|
599
|
+
counts every request and check as it does a web step. A plan of API test cases only needs no start address; a
|
|
600
|
+
variable the tests read that holds an address of production in env.yaml blocks the start, since the tests change data.</p>
|
|
601
|
+
<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
|
|
602
|
+
.tsu export does not hold. On Review's <strong>Test data from Tosca</strong> (or <code>forgeqe tosca data <plan> <file> [--sheet NAME]</code>),
|
|
603
|
+
name a data file of the project: Tosca's Export to Excel of the test sheet, or any CSV, Excel or JSON with the values.
|
|
604
|
+
ForgeQE matches each name to a column (ignoring case, spaces and punctuation, then by the last part of a dotted name),
|
|
605
|
+
in either layout: one row per instance, or Tosca's own with the attributes down the first column and the instances
|
|
606
|
+
across. Several files can be named, one per test sheet. At conversion each test case whose values are all found gets
|
|
607
|
+
its rows in <code>tosca-data/<case>.json</code> in the target folder, with only the columns it reads, and its test runs once per
|
|
608
|
+
row. A value named like a password or token is never written to that file (it would be committed): the test reads it
|
|
609
|
+
from an environment variable, <code>TOSCA_DATA_<NAME></code>, which Review lists to set like any other. The file is read with the
|
|
610
|
+
project's own reader (inside the project, no hidden part, no link out, sizes capped, a formula never worked out), and
|
|
611
|
+
the values never reach the agent: it is told the file and the names. A value still not found stays a marked spot for
|
|
612
|
+
a person, or you accept leaving them all for a person. ForgeQE's reader now keeps <code>{XL[...]}</code> as test data even inside
|
|
613
|
+
a longer value (<code>Welcome {XL[Customer.FirstName]}</code>); before, the parser's <code>$XL:</code> text could reach a test as typed text.</p>
|
|
614
|
+
<p><strong>Database steps.</strong> A Tosca database step (a module of a database engine: an SQL statement and checks of its result)
|
|
615
|
+
becomes code in the test that runs the statement with the target's own database client and asserts each checked cell
|
|
616
|
+
(row and column) as Tosca did, beside the test's web and API steps; a test case of database checks alone is converted
|
|
617
|
+
too. Only a statement that reads is converted: one <code>SELECT</code> (or <code>WITH … SELECT</code>), nothing that changes data or the
|
|
618
|
+
schema, runs a procedure, writes a table or holds a second statement. A statement Tosca fills with its own values
|
|
619
|
+
(<code>{B[...]}</code>, <code>{CP[...]}</code>, <code>{XL[...]}</code>) is converted with each value as a bound query parameter, never pasted into the
|
|
620
|
+
statement; one whose value sits inside quotes, and any other statement, stays a marked comment for a person. Before it runs, Review asks which database:
|
|
621
|
+
one of Settings › Databases whose connection string is in a variable (<code>url_env</code>), never one named like production
|
|
622
|
+
(<code>forgeqe tosca ready <plan> --database NAME</code>). The test reads that connection string from <code>TOSCA_DB_URL</code>, which
|
|
623
|
+
ForgeQE gives only the test run; the export's own connection string (and any password in it) is never read into the
|
|
624
|
+
plan, the brief or the code. The CI pipeline names <code>TOSCA_DB_URL</code> as a secret.</p>
|
|
625
|
+
<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
|
|
626
|
+
files compared) or a workbook (Tosca's Excel engine: a sheet's cells) becomes a check in the test, made with the
|
|
627
|
+
target's own code: read only, as database steps are. The file is found by its name, among the files the test
|
|
628
|
+
downloaded or in the folder <code>TOSCA_FILES_DIR</code> names (Review asks for it), never at the Tosca machine's own path. A step
|
|
629
|
+
that writes, copies, moves, renames or deletes a file, or sets a cell, stays a marked comment for a person.</p>
|
|
630
|
+
<p><strong>Desktop and mobile test cases.</strong> A Tosca test case of desktop steps (UI Automation: WinForms, WPF, Win32) or of
|
|
631
|
+
mobile steps becomes one of ForgeQE's own workflows, <code>forgeqe-desktop-v1</code> or <code>forgeqe-mobile-v1</code>, written by code with
|
|
632
|
+
no model: Tosca finds each control by its UI Automation properties (AutomationId, Name, ControlType, ClassName) or its
|
|
633
|
+
resource id, accessibility id, text and class, which are what a workflow's targets are. Each step becomes a workflow
|
|
634
|
+
step (type, click or tap, select, keys, expect, wait for), a Tosca-encrypted value <code>{{secret:NAME}}</code>, and test data
|
|
635
|
+
<code>{{name}}</code>. With a data file picked on Review (see Tosca's test data), its rows go into <code><case>.data.csv</code> beside the
|
|
636
|
+
workflow, for <code>--data</code>; a value named like a secret is typed from <code>TOSCA_DATA_<NAME></code> instead and never written. A step a workflow cannot do (a condition, a loop, a buffer, a Tosca expression, a TBox module, a control
|
|
637
|
+
with no id or name recorded) is left out and listed with why in the conversion's results, for a person to add. Before
|
|
638
|
+
it runs, Review asks which app the workflows start: one of the desktop or mobile apps of Settings › Environments (or
|
|
639
|
+
<code>desktop.apps</code>, <code>mobile.apps</code>); <code>forgeqe tosca ready <plan> --desktop-app NAME --mobile-app NAME</code> at a terminal. Review
|
|
640
|
+
also checks that every secret the workflows type is listed in <code>desktop.secrets</code> (or <code>mobile.secrets</code>), which replay
|
|
641
|
+
requires, and says which to add in Settings. They are
|
|
642
|
+
written under <code>workflows/</code> in the target folder (so the pull request carries them) and checked again before they are
|
|
643
|
+
written; replay them on a computer with the app or a device with <code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code>.
|
|
644
|
+
A plan of workflows only needs no model and no setup. SAP GUI, Java Swing, Delphi and PowerBuilder controls are not
|
|
645
|
+
ones UI Automation finds, so such cases stay out. In a case that also drives the web or an API, each run of desktop or
|
|
646
|
+
mobile steps becomes a small workflow of its own (<code>workflows/<case>-part<N>.yaml</code>), and the test replays it at that
|
|
647
|
+
point by starting <code>forgeqe desktop replay</code> (or <code>mobile replay</code>) with an argument list, failing when it fails. ForgeQE's
|
|
648
|
+
own runs (and the CI file's tests job) set <code>TOSCA_SKIP_APP_STEPS=1</code>, so the test skips those parts on a computer
|
|
649
|
+
without the app; a run on a machine with the app and ForgeQE installed leaves it unset. Steps a workflow cannot do
|
|
650
|
+
(SAP GUI, Java Swing) stay marked comments.</p>
|
|
651
|
+
<p><strong>In batches.</strong> A large export need not be one long run: tick <strong>Convert in batches</strong> when you start (or
|
|
652
|
+
<code>forgeqe tosca run <plan> --batch N</code>) and ForgeQE converts the set-up, then the next N test cases not tried yet with
|
|
653
|
+
the page objects they use, checks every converted test again, and stops. The others wait ("Waiting for a later
|
|
654
|
+
batch"). Check the batch (fix a test, or accept it), then <strong>Continue with the next batch</strong> on the conversion's page
|
|
655
|
+
(or run the same command again). What is done is kept; a test that failed is never tried again by a batch (fix it
|
|
656
|
+
with Fix), so one hard case never stalls the rest. A run without <code>--batch</code> tries everything not done.</p>
|
|
657
|
+
<p><strong>A CI pipeline per execution list.</strong> When a conversion has run, its page's <strong>CI pipeline</strong> (or
|
|
658
|
+
<code>forgeqe tosca ci <plan> [--azure] [--write]</code>) gives a GitHub Actions workflow or an Azure Pipelines file that runs the
|
|
659
|
+
converted tests in your CI, one job per Tosca execution list with the runner's own filter (Playwright's <code>--grep @tag</code>,
|
|
660
|
+
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
|
|
661
|
+
request that changes the target folder. It sets up the target's toolchain, installs the dependencies and browsers, keeps
|
|
662
|
+
the failure screenshots and videos as artifacts, and names the variables the tests read: <code>BASE_URL</code> as a variable and
|
|
663
|
+
the others as secrets, by name only (<code>${{ secrets.NAME }}</code>, <code>$(NAME)</code>), passed to the step that runs the tests and not
|
|
664
|
+
to the installs. No value, address or Tosca text goes in the file. Copy or download it, or add it to the target
|
|
665
|
+
folder's <code>ci/</code> (so the pull request carries it); GitHub runs a workflow only from <code>.github/workflows/</code>, so move it there.
|
|
666
|
+
Desktop and mobile workflows replay in jobs of their own (<code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code> of each,
|
|
667
|
+
with its <code>.data.csv</code>, results as JUnit), ForgeQE installed at this version: the desktop job on a self-hosted Windows
|
|
668
|
+
runner or agent that has the app, the mobile one on a hosted runner with a device cloud set in <code>forgeqe.yaml</code> (or
|
|
669
|
+
your own Appium machine). Each replay step gets only the secrets its workflow types, by name.</p>
|
|
670
|
+
<p><strong>A pull request of the conversion.</strong> When a conversion has run, its page's <strong>Pull request</strong> (or
|
|
671
|
+
<code>forgeqe tosca pr <plan> [--base BRANCH] [--title TEXT] [--draft]</code> at a terminal, where you type the plan's id to
|
|
672
|
+
confirm) shows what goes in, then commits the target folder on ForgeQE's own branch <code>forgeqe/tosca/<plan></code> from the
|
|
673
|
+
branch it merges into (the remote's default unless you name one), pushes it and opens the pull request: on GitHub with
|
|
674
|
+
the GitHub CLI (<code>gh</code>), on Azure DevOps with ForgeQE's Azure DevOps sign-in (the remote must be in that organization).
|
|
675
|
+
The commit is made in a separate copy of the repository (a git worktree), so your own branch and edits stay as they
|
|
676
|
+
are, and the repository's git hooks do not run. Only the target folder's own files go in: never a link, a dependency,
|
|
677
|
+
build or run-output folder (<code>node_modules</code>, <code>test-results</code>, …), a <code>.env</code> (its <code>.env.example</code> does), a file named like
|
|
678
|
+
credentials, or one over 2 MB; the panel lists what was left out and why. The description lists each Tosca test case,
|
|
679
|
+
its test and how it ran, and points to <code>tosca-map.json</code>. Pushing again updates the same branch and pull request;
|
|
680
|
+
with nothing new, nothing is pushed. git uses the sign-in it already has on this computer (<code>gh auth setup-git</code>, Git
|
|
681
|
+
Credential Manager or ssh). ForgeQE merges nothing.</p>
|
|
682
|
+
<p><strong>Secrets for the converted tests.</strong> A Tosca export's encrypted and <code>{CP[...]}</code> values become variables the tests read
|
|
683
|
+
(<code>USER_PWD</code>, <code>TOSCA_PASSWORD</code>). Once the exports are picked, the assistant reads which ones the tests need and, for each
|
|
684
|
+
with no value, asks which saved secret holds it (Settings › Secrets: typed there or pulled from a vault), or leaves it
|
|
685
|
+
for Review. Review's Before it runs offers the same: Save a value under the variable's name, or <strong>use a saved secret</strong>
|
|
686
|
+
under another name. The tests then get that secret's value under the name they read; the agents see only names, and
|
|
687
|
+
no model sees a secret's name. Which secret a variable uses is kept on this computer (<code>~/.forgeqe/tosca-secrets</code>), never
|
|
688
|
+
in the plan's folder in the repository, and ForgeQE's own keys (its models', trackers') are never offered or given to a
|
|
689
|
+
test. Conversions lists the plans. In the shell, "convert
|
|
690
|
+
tosca/checkout.tsu to Playwright" inspects the export and makes the plan; you confirm it yourself. Bridge
|
|
691
|
+
knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value tokens, expressions, locators, and how each maps to
|
|
692
|
+
every target).</p>
|
|
693
|
+
</div>
|
|
694
|
+
</section>
|
|
695
|
+
</div>
|
|
696
|
+
</article>
|
|
697
|
+
<article class="spec feat" id="cap-find-run-tests">
|
|
698
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Find and run existing tests</h3></div>
|
|
699
|
+
<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>
|
|
700
|
+
<div class="facts">
|
|
701
|
+
<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>
|
|
702
|
+
<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 the agent runtime, which forgeqe setup installs</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>
|
|
703
|
+
<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>
|
|
704
|
+
</div>
|
|
705
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
706
|
+
<section class="doc" id="doc-how_to_use-finding-and-running-existing-tests">
|
|
707
|
+
<h4>Finding and running existing tests</h4>
|
|
708
|
+
<div class="prose"><p>Ask for the tests you want in your own words, in the shell or with <code>forgeqe run</code>:</p>
|
|
709
|
+
<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
|
|
710
|
+
</span></span><span class="ln"><span class="cmd">Run the tests added this sprint
|
|
711
|
+
</span></span><span class="ln"><span class="cmd">Which tests cover checkout? Don't run them
|
|
712
|
+
</span></span><span class="ln"><span class="cmd">Run the tests added since 2026-09-01
|
|
713
|
+
</span></span></code></pre></div>
|
|
714
|
+
<ol>
|
|
715
|
+
<li>Quill starts read-only in the repo. It works out the test framework and decides each test by reading it: its 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 as a login test; a test that only mentions login in its name but checks something else does not. For a date range or sprint, it reads git history and selects the tests added in that range, including new test functions in files that already existed. It cannot change files or run anything.</li>
|
|
716
|
+
<li>It gives two commands in the framework's own terms: one that lists exactly those tests (<code>playwright test --list</code>, <code>pytest --collect-only</code>, <code>dotnet test --list-tests</code>, …) and one that runs them and writes JUnit XML or TRX results. ForgeQE runs the list command, and Quill checks the listing is exactly its selection, fixing the command when it is not (up to three rounds).</li>
|
|
717
|
+
<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 commands.</li>
|
|
718
|
+
<li>Nothing runs until you say so. ForgeQE asks <strong>Run N tests?</strong> with <strong>Run</strong> and <strong>Don't run</strong> (in the shell a dialog; with <code>forgeqe run</code> a numbered prompt in the terminal). When you only asked which tests exist, it stops at the list.</li>
|
|
719
|
+
<li>ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then the command, the result files, and the output. When tests fail, ForgeQE's agent offers to heal them with <code>heal_tests</code>.</li>
|
|
720
|
+
</ol>
|
|
721
|
+
<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)
|
|
722
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
723
|
+
</span></span><span class="ln"><span class="cmd">┃ • login › signs in with a valid user
|
|
724
|
+
</span></span><span class="ln"><span class="cmd">┃ tests/login.spec.ts · Fills the sign-in form and checks the account menu
|
|
725
|
+
</span></span><span class="ln"><span class="cmd">┃ • login › rejects a wrong password
|
|
726
|
+
</span></span><span class="ln"><span class="cmd">┃ tests/login.spec.ts · Submits a bad password and checks the error
|
|
727
|
+
</span></span><span class="ln"><span class="cmd">┃ • checkout › guest can pay
|
|
728
|
+
</span></span><span class="ln"><span class="cmd">┃ tests/checkout.spec.ts · Signs in through LoginPage before paying
|
|
729
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
730
|
+
</span></span><span class="ln"><span class="cmd">┃ Left out:
|
|
731
|
+
</span></span><span class="ln"><span class="cmd">┃ • signup › creates an account · Signs up; never signs in
|
|
732
|
+
</span></span><span class="ln"><span class="cmd">┃
|
|
733
|
+
</span></span><span class="ln"><span class="cmd">┃ List npx playwright test --list --grep "login|guest can pay" (ForgeQE ran it: lists exactly these)
|
|
734
|
+
</span></span><span class="ln"><span class="cmd">┃ Run npx playwright test --grep "login|guest can pay" --reporter=junit
|
|
735
|
+
</span></span></code></pre></div>
|
|
736
|
+
<p><strong>This sprint.</strong> For "tests added this sprint" or "last sprint", ForgeQE fetches the sprints from the Azure DevOps team (<code>sources.azure_devops</code>, iterations of the project's default team unless you name one) and the Jira scrum boards (<code>sources.jira</code>), and asks which one you mean: the current, the three latest past, and the next sprint of each team or board, with their dates. The sprint's start and end dates become the range. Name a sprint ("tests added in Sprint 41") and it is matched without asking; give dates ("since 2026-09-01") and no sprint is fetched.</p>
|
|
737
|
+
<p>The selection, the output, and the results are saved in <code>.forgeqe/reports/tests/<time>/</code>: <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 example Jest without <code>jest-junit</code>), the exit code decides and the card shows the end of the output instead.</p>
|
|
738
|
+
<p>Through <code>forgeqe mcp</code>, ForgeQE cannot ask you, so <code>run_tests</code> returns the list and runs only when called again with <code>confirmed: true</code>; the MCP client should ask you first.</p>
|
|
739
|
+
</div>
|
|
740
|
+
</section>
|
|
741
|
+
<section class="doc" id="doc-how_to_use-reports-for-tests-run-outside-forgeqe">
|
|
742
|
+
<h4>Reports for tests run outside ForgeQE</h4>
|
|
743
|
+
<div class="prose"><p>ForgeQE's HTML report is not only for runs it makes. <code>run_tests</code> and <code>pr-tests --run</code> write one, and so can any run in a terminal, an IDE's test runner, or CI:</p>
|
|
744
|
+
<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
|
|
745
|
+
</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
|
|
746
|
+
</span></span></code></pre></div>
|
|
747
|
+
<p><code>forgeqe report</code> reads JUnit XML or TRX files, or the folder they are in (Playwright <code>--reporter=junit</code>, pytest <code>--junitxml=results.xml</code>, <code>dotnet test --logger trx</code>), and exits 1 when a test failed. Each report is saved in <code><out_dir>/results/<time>/</code>, so its Trends and Flaky tests pages cover the earlier runs, whoever ran them. JUnit carries one line per failure; a skipped test is counted, not shown.</p>
|
|
748
|
+
<p><code>forgeqe report setup</code> sets up the framework the repository uses:</p>
|
|
749
|
+
<ul>
|
|
750
|
+
<li><strong>Playwright</strong>: it copies a reporter to <code>.forgeqe/playwright-reporter.mjs</code> (commit it) and prints the line to add to <code>playwright.config</code>: <code>reporter: [["list"], ["./.forgeqe/playwright-reporter.mjs"]]</code>. Every run then ends with a report, from <code>npx playwright test</code>, the VS Code Playwright extension, or CI. With <code>screenshot: "only-on-failure"</code> and <code>trace: "retain-on-failure"</code>, each failure shows its screenshot, the full error and stack, and the trace.</li>
|
|
751
|
+
<li><strong>pytest</strong>: install ForgeQE in the environment that runs the tests. Its plugin loads 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 with <code>pytest --forgeqe-report</code>). A test that passes when pytest-rerunfailures runs it again is reported as flaky.</li>
|
|
752
|
+
</ul>
|
|
753
|
+
<p><code>FORGEQE_REPORT=0</code> turns the reporters off for a run (ForgeQE's own <code>run_tests</code> does this, as it writes its own report). The reporters call <code>forgeqe</code> on PATH, or <code>FORGEQE_BIN</code>; without it they keep the results file and print the command that builds the report. Screenshots and traces are copied into the report only from the working folder, never from a hidden folder or a file named like a key.</p>
|
|
754
|
+
</div>
|
|
755
|
+
</section>
|
|
756
|
+
</div>
|
|
757
|
+
</article>
|
|
758
|
+
<article class="spec feat" id="cap-regression-packs">
|
|
759
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Regression packs for a release</h3></div>
|
|
760
|
+
<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>
|
|
761
|
+
<div class="facts">
|
|
762
|
+
<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>
|
|
763
|
+
<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>
|
|
764
|
+
<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>
|
|
765
|
+
</div>
|
|
766
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
767
|
+
<section class="doc" id="doc-how_to_use-regression-packs-for-a-release">
|
|
768
|
+
<h4>Regression packs for a release</h4>
|
|
769
|
+
<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 can run it again (here, on TestMu AI, or in a pipeline) and compare runs. Ask in your own words:</p>
|
|
770
|
+
<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
|
|
771
|
+
</span></span><span class="ln"><span class="cmd">Which tests should we run for the PRs merged this week?
|
|
772
|
+
</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
|
|
773
|
+
</span></span></code></pre></div>
|
|
774
|
+
<p><strong>Where the changes come from.</strong> Any mix of:</p>
|
|
775
|
+
<ul>
|
|
776
|
+
<li>an Azure DevOps sprint, area, epic or feature, or work item ids: their stories and bugs, the test cases each is tested by, and the files their linked pull requests changed;</li>
|
|
777
|
+
<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 own; work items the commit messages name (<code>AB#123</code>, <code>#123</code>, <code>PAY-12</code>) are read too;</li>
|
|
778
|
+
<li>pull requests by number or URL, or the ones merged in the last N days (Azure DevOps or GitHub);</li>
|
|
779
|
+
<li>anything ForgeQE's agent can read through its connected tools (a Jira release, GitHub issues, a Confluence release note): it reads the items and passes them in with their text and links.</li>
|
|
780
|
+
</ul>
|
|
781
|
+
<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>
|
|
782
|
+
<div class="tbl tbl--cols-2"><table>
|
|
783
|
+
<thead>
|
|
784
|
+
<tr><th>Reason</th><th>Meaning</th></tr>
|
|
785
|
+
</thead>
|
|
786
|
+
<tbody>
|
|
787
|
+
<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>
|
|
788
|
+
<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>
|
|
789
|
+
<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>
|
|
790
|
+
<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>
|
|
791
|
+
<tr><td data-label="Reason">smoke</td><td data-label="Meaning">the test is tagged smoke, so it is in every pack</td></tr>
|
|
792
|
+
</tbody>
|
|
793
|
+
</table></div>
|
|
794
|
+
<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, so you can extend that test rather than write a new one.</p>
|
|
795
|
+
<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 never mixed up with what someone still has to do:</p>
|
|
796
|
+
<div class="tbl tbl--cols-3"><table>
|
|
797
|
+
<thead>
|
|
798
|
+
<tr><th>Group</th><th>What it is</th><th>Its script</th></tr>
|
|
799
|
+
</thead>
|
|
800
|
+
<tbody>
|
|
801
|
+
<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>
|
|
802
|
+
<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>
|
|
803
|
+
<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>
|
|
804
|
+
<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>
|
|
805
|
+
</tbody>
|
|
806
|
+
</table></div>
|
|
807
|
+
<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 agent) and keeps its evidence (the work item, pull request or defect history, with links). Change it in your words ("take out the flaky ones", "add a manual check of the invoice PDF", "why is this in?") or on the page: priority, take out and put back, move between B, C and D, add an entry. An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the pack never claims a script it has not found. Every change is kept in the pack's history, with who made it.</p>
|
|
808
|
+
<p>A pack starts as a <strong>draft</strong>; save it (a name, the release) when it is right, then run it now or on a schedule (a job that runs <code>forgeqe pack run</code>). Reuse it:</p>
|
|
809
|
+
<ul>
|
|
810
|
+
<li><strong>Refresh</strong>: the same changes read again (<code>forgeqe pack build --refresh release-22</code>); your edits and its runs stay.</li>
|
|
811
|
+
<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>
|
|
812
|
+
<li><strong>Compare</strong> two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and the other not, and their last runs.</li>
|
|
813
|
+
</ul>
|
|
814
|
+
<p><code>--release "Release 22"</code> names the release a pack is for.</p>
|
|
815
|
+
<p><strong>On the Regression page</strong> there are two tabs. On <strong>Agent</strong> you ask for a pack in a sentence ("Create a regression pack for Release 22"). The agent reads which sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management, docs, a pipeline: the line at the top says which), says what a missing one would add and offers to connect it, and asks for the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then 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 it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it. The tab looks and works like the API page's Agent tab. None of the sources is required, and nothing runs until you say so. On <strong>Packs</strong> the packs are a table, newest first: each with how many entries are ready to run, scripts missing, manual, to automate and exploratory, and its last run. A row opens the pack's page: one strip of numbers (ready to run, script missing, the four groups, high priority, coverage of the release's changes, the last run; click one to show those entries), the plan as a table (all or one group, high priority, script missing, flaky or taken out, a search over tests, files and features, 50 rows a page with the highest priority first; a row opens its evidence), and beside it the release's changes, risk areas, runs and triage, history and a comparison with another release. Without a model set up, <em>Choose the changes</em> picks the sprint, commits or pull requests yourself.</p>
|
|
816
|
+
<p><strong>Running it.</strong> ForgeQE asks before it runs anything.</p>
|
|
817
|
+
<ul>
|
|
818
|
+
<li><em>This machine</em>: ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test (for .NET, a <code>--filter</code> with each test, the settings an earlier job used, TRX results), runs it, and reads each result. A failed test runs once more; one that then passes is flaky.</li>
|
|
819
|
+
<li><em>A pipeline</em>: <code>forgeqe pack run <name> --on pipeline [--pipeline github|azure_devops] [--browsers local|testmu]</code> starts the pack in GitHub Actions or Azure Pipelines, waits for it, and reads its results. <code>forgeqe pack pipeline init [--github] [--azure-devops]</code> writes the workflow (<code>.github/workflows/forgeqe-pack.yml</code>) and the Azure DevOps pipeline; commit them, then name them under <code>packs.pipeline</code> in forgeqe.yaml (<code>default: github</code> or <code>azure_devops</code>; <code>github: { repo, workflow, ref }</code>; <code>azure_devops: { project, pipeline_id, ref }</code>; <code>timeout_minutes</code>, 60 by default). 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 (read and execute) and Test Management (read).</li>
|
|
820
|
+
<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 the browser and platform in <code>testmu.yaml</code> (the access key goes in the variable, never in the command, and is removed from the output). The tests must connect to it when it is set: for NUnit, override <code>ConnectOptionsAsync</code> in the test base class; for Playwright Test, set <code>connectOptions</code> from it in <code>playwright.config</code>. ForgeQE refuses a TestMu run when the tests do not read the variable, so a run never looks remote while it ran locally.</li>
|
|
821
|
+
</ul>
|
|
822
|
+
<p>Each run is kept with the pack: the card says which tests fail now that passed in the last run, and which were fixed.</p>
|
|
823
|
+
<p><strong>Triage: heal, re-run, or file a bug?</strong> After each run ForgeQE sorts every failed or flaky test into one route, from evidence that costs nothing first (the retry in the same run, the failure message, the test's history), so the AI is spent only where it decides something:</p>
|
|
824
|
+
<div class="tbl tbl--cols-3"><table>
|
|
825
|
+
<thead>
|
|
826
|
+
<tr><th>Route</th><th>When</th><th>What happens</th></tr>
|
|
827
|
+
</thead>
|
|
828
|
+
<tbody>
|
|
829
|
+
<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>
|
|
830
|
+
<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>
|
|
831
|
+
<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>
|
|
832
|
+
<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>
|
|
833
|
+
<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>
|
|
834
|
+
</tbody>
|
|
835
|
+
</table></div>
|
|
836
|
+
<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 changed), so one fix can heal them together. When most failures are the environment, ForgeQE says to run the pack again before healing anything, and <code>heal_tests</code> refuses until you name the tests.</p>
|
|
837
|
+
<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. To heal only the tests it sent to healing, ask "heal the failures of pack release-1.5", or run <code>forgeqe pack heal release-1.5</code> (<code>--tests</code> for some of them): ForgeQE builds a command for just those tests and the healing agent re-runs each flow in the browser before it changes anything. <code>forgeqe pack triage <name></code> shows the last run's triage again. Packs are saved in <code>.forgeqe/packs/<name>.json</code> and <code><name>.md</code>; run output and results in <code>.forgeqe/reports/packs/<name>/<time>/</code>.</p>
|
|
838
|
+
</div>
|
|
839
|
+
</section>
|
|
840
|
+
</div>
|
|
841
|
+
</article>
|
|
842
|
+
<article class="spec feat" id="cap-flaky-tests">
|
|
843
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Flaky test detection and quarantine</h3></div>
|
|
844
|
+
<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>
|
|
845
|
+
<div class="facts">
|
|
846
|
+
<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>
|
|
847
|
+
<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>
|
|
848
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>flaky_tests</code> <code>quarantine_tests</code></p></div>
|
|
849
|
+
</div>
|
|
850
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
851
|
+
<section class="doc" id="doc-how_to_use-flaky-tests">
|
|
852
|
+
<h4>Flaky tests</h4>
|
|
853
|
+
<div class="prose"><p>Every <code>run_tests</code> and <code>pr-tests</code> run keeps each test's result in <code>.forgeqe/test-history.json</code> in the repository (commit it to share the history, or keep it between CI runs as a cache). A test that fails runs once more in the same run, with the framework's own option (Playwright <code>--last-failed</code>, pytest <code>--lf</code>, Jest <code>--onlyFailures</code>; otherwise the whole command again when the selection is small): when it then passes it is <strong>flaky</strong>, not failed, and the run does not fail because of it.</p>
|
|
854
|
+
<p>"Which tests are flaky?" (<code>flaky_tests</code>) reads the history: each test's last results (<code>✓✗✓↻✓</code>, where ↻ means it passed only when run again), its pass rate, a flakiness score (passes on retry plus pairs of flip-flops in the last 20 runs), and the likely cause from its failure messages, with an example:</p>
|
|
855
|
+
<div class="tbl tbl--cols-2"><table>
|
|
856
|
+
<thead>
|
|
857
|
+
<tr><th>Cause</th><th>From messages like</th></tr>
|
|
858
|
+
</thead>
|
|
859
|
+
<tbody>
|
|
860
|
+
<tr><td data-label="Cause">Timing</td><td data-label="From messages like">timeouts, waiting for an element, detached or stale elements</td></tr>
|
|
861
|
+
<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>
|
|
862
|
+
<tr><td data-label="Cause">Data</td><td data-label="From messages like">expected one value, received another</td></tr>
|
|
863
|
+
<tr><td data-label="Cause">Network</td><td data-label="From messages like"><code>net::ERR_…</code>, resets, 5xx responses</td></tr>
|
|
864
|
+
<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>
|
|
865
|
+
</tbody>
|
|
866
|
+
</table></div>
|
|
867
|
+
<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 failures stop failing the run and CI (<code>pr-tests --run</code> exits 0 when only quarantined tests fail); no test code changes. A quarantined test that passes 5 runs in a row is offered for release. The agent offers <code>quarantine_tests</code> (it asks you first) and <code>heal_tests</code> to fix the cause.</p>
|
|
868
|
+
<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:
|
|
869
|
+
</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)
|
|
870
|
+
</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)
|
|
871
|
+
</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
|
|
872
|
+
</span></span></code></pre></div>
|
|
873
|
+
</div>
|
|
874
|
+
</section>
|
|
875
|
+
</div>
|
|
876
|
+
</article>
|
|
877
|
+
<article class="spec feat" id="cap-run-diff">
|
|
878
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Compare two runs step by step</h3></div>
|
|
879
|
+
<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>
|
|
880
|
+
<div class="facts">
|
|
881
|
+
<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>
|
|
882
|
+
<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>
|
|
883
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>run_diff</code></p></div>
|
|
884
|
+
</div>
|
|
885
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
886
|
+
<section class="doc" id="doc-how_to_use-comparing-two-runs">
|
|
887
|
+
<h4>Comparing two runs</h4>
|
|
888
|
+
<div class="prose"><p>"Why does it fail today when it passed yesterday?" (<code>run_diff</code>, and the <strong>Run diff</strong> page of <code>forgeqe web</code>) lines two browser runs up step by step, by page and action, so a step only one run did (a cookie banner, a retry) does not shift the rest. Each step shows how it ended, the API calls that answered otherwise (method, path and status only), new browser errors, its time and both screenshots. The step to look at first is marked with what it likely is: the server answered differently (likely a product change), an element was not found (the page changed: heal the test if the change was meant), another page or path, other data, or only timing (a slow environment or a race). 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 was healed.</p>
|
|
889
|
+
</div>
|
|
890
|
+
</section>
|
|
891
|
+
</div>
|
|
892
|
+
</article>
|
|
893
|
+
<article class="spec feat" id="cap-test-debt">
|
|
894
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Test debt and coverage gaps</h3></div>
|
|
895
|
+
<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>
|
|
896
|
+
<div class="facts">
|
|
897
|
+
<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>
|
|
898
|
+
<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>
|
|
899
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_debt</code></p></div>
|
|
900
|
+
</div>
|
|
901
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
902
|
+
<section class="doc" id="doc-how_to_use-test-debt-and-coverage-gaps">
|
|
903
|
+
<h4>Test debt and coverage gaps</h4>
|
|
904
|
+
<div class="prose"><p>"What has no test?" (<code>test_debt</code>, and the <strong>Test debt</strong> page) lists code areas and business rules no test reaches (from the product graph, <code>forgeqe knowledge build</code>, and the knowledge folder), tests that tell little (30 passes in a row, or whose file is gone from the repository), near-duplicate tests by their shared words, and each test case of the connected trackers with whether it is automated. Each gap can become a request to draft its test, which the agent offers and runs only when you agree.</p>
|
|
905
|
+
</div>
|
|
906
|
+
</section>
|
|
907
|
+
</div>
|
|
908
|
+
</article>
|
|
909
|
+
<article class="spec feat" id="cap-test-management">
|
|
910
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Test management</h3></div>
|
|
911
|
+
<p class="ds">Plans' test cases, their tests and runs; gaps; suites.</p>
|
|
912
|
+
<div class="facts">
|
|
913
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Show the test inventory</li></ul></div>
|
|
914
|
+
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
915
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_inventory</code></p></div>
|
|
916
|
+
</div>
|
|
917
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
918
|
+
<section class="doc" id="doc-how_to_use-test-management">
|
|
919
|
+
<h4>Test management</h4>
|
|
920
|
+
<div class="prose"><p>The <strong>Test management</strong> page (<code>#/test-management</code> in <code>forgeqe web</code>, and <code>test_inventory</code> for the agent) shows every test case of your test plans in one place, so you do not open the tracker or the repository to see them. Name the plans in Settings › Integrations, under each system's <strong>Test plans in Test management</strong> (<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>), then press <strong>Sync</strong>.</p>
|
|
921
|
+
<p><strong>Syncing on a schedule.</strong> The button beside <strong>Sync</strong> (<code>Sync: off</code>, <code>Sync: hourly</code>, <code>Sync: daily 07:00</code>) sets when ForgeQE reads the plans again, in the jobs service, while this computer is on. Each scheduled sync also reads again the stories Gaps shows. <strong>Also discover the tests first</strong> discovers the tests before each sync with the commands the sheet shows; if the test projects change, it stops discovering until you confirm again.</p>
|
|
922
|
+
<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
|
|
923
|
+
</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
|
|
924
|
+
</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
|
|
925
|
+
</span></span></code></pre></div>
|
|
926
|
+
<ul>
|
|
927
|
+
<li><strong>Dashboard</strong>: cases, automated, not automated, pending, failing and generated by ForgeQE, each with its change over the week; coverage over time; cases generated and automated each week; and each suite's last run, with Run and Rerun failed.</li>
|
|
928
|
+
<li><strong>Test cases</strong>: every case with its automated test, last run, tags and suite, in views (not automated, failing, pending, generated, steps changed, tracker disagrees) and filters. Pick cases to Run, Tag or make a suite. A case opens on its own page with its steps, test and runs.</li>
|
|
929
|
+
<li><strong>Automated</strong>: the repository's automated tests, as a test explorer lists them: each with ForgeQE's id (<code>T-…</code>), its 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 case</strong>, <strong>Linked</strong> or <strong>Read from the code</strong>.</li>
|
|
930
|
+
<li><strong>Gaps</strong>: cases not automated, ranked by priority, failures, packs and smoke tags, with why; pending, never run and failing cases; cases whose steps changed or whose tracker disagrees; tests with no case; and the release's <strong>stories with no case</strong> and <strong>acceptance criteria not covered</strong>. Say which stories with <strong>Read stories</strong>: in Azure DevOps a sprint, iteration path, area path, epic or feature, or work item ids; in Jira (also Xray and Zephyr Scale) a sprint, fix version, epic or story keys; in qTest a requirements module or requirement ids. Until you read some, the newest Release readiness report is used. Every sync reads them again.</li>
|
|
931
|
+
<li><strong>Suites</strong>: tell the <strong>Suite agent</strong> (Sorter) what the suite is for, such as "P1 payments and anything failing lately". It builds the suite from rules over your cases, which ForgeQE checks, and you save it. A suite runs as <code>forgeqe suite</code> on a test environment you pick, never one named like production.</li>
|
|
932
|
+
<li><strong>Tags</strong>: tags from your trackers, your tests (<code>@smoke</code>) and ForgeQE (<code>.forgeqe/testmgmt/tags.json</code>), with which are out of step.</li>
|
|
933
|
+
</ul>
|
|
934
|
+
<p>The Test case and Gap agents, docked on the right, start a chat from what you picked: automate, find why they fail, suggest tags, <strong>Write tags into tests</strong> (the coding agent writes the cases' tags into their linked tests as the framework writes tags, and shows the diff before saving), and <strong>Cases for stories with none</strong> (test cases for the stories you picked in Gaps, shown before they are saved).</p>
|
|
935
|
+
<p><strong>Discovering the tests.</strong> On <strong>Automated</strong>, <strong>Discover tests</strong> asks each test project's own framework for its tests: pytest, .NET (NUnit, xUnit, MSTest), Playwright, Jest, Vitest, Mocha and Robot Framework. Gherkin <code>.feature</code> files are read as text. This runs the repository's code (pytest imports <code>conftest.py</code>, .NET builds the project), so the sheet shows the exact commands first and runs only those, without ForgeQE's secrets. A test its framework cannot list is read from the code instead. 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 ids. A test keeps its id when it is renamed or moved.</p>
|
|
936
|
+
<p><strong>Linking cases and tests.</strong> A case can have several tests, and a test several cases. ForgeQE links them by itself when a test's marker or attribute names the case (<code>@pytest.mark.testcase("C12")</code>, <code>[Property("TestCaseId", "123")]</code>, <code>[WorkItem(123)]</code>, <code>@id:ADO-5</code>), when the case's tracker names the test, or when the case's id is in the test's name or tags (<code>TC-123 adds to the basket</code>). 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 one, and it is not linked again by itself. <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 for cases that have none. It links only when it is sure and the case and test share most of their words; the rest wait on the case's page as proposals to <strong>Accept</strong> or <strong>Refuse</strong>. Links, proposals and refusals are kept in <code>.forgeqe/testmgmt/links.json</code>; commit it to share them.</p>
|
|
937
|
+
<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, its tracker records it as the case's automated test, and a run uses it first.</p>
|
|
938
|
+
<p><strong>Running linked tests.</strong> Run a case, or a suite, and ForgeQE first records the case's linked tests in its mapping (<code>.forgeqe/test-cases.json</code>) with one command that runs them all, so <code>forgeqe suite</code> runs them too. A Gherkin scenario runs through its feature's own runner, found from the project's files: Cucumber.js, Behave, pytest-bdd, Cucumber JVM (Maven or Gradle), or SpecFlow or Reqnroll. A scenario with no runner found cannot be run this way.</p>
|
|
939
|
+
<p><strong>Writing back to the trackers.</strong> Test management can also change the trackers, always showing exactly what would change first and writing only that list:</p>
|
|
940
|
+
<ul>
|
|
941
|
+
<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 knows, from its mapping or a link, gets Azure DevOps' Associated Automation, or the <code>automated</code> label on its Jira or Xray test.</li>
|
|
942
|
+
<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 are added to the case's Azure DevOps tags or Jira labels. Tags the case already has stay.</li>
|
|
943
|
+
<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 taken off the case's Azure DevOps tags or Jira labels. The tracker's other tags stay.</li>
|
|
944
|
+
<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 Set (Xray Cloud, or Xray Server/Data Center over https), with its cases. <strong>Keep in step</strong> later adds the cases it gained and takes out the ones it lost.</li>
|
|
945
|
+
</ul>
|
|
946
|
+
<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>
|
|
947
|
+
</div>
|
|
948
|
+
</section>
|
|
949
|
+
</div>
|
|
950
|
+
</article>
|
|
951
|
+
|
|
952
|
+
<nav class="pager" aria-label="Previous and next">
|
|
953
|
+
<a class="prev" href="../area-test-cases/index.html"><small>Previous</small><span>Test cases</span></a>
|
|
954
|
+
<a class="next" href="../feature-test-prompts/index.html"><small>Next</small><span>Feature test prompts</span></a>
|
|
955
|
+
</nav>
|
|
956
|
+
</main>
|
|
957
|
+
<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-6-tests">Tests</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="#doc-how_to_use-fixing-broken-tests">Fixing broken tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#doc-how_to_use-converting-tosca-tests">Converting Tosca tests</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-finding-and-running-existing-tests">Finding and running 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="#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#doc-how_to_use-flaky-tests">Flaky tests</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#doc-how_to_use-comparing-two-runs">Comparing two runs</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#doc-how_to_use-test-debt-and-coverage-gaps">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li><li><a href="#doc-how_to_use-test-management">Test management</a></li></ul></aside>
|
|
958
|
+
</div>
|
|
959
|
+
<footer class="foot">
|
|
960
|
+
<div class="container foot__row">
|
|
961
|
+
<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>
|
|
962
|
+
<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>
|
|
963
|
+
</div>
|
|
964
|
+
<p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
|
|
965
|
+
</footer>
|
|
966
|
+
</body>
|
|
967
|
+
</html>
|