@capagents/forgeqe 3.1.1 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +5152 -1869
- package/README.md +155 -434
- package/THIRD_PARTY_NOTICES.md +210 -1
- package/dist/docs-site/CREDITS.md +6 -0
- package/dist/docs-site/architecture-map/index.html +1 -1
- package/dist/docs-site/docs/app-theme.css +126 -13
- package/dist/docs-site/docs/architecture/index.html +56 -530
- package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
- package/dist/docs-site/docs/area-api/index.html +491 -0
- package/dist/docs-site/docs/area-automated-tests/index.html +1777 -0
- package/dist/docs-site/docs/area-browser/index.html +472 -0
- package/dist/docs-site/docs/area-data/index.html +595 -0
- package/dist/docs-site/docs/area-desktop/index.html +802 -0
- package/dist/docs-site/docs/area-mobile/index.html +683 -0
- package/dist/docs-site/docs/area-operations/index.html +1243 -0
- package/dist/docs-site/docs/area-pull-requests/index.html +290 -0
- package/dist/docs-site/docs/area-quality/index.html +427 -0
- package/dist/docs-site/docs/area-release/index.html +435 -0
- package/dist/docs-site/docs/area-setup/index.html +1595 -0
- package/dist/docs-site/docs/area-systems/index.html +191 -0
- package/dist/docs-site/docs/area-test-cases/index.html +927 -0
- package/dist/docs-site/docs/containers/index.html +168 -189
- package/dist/docs-site/docs/cost-architecture/index.html +110 -113
- package/dist/docs-site/docs/custom-agents-first-run/index.html +121 -67
- package/dist/docs-site/docs/desktop/index.html +363 -373
- package/dist/docs-site/docs/desktop-ci/index.html +39 -36
- package/dist/docs-site/docs/docs-tabs.js +56 -0
- package/dist/docs-site/docs/evidence/index.html +297 -300
- package/dist/docs-site/docs/feature-test-prompts/index.html +79 -73
- package/dist/docs-site/docs/get-started/index.html +791 -0
- package/dist/docs-site/docs/graphify/index.html +45 -48
- package/dist/docs-site/docs/guardrails/index.html +35 -23
- package/dist/docs-site/docs/index.html +18 -6729
- package/dist/docs-site/docs/mobile/index.html +223 -210
- package/dist/docs-site/docs/model-routing/index.html +84 -65
- package/dist/docs-site/docs/overview/index.html +192 -0
- package/dist/docs-site/docs/product-graph/index.html +60 -62
- package/dist/docs-site/docs/product-knowledge/index.html +24 -17
- package/dist/docs-site/docs/product-views/index.html +57 -60
- package/dist/docs-site/docs/reference/index.html +409 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +798 -0
- package/dist/docs-site/docs/web-app/index.html +168 -111
- package/dist/docs-site/security/index.html +930 -0
- package/dist/docs-site/security/security-theme.css +161 -0
- package/dist/docs-site/security/security.js +1465 -0
- package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
- package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
- package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
- package/dist/forgeqe.js +1903 -1896
- package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
- package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
- package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
- package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
- package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
- package/dist/web/assets/Chat-DnBUm_97.js +3 -0
- package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
- package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
- package/dist/web/assets/Cost-CWrc4McH.js +1 -0
- package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
- package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
- package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
- package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
- package/dist/web/assets/Explore-CMAxWE_8.js +2 -0
- package/dist/web/assets/Features-haQchkhA.js +1 -0
- package/dist/web/assets/Flags-BaQjYi_t.js +2 -0
- package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
- package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
- package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
- package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
- package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
- package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
- package/dist/web/assets/Product-BQSiR28a.js +7 -0
- package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
- package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
- package/dist/web/assets/Readiness-CkknP87n.js +1 -0
- package/dist/web/assets/Record-09IsC9U-.js +1 -0
- package/dist/web/assets/Regression-BL4MfN47.js +5 -0
- package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
- package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
- package/dist/web/assets/Response-DTBFBeKB.js +9 -0
- package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
- package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
- package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
- package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
- package/dist/web/assets/Steps-HYHK9psI.js +2 -0
- package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
- package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
- package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
- package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
- package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
- package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
- package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
- package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
- package/dist/web/assets/dataParts-DEPK4eQE.js +3 -0
- package/dist/web/assets/diff-CcNwLCX6.js +2 -0
- package/dist/web/assets/families-gkpkloLT.js +1 -0
- package/dist/web/assets/filters-C7phIFfd.js +1 -0
- package/dist/web/assets/fold-i73P-EDV.js +1 -0
- package/dist/web/assets/head-BtTqyLlj.js +1 -0
- package/dist/web/assets/highlight-DZI39CzZ.js +4 -0
- package/dist/web/assets/index-ClFOh63x.css +2 -0
- package/dist/web/assets/index-YGWJEkAT.js +64 -0
- package/dist/web/assets/input-C2vQ9O3a.js +1 -0
- package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/web/assets/logos-BmbNTDu2.js +1 -0
- package/dist/web/assets/palette-XFlqvgZl.js +1 -0
- package/dist/web/assets/paletteCommands-DsbD2ASU.js +1 -0
- package/dist/web/assets/parts-DEVx2Sea.js +1 -0
- package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
- package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
- package/dist/web/assets/recordTest--Wr40QdN.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/route-Dg53WdFu.js +1 -0
- package/dist/web/index.html +11 -6
- package/docs/ARCHITECTURE.md +50 -563
- package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
- package/docs/BASAL.md +1 -1
- package/docs/CONTAINERS.md +87 -87
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
- package/docs/DESKTOP-CI.md +18 -3
- package/docs/DESKTOP.md +306 -286
- package/docs/EVIDENCE.md +1 -1
- package/docs/MOBILE.md +107 -75
- package/docs/MODEL_ROUTING.md +48 -15
- package/docs/PRODUCT_KNOWLEDGE.md +2 -0
- package/docs/WEB_APP.md +143 -75
- package/docs/feature-test-prompts.md +29 -16
- package/docs/user-guide.html +5402 -2269
- package/forgeqe.example.yaml +3 -3
- package/guardrails/README.md +22 -2
- package/knowledge/README.md +15 -2
- package/package.json +1 -1
- package/prompts/brain.md +1 -0
- package/prompts/page-differs.md +1 -1
- package/prompts/requests-rule.md +1 -1
- package/prompts/test-reviewer.md +1 -1
- package/prompts/test-rules.md +3 -4
- package/py/forgeqe_engine/recordsession.py +100 -24
- package/skills/web-guidance/LICENSE +202 -0
- package/skills/web-guidance/SKILL.md +76 -0
- package/skills/web-guidance/UPSTREAM +67 -0
- package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
- package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
- package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
- package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
- package/skills/web-guidance/references/css/responsive-design.md +16 -0
- package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
- package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
- package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
- package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
- package/skills/web-guidance/references/forms/forms.md +415 -0
- package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
- package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
- package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
- package/skills/web-guidance/references/forms/slider.md +184 -0
- package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
- package/skills/web-guidance/references/forms/switch.md +60 -0
- package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
- package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
- package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
- package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
- package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
- package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
- package/skills/web-guidance/references/performance/performance.md +384 -0
- package/skills/web-guidance/references/privacy/privacy.md +247 -0
- package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
- package/skills/web-guidance/references/security/passkey-management.md +310 -0
- package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
- package/skills/web-guidance/references/security/passkey-registration.md +186 -0
- package/skills/web-guidance/references/security/passkeys.md +39 -0
- package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
- package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
- package/skills/web-guidance/references/security/security.md +390 -0
- package/skills/web-guidance/references/security/trusted-types.md +141 -0
- package/skills/web-guidance/references/security/validate-origins.md +197 -0
- package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
- package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
- package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
- package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
- package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
- package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
- package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
- package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
- package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
- package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
- package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
- package/skills/web-guidance/references/ui-components/accordion.md +343 -0
- package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
- package/skills/web-guidance/references/ui-components/carousel.md +206 -0
- package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
- package/skills/web-guidance/references/ui-components/dialog.md +218 -0
- package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
- package/skills/web-guidance/references/ui-components/menu.md +415 -0
- package/skills/web-guidance/references/ui-components/navbar.md +281 -0
- package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
- package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
- package/skills/web-guidance/references/ui-components/progress.md +181 -0
- package/skills/web-guidance/references/ui-components/spinner.md +179 -0
- package/skills/web-guidance/references/ui-components/tabs.md +371 -0
- package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
- package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
- package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
- package/skills/web-guidance/references/visual-design/color.md +43 -0
- package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
- package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
- package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
- package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
- package/dist/web/assets/Chat-B3uhI94O.js +0 -3
- package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
- package/dist/web/assets/Compare-CN75w1p9.js +0 -1
- package/dist/web/assets/Cost-QoxyjR95.js +0 -1
- package/dist/web/assets/Data-BAvkcBVt.js +0 -6
- package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
- package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
- package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
- package/dist/web/assets/Explore-D9AuyTip.js +0 -2
- package/dist/web/assets/Features-CusGMDR9.js +0 -1
- package/dist/web/assets/Flags-CycGFuUP.js +0 -2
- package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
- package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
- package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
- package/dist/web/assets/KindPage-BielEIej.js +0 -6
- package/dist/web/assets/Migration-NwanKpJg.js +0 -2
- package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
- package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
- package/dist/web/assets/Production-D3zsyNIS.js +0 -1
- package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
- package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
- package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
- package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
- package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
- package/dist/web/assets/Response-BP0UwQcW.js +0 -9
- package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
- package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
- package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
- package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
- package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
- package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
- package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
- package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
- package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
- package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
- package/dist/web/assets/families-DYlN5v0i.js +0 -1
- package/dist/web/assets/filters-faaSnoIq.js +0 -1
- package/dist/web/assets/fold-CUjwWAK3.js +0 -1
- package/dist/web/assets/frame-BLPdAXUq.js +0 -13
- package/dist/web/assets/head-CsTxBsO0.js +0 -1
- package/dist/web/assets/index-CxiCvGZq.js +0 -78
- package/dist/web/assets/index-dOIsrzhD.css +0 -2
- package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
- package/dist/web/assets/logos-dGuc1jIM.js +0 -1
- package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
- package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
- package/dist/web/assets/parts-CdF1f7yS.js +0 -1
- package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
- package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
- package/dist/web/assets/recordTest-P792aBUt.js +0 -1
|
@@ -0,0 +1,802 @@
|
|
|
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>Desktop apps · ForgeQE docs</title>
|
|
7
|
+
<meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
|
|
8
|
+
<meta name="theme-color" content="#ffffff">
|
|
9
|
+
<link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
|
|
10
|
+
<link rel="icon" type="image/png" href="../../img/favicon.png">
|
|
11
|
+
<link rel="stylesheet" href="../docs.css">
|
|
12
|
+
<script src="../search.js" defer></script>
|
|
13
|
+
<script src="../docs.js" defer></script>
|
|
14
|
+
<script src="../docs-tabs.js" defer></script>
|
|
15
|
+
<link rel="stylesheet" href="../../app-look.css">
|
|
16
|
+
<link rel="stylesheet" href="../app-theme.css">
|
|
17
|
+
</head>
|
|
18
|
+
<body class="docs">
|
|
19
|
+
<svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-desktop" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 64v88H32V64a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16" opacity=".2"/><path d="M208 40H48a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h72v16H96a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16h-24v-16h72a24 24 0 0 0 24-24V64a24 24 0 0 0-24-24M48 56h160a8 8 0 0 1 8 8v80H40V64a8 8 0 0 1 8-8m160 128H48a8 8 0 0 1-8-8v-16h176v16a8 8 0 0 1-8 8"/></g></symbol></svg>
|
|
20
|
+
<svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
|
|
21
|
+
<symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
|
|
22
|
+
<line x1="8" x2="16" y1="21" y2="21" />
|
|
23
|
+
<line x1="12" x2="12" y1="17" y2="21" /></symbol>
|
|
24
|
+
<symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
|
|
25
|
+
<path d="M12 18h.01" /></symbol>
|
|
26
|
+
<symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
|
|
27
|
+
<path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
|
|
28
|
+
<symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
|
|
29
|
+
<path d="M10 21.9V14L2.1 9.1" />
|
|
30
|
+
<path d="m10 14 11.9-6.9" />
|
|
31
|
+
<path d="M14 19.8v-8.1" />
|
|
32
|
+
<path d="M18 17.5V9.4" /></symbol>
|
|
33
|
+
<symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
|
|
34
|
+
<path d="m9 12 2 2 4-4" /></symbol>
|
|
35
|
+
<symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
|
|
36
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
37
|
+
<path d="M10 9H8" />
|
|
38
|
+
<path d="M16 13H8" />
|
|
39
|
+
<path d="M16 17H8" /></symbol>
|
|
40
|
+
<symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
|
|
41
|
+
<line x1="12" x2="20" y1="19" y2="19" /></symbol>
|
|
42
|
+
<symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
|
|
43
|
+
<path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
|
|
44
|
+
<path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
|
|
45
|
+
<path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
|
|
46
|
+
<path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
|
|
47
|
+
<path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
|
|
48
|
+
<path d="M19.938 10.5a4 4 0 0 1 .585.396" />
|
|
49
|
+
<path d="M6 18a4 4 0 0 1-1.967-.516" />
|
|
50
|
+
<path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
|
|
51
|
+
<symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
|
|
52
|
+
<circle cx="18" cy="6" r="3" />
|
|
53
|
+
<circle cx="6" cy="18" r="3" />
|
|
54
|
+
<path d="M18 9a9 9 0 0 1-9 9" /></symbol>
|
|
55
|
+
<symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
|
|
56
|
+
<path d="M3 5V19A9 3 0 0 0 21 19V5" />
|
|
57
|
+
<path d="M3 12A9 3 0 0 0 21 12" /></symbol>
|
|
58
|
+
<symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
|
|
59
|
+
<symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
|
|
60
|
+
<path d="M17 3h2a2 2 0 0 1 2 2v2" />
|
|
61
|
+
<path d="M21 17v2a2 2 0 0 1-2 2h-2" />
|
|
62
|
+
<path d="M7 21H5a2 2 0 0 1-2-2v-2" />
|
|
63
|
+
<circle cx="12" cy="12" r="3" />
|
|
64
|
+
<path d="m16 16-1.9-1.9" /></symbol>
|
|
65
|
+
<symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
|
|
66
|
+
<path d="M14.12 3.88 16 2" />
|
|
67
|
+
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
|
|
68
|
+
<path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
|
|
69
|
+
<path d="M12 20v-9" />
|
|
70
|
+
<path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
|
|
71
|
+
<path d="M6 13H2" />
|
|
72
|
+
<path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
|
|
73
|
+
<path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
|
|
74
|
+
<path d="M22 13h-4" />
|
|
75
|
+
<path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
|
|
76
|
+
<symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
|
|
77
|
+
<path d="M3 11v-1a4 4 0 0 1 4-4h14" />
|
|
78
|
+
<path d="m7 22-4-4 4-4" />
|
|
79
|
+
<path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
|
|
80
|
+
<symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
|
|
81
|
+
<polyline points="8 6 2 12 8 18" /></symbol>
|
|
82
|
+
<symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
|
|
83
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
|
|
84
|
+
<symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
|
|
85
|
+
<path d="M9 8V2" />
|
|
86
|
+
<path d="M15 8V2" />
|
|
87
|
+
<path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
|
|
88
|
+
<symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
|
|
89
|
+
<path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
|
|
90
|
+
<path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
|
|
91
|
+
<symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
|
|
92
|
+
<symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
|
|
93
|
+
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
|
|
94
|
+
<symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
|
|
95
|
+
<symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
|
|
96
|
+
<symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
|
|
97
|
+
<symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
|
|
98
|
+
<symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
|
|
99
|
+
</svg>
|
|
100
|
+
|
|
101
|
+
<a class="skip" href="#main">Skip to content</a>
|
|
102
|
+
<header class="nav" id="navigation">
|
|
103
|
+
<div class="nav__bar">
|
|
104
|
+
<a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
|
|
105
|
+
<nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
|
|
106
|
+
<div class="nav__end">
|
|
107
|
+
<button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
|
|
108
|
+
<button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
|
|
112
|
+
</header>
|
|
113
|
+
<div class="container docs-layout">
|
|
114
|
+
<nav class="docs-side" aria-label="Docs">
|
|
115
|
+
<a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
|
|
116
|
+
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="index.html" aria-current="page"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
|
|
117
|
+
</nav>
|
|
118
|
+
<main id="main" class="docs-main guide chapter-page">
|
|
119
|
+
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Desktop and mobile</p>
|
|
120
|
+
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="index.html" aria-current="page"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-desktop-apps">Automate Windows desktop apps</a></li><li><a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">ForgeQE desktop: thick-client automation</a></li><li><a href="#doc-docs-desktop-use">Use</a></li><li><a href="#doc-docs-desktop-how-a-run-flows">How a run flows</a></li><li><a href="#doc-docs-desktop-replay-on-macos-linux-and-headless-windows">Replay on macOS, Linux, and headless Windows</a></li><li><a href="#doc-docs-desktop-the-model-explore-and-healing-use">The model explore and healing use</a></li><li><a href="#doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">Workflow YAML (forgeqe-desktop-v1)</a></li><li><a href="#doc-docs-desktop-recording-by-hand">Recording by hand</a></li><li><a href="#doc-docs-desktop-reviewing-a-recording-web-app">Reviewing a recording (web app)</a></li><li><a href="#doc-docs-desktop-fixing-a-workflow-from-chat">Fixing a workflow from chat</a></li><li><a href="#doc-docs-desktop-waits-retries-and-dialogs">Waits, retries and dialogs</a></li><li><a href="#doc-docs-desktop-visual-checks-expect_image">Visual checks (expect_image)</a></li><li><a href="#doc-docs-desktop-unattended-runs">Unattended runs</a></li><li><a href="#doc-docs-desktop-checks-of-the-outcome">Checks of the outcome</a></li><li><a href="#doc-docs-desktop-what-an-explore-records">What an explore records</a></li><li><a href="#doc-docs-desktop-security">Security</a></li><li><a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a></li><li><a href="#doc-docs-desktop-next-steps">Next steps</a></li><li><a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">Running desktop workflows unattended (nightly CI)</a></li><li><a href="#doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you">What breaks a desktop run, and how ForgeQE tells you</a></li><li><a href="#doc-docs-desktop-ci-set-up-the-test-machine">Set up the test machine</a></li><li><a href="#doc-docs-desktop-ci-the-nightly-job">The nightly job</a></li></ul></nav></details></div>
|
|
121
|
+
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-desktop"/></svg>Desktop apps</h1>
|
|
122
|
+
<p class="guide-lead">Windows thick-client apps: explore a goal, record by hand, replay the saved workflow</p>
|
|
123
|
+
<article class="spec feat" id="cap-desktop-apps">
|
|
124
|
+
<div class="hd"><span class="mono">Desktop</span><h3>Automate Windows desktop apps</h3></div>
|
|
125
|
+
<p class="ds">Carries out a plain-language goal in a Windows thick-client app, with ForgeQE's agent working the live app, and saves it as a workflow with checks of the outcome, or records the steps a tester does by hand, with no model; replays saved workflows with no model, healing a step whose control moved, and fixes a workflow from chat (a timeout, a wait, a dialog to dismiss) after showing the change. Apps and the secrets they may type come from env.yaml or forgeqe.yaml desktop:.</p>
|
|
126
|
+
<div class="facts">
|
|
127
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create an invoice for Contoso in the Billing app and save it as a test</li><li>I'll show you the steps in Billing: record them</li><li>Replay the billing workflow with customer Fabrikam</li><li>Step 4 timed out while the list loaded: fix the workflow</li></ul></div>
|
|
128
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need req">Required</span><span>Windows desktop apps: env.yaml (kind: desktop) or desktop.apps in forgeqe.yaml</span></li><li><span class="need input">You give</span><span>a Windows machine, and the app in forgeqe.yaml desktop.apps</span></li></ul></div>
|
|
129
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Windows only, one run at a time per desktop</li><li>Apps whose controls UI Automation cannot see (Citrix, some Java and custom-drawn apps) are not supported yet</li></ul></div>
|
|
130
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>desktop_explore</code> <code>desktop_record</code> <code>desktop_replay</code> <code>desktop_edit_workflow</code> <code>desktop_manage</code></p></div>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
</article>
|
|
134
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-desktop-apps-windows">
|
|
135
|
+
<h4>Desktop apps (Windows)</h4>
|
|
136
|
+
<div class="prose"><p>ForgeQE also automates Windows thick-client apps (Win32, WinForms, WPF). Ask for a goal in the app ("create an invoice for Contoso in Billing"): ForgeQE's agent does it in the app, saves the run as a workflow with checks of the outcome, and can replay it with no model. Or do the steps yourself and they are saved as a workflow, with no model.</p>
|
|
137
|
+
<ul>
|
|
138
|
+
<li><strong>Where it runs.</strong> Exploring and recording run on Windows. A saved workflow also replays on macOS and Linux, where it acts through accessibility calls with no mouse or focus. See <a href="#doc-docs-desktop-replay-on-macos-linux-and-headless-windows">docs/DESKTOP.md</a>.</li>
|
|
139
|
+
<li><strong>Apps</strong> come from <code>desktop.apps</code> in forgeqe.yaml (an absolute <code>.exe</code> and an argument list), or an environment's desktop apps. <code>{{secret:NAME}}</code> reads only the variables listed in <code>desktop.secrets</code>.</li>
|
|
140
|
+
<li><strong>It takes over the desktop.</strong> Explore and replay take over the desktop's mouse and keyboard, and ask first. Use a test machine and a test account.</li>
|
|
141
|
+
</ul>
|
|
142
|
+
<p><strong>Setting up, exploring and recording.</strong></p>
|
|
143
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
144
|
+
<ol>
|
|
145
|
+
<li>Open <strong>Desktop apps</strong> (Quality Engineering › Automation). If the desktop engine is not set up, press <strong>Set up</strong>. <strong>Check</strong> says whether replay can run here unattended. <strong>Add an app</strong> adds one by its program on this computer.</li>
|
|
146
|
+
<li>To explore: press <strong>Explore a goal</strong>, pick the <strong>App</strong>, write the <strong>Goal</strong> (one line, as you would ask a tester) and optionally a <strong>Name</strong>, then press <strong>Start exploring</strong>.</li>
|
|
147
|
+
<li>To record by hand: pick the app and press <strong>Record by hand</strong> (or open <strong>Record</strong> and pick <strong>Desktop app</strong>). Do the steps, then <strong>Stop</strong>.</li>
|
|
148
|
+
<li>A recording opens in a review: steps with their pictures (click a control to add a check), changes to a step, checks, waits and keys added after one, where each typed value comes from, and <strong>Replay</strong> with no model (<a href="#doc-docs-desktop-reviewing-a-recording-web-app">docs/DESKTOP.md</a>).</li>
|
|
149
|
+
</ol>
|
|
150
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
151
|
+
<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 desktop setup --ufo</span><span class="pad"> </span><span class="cm"><span class="h">#</span> set up, with exploring and recording on Windows
|
|
152
|
+
</span></span><span class="ln"><span class="cmd">forgeqe desktop explore "Create an invoice for Contoso, net 30" --app billing
|
|
153
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop record --app billing</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or do the steps yourself; no model
|
|
154
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop doctor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> can this machine replay unattended?
|
|
155
|
+
</span></span></code></pre></div>
|
|
156
|
+
<p>While recording by hand from a terminal (or "I'll show you, record it" in the shell), Ctrl+Shift+F11 over a control adds a check of its text, and Ctrl+Shift+F12 finishes.</p>
|
|
157
|
+
</div></div><p><strong>Replaying a workflow.</strong></p>
|
|
158
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
159
|
+
<ol>
|
|
160
|
+
<li>Open <strong>Desktop apps</strong>.</li>
|
|
161
|
+
<li>Press <strong>Replay</strong> on a workflow. Pick the values (<strong>Once, with the values above</strong>, or each row of a data file or kept request), and whether to heal moved controls while it runs.</li>
|
|
162
|
+
</ol>
|
|
163
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
164
|
+
<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 desktop replay <run folder>/workflow.yaml customer=Fabrikam
|
|
165
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --data customers.csv</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once per row; columns are variable names
|
|
166
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay desktop-tests/ --junit results.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every workflow in a folder, results for CI
|
|
167
|
+
</span></span></code></pre></div>
|
|
168
|
+
</div></div><p><strong>Workflows wait for slow apps</strong> without fixed sleeps:</p>
|
|
169
|
+
<ul>
|
|
170
|
+
<li>a <code>timeout</code> and <code>retries</code> for the workflow or a step;</li>
|
|
171
|
+
<li><code>wait_for</code> a control to appear, show a text or go away (a splash screen);</li>
|
|
172
|
+
<li>a <code>dismiss</code> list of dialog buttons to click whenever they are in the way;</li>
|
|
173
|
+
<li><code>expect_image</code> compares a control or window with a baseline image (saved on the first run, kept next to the workflow), with a tolerance and regions to ignore.</li>
|
|
174
|
+
</ul>
|
|
175
|
+
<p><strong>After a failed replay,</strong> ForgeQE's agent can fix the workflow (a longer timeout, a <code>wait_for</code>, a dialog to dismiss). It shows the diff and writes it only when you agree. For nightly runs on a machine of your own, see <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">docs/DESKTOP-CI.md</a>.</p>
|
|
176
|
+
<p><strong>Replay settings</strong> (<strong>Settings › Desktop</strong>). <code>desktop.driver: auto</code> (the default) picks how a workflow replays for the system it is on; <code>pywinauto</code> or <code>agent-desktop</code> names one. With <code>agent-desktop</code>, the mouse and keyboard are not used unless <code>desktop.headed: true</code> (a double-click needs it). <code>desktop.video: false</code> stops the <code>video.mp4</code> each run keeps. Details: <a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">docs/DESKTOP.md</a>.</p>
|
|
177
|
+
</div>
|
|
178
|
+
</section>
|
|
179
|
+
<section class="doc" id="doc-docs-desktop-forgeqe-desktop-thick-client-automation">
|
|
180
|
+
<h4>ForgeQE desktop: thick-client automation</h4>
|
|
181
|
+
<div class="prose"><p>ForgeQE tests web apps in Chrome. It tests desktop thick clients the same way: Win32, WinForms, WPF, and the native parts
|
|
182
|
+
of Electron and WebView2 apps. Say what you want in plain language, ForgeQE's agent does it in the live app, and the run
|
|
183
|
+
is saved as a YAML workflow that replays later with no model.</p>
|
|
184
|
+
<div class="tbl tbl--cols-4"><table>
|
|
185
|
+
<thead>
|
|
186
|
+
<tr><th>Task</th><th>Windows</th><th>macOS</th><th>Linux</th></tr>
|
|
187
|
+
</thead>
|
|
188
|
+
<tbody>
|
|
189
|
+
<tr><td data-label="Task">Explore a goal with the agent</td><td data-label="Windows">yes</td><td data-label="macOS">no</td><td data-label="Linux">no</td></tr>
|
|
190
|
+
<tr><td data-label="Task">Record your own steps</td><td data-label="Windows">yes</td><td data-label="macOS">no</td><td data-label="Linux">no</td></tr>
|
|
191
|
+
<tr><td data-label="Task">Replay a workflow</td><td data-label="Windows">yes (also headless)</td><td data-label="macOS">yes, macOS 13+</td><td data-label="Linux">yes, Ubuntu 24.04+ (X11 or Wayland)</td></tr>
|
|
192
|
+
<tr><td data-label="Task">Check a workflow without running it</td><td data-label="Windows">yes</td><td data-label="macOS">yes</td><td data-label="Linux">yes</td></tr>
|
|
193
|
+
</tbody>
|
|
194
|
+
</table></div>
|
|
195
|
+
<p>Status: the Windows runs are tested end to end (setup, replay, healing a moved control, and a whole explore with a
|
|
196
|
+
scripted model). Not yet run by the ForgeQE team: explore with a real model, and your own apps. See
|
|
197
|
+
<a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a>.</p>
|
|
198
|
+
</div>
|
|
199
|
+
</section>
|
|
200
|
+
<section class="doc" id="doc-docs-desktop-use">
|
|
201
|
+
<h4>Use</h4>
|
|
202
|
+
<div class="prose"><p><strong>Setting up.</strong> Once per computer, ForgeQE downloads and sets up what desktop testing needs. On Windows, include the
|
|
203
|
+
part for exploring a goal. Off Windows, setup always includes the replay part for macOS and Linux.</p>
|
|
204
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
205
|
+
<ol>
|
|
206
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Machine and apps</strong> tab.</li>
|
|
207
|
+
<li>Press <strong>Set up</strong>.</li>
|
|
208
|
+
<li>On Windows, turn on the switch for exploring a goal if you will explore. Turn on <strong>Set it up again from scratch</strong> to
|
|
209
|
+
start over.</li>
|
|
210
|
+
<li>Press <strong>Set up</strong>.</li>
|
|
211
|
+
</ol>
|
|
212
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
213
|
+
<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 desktop setup --ufo</span><span class="pad"> </span><span class="cm"><span class="h">#</span> on Windows: replay, recording, and exploring a goal
|
|
214
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup</span><span class="pad"> </span><span class="cm"><span class="h">#</span> off Windows: replay for macOS and Linux
|
|
215
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup --agent-desktop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> on Windows, to also replay headless (no mouse)
|
|
216
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup --force</span><span class="pad"> </span><span class="cm"><span class="h">#</span> set it up again from scratch
|
|
217
|
+
</span></span></code></pre></div>
|
|
218
|
+
</div></div><p><strong>Adding an app.</strong> Desktop apps come from the active environment in <code>env.yaml</code> (see HOW_TO_USE.md, "Environments and
|
|
219
|
+
apps"), or from <code>desktop.apps</code> in <code>forgeqe.yaml</code>, which works without environments. A workflow names an app only by its
|
|
220
|
+
name, never by a path or a command.</p>
|
|
221
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
222
|
+
<ol>
|
|
223
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Machine and apps</strong> tab.</li>
|
|
224
|
+
<li>Press <strong>Add an app</strong>.</li>
|
|
225
|
+
<li>Fill in <strong>Program</strong> (type its path, or press <strong>Browse…</strong>), <strong>Arguments</strong> (optional), <strong>Name</strong>, and <strong>What it is for</strong>
|
|
226
|
+
(optional: one line the agent reads to pick the app).</li>
|
|
227
|
+
<li>Press <strong>Add the app</strong>.</li>
|
|
228
|
+
</ol>
|
|
229
|
+
<p>Each app in the list has <strong>Change</strong> and <strong>Remove</strong> buttons. You can also add apps in <strong>Settings › Environments</strong>.</p>
|
|
230
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></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 desktop apps</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the apps and secrets of the active environment and desktop:
|
|
232
|
+
</span></span></code></pre></div>
|
|
233
|
+
<p>Edit <code>forgeqe.yaml</code> (or <code>env.yaml</code>) to add one:</p>
|
|
234
|
+
<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">desktop:
|
|
235
|
+
</span></span><span class="ln"><span class="cmd"> apps:
|
|
236
|
+
</span></span><span class="ln"><span class="cmd"> billing:
|
|
237
|
+
</span></span><span class="ln"><span class="cmd"> path: C:\Program Files\Contoso\Billing\Billing.exe
|
|
238
|
+
</span></span><span class="ln"><span class="cmd"> args: ["--profile", "test"]
|
|
239
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> window: "Billing.*" # for a launcher that starts the real app and exits: connect by title
|
|
240
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> secrets: [BILLING_PASSWORD]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the only environment variables {{secret:…}} may read
|
|
241
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> heal: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> replay asks the model to re-find a control that moved (default on)
|
|
242
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> screenshots: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one screenshot per replayed step (default on)
|
|
243
|
+
</span></span></code></pre></div>
|
|
244
|
+
<p>An app is an absolute <code>.exe</code> on Windows, an <code>.app</code> bundle on macOS (<code>/Applications/Notes.app</code>), or an executable on
|
|
245
|
+
Linux (<code>/usr/bin/gnome-calculator</code>, with <code>kind: desktop</code>).</p>
|
|
246
|
+
</div></div><p><strong>Exploring a goal.</strong> ForgeQE's agent does the goal in the app with the real mouse and keyboard, and saves the run as a
|
|
247
|
+
workflow with checks of the outcome. Windows only. Use a test machine or VM and a test account.</p>
|
|
248
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
249
|
+
<ol>
|
|
250
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Workflows</strong> tab.</li>
|
|
251
|
+
<li>Press <strong>Explore a goal</strong>.</li>
|
|
252
|
+
<li>Pick the <strong>App</strong>, type the <strong>Goal</strong> (one line, as you would ask a tester) and, optionally, a <strong>Name</strong>.</li>
|
|
253
|
+
<li>Press <strong>Start exploring</strong>.</li>
|
|
254
|
+
</ol>
|
|
255
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
256
|
+
<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 desktop explore "Create an invoice for Contoso, net 30" --app billing
|
|
257
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop explore "…" --app billing --name "Create an invoice" --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> --yes: start without asking
|
|
258
|
+
</span></span></code></pre></div>
|
|
259
|
+
</div></div><p><strong>Recording your own steps.</strong> When you know the steps, do them yourself: no model is used, so it costs nothing and does
|
|
260
|
+
exactly what you did. Windows only. See <a href="#doc-docs-desktop-recording-by-hand">Recording by hand</a>.</p>
|
|
261
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
262
|
+
<ol>
|
|
263
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Workflows</strong> tab.</li>
|
|
264
|
+
<li>Pick the app (when there are several) and press <strong>Record by hand</strong>.</li>
|
|
265
|
+
</ol>
|
|
266
|
+
<p>Or open <strong>Record</strong>, pick <strong>Desktop app</strong>, pick the app and press <strong>Record</strong>. Press <strong>Stop</strong> when done.</p>
|
|
267
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
268
|
+
<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 desktop record --app billing --name "Create an invoice"
|
|
269
|
+
</span></span></code></pre></div>
|
|
270
|
+
</div></div><p><strong>Replaying a workflow.</strong> Replay runs the steps with no model and checks its <code>expect</code> steps. On Windows it takes over the
|
|
271
|
+
mouse and keyboard while it runs.</p>
|
|
272
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
273
|
+
<ol>
|
|
274
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Workflows</strong> tab.</li>
|
|
275
|
+
<li>Press the replay button on the workflow's row.</li>
|
|
276
|
+
<li>Fill in its <strong>Values</strong>, or pick <strong>Rows</strong> under <strong>Test data</strong> to replay once per row of a data file or kept request.</li>
|
|
277
|
+
<li>Under <strong>While it runs</strong>, choose <strong>Heal a step whose control moved</strong> and <strong>Take new image baselines</strong>.</li>
|
|
278
|
+
<li>Press <strong>Replay</strong>.</li>
|
|
279
|
+
</ol>
|
|
280
|
+
<p>The <strong>Runs</strong> tab lists each run with its <strong>Report</strong>. Its <strong>Failed</strong> filter shows failed runs, and a button on each asks
|
|
281
|
+
the agent why it failed.</p>
|
|
282
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
283
|
+
<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 desktop replay .forgeqe/reports/desktop-explore-…/workflow.yaml customer=Fabrikam
|
|
284
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --data customers.csv</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once per row; the header names the variables
|
|
285
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay desktop-tests/ --junit results.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every workflow in a folder, results for CI
|
|
286
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --update-baselines</span><span class="pad"> </span><span class="cm"><span class="h">#</span> save new baselines for its expect_image steps
|
|
287
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --no-heal</span><span class="pad"> </span><span class="cm"><span class="h">#</span> do not heal a moved control
|
|
288
|
+
</span></span></code></pre></div>
|
|
289
|
+
<p><code>--data</code> takes a <code>.csv</code>, <code>.xlsx</code> or <code>.json</code> file; <code>--each-query q.sql --each-db NAME</code> takes the rows from a database
|
|
290
|
+
read instead.</p>
|
|
291
|
+
</div></div><p><strong>Accepting heals.</strong> When a control moved and replay found it again, the replay asks whether to write the new locator
|
|
292
|
+
into the workflow. Heals are offered only from a replay that passed.</p>
|
|
293
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
294
|
+
<ol>
|
|
295
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Runs</strong> tab (the <strong>Heals to accept</strong> filter lists them).</li>
|
|
296
|
+
<li>Press <strong>Accept</strong> on the run.</li>
|
|
297
|
+
</ol>
|
|
298
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
299
|
+
<p>At the end of the replay, answer the question. <code>--accept-heals</code> writes them without asking. With no terminal they are
|
|
300
|
+
never written.</p>
|
|
301
|
+
</div></div><p><strong>Checking a workflow or a machine.</strong> A workflow can be checked without running it, on any system. The machine check
|
|
302
|
+
says whether replay can run here unattended.</p>
|
|
303
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
304
|
+
<ol>
|
|
305
|
+
<li>To check a workflow: on the <strong>Workflows</strong> tab, press the check button on its row.</li>
|
|
306
|
+
<li>To check the machine: on the <strong>Machine and apps</strong> tab, press <strong>Check</strong>.</li>
|
|
307
|
+
</ol>
|
|
308
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
309
|
+
<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 desktop validate workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> any system
|
|
310
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop doctor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> can this machine replay unattended?
|
|
311
|
+
</span></span></code></pre></div>
|
|
312
|
+
</div></div><p><strong>Asking the agent.</strong> In a chat (the web app's <strong>New chat</strong>, <code>forgeqe start</code> or <code>forgeqe run</code>), ask: "create an invoice
|
|
313
|
+
for Contoso in Billing and save it as a test", or "I'll show you the steps in Billing, record them". The agent asks
|
|
314
|
+
before it starts the app or takes over the desktop, and before it changes a workflow. Where it cannot ask (an MCP
|
|
315
|
+
client), the call answers <code>needs_confirmation</code> until you agree.</p>
|
|
316
|
+
<p><strong>What a run keeps.</strong> Each run writes a folder under the reports folder (<code>desktop-explore-…</code> or <code>desktop-replay-…</code>):
|
|
317
|
+
<code>run.json</code>, <code>report.html</code>, <code>steps/NNN.png</code>, and for an explore <code>workflow.yaml</code> and <code>trace.json</code>. A replay whose steps
|
|
318
|
+
were healed also writes <code>heals.json</code>.</p>
|
|
319
|
+
</div>
|
|
320
|
+
</section>
|
|
321
|
+
<section class="doc" id="doc-docs-desktop-how-a-run-flows">
|
|
322
|
+
<h4>How a run flows</h4>
|
|
323
|
+
<div class="prose"><ol>
|
|
324
|
+
<li><strong>Explore:</strong> ForgeQE starts the app from its entry in your settings (never through a shell). The agent does the goal
|
|
325
|
+
with the app's controls only, and every action is kept with the control's properties. The result is <code>workflow.yaml</code>.</li>
|
|
326
|
+
<li><strong>Replay:</strong> ForgeQE plays the workflow's steps with no model.</li>
|
|
327
|
+
<li><strong>Healing:</strong> when a step's control is not found, one model call picks one of the window's real controls, by number.
|
|
328
|
+
The proposed locator goes to <code>heals.json</code> and is written into the workflow only when you accept it.</li>
|
|
329
|
+
</ol>
|
|
330
|
+
</div>
|
|
331
|
+
</section>
|
|
332
|
+
<section class="doc" id="doc-docs-desktop-replay-on-macos-linux-and-headless-windows">
|
|
333
|
+
<h4>Replay on macOS, Linux, and headless Windows</h4>
|
|
334
|
+
<div class="prose"><p><code>desktop.driver</code> sets how a workflow replays. In the web app it is <strong>Replay on</strong>, in <strong>Settings › Desktop</strong>.</p>
|
|
335
|
+
<div class="tbl tbl--cols-3"><table>
|
|
336
|
+
<thead>
|
|
337
|
+
<tr><th><code>desktop.driver</code></th><th>How it replays</th><th>Where</th></tr>
|
|
338
|
+
</thead>
|
|
339
|
+
<tbody>
|
|
340
|
+
<tr><td data-label="desktop.driver"><code>auto</code> (default)</td><td data-label="How it replays">the mouse and keyboard on Windows, accessibility calls elsewhere</td><td data-label="Where">any</td></tr>
|
|
341
|
+
<tr><td data-label="desktop.driver"><code>pywinauto</code></td><td data-label="How it replays">the mouse and keyboard, like a person</td><td data-label="Where">Windows</td></tr>
|
|
342
|
+
<tr><td data-label="desktop.driver"><code>agent-desktop</code></td><td data-label="How it replays">accessibility calls, with no mouse and no focus</td><td data-label="Where">macOS 13+, Windows 10 1809+, Ubuntu 24.04+ (X11 or Wayland)</td></tr>
|
|
343
|
+
</tbody>
|
|
344
|
+
</table></div>
|
|
345
|
+
<p>In <strong>Settings › Desktop</strong> › <strong>Replay on</strong> the same choices read <strong>Automatic</strong>, <strong>The mouse and keyboard</strong> and
|
|
346
|
+
<strong>Accessibility calls, no mouse</strong>.</p>
|
|
347
|
+
<p>Set up and check the machine as in <a href="#doc-docs-desktop-use">Use</a> (<code>forgeqe desktop setup</code>, then <code>forgeqe desktop doctor</code>, or <strong>Set up</strong>
|
|
348
|
+
and <strong>Check</strong> in the web app). Off Windows, the check also shows the platform and its permissions.</p>
|
|
349
|
+
<p>The workflow, its variables, secrets, checks, healing, app memory, reports and <code>--junit</code> are the same either way. A
|
|
350
|
+
workflow recorded on Windows replays with accessibility calls as it is: its <code>control_type</code> is matched to the roles the
|
|
351
|
+
system gives that control (a <code>Button</code> with a toggle is a <code>switch</code>), and <code>automation_id</code> to the control's developer id
|
|
352
|
+
(AutomationId, AXIdentifier, or the DOM id). A workflow written for macOS or Linux can name those roles (<code>textfield</code>,
|
|
353
|
+
<code>checkbox</code>) as its <code>control_type</code>.</p>
|
|
354
|
+
<p>How a step runs with accessibility calls: the locator finds the control in a fresh snapshot of the app's own windows,
|
|
355
|
+
and refuses when several match. The control is checked again against the live window before the action: one that
|
|
356
|
+
changed in between is refused, never guessed. An action that may have landed (a click whose result could not be
|
|
357
|
+
confirmed) is never sent again, so a replay never submits twice.</p>
|
|
358
|
+
<p>What it does not do:</p>
|
|
359
|
+
<ul>
|
|
360
|
+
<li><code>double_click</code> moves the mouse: it replays only with <code>desktop.headed: true</code> (<strong>Let replay use the mouse and
|
|
361
|
+
keyboard</strong> in <strong>Settings › Desktop</strong>).</li>
|
|
362
|
+
<li><code>keys</code> are real key presses sent to the app's window. A workflow recorded on Windows says <code>ctrl+s</code>; on macOS write
|
|
363
|
+
<code>cmd+s</code> instead.</li>
|
|
364
|
+
<li>Identical controls (two buttons named OK in one window) cannot be told apart on Windows and Linux. Give the step a
|
|
365
|
+
control that is unique in its window.</li>
|
|
366
|
+
<li>On macOS, grant Accessibility (System Settings › Privacy & Security › Accessibility) to the app that runs forgeqe
|
|
367
|
+
(Terminal, iTerm2, VS Code). <code>forgeqe desktop doctor</code> shows the state. On Linux, Chromium and Qt apps need their
|
|
368
|
+
accessibility switched on to be seen.</li>
|
|
369
|
+
</ul>
|
|
370
|
+
<p>What ForgeQE keeps safe: typed text, secrets included, never appears on a command line other programs can see; no
|
|
371
|
+
model key or secret reaches the replay's helper; the app's text from each run is kept in a private folder that is
|
|
372
|
+
removed when the run ends.</p>
|
|
373
|
+
</div>
|
|
374
|
+
</section>
|
|
375
|
+
<section class="doc" id="doc-docs-desktop-the-model-explore-and-healing-use">
|
|
376
|
+
<h4>The model explore and healing use</h4>
|
|
377
|
+
<div class="prose"><p>Explore and healing use the same model profiles as the browser agent, from <code>llms.json</code> (Settings › Models): Azure
|
|
378
|
+
OpenAI (key or Microsoft Entra ID), OpenAI, an OpenAI-compatible server, or Ollama. There is no separate model setting
|
|
379
|
+
for desktop. Keys stay in environment variables. Each call's time and tokens are counted in ForgeQE's usage (counts
|
|
380
|
+
only, never the prompt).</p>
|
|
381
|
+
<p>Explore sends screenshots, so its profile must take images: <code>"vision": true</code> or <code>false</code> on the profile says so; without
|
|
382
|
+
it, <code>ollama</code> profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images.</p>
|
|
383
|
+
<p>Request parameters suit the model by themselves: a reasoning model (o1, o3, o4, gpt-5, by the profile's <code>model</code> or
|
|
384
|
+
<code>deployment</code> name, or <code>"reasoning": true</code> on the profile) gets no temperature from the first call, and when the API
|
|
385
|
+
refuses a parameter the call is sent again without it, and later calls to that model leave it out.</p>
|
|
386
|
+
</div>
|
|
387
|
+
</section>
|
|
388
|
+
<section class="doc" id="doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">
|
|
389
|
+
<h4>Workflow YAML (<code>forgeqe-desktop-v1</code>)</h4>
|
|
390
|
+
<div class="prose"><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">format: forgeqe-desktop-v1
|
|
391
|
+
</span></span><span class="ln"><span class="cmd">name: Create an invoice
|
|
392
|
+
</span></span><span class="ln ln--pair"><span class="cmd">app: billing</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a name from desktop.apps, never a path or a command
|
|
393
|
+
</span></span><span class="ln"><span class="cmd">variables:
|
|
394
|
+
</span></span><span class="ln"><span class="cmd"> customer: Contoso
|
|
395
|
+
</span></span><span class="ln"><span class="cmd">steps:
|
|
396
|
+
</span></span><span class="ln"><span class="cmd"> - op: launch
|
|
397
|
+
</span></span><span class="ln"><span class="cmd"> - op: click
|
|
398
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: btnNewInvoice, control_type: Button, name: New invoice}
|
|
399
|
+
</span></span><span class="ln"><span class="cmd"> - op: type
|
|
400
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: txtCustomer, control_type: Edit}
|
|
401
|
+
</span></span><span class="ln"><span class="cmd"> text: "{{customer}}"
|
|
402
|
+
</span></span><span class="ln"><span class="cmd"> - op: type
|
|
403
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: txtPassword, control_type: Edit}
|
|
404
|
+
</span></span><span class="ln"><span class="cmd"> text: "{{secret:BILLING_PASSWORD}}"
|
|
405
|
+
</span></span><span class="ln"><span class="cmd"> - op: select
|
|
406
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: cmbTerms, control_type: ComboBox}
|
|
407
|
+
</span></span><span class="ln"><span class="cmd"> value: Net 30
|
|
408
|
+
</span></span><span class="ln"><span class="cmd"> - op: keys
|
|
409
|
+
</span></span><span class="ln"><span class="cmd"> keys: ctrl+s
|
|
410
|
+
</span></span><span class="ln"><span class="cmd"> - op: expect
|
|
411
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: lblStatus}
|
|
412
|
+
</span></span><span class="ln"><span class="cmd"> text: Saved
|
|
413
|
+
</span></span><span class="ln"><span class="cmd"> - op: close
|
|
414
|
+
</span></span></code></pre></div>
|
|
415
|
+
<ul>
|
|
416
|
+
<li><strong>Ops:</strong> <code>launch</code>, <code>click</code>, <code>double_click</code>, <code>type</code>, <code>select</code>, <code>keys</code>, <code>expect</code>, <code>expect_image</code>, <code>wait</code> (at most
|
|
417
|
+
60 s), <code>wait_for</code>, <code>close</code>.</li>
|
|
418
|
+
<li><strong>Locators</strong> use the control's properties, never screen coordinates: <code>automation_id</code>, <code>name</code>, <code>control_type</code>,
|
|
419
|
+
<code>class_name</code>, <code>index</code> (when several match), and <code>path</code> (the ancestors' <code>control_type</code> and <code>name</code>). A target needs an
|
|
420
|
+
<code>automation_id</code> or a <code>name</code>. Replay looks in the launched app's own windows only.</li>
|
|
421
|
+
<li><strong>Variables:</strong> <code>{{name}}</code> from the workflow's <code>variables</code> or <code>name=value</code> on the command line; <code>{{secret:NAME}}</code> from
|
|
422
|
+
the environment, only for names in <code>desktop.secrets</code>. A secret ForgeQE itself uses (a model key, a tracker token) is
|
|
423
|
+
refused there. Values are filled in once and never expanded again. Targets take <code>{{name}}</code> too (a CSV row's
|
|
424
|
+
<code>{{customer}}</code> as the control to click), never a secret.</li>
|
|
425
|
+
<li><strong>Keys:</strong> <code>ctrl</code>, <code>shift</code> and <code>alt</code> with one named key or character (<code>ctrl+s</code>, <code>alt+f4</code>, <code>enter</code>, <code>f5</code>). The Windows
|
|
426
|
+
and context-menu keys are refused: Win+R followed by typing runs any command.</li>
|
|
427
|
+
<li><strong>Typing</strong> is literal: special key characters in the text are typed as they are. On Windows a <code>type</code> step clears the
|
|
428
|
+
field and types the text key by key, like a person: some controls show text set directly but act only on typed input
|
|
429
|
+
(the Windows Save and Open dialogs keep their default file name). Text with line breaks or tabs is set instead, so a
|
|
430
|
+
line break never presses Enter in a form.</li>
|
|
431
|
+
<li><strong>Only the app gets the input.</strong> Before a click, <code>type</code> or <code>keys</code>, the app's window is brought forward, and nothing is
|
|
432
|
+
sent while another program's window covers the point or keeps the keyboard: the step fails and says so. <code>keys</code> go to
|
|
433
|
+
the app's open dialog, not its main window behind it. A <code>dismiss</code> control that could not be clicked is named in the
|
|
434
|
+
step's error.</li>
|
|
435
|
+
</ul>
|
|
436
|
+
</div>
|
|
437
|
+
</section>
|
|
438
|
+
<section class="doc" id="doc-docs-desktop-recording-by-hand">
|
|
439
|
+
<h4>Recording by hand</h4>
|
|
440
|
+
<div class="prose"><p>When you know the steps, do them yourself instead of describing a goal: no model is involved, so it costs nothing and
|
|
441
|
+
does exactly what you did. Start it as in <a href="#doc-docs-desktop-use">Use</a> ("Recording your own steps").</p>
|
|
442
|
+
<p>ForgeQE starts the app and watches the mouse and keyboard, asking Windows which control each click and key went to. Do
|
|
443
|
+
the steps, then:</p>
|
|
444
|
+
<ul>
|
|
445
|
+
<li><strong>Ctrl+Shift+F11</strong> with the mouse over a control adds a check: an <code>expect</code> step with the text it shows now (a
|
|
446
|
+
status message, a saved total). Add one at the end, so the replay tests the outcome, not only the steps.</li>
|
|
447
|
+
<li><strong>Ctrl+Shift+F12</strong>, or closing the app, finishes (in the web app, <strong>Stop</strong> too). The terminal shows each step as it
|
|
448
|
+
is recorded.</li>
|
|
449
|
+
</ul>
|
|
450
|
+
<p>What becomes a step:</p>
|
|
451
|
+
<div class="tbl tbl--cols-2"><table>
|
|
452
|
+
<thead>
|
|
453
|
+
<tr><th>You do</th><th>Step</th></tr>
|
|
454
|
+
</thead>
|
|
455
|
+
<tbody>
|
|
456
|
+
<tr><td data-label="You do">Click a control (two quick clicks: <code>double_click</code>)</td><td data-label="Step"><code>click</code> with its AutomationId, name and control type</td></tr>
|
|
457
|
+
<tr><td data-label="You do">Pick an item in a drop-down</td><td data-label="Step"><code>select</code> on the drop-down, with the item's name</td></tr>
|
|
458
|
+
<tr><td data-label="You do">Type into a field (corrections and pastes included)</td><td data-label="Step">one <code>type</code> with the field's text when you move on, read from the field</td></tr>
|
|
459
|
+
<tr><td data-label="You do">A key chord outside a text field (<code>ctrl+s</code>, <code>enter</code>, <code>f5</code>)</td><td data-label="Step"><code>keys</code></td></tr>
|
|
460
|
+
<tr><td data-label="You do">Ctrl+Shift+F11 over a control</td><td data-label="Step"><code>expect</code> with its text</td></tr>
|
|
461
|
+
</tbody>
|
|
462
|
+
</table></div>
|
|
463
|
+
<ul>
|
|
464
|
+
<li><strong>Passwords:</strong> a password field is never read; its step types <code>{{secret:NAME}}</code> (the one name in <code>desktop.secrets</code>,
|
|
465
|
+
or <code><APP>_PASSWORD</code>, which the result tells you to set). Text equal to a <code>desktop.secrets</code> value is written as its
|
|
466
|
+
placeholder. The typed characters themselves are never kept, only the field's text when you move on.</li>
|
|
467
|
+
<li><strong>Only the app:</strong> clicks and keys outside the app are not recorded; nor are the Windows and menu keys, or controls
|
|
468
|
+
with neither an AutomationId nor a name. The result lists what was left out.</li>
|
|
469
|
+
<li><strong>A click that closes a dialog</strong> (OK after typing a password) is still recorded, with the field you typed in.</li>
|
|
470
|
+
<li><strong>A cell in a list or grid row</strong> is recorded inside its row (<code>path</code>: the row's type and name), since every row has a
|
|
471
|
+
cell like it (a password column's <code>********</code>).</li>
|
|
472
|
+
<li>The run folder has <code>workflow.yaml</code>, <code>run.json</code>, <code>report.html</code>, a picture of each step with the controls it shows
|
|
473
|
+
(<code>steps/NNN.png</code> and <code>.json</code>), and <code>video.mp4</code> with <code>desktop.video: true</code>.</li>
|
|
474
|
+
</ul>
|
|
475
|
+
</div>
|
|
476
|
+
</section>
|
|
477
|
+
<section class="doc" id="doc-docs-desktop-reviewing-a-recording-web-app">
|
|
478
|
+
<h4>Reviewing a recording (web app)</h4>
|
|
479
|
+
<div class="prose"><p>In the web app only: a recording made from <strong>Record › Desktop app</strong> (Windows) opens in a review when you stop. Any other
|
|
480
|
+
workflow opens in the same review from the <strong>Workflows</strong> tab of <strong>Desktop apps</strong> (the open button on its row). It has
|
|
481
|
+
three tabs:</p>
|
|
482
|
+
<ul>
|
|
483
|
+
<li><strong>Steps</strong>: each step with its picture, as recorded or on the last replay. Click a control on a picture to add a
|
|
484
|
+
check that it shows its text (or that it is there). <strong>Change step N</strong> changes a step's control, text or seconds,
|
|
485
|
+
or removes it (never the first, which starts the app). <strong>+</strong> after a step adds: <strong>Check a control shows a text</strong>,
|
|
486
|
+
<strong>Check a control is there</strong>, <strong>Wait for a control</strong>, <strong>Wait until a control is gone</strong>, <strong>Wait some seconds</strong>, or
|
|
487
|
+
<strong>Press keys</strong>. Each change is shown first and written at the version shown.</li>
|
|
488
|
+
<li><strong>Test data</strong>: where each typed or chosen value comes from: <strong>As typed</strong>, <strong>Test data</strong> (a variable of the workflow),
|
|
489
|
+
or <strong>Secret</strong> (one of <code>desktop.secrets</code>; what was typed then leaves the workflow). Press <strong>Save</strong>.</li>
|
|
490
|
+
<li><strong>Last run</strong>: <strong>Replay</strong> with the values above or once for each row of a data file or kept request, with <strong>Heal a
|
|
491
|
+
step whose control moved</strong> and <strong>Take new image baselines</strong>; its result, report and heals to <strong>Accept</strong>.</li>
|
|
492
|
+
</ul>
|
|
493
|
+
<p><strong>Improve</strong> asks the agent what to fix or add; it changes the workflow only after showing you the change. A mobile
|
|
494
|
+
recording opens in the same review.</p>
|
|
495
|
+
<p>At a terminal, the same changes are made by editing the workflow file, or by asking the agent in a chat (see the next
|
|
496
|
+
section).</p>
|
|
497
|
+
</div>
|
|
498
|
+
</section>
|
|
499
|
+
<section class="doc" id="doc-docs-desktop-fixing-a-workflow-from-chat">
|
|
500
|
+
<h4>Fixing a workflow from chat</h4>
|
|
501
|
+
<div class="prose"><p>When a replayed step fails because the app was slow or a dialog was in the way, ask ForgeQE's agent to fix it, in a web
|
|
502
|
+
chat (or <strong>Improve</strong> on the workflow) or in <code>forgeqe start</code>. It proposes the change (a longer <code>timeout</code> or <code>retries</code> on
|
|
503
|
+
the step, a <code>wait_for</code> before it, a dialog button in <code>dismiss</code>, a healed locator, a corrected text), shows you the diff,
|
|
504
|
+
and writes the file only when you agree. For example, after "step 4 timed out while the invoice list loaded":</p>
|
|
505
|
+
<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">Change invoice.yaml?
|
|
506
|
+
</span></span><span class="ln"><span class="cmd">• new wait_for step before step 4
|
|
507
|
+
</span></span><span class="ln"><span class="cmd">• step 4: retries 2
|
|
508
|
+
</span></span><span class="ln"><span class="cmd"> - op: click
|
|
509
|
+
</span></span><span class="ln"><span class="cmd"> + target: {automation_id: btnPost}
|
|
510
|
+
</span></span><span class="ln"><span class="cmd"> + retries: 2
|
|
511
|
+
</span></span></code></pre></div>
|
|
512
|
+
<ul>
|
|
513
|
+
<li>Each change has a fixed shape (set or unset a setting, change, insert or remove a step, add a dialog to <code>dismiss</code>,
|
|
514
|
+
set a variable); step numbers are the replay report's. Anything else is refused.</li>
|
|
515
|
+
<li>The changed workflow is checked before it is shown; one that would not run is not offered. Comments and layout are
|
|
516
|
+
kept.</li>
|
|
517
|
+
<li>The old text is kept in the reports folder (<code>desktop-edits/</code>), and a file that changed since the edit was proposed is
|
|
518
|
+
not overwritten.</li>
|
|
519
|
+
<li>The workflow must be a <code>.yaml</code> inside the working folder or the reports folder.</li>
|
|
520
|
+
</ul>
|
|
521
|
+
</div>
|
|
522
|
+
</section>
|
|
523
|
+
<section class="doc" id="doc-docs-desktop-waits-retries-and-dialogs">
|
|
524
|
+
<h4>Waits, retries and dialogs</h4>
|
|
525
|
+
<div class="prose"><p>Real apps are slow in places: a splash screen, a form that loads its data, a "Tip of the day" or "Save changes?"
|
|
526
|
+
dialog. A workflow says how to wait for them, without fixed <code>wait</code> steps:</p>
|
|
527
|
+
<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--pair"><span class="cmd">timeout: 20</span><span class="pad"> </span><span class="cm"><span class="h">#</span> seconds a step waits for its control (default 10, at most 300)
|
|
528
|
+
</span></span><span class="ln ln--pair"><span class="cmd">retries: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> tries a failed action again, after a short pause (default 0, at most 5)
|
|
529
|
+
</span></span><span class="ln ln--pair"><span class="cmd">dismiss:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> clicked whenever one of them is in the way
|
|
530
|
+
</span></span><span class="ln"><span class="cmd"> - {name: OK, control_type: Button, automation_id: btnTipClose}
|
|
531
|
+
</span></span><span class="ln"><span class="cmd"> - {name: "Don't Save", control_type: Button}
|
|
532
|
+
</span></span><span class="ln"><span class="cmd">steps:
|
|
533
|
+
</span></span><span class="ln"><span class="cmd"> - op: launch
|
|
534
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> timeout: 90</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a slow start: how long to wait for the app's window
|
|
535
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> - op: wait_for</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the splash screen goes away
|
|
536
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: splashForm}
|
|
537
|
+
</span></span><span class="ln"><span class="cmd"> gone: true
|
|
538
|
+
</span></span><span class="ln"><span class="cmd"> timeout: 120
|
|
539
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> - op: wait_for</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the form has loaded its data
|
|
540
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: lblStatus}
|
|
541
|
+
</span></span><span class="ln"><span class="cmd"> text: Ready
|
|
542
|
+
</span></span><span class="ln"><span class="cmd"> - op: click
|
|
543
|
+
</span></span><span class="ln"><span class="cmd"> target: {automation_id: btnPost}
|
|
544
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> timeout: 60</span><span class="pad"> </span><span class="cm"><span class="h">#</span> per step, over the workflow's timeout
|
|
545
|
+
</span></span><span class="ln"><span class="cmd"> retries: 3
|
|
546
|
+
</span></span></code></pre></div>
|
|
547
|
+
<ul>
|
|
548
|
+
<li><strong>Each step waits</strong> for its control up to its <code>timeout</code>. <code>click</code>, <code>type</code> and <code>select</code> also wait until the control is
|
|
549
|
+
enabled and visible (a form that is still loading greys its buttons out).</li>
|
|
550
|
+
<li><strong><code>wait_for</code></strong> waits until a control is there, shows a <code>text</code>, or with <code>gone: true</code> has gone.</li>
|
|
551
|
+
<li><strong><code>retries</code></strong> applies to <code>click</code>, <code>double_click</code>, <code>type</code>, <code>select</code>, <code>keys</code>, <code>expect</code> and <code>expect_image</code>. Between
|
|
552
|
+
tries, replay pauses (1 s, 2 s, … up to 5 s) and closes any <code>dismiss</code> dialog. An error in the workflow itself (a
|
|
553
|
+
missing variable) is not retried.</li>
|
|
554
|
+
<li><strong><code>dismiss</code></strong> lists at most 10 targets, checked like any target. When a control is not found, or something waits to
|
|
555
|
+
go away, replay clicks the <code>dismiss</code> controls that are on screen and looks again, up to 3 times per lookup. The
|
|
556
|
+
report and the terminal name every dialog closed, and how many tries a step took.</li>
|
|
557
|
+
</ul>
|
|
558
|
+
<p>In the web app, the review's <strong>+</strong> adds the waits; <code>timeout</code>, <code>retries</code> and <code>dismiss</code> are edited in the file or through
|
|
559
|
+
the agent.</p>
|
|
560
|
+
</div>
|
|
561
|
+
</section>
|
|
562
|
+
<section class="doc" id="doc-docs-desktop-visual-checks-expect_image">
|
|
563
|
+
<h4>Visual checks (<code>expect_image</code>)</h4>
|
|
564
|
+
<div class="prose"><p><code>expect</code> compares text. When what matters is drawn (a chart, a signature, a colour, a layout), <code>expect_image</code>
|
|
565
|
+
compares pixels with a baseline image:</p>
|
|
566
|
+
<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"> - op: expect_image
|
|
567
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> target: {automation_id: chartRevenue}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> without a target: the app's top window
|
|
568
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: revenue-chart.png</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a file name in <workflow name>.baselines/ next to the workflow
|
|
569
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> tolerance: 0.01</span><span class="pad"> </span><span class="cm"><span class="h">#</span> share of pixels that may differ (default 0.01, i.e. 1%)
|
|
570
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> ignore: [[0, 0, 120, 24]]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> regions [x, y, width, height] that change every run (a date, a clock)
|
|
571
|
+
</span></span></code></pre></div>
|
|
572
|
+
<ul>
|
|
573
|
+
<li><strong>The first run</strong> with no baseline saves what it captured and passes; the report says so. Commit the baselines
|
|
574
|
+
folder with the workflow. After an intended change, replace them with <strong>Take new image baselines</strong> (web app) or
|
|
575
|
+
<code>--update-baselines</code> (terminal).</li>
|
|
576
|
+
<li><strong>A pixel counts as different</strong> when a colour channel differs by more than 32 of 255, so anti-aliasing and ClearType
|
|
577
|
+
do not fail a check. A different size (another screen scale or window size) fails with both sizes named.</li>
|
|
578
|
+
<li><strong>The report</strong> shows the baseline, what was captured, and the differences in red, with the share of pixels that
|
|
579
|
+
differ (<code>images/NNN-baseline|actual|diff.png</code> in the run folder).</li>
|
|
580
|
+
<li><strong>Image names</strong> are file names only (letters, digits, <code>_</code>, <code>-</code>, ending <code>.png</code>). A path, <code>..</code>, or a link that leads
|
|
581
|
+
out of the baselines folder is refused.</li>
|
|
582
|
+
<li>Run visual checks on one machine with a fixed resolution and scale (see <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">DESKTOP-CI.md</a>).</li>
|
|
583
|
+
</ul>
|
|
584
|
+
</div>
|
|
585
|
+
</section>
|
|
586
|
+
<section class="doc" id="doc-docs-desktop-unattended-runs">
|
|
587
|
+
<h4>Unattended runs</h4>
|
|
588
|
+
<div class="prose"><p>Replay on Windows with the mouse and keyboard needs a signed-in, unlocked Windows session. Before it starts the app, it
|
|
589
|
+
checks the session and fails at once with the reason if it is a Windows service (session 0), a locked screen, or a
|
|
590
|
+
disconnected Remote Desktop session. The machine check (<strong>Check</strong> on <strong>Machine and apps</strong>, or <code>forgeqe desktop doctor</code>)
|
|
591
|
+
runs the same check. To run the suite every night on a machine of your own, see <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">DESKTOP-CI.md</a>: a
|
|
592
|
+
runner set up in the user's session (<code>ci/desktop-runner/prepare-runner.ps1</code>), a nightly workflow
|
|
593
|
+
(<code>ci/desktop-runner/desktop-nightly.example.yml</code>), and <code>--junit</code> results.</p>
|
|
594
|
+
</div>
|
|
595
|
+
</section>
|
|
596
|
+
<section class="doc" id="doc-docs-desktop-checks-of-the-outcome">
|
|
597
|
+
<h4>Checks of the outcome</h4>
|
|
598
|
+
<div class="prose"><p>A recording of actions only proves the steps run. When the agent has finished exploring, and before the app closes,
|
|
599
|
+
ForgeQE shows the model the goal and the app's controls with the text each shows now, and the model picks up to three
|
|
600
|
+
whose text proves the goal (a status message, a saved value), with the part of the text to expect. A check is kept only
|
|
601
|
+
when that text really is in that control, so the model can choose among what is on screen but never invent it; text
|
|
602
|
+
holding a <code>desktop.secrets</code> value is never offered. The checks are saved as <code>expect</code> steps at the end of the workflow,
|
|
603
|
+
and the report says how many there are. With none, the report and the agent say so, and the web app marks the workflow
|
|
604
|
+
as having no checks of the outcome: add <code>expect</code> steps (in the review, or by hand).</p>
|
|
605
|
+
</div>
|
|
606
|
+
</section>
|
|
607
|
+
<section class="doc" id="doc-docs-desktop-what-an-explore-records">
|
|
608
|
+
<h4>What an explore records</h4>
|
|
609
|
+
<div class="prose"><p>Each action of the agent is recorded with the properties of the control it acted on, and becomes a step: a click (or
|
|
610
|
+
double-click), typing into a field, a key chord (<code>keys</code>, when it is one allowed chord, else <code>type</code>), and picking an
|
|
611
|
+
item (<code>select</code>). Clicks at screen positions, scrolls and anything else are listed as not recorded in the report. A
|
|
612
|
+
typed value equal to a <code>desktop.secrets</code> value is written as its placeholder; typed text that only looks like <code>{{…}}</code>
|
|
613
|
+
is kept literal, so a model told to type <code>{{secret:X}}</code> cannot make replay type the secret.</p>
|
|
614
|
+
</div>
|
|
615
|
+
</section>
|
|
616
|
+
<section class="doc" id="doc-docs-desktop-security">
|
|
617
|
+
<h4>Security</h4>
|
|
618
|
+
<div class="prose"><p>The YAML, the app's screen text and the model's replies can all be written by someone else. ForgeQE treats them as
|
|
619
|
+
untrusted:</p>
|
|
620
|
+
<ul>
|
|
621
|
+
<li><strong>No command in the workflow.</strong> <code>app:</code> names an app of your settings: an absolute <code>.exe</code> (never a <code>.bat</code> or <code>.cmd</code>)
|
|
622
|
+
and an argument list, started without a shell.</li>
|
|
623
|
+
<li><strong>The agent gets UI actions only.</strong> While exploring it can click, type and read controls in the app. It cannot run
|
|
624
|
+
shell commands or start programs; ForgeQE starts the app.</li>
|
|
625
|
+
<li><strong>Keys:</strong> the Windows and menu keys are refused during explore too, and the report lists what was refused.</li>
|
|
626
|
+
<li><strong>No one at the console:</strong> when the agent would ask before a sensitive action, explore answers no.</li>
|
|
627
|
+
<li><strong>Environment:</strong> the desktop process gets system settings, the model profile's key and <code>desktop.secrets</code>, nothing
|
|
628
|
+
else.</li>
|
|
629
|
+
<li><strong>Explore controls the real mouse and keyboard.</strong> It asks before starting (<code>--yes</code> to skip; required with no
|
|
630
|
+
terminal). Use a test machine or VM and a test account.</li>
|
|
631
|
+
<li><strong>Agent tools:</strong> a workflow path the agent gives must be a <code>.yaml</code> inside the working folder or the reports folder
|
|
632
|
+
(links out are refused); variables are names and text only; heals are reported, never written by the agent.</li>
|
|
633
|
+
<li><strong>Healing:</strong> the model picks one of the window's real controls by number; control text is passed as data, and any
|
|
634
|
+
other answer heals nothing. Heals are written into the workflow only when accepted.</li>
|
|
635
|
+
<li><strong>Report:</strong> every value is escaped; images are only the run's own step pictures and image comparisons.</li>
|
|
636
|
+
<li><strong>Baselines:</strong> <code>expect_image</code> names are file names inside the workflow's baselines folder, so a workflow cannot read
|
|
637
|
+
or overwrite another file.</li>
|
|
638
|
+
<li><strong>Unattended machines:</strong> <code>prepare-runner.ps1</code> never handles a password; automatic sign-in uses Sysinternals
|
|
639
|
+
Autologon, which stores it encrypted.</li>
|
|
640
|
+
<li><strong>Install:</strong> what setup downloads is pinned to exact versions and checked.</li>
|
|
641
|
+
</ul>
|
|
642
|
+
</div>
|
|
643
|
+
</section>
|
|
644
|
+
<section class="doc" id="doc-docs-desktop-before-first-use-on-windows">
|
|
645
|
+
<h4>Before first use on Windows</h4>
|
|
646
|
+
<div class="prose"><p>Tested by the ForgeQE team: setup with and without the explore part, replay, healing, and recording. Still to check, on
|
|
647
|
+
a Windows test machine with your apps:</p>
|
|
648
|
+
<ol>
|
|
649
|
+
<li><strong>Control coverage:</strong> Windows' <code>Inspect.exe</code> shows the controls that matter with stable <code>AutomationId</code>s. Custom
|
|
650
|
+
grids, Java (needs Java Access Bridge), Delphi, SAP GUI and Citrix are where Windows' control information falls
|
|
651
|
+
short.</li>
|
|
652
|
+
<li><strong>Explore with your model:</strong> one goal with an Azure profile and one with <code>auth: entra</code>; <code>trace.json</code> has the
|
|
653
|
+
controls' AutomationIds.</li>
|
|
654
|
+
<li><strong>Replay:</strong> the recorded workflow passes 10 runs out of 10; a renamed control is healed.</li>
|
|
655
|
+
<li><strong>Cost and time</strong> of one explore, from ForgeQE's usage.</li>
|
|
656
|
+
</ol>
|
|
657
|
+
<p>Known limits:</p>
|
|
658
|
+
<ul>
|
|
659
|
+
<li>In a virtual machine, a synthetic double-click may not register; check <code>double_click</code> on real hardware.</li>
|
|
660
|
+
<li>On Windows on ARM, the x64 Visual C++ runtime must be installed.</li>
|
|
661
|
+
<li>With <code>desktop.driver: agent-desktop</code>, a button whose click opens a modal message box times out, and the step fails
|
|
662
|
+
without sending the click again. Replay such workflows with the mouse and keyboard (<code>pywinauto</code> or <code>auto</code> on
|
|
663
|
+
Windows).</li>
|
|
664
|
+
<li>An explore makes model calls, so it costs what your model charges; a replay makes none. Each run's report and Cost
|
|
665
|
+
show what it used.</li>
|
|
666
|
+
</ul>
|
|
667
|
+
</div>
|
|
668
|
+
</section>
|
|
669
|
+
<section class="doc" id="doc-docs-desktop-next-steps">
|
|
670
|
+
<h4>Next steps</h4>
|
|
671
|
+
<div class="prose"><ol>
|
|
672
|
+
<li>The checks above.</li>
|
|
673
|
+
<li><code>forgeqe suite</code> and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back.</li>
|
|
674
|
+
<li>Quill: export a workflow as code in the user's repository.</li>
|
|
675
|
+
<li>Better support where Windows' control information falls short: Java, SAP GUI, and vision only for Citrix.</li>
|
|
676
|
+
<li>A pipeline template for a self-hosted Windows runner signed in to a desktop session.</li>
|
|
677
|
+
</ol>
|
|
678
|
+
</div>
|
|
679
|
+
</section>
|
|
680
|
+
<section class="doc" id="doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">
|
|
681
|
+
<h4>Running desktop workflows unattended (nightly CI)</h4>
|
|
682
|
+
<div class="prose"><p>Desktop replay clicks and types into real windows. It needs what a person at the machine would have: a signed-in
|
|
683
|
+
Windows session, unlocked, with a screen. GitHub's hosted <code>windows-2022</code> runners have that, and ForgeQE's own CI runs
|
|
684
|
+
Notepad there. Your own apps usually need a machine of your own, with the app installed, its test database, and a
|
|
685
|
+
network route to its servers. This page sets one up as a GitHub Actions self-hosted runner. The same rules apply to
|
|
686
|
+
Azure DevOps agents and Jenkins nodes.</p>
|
|
687
|
+
</div>
|
|
688
|
+
</section>
|
|
689
|
+
<section class="doc" id="doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you">
|
|
690
|
+
<h4>What breaks a desktop run, and how ForgeQE tells you</h4>
|
|
691
|
+
<div class="prose"><div class="tbl tbl--cols-3"><table>
|
|
692
|
+
<thead>
|
|
693
|
+
<tr><th>Situation</th><th>Effect</th><th>Fix</th></tr>
|
|
694
|
+
</thead>
|
|
695
|
+
<tbody>
|
|
696
|
+
<tr><td data-label="Situation">The runner is a Windows service</td><td data-label="Effect">Session 0 has no desktop; every control lookup times out</td><td data-label="Fix">Run the runner in the user's session (below)</td></tr>
|
|
697
|
+
<tr><td data-label="Situation">The screen is locked</td><td data-label="Effect">Windows sends no input to apps</td><td data-label="Fix">No inactivity lock, no screen-saver lock</td></tr>
|
|
698
|
+
<tr><td data-label="Situation">A Remote Desktop session was disconnected</td><td data-label="Effect">The session is locked</td><td data-label="Fix">Leave Remote Desktop with <code>tscon</code> (below), or don't use it on the test machine</td></tr>
|
|
699
|
+
<tr><td data-label="Situation">The machine slept or the screen turned off</td><td data-label="Effect">Input and screenshots stop</td><td data-label="Fix">Power plan: never sleep, never turn off the screen</td></tr>
|
|
700
|
+
<tr><td data-label="Situation">After a restart nobody signs in</td><td data-label="Effect">No session at all</td><td data-label="Fix">Sysinternals Autologon</td></tr>
|
|
701
|
+
</tbody>
|
|
702
|
+
</table></div>
|
|
703
|
+
<p>Before each replay or explore, ForgeQE checks the session. On a session it cannot drive, the run fails at once with the
|
|
704
|
+
reason, instead of timing out step by step.</p>
|
|
705
|
+
<p><strong>Checking the machine.</strong> The same check can be run by hand, or from a job before the suite.</p>
|
|
706
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
707
|
+
<ol>
|
|
708
|
+
<li>Open <strong>Desktop apps</strong> and the <strong>Machine and apps</strong> tab.</li>
|
|
709
|
+
<li>Press <strong>Check</strong>.</li>
|
|
710
|
+
</ol>
|
|
711
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
712
|
+
<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 desktop doctor
|
|
713
|
+
</span></span></code></pre></div>
|
|
714
|
+
</div></div><p><strong>What the check prints.</strong> At a terminal it looks like this:</p>
|
|
715
|
+
<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">engine ready (C:\Users\qa\.forgeqe\desktop\.venv\Scripts\python.exe)
|
|
716
|
+
</span></span><span class="ln"><span class="cmd">explore not set up (forgeqe desktop setup --ufo)
|
|
717
|
+
</span></span><span class="ln"><span class="cmd">session 1, screen 1920x1080
|
|
718
|
+
</span></span><span class="ln"><span class="cmd">desktop logged in and unlocked
|
|
719
|
+
</span></span></code></pre></div>
|
|
720
|
+
<p>It exits with 1 when the desktop cannot be driven, so a job stops before the suite runs.</p>
|
|
721
|
+
</div>
|
|
722
|
+
</section>
|
|
723
|
+
<section class="doc" id="doc-docs-desktop-ci-set-up-the-test-machine">
|
|
724
|
+
<h4>Set up the test machine</h4>
|
|
725
|
+
<div class="prose"><p>Use a test machine or VM, and a test account: the runner's jobs control its mouse and keyboard.</p>
|
|
726
|
+
<ol>
|
|
727
|
+
<li>
|
|
728
|
+
<p><strong>Sign in</strong> as the account the tests will run as.</p>
|
|
729
|
+
</li>
|
|
730
|
+
<li>
|
|
731
|
+
<p><strong>Install the runner</strong> (GitHub: Settings → Actions → Runners → New self-hosted runner). Give it the label
|
|
732
|
+
<code>forgeqe-desktop</code>. When <code>config.cmd</code> asks whether to run as a service, answer <strong>no</strong>.</p>
|
|
733
|
+
</li>
|
|
734
|
+
<li>
|
|
735
|
+
<p><strong>Run <code>ci/desktop-runner/prepare-runner.ps1</code></strong> in an elevated PowerShell (<code>-WhatIf</code> first to see the changes):</p>
|
|
736
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>powershell</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">.\prepare-runner.ps1 -RunnerDir C:\actions-runner -WhatIf
|
|
737
|
+
</span></span><span class="ln"><span class="cmd">.\prepare-runner.ps1 -RunnerDir C:\actions-runner
|
|
738
|
+
</span></span></code></pre></div>
|
|
739
|
+
<p>It stops sleep, screen-off and the screen-saver lock. It turns the inactivity lock off and registers a logon task
|
|
740
|
+
that starts <code>run.cmd</code> in this account's session. It warns you if the runner is also installed as a service. It
|
|
741
|
+
never handles a password.</p>
|
|
742
|
+
</li>
|
|
743
|
+
<li>
|
|
744
|
+
<p><strong>Sign in automatically after a restart</strong> with
|
|
745
|
+
<a href="https://learn.microsoft.com/sysinternals/downloads/autologon" class="ext" rel="noopener">Sysinternals Autologon</a>, run as the test account.
|
|
746
|
+
It stores the password encrypted by Windows. Never put the password in a script, a registry value you write
|
|
747
|
+
yourself, or the repository.</p>
|
|
748
|
+
</li>
|
|
749
|
+
<li>
|
|
750
|
+
<p><strong>Fix the screen size.</strong> A visual check (<code>expect_image</code>) compares pixels, so the resolution and scale (100%, 125%)
|
|
751
|
+
must match the machine where its baselines were saved. Set them once and leave them.</p>
|
|
752
|
+
</li>
|
|
753
|
+
<li>
|
|
754
|
+
<p><strong>Restart</strong> and check that the runner shows as idle on GitHub. Then run <code>forgeqe desktop doctor</code> from a job.</p>
|
|
755
|
+
</li>
|
|
756
|
+
</ol>
|
|
757
|
+
</div>
|
|
758
|
+
<section class="doc sub" id="doc-docs-desktop-ci-leaving-remote-desktop-without-locking-the-session"><h5>Leaving Remote Desktop without locking the session</h5><div class="prose"><p>Closing a Remote Desktop window disconnects the session, and Windows locks it. To leave it running instead, hand the
|
|
759
|
+
session back to the machine's console. In an elevated prompt inside the Remote Desktop session:</p>
|
|
760
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bat</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">for /f "skip=1 tokens=3" %s in ('query user %USERNAME%') do tscon %s /dest:console
|
|
761
|
+
</span></span></code></pre></div>
|
|
762
|
+
<p>On a VM, the hypervisor's console (Hyper-V, VMware, VirtualBox) needs no such step.</p>
|
|
763
|
+
</div></section>
|
|
764
|
+
</section>
|
|
765
|
+
<section class="doc" id="doc-docs-desktop-ci-the-nightly-job">
|
|
766
|
+
<h4>The nightly job</h4>
|
|
767
|
+
<div class="prose"><p><code>ci/desktop-runner/desktop-nightly.example.yml</code> is a ready workflow. Copy it into <code>.github/workflows/</code> in the
|
|
768
|
+
repository that holds your desktop workflows. It:</p>
|
|
769
|
+
<ul>
|
|
770
|
+
<li>runs at night on <code>[self-hosted, windows, forgeqe-desktop]</code>, one run at a time;</li>
|
|
771
|
+
<li>installs a pinned ForgeQE and runs <code>forgeqe desktop setup</code> and <code>forgeqe desktop doctor</code>;</li>
|
|
772
|
+
<li>replays every workflow in a folder: <code>forgeqe desktop replay desktop-tests/ --junit results/desktop.xml</code>;</li>
|
|
773
|
+
<li>keeps the reports, screenshots and image diffs as an artifact.</li>
|
|
774
|
+
</ul>
|
|
775
|
+
<p><code>--junit</code> writes one test case per workflow (and per CSV row with <code>--data</code>), which CI servers show as test results.
|
|
776
|
+
<code>runs.json</code> in the output folder has the same, with the path of each report.</p>
|
|
777
|
+
<p>Secrets the workflows type (<code>{{secret:NAME}}</code>) come from the CI's secret store as environment variables, and must be
|
|
778
|
+
listed in <code>desktop.secrets</code> or the environment's <code>secrets</code> in <code>env.yaml</code>. Pick the environment with <code>FORGEQE_ENV</code> or
|
|
779
|
+
<code>--env</code>.</p>
|
|
780
|
+
<p>Healing calls the model. In a nightly run, either give the job the model's key so moved controls are healed and
|
|
781
|
+
reported in <code>heals.json</code> (never written into the workflow without <code>--accept-heals</code>), or pass <code>--no-heal</code> so a moved
|
|
782
|
+
control fails the run.</p>
|
|
783
|
+
</div>
|
|
784
|
+
</section>
|
|
785
|
+
</div>
|
|
786
|
+
|
|
787
|
+
<nav class="pager" aria-label="Previous and next">
|
|
788
|
+
<a class="prev" href="../area-quality/index.html"><small>Previous</small><span>Quality checks</span></a>
|
|
789
|
+
<a class="next" href="../area-mobile/index.html"><small>Next</small><span>Mobile apps</span></a>
|
|
790
|
+
</nav>
|
|
791
|
+
</main>
|
|
792
|
+
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-desktop-apps">Automate Windows desktop apps</a></li><li><a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">ForgeQE desktop: thick-client automation</a></li><li><a href="#doc-docs-desktop-use">Use</a></li><li><a href="#doc-docs-desktop-how-a-run-flows">How a run flows</a></li><li><a href="#doc-docs-desktop-replay-on-macos-linux-and-headless-windows">Replay on macOS, Linux, and headless Windows</a></li><li><a href="#doc-docs-desktop-the-model-explore-and-healing-use">The model explore and healing use</a></li><li><a href="#doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">Workflow YAML (forgeqe-desktop-v1)</a></li><li><a href="#doc-docs-desktop-recording-by-hand">Recording by hand</a></li><li><a href="#doc-docs-desktop-reviewing-a-recording-web-app">Reviewing a recording (web app)</a></li><li><a href="#doc-docs-desktop-fixing-a-workflow-from-chat">Fixing a workflow from chat</a></li><li><a href="#doc-docs-desktop-waits-retries-and-dialogs">Waits, retries and dialogs</a></li><li><a href="#doc-docs-desktop-visual-checks-expect_image">Visual checks (expect_image)</a></li><li><a href="#doc-docs-desktop-unattended-runs">Unattended runs</a></li><li><a href="#doc-docs-desktop-checks-of-the-outcome">Checks of the outcome</a></li><li><a href="#doc-docs-desktop-what-an-explore-records">What an explore records</a></li><li><a href="#doc-docs-desktop-security">Security</a></li><li><a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a></li><li><a href="#doc-docs-desktop-next-steps">Next steps</a></li><li><a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">Running desktop workflows unattended (nightly CI)</a></li><li><a href="#doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you">What breaks a desktop run, and how ForgeQE tells you</a></li><li><a href="#doc-docs-desktop-ci-set-up-the-test-machine">Set up the test machine</a></li><li><a href="#doc-docs-desktop-ci-the-nightly-job">The nightly job</a></li></ul></aside>
|
|
793
|
+
</div>
|
|
794
|
+
<footer class="foot">
|
|
795
|
+
<div class="container foot__row">
|
|
796
|
+
<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>
|
|
797
|
+
<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>
|
|
798
|
+
</div>
|
|
799
|
+
<p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
|
|
800
|
+
</footer>
|
|
801
|
+
</body>
|
|
802
|
+
</html>
|