@capagents/forgeqe 3.1.2 → 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 +5003 -2077
- package/README.md +155 -449
- package/dist/docs-site/docs/app-theme.css +30 -9
- package/dist/docs-site/docs/architecture/index.html +45 -515
- package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
- package/dist/docs-site/docs/area-api/index.html +257 -116
- package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
- package/dist/docs-site/docs/area-browser/index.html +167 -125
- package/dist/docs-site/docs/area-data/index.html +178 -188
- package/dist/docs-site/docs/area-desktop/index.html +329 -282
- package/dist/docs-site/docs/area-mobile/index.html +138 -86
- package/dist/docs-site/docs/area-operations/index.html +567 -393
- package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
- package/dist/docs-site/docs/area-quality/index.html +111 -49
- package/dist/docs-site/docs/area-release/index.html +180 -65
- package/dist/docs-site/docs/area-setup/index.html +742 -339
- package/dist/docs-site/docs/area-systems/index.html +32 -48
- package/dist/docs-site/docs/area-test-cases/index.html +387 -154
- package/dist/docs-site/docs/containers/index.html +87 -101
- package/dist/docs-site/docs/cost-architecture/index.html +4 -3
- package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
- package/dist/docs-site/docs/desktop/index.html +277 -297
- package/dist/docs-site/docs/desktop-ci/index.html +15 -5
- package/dist/docs-site/docs/docs-tabs.js +56 -0
- package/dist/docs-site/docs/evidence/index.html +50 -49
- package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
- package/dist/docs-site/docs/get-started/index.html +464 -168
- package/dist/docs-site/docs/graphify/index.html +8 -7
- package/dist/docs-site/docs/guardrails/index.html +20 -4
- package/dist/docs-site/docs/index.html +4 -3
- package/dist/docs-site/docs/mobile/index.html +96 -76
- package/dist/docs-site/docs/model-routing/index.html +44 -18
- package/dist/docs-site/docs/overview/index.html +23 -7
- package/dist/docs-site/docs/product-graph/index.html +13 -12
- package/dist/docs-site/docs/product-knowledge/index.html +16 -5
- package/dist/docs-site/docs/product-views/index.html +7 -6
- package/dist/docs-site/docs/reference/index.html +95 -65
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +444 -126
- package/dist/docs-site/docs/web-app/index.html +54 -51
- package/dist/forgeqe.js +1822 -1822
- 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-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
- package/dist/web/assets/Features-haQchkhA.js +1 -0
- package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
- 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-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
- 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/coverage-BB9BLjGz.js +5 -0
- package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
- package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
- package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
- 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-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
- 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/logos-BmbNTDu2.js +1 -0
- package/dist/web/assets/palette-XFlqvgZl.js +1 -0
- package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
- 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-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
- package/dist/web/assets/route-Dg53WdFu.js +1 -0
- package/dist/web/index.html +6 -7
- package/docs/ARCHITECTURE.md +50 -563
- package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
- 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 +298 -297
- package/docs/MOBILE.md +103 -71
- package/docs/MODEL_ROUTING.md +48 -15
- package/docs/WEB_APP.md +49 -44
- package/docs/feature-test-prompts.md +29 -16
- package/docs/user-guide.html +5263 -2453
- package/guardrails/README.md +22 -2
- package/knowledge/README.md +15 -2
- package/package.json +1 -1
- package/prompts/brain.md +1 -0
- package/py/forgeqe_engine/recordsession.py +100 -24
- package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
- package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
- package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
- package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
- package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
- package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
- package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
- package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
- package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
- package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
- package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
- package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
- package/dist/web/assets/Features-CQzNo_WP.js +0 -1
- package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
- package/dist/web/assets/Impact-CfccsL_k.js +0 -3
- package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
- package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
- package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
- package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
- package/dist/web/assets/Product-nYV_scOV.js +0 -7
- package/dist/web/assets/Production-CGSbEWVa.js +0 -1
- package/dist/web/assets/Quality-BIypojZm.js +0 -1
- package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
- package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
- package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
- package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
- package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
- package/dist/web/assets/Response-mhBThq2b.js +0 -9
- package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
- package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
- package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
- package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
- package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
- package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
- package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
- package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
- package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
- package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
- package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
- package/dist/web/assets/filters-CnAMr286.js +0 -1
- package/dist/web/assets/fold-D_O_VZui.js +0 -1
- package/dist/web/assets/head-CRo48rPt.js +0 -1
- package/dist/web/assets/index-B3JsM7tv.js +0 -64
- package/dist/web/assets/index-CafApcbZ.css +0 -2
- package/dist/web/assets/input-CtzK50ZF.js +0 -1
- package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
- package/dist/web/assets/logos-D4oVWzqa.js +0 -1
- package/dist/web/assets/palette-DAaGSao7.js +0 -1
- package/dist/web/assets/parts-D357Wolo.js +0 -1
- package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
- package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
- package/dist/web/assets/route-BloYJWgw.js +0 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
<link rel="stylesheet" href="../docs.css">
|
|
12
12
|
<script src="../search.js" defer></script>
|
|
13
13
|
<script src="../docs.js" defer></script>
|
|
14
|
+
<script src="../docs-tabs.js" defer></script>
|
|
14
15
|
<link rel="stylesheet" href="../../app-look.css">
|
|
15
16
|
<link rel="stylesheet" href="../app-theme.css">
|
|
16
17
|
</head>
|
|
@@ -112,91 +113,124 @@
|
|
|
112
113
|
<div class="container docs-layout">
|
|
113
114
|
<nav class="docs-side" aria-label="Docs">
|
|
114
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>
|
|
115
|
-
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../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
|
|
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>
|
|
116
117
|
</nav>
|
|
117
118
|
<main id="main" class="docs-main guide chapter-page">
|
|
118
119
|
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Desktop and mobile</p>
|
|
119
|
-
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../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
|
|
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>
|
|
120
121
|
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-desktop"/></svg>Desktop apps</h1>
|
|
121
122
|
<p class="guide-lead">Windows thick-client apps: explore a goal, record by hand, replay the saved workflow</p>
|
|
122
123
|
<article class="spec feat" id="cap-desktop-apps">
|
|
123
124
|
<div class="hd"><span class="mono">Desktop</span><h3>Automate Windows desktop apps</h3></div>
|
|
124
|
-
<p class="ds">Carries out a plain-language goal in a Windows thick-client app with
|
|
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>
|
|
125
126
|
<div class="facts">
|
|
126
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>
|
|
127
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>
|
|
128
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>
|
|
129
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>
|
|
130
131
|
</div>
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
|
|
133
|
+
</article>
|
|
134
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-desktop-apps-windows">
|
|
133
135
|
<h4>Desktop apps (Windows)</h4>
|
|
134
|
-
<div class="prose"><p>ForgeQE also automates Windows thick-client apps (Win32, WinForms, WPF).
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<
|
|
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
|
|
138
152
|
</span></span><span class="ln"><span class="cmd">forgeqe desktop explore "Create an invoice for Contoso, net 30" --app billing
|
|
139
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
|
|
140
|
-
</span></span><span class="ln"><span class="cmd">forgeqe desktop
|
|
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
|
|
141
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
|
|
142
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
|
|
143
|
-
</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?
|
|
144
167
|
</span></span></code></pre></div>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
control
|
|
151
|
-
|
|
152
|
-
<p>
|
|
153
|
-
|
|
154
|
-
they are in the way. <code>expect_image</code> compares a control or window with a baseline image (saved on the first run, kept
|
|
155
|
-
next to the workflow), with a tolerance and regions to ignore. When you know the steps, <code>forgeqe desktop record</code> (or
|
|
156
|
-
"I'll show you, record it" in the shell) saves what you do by hand: Ctrl+Shift+F11 over a control adds a check of its
|
|
157
|
-
text, Ctrl+Shift+F12 finishes. After a failed replay, ForgeQE's agent can fix the workflow (a longer timeout, a
|
|
158
|
-
<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
|
|
159
|
-
of your own, see <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">docs/DESKTOP-CI.md</a>.</p>
|
|
160
|
-
<p>Apps come from <code>desktop.apps</code> in forgeqe.yaml (an absolute <code>.exe</code> and an argument list), and <code>{{secret:NAME}}</code> reads
|
|
161
|
-
only the variables listed in <code>desktop.secrets</code>. Explore and replay take over the desktop's mouse and keyboard and ask
|
|
162
|
-
first; use a test machine and a test account. Details: <a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">docs/DESKTOP.md</a>.</p>
|
|
163
|
-
<p>Workflows replay with <code>desktop.driver</code>: <code>auto</code> (the default) uses pywinauto on Windows and agent-desktop elsewhere (macOS, Linux), or name <code>pywinauto</code> or <code>agent-desktop</code>. agent-desktop does not use the mouse and keyboard 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.</p>
|
|
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>
|
|
164
177
|
</div>
|
|
165
178
|
</section>
|
|
166
179
|
<section class="doc" id="doc-docs-desktop-forgeqe-desktop-thick-client-automation">
|
|
167
180
|
<h4>ForgeQE desktop: thick-client automation</h4>
|
|
168
|
-
<div class="prose"><p>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
|
172
197
|
<a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a>.</p>
|
|
173
|
-
<p>ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms,
|
|
174
|
-
WPF, and the native parts of Electron and WebView2 apps): say what you want in plain language, UFO² does it on the live
|
|
175
|
-
app, and the run is saved as a YAML workflow that replays later without a model.</p>
|
|
176
|
-
<p>Workflows also replay on <strong>macOS and Linux</strong>, and headless on Windows, on Vercel Labs' agent-desktop. See
|
|
177
|
-
<a href="#doc-docs-desktop-replay-on-agent-desktop-macos-linux-and-headless-windows">Replay on agent-desktop</a>. Exploring and recording by hand
|
|
178
|
-
still need Windows.</p>
|
|
179
198
|
</div>
|
|
180
199
|
</section>
|
|
181
200
|
<section class="doc" id="doc-docs-desktop-use">
|
|
182
201
|
<h4>Use</h4>
|
|
183
|
-
<div class="prose"><
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
</
|
|
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:
|
|
193
232
|
</span></span></code></pre></div>
|
|
194
|
-
<p>
|
|
195
|
-
or "I'll show you the steps in Billing, record them". Its tools are <code>test_apps</code>, <code>desktop_explore</code>, <code>desktop_record</code>,
|
|
196
|
-
<code>desktop_replay</code> and <code>desktop_edit_workflow</code>. It asks before it starts the app or takes over the desktop, and before it
|
|
197
|
-
changes a workflow. Where it cannot ask (an MCP client), the call answers <code>needs_confirmation</code> until the user agrees.</p>
|
|
198
|
-
<p>Desktop apps come from the active environment in <code>env.yaml</code> (see HOW_TO_USE.md, "Environments and apps"), or from
|
|
199
|
-
<code>desktop.apps</code> in <code>forgeqe.yaml</code>, which works without environments:</p>
|
|
233
|
+
<p>Edit <code>forgeqe.yaml</code> (or <code>env.yaml</code>) to add one:</p>
|
|
200
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:
|
|
201
235
|
</span></span><span class="ln"><span class="cmd"> apps:
|
|
202
236
|
</span></span><span class="ln"><span class="cmd"> billing:
|
|
@@ -207,112 +241,155 @@ changes a workflow. Where it cannot ask (an MCP client), the call answers <code>
|
|
|
207
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)
|
|
208
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)
|
|
209
243
|
</span></span></code></pre></div>
|
|
210
|
-
<p>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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>
|
|
214
319
|
</div>
|
|
215
320
|
</section>
|
|
216
321
|
<section class="doc" id="doc-docs-desktop-how-a-run-flows">
|
|
217
322
|
<h4>How a run flows</h4>
|
|
218
|
-
<div class="prose"><
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
</
|
|
225
|
-
</span></span><span class="ln"><span class="cmd"> │ a control is not found
|
|
226
|
-
</span></span><span class="ln"><span class="cmd"> ▼
|
|
227
|
-
</span></span><span class="ln"><span class="cmd"> heal.py: the model picks one of the window's real controls, by number
|
|
228
|
-
</span></span><span class="ln"><span class="cmd"> ▼
|
|
229
|
-
</span></span><span class="ln"><span class="cmd"> proposed locator → heals.json, written into the workflow only when accepted
|
|
230
|
-
</span></span></code></pre></div>
|
|
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>
|
|
231
330
|
</div>
|
|
232
331
|
</section>
|
|
233
|
-
<section class="doc" id="doc-docs-desktop-replay-on-
|
|
234
|
-
<h4>Replay on
|
|
235
|
-
<div class="prose"><p><code>desktop.driver</code>
|
|
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>
|
|
236
335
|
<div class="tbl tbl--cols-3"><table>
|
|
237
336
|
<thead>
|
|
238
|
-
<tr><th><code>desktop.driver</code></th><th>
|
|
337
|
+
<tr><th><code>desktop.driver</code></th><th>How it replays</th><th>Where</th></tr>
|
|
239
338
|
</thead>
|
|
240
339
|
<tbody>
|
|
241
|
-
<tr><td data-label="desktop.driver"><code>auto</code> (default)</td><td data-label="
|
|
242
|
-
<tr><td data-label="desktop.driver"><code>pywinauto</code></td><td data-label="
|
|
243
|
-
<tr><td data-label="desktop.driver"><code>agent-desktop</code></td><td data-label="
|
|
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>
|
|
244
343
|
</tbody>
|
|
245
344
|
</table></div>
|
|
246
|
-
<
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
</
|
|
250
|
-
</
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
An action that may have landed (a click whose result agent-desktop could not confirm) is never sent again, so a replay
|
|
260
|
-
never submits twice.</p>
|
|
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>
|
|
261
358
|
<p>What it does not do:</p>
|
|
262
359
|
<ul>
|
|
263
|
-
<li><code>double_click</code> moves the mouse: it replays only with <code>desktop.headed: true</code
|
|
264
|
-
|
|
265
|
-
<code>
|
|
266
|
-
<li>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
<p>Apps in env.yaml or <code>desktop.apps</code>: an absolute <code>.exe</code> on Windows, an <code>.app</code> bundle on macOS (<code>/Applications/Notes.app</code>;
|
|
273
|
-
its <code>CFBundleExecutable</code> is started, and only when it is a file inside the bundle), or an executable on Linux
|
|
274
|
-
(<code>/usr/bin/gnome-calculator</code>, with <code>kind: desktop</code>).</p>
|
|
275
|
-
<p>What reaches agent-desktop (<code>py/forgeqe_desktop/agentdesktop_driver.py</code>):</p>
|
|
276
|
-
<ul>
|
|
277
|
-
<li>Only its own native executable, set up by ForgeQE at exactly 1.2.0 from npm (whose install step checks the release's
|
|
278
|
-
SHA-256), started with an argument array: never its Node launcher, never a shell. The driver checks the version and
|
|
279
|
-
refuses another.</li>
|
|
280
|
-
<li>Its environment is system settings only: no model key, no <code>desktop.secrets</code>, no ForgeQE variable.</li>
|
|
281
|
-
<li>Typed text, secrets included, goes on stdin (<code>set-value --stdin</code>), never in the command line other programs can see.</li>
|
|
282
|
-
<li>Refs and window ids only in their own shapes; a <code>select</code> value after <code>--</code>, so it is never read as a flag.</li>
|
|
283
|
-
<li>Its state (snapshots hold the app's text) is in a private folder for the run (mode 0700), removed when the run ends.</li>
|
|
284
|
-
<li>Its replies are read as untrusted: anything but its JSON envelope, or over 64 MB, is refused, and its error text is
|
|
285
|
-
cut to one plain line before it reaches a report or the heal prompt.</li>
|
|
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>
|
|
286
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>
|
|
287
373
|
</div>
|
|
288
374
|
</section>
|
|
289
|
-
<section class="doc" id="doc-docs-desktop-
|
|
290
|
-
<h4>
|
|
291
|
-
<div class="prose"><p>
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
and no endpoint and no key, for <code>HOST_AGENT</code>, <code>APP_AGENT</code>, <code>BACKUP_AGENT</code> and <code>EVALUATION_AGENT</code>.</li>
|
|
296
|
-
<li><code>ufo_bridge.install</code> makes <code>get_service("forgeqe", …)</code> return <code>ForgeQEService</code>, which calls the profile through the
|
|
297
|
-
<code>openai</code> SDK (<code>models.py</code>): <code>azure</code> (key or <code>auth: entra</code>), <code>openai</code>, <code>openai_compatible</code> (key or Entra), and <code>ollama</code>
|
|
298
|
-
through its OpenAI-compatible <code>/v1</code>. Keys, Azure endpoints and Entra use the browser engine's own helpers
|
|
299
|
-
(<code>forgeqe_engine.llm</code>), so a profile means the same thing in both. Keys stay in environment variables.</li>
|
|
300
|
-
<li>Each call's time and tokens go to ForgeQE's usage ledger as the "desktop agent" (counts only, never the prompt).</li>
|
|
301
|
-
</ul>
|
|
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>
|
|
302
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
|
|
303
382
|
it, <code>ollama</code> profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images.</p>
|
|
304
|
-
<p>
|
|
305
|
-
<code>deployment</code> name, or <code>"reasoning": true</code> on the profile) gets
|
|
306
|
-
|
|
307
|
-
call is sent again without it, and later calls to that model leave it out (<code>py/forgeqe_engine/model_params.py</code>). The
|
|
308
|
-
browser agent does the same.</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>
|
|
309
386
|
</div>
|
|
310
387
|
</section>
|
|
311
388
|
<section class="doc" id="doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">
|
|
312
389
|
<h4>Workflow YAML (<code>forgeqe-desktop-v1</code>)</h4>
|
|
313
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
|
|
314
391
|
</span></span><span class="ln"><span class="cmd">name: Create an invoice
|
|
315
|
-
</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
|
|
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
|
|
316
393
|
</span></span><span class="ln"><span class="cmd">variables:
|
|
317
394
|
</span></span><span class="ln"><span class="cmd"> customer: Contoso
|
|
318
395
|
</span></span><span class="ln"><span class="cmd">steps:
|
|
@@ -338,38 +415,37 @@ browser agent does the same.</p>
|
|
|
338
415
|
<ul>
|
|
339
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
|
|
340
417
|
60 s), <code>wait_for</code>, <code>close</code>.</li>
|
|
341
|
-
<li><strong>Locators</strong> use
|
|
342
|
-
<code>index</code> (when several match), and <code>path</code> (the ancestors' <code>control_type</code> and <code>name</code>). A target needs an
|
|
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
|
|
343
420
|
<code>automation_id</code> or a <code>name</code>. Replay looks in the launched app's own windows only.</li>
|
|
344
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
|
|
345
422
|
the environment, only for names in <code>desktop.secrets</code>. A secret ForgeQE itself uses (a model key, a tracker token) is
|
|
346
|
-
refused there. Values are
|
|
423
|
+
refused there. Values are filled in once and never expanded again. Targets take <code>{{name}}</code> too (a CSV row's
|
|
347
424
|
<code>{{customer}}</code> as the control to click), never a secret.</li>
|
|
348
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
|
|
349
426
|
and context-menu keys are refused: Win+R followed by typing runs any command.</li>
|
|
350
|
-
<li><strong>Typing</strong> is literal:
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
line
|
|
354
|
-
<li><strong>Only the app gets the input.</strong>
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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>
|
|
358
435
|
</ul>
|
|
359
436
|
</div>
|
|
360
437
|
</section>
|
|
361
438
|
<section class="doc" id="doc-docs-desktop-recording-by-hand">
|
|
362
439
|
<h4>Recording by hand</h4>
|
|
363
|
-
<div class="prose"><p>When you know the steps, do them yourself instead of describing a goal: no model
|
|
364
|
-
|
|
365
|
-
<
|
|
366
|
-
|
|
367
|
-
<p>ForgeQE starts the app and watches the mouse and keyboard (low-level Windows hooks), asking UI Automation which control
|
|
368
|
-
each click and key went to. Do the steps, then:</p>
|
|
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>
|
|
369
444
|
<ul>
|
|
370
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
|
|
371
446
|
status message, a saved total). Add one at the end, so the replay tests the outcome, not only the steps.</li>
|
|
372
|
-
<li><strong>Ctrl+Shift+F12</strong>, or closing the app, finishes. The
|
|
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>
|
|
373
449
|
</ul>
|
|
374
450
|
<p>What becomes a step:</p>
|
|
375
451
|
<div class="tbl tbl--cols-2"><table>
|
|
@@ -388,44 +464,44 @@ status message, a saved total). Add one at the end, so the replay tests the outc
|
|
|
388
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>,
|
|
389
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
|
|
390
466
|
placeholder. The typed characters themselves are never kept, only the field's text when you move on.</li>
|
|
391
|
-
<li><strong>Only the app:</strong> clicks and keys outside the app
|
|
392
|
-
|
|
393
|
-
<li><strong>A click that closes a dialog</strong> (OK after typing a password) is
|
|
394
|
-
under it and reads the field you typed in, so neither is lost when the dialog goes. Typed characters are looked up
|
|
395
|
-
once per run of typing, not once per key.</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>
|
|
396
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
|
|
397
471
|
cell like it (a password column's <code>********</code>).</li>
|
|
398
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
|
|
399
|
-
(<code>steps/NNN.png</code> and <code>.json</code>), and <code>video.mp4</code> with <code>desktop.video: true</code
|
|
400
|
-
<code>forgeqe desktop replay</code>.</li>
|
|
473
|
+
(<code>steps/NNN.png</code> and <code>.json</code>), and <code>video.mp4</code> with <code>desktop.video: true</code>.</li>
|
|
401
474
|
</ul>
|
|
402
475
|
</div>
|
|
403
476
|
</section>
|
|
404
477
|
<section class="doc" id="doc-docs-desktop-reviewing-a-recording-web-app">
|
|
405
478
|
<h4>Reviewing a recording (web app)</h4>
|
|
406
|
-
<div class="prose"><p>
|
|
407
|
-
review
|
|
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>
|
|
408
482
|
<ul>
|
|
409
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
|
|
410
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,
|
|
411
|
-
or removes it (never the first, which starts the app). <strong>+</strong> after a step adds:
|
|
412
|
-
|
|
413
|
-
first and written at the version shown.</li>
|
|
414
|
-
<li><strong>Test data</strong>: where each typed or chosen value comes from:
|
|
415
|
-
|
|
416
|
-
<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
|
|
417
|
-
|
|
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>
|
|
418
492
|
</ul>
|
|
419
|
-
<p><strong>Improve</strong> asks
|
|
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
|
|
420
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>
|
|
421
497
|
</div>
|
|
422
498
|
</section>
|
|
423
499
|
<section class="doc" id="doc-docs-desktop-fixing-a-workflow-from-chat">
|
|
424
500
|
<h4>Fixing a workflow from chat</h4>
|
|
425
|
-
<div class="prose"><p>When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent
|
|
426
|
-
|
|
427
|
-
it, a dialog button in <code>dismiss</code>, a healed locator, a corrected text), shows you the diff,
|
|
428
|
-
when you agree. For example, after "step 4 timed out while the invoice list loaded":</p>
|
|
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>
|
|
429
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?
|
|
430
506
|
</span></span><span class="ln"><span class="cmd">• new wait_for step before step 4
|
|
431
507
|
</span></span><span class="ln"><span class="cmd">• step 4: retries 2
|
|
@@ -434,10 +510,10 @@ when you agree. For example, after "step 4 timed out while the invoice list
|
|
|
434
510
|
</span></span><span class="ln"><span class="cmd"> + retries: 2
|
|
435
511
|
</span></span></code></pre></div>
|
|
436
512
|
<ul>
|
|
437
|
-
<li>Each change has a fixed shape (
|
|
438
|
-
|
|
439
|
-
<li>The changed workflow is checked
|
|
440
|
-
|
|
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>
|
|
441
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
|
|
442
518
|
not overwritten.</li>
|
|
443
519
|
<li>The workflow must be a <code>.yaml</code> inside the working folder or the reports folder.</li>
|
|
@@ -477,8 +553,10 @@ tries, replay pauses (1 s, 2 s, … up to 5 s) and closes any <code>dismiss</cod
|
|
|
477
553
|
missing variable) is not retried.</li>
|
|
478
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
|
|
479
555
|
go away, replay clicks the <code>dismiss</code> controls that are on screen and looks again, up to 3 times per lookup. The
|
|
480
|
-
report and the
|
|
556
|
+
report and the terminal name every dialog closed, and how many tries a step took.</li>
|
|
481
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>
|
|
482
560
|
</div>
|
|
483
561
|
</section>
|
|
484
562
|
<section class="doc" id="doc-docs-desktop-visual-checks-expect_image">
|
|
@@ -493,7 +571,8 @@ compares pixels with a baseline image:</p>
|
|
|
493
571
|
</span></span></code></pre></div>
|
|
494
572
|
<ul>
|
|
495
573
|
<li><strong>The first run</strong> with no baseline saves what it captured and passes; the report says so. Commit the baselines
|
|
496
|
-
folder with the workflow. <
|
|
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>
|
|
497
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
|
|
498
577
|
do not fail a check. A different size (another screen scale or window size) fails with both sizes named.</li>
|
|
499
578
|
<li><strong>The report</strong> shows the baseline, what was captured, and the differences in red, with the share of pixels that
|
|
@@ -506,125 +585,85 @@ out of the baselines folder is refused.</li>
|
|
|
506
585
|
</section>
|
|
507
586
|
<section class="doc" id="doc-docs-desktop-unattended-runs">
|
|
508
587
|
<h4>Unattended runs</h4>
|
|
509
|
-
<div class="prose"><p>Replay needs a signed-in, unlocked Windows session. Before it starts the app, it
|
|
510
|
-
with the reason if it is a Windows service (session 0), a locked screen, or a
|
|
511
|
-
|
|
512
|
-
<a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">DESKTOP-CI.md</a>: a
|
|
513
|
-
|
|
514
|
-
</
|
|
515
|
-
</section>
|
|
516
|
-
<section class="doc" id="doc-docs-desktop-updating-ufo²">
|
|
517
|
-
<h4>Updating UFO²</h4>
|
|
518
|
-
<div class="prose"><p>UFO² is pinned to one commit. Moving it is checked before it is pinned:</p>
|
|
519
|
-
<ol>
|
|
520
|
-
<li>Set up that UFO on Windows (<code>FORGEQE_UFO_COMMIT</code>, which takes a full 40-character commit id only), then run the
|
|
521
|
-
adapter tests against its real code and a scripted explore of Notepad.</li>
|
|
522
|
-
<li>When it passed: <code>bun scripts/ufo-bump.ts <commit></code> writes the new pin into <code>src/desktop/setup.ts</code>,
|
|
523
|
-
<code>py/forgeqe_desktop/ufo_runner.py</code> and this page. Run the tests on Windows again before pushing.</li>
|
|
524
|
-
</ol>
|
|
525
|
-
<p>When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the
|
|
526
|
-
adapter wraps). Keep the pin until the adapter is updated for it.</p>
|
|
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>
|
|
527
594
|
</div>
|
|
528
595
|
</section>
|
|
529
596
|
<section class="doc" id="doc-docs-desktop-checks-of-the-outcome">
|
|
530
597
|
<h4>Checks of the outcome</h4>
|
|
531
|
-
<div class="prose"><p>A recording of actions only proves the steps run. When
|
|
532
|
-
model the goal and the app's controls with the text each shows now, and the model picks up to three
|
|
533
|
-
the goal (a status message, a saved value),
|
|
534
|
-
that text really is in that control, so the model can choose among what is on screen but never invent it; text
|
|
535
|
-
a <code>desktop.secrets</code> value is never offered. The checks are saved as <code>expect</code> steps at the end of the workflow,
|
|
536
|
-
report says how many there are. With none, the report and the agent say so
|
|
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>
|
|
537
605
|
</div>
|
|
538
606
|
</section>
|
|
539
|
-
<section class="doc" id="doc-docs-desktop-
|
|
540
|
-
<h4>
|
|
541
|
-
<div class="prose"><p>
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
looks like <code>{{…}}</code> is kept literal, so a model told to type <code>{{secret:X}}</code> cannot make replay type the secret.</p>
|
|
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>
|
|
547
614
|
</div>
|
|
548
615
|
</section>
|
|
549
616
|
<section class="doc" id="doc-docs-desktop-security">
|
|
550
617
|
<h4>Security</h4>
|
|
551
|
-
<div class="prose"><p>The YAML, the
|
|
552
|
-
|
|
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>
|
|
553
620
|
<ul>
|
|
554
|
-
<li><strong>No command in the workflow.</strong> <code>app:</code> names
|
|
555
|
-
|
|
556
|
-
<li><strong>
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
<li><strong>
|
|
560
|
-
<li><strong>
|
|
561
|
-
|
|
562
|
-
<code>desktop.secrets</code>, nothing else (<code>desktopEnvNames</code>).</li>
|
|
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>
|
|
563
629
|
<li><strong>Explore controls the real mouse and keyboard.</strong> It asks before starting (<code>--yes</code> to skip; required with no
|
|
564
630
|
terminal). Use a test machine or VM and a test account.</li>
|
|
565
|
-
<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
|
|
566
|
-
|
|
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>
|
|
567
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
|
|
568
634
|
other answer heals nothing. Heals are written into the workflow only when accepted.</li>
|
|
569
|
-
<li><strong>Report:</strong> every value is escaped; images are only the
|
|
570
|
-
<code>
|
|
571
|
-
|
|
572
|
-
folder, so a workflow cannot read or overwrite another file.</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>
|
|
573
638
|
<li><strong>Unattended machines:</strong> <code>prepare-runner.ps1</code> never handles a password; automatic sign-in uses Sysinternals
|
|
574
639
|
Autologon, which stores it encrypted.</li>
|
|
575
|
-
<li><strong>Install:</strong>
|
|
576
|
-
and the checkout's <code>HEAD</code> is verified; replay's packages are pinned to exact versions.</li>
|
|
640
|
+
<li><strong>Install:</strong> what setup downloads is pinned to exact versions and checked.</li>
|
|
577
641
|
</ul>
|
|
578
642
|
</div>
|
|
579
643
|
</section>
|
|
580
644
|
<section class="doc" id="doc-docs-desktop-before-first-use-on-windows">
|
|
581
645
|
<h4>Before first use on Windows</h4>
|
|
582
|
-
<div class="prose"><p>
|
|
583
|
-
|
|
584
|
-
machine with your apps:</p>
|
|
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>
|
|
585
648
|
<ol>
|
|
586
|
-
<li><strong>
|
|
587
|
-
(needs Java Access Bridge), Delphi, SAP GUI and Citrix
|
|
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>
|
|
588
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
|
|
589
|
-
controls' AutomationIds
|
|
653
|
+
controls' AutomationIds.</li>
|
|
590
654
|
<li><strong>Replay:</strong> the recorded workflow passes 10 runs out of 10; a renamed control is healed.</li>
|
|
591
|
-
<li><strong>Cost and time</strong> of one explore, from
|
|
655
|
+
<li><strong>Cost and time</strong> of one explore, from ForgeQE's usage.</li>
|
|
592
656
|
</ol>
|
|
593
|
-
<p>
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
<
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
On agent-desktop there: npm 11.20 refuses <code>--allow-scripts</code> with <code>--prefix</code> (the install script is now allowed for the
|
|
604
|
-
pinned version in the folder's <code>package.json</code>); the state folder's Windows ACL (Administrators, OWNER RIGHTS) was
|
|
605
|
-
refused by agent-desktop (now this user and SYSTEM only); and a dialog listed as its own window and inside its main
|
|
606
|
-
window's snapshot matched twice (now one control). Still open: a button whose click opens a modal message box times out
|
|
607
|
-
in UI Automation's Invoke, and the step fails without sending it again, so such steps need the pywinauto driver.</p>
|
|
608
|
-
<p>Found by exploring and healing KeePass there with Azure OpenAI gpt-5.4 and fixed: a drop-down menu's items are listed
|
|
609
|
-
twice by UI Automation, so a recorded menu click was "several controls match" and could not replay (now one control
|
|
610
|
-
seen twice, the same runtime id, is that control); a check of the app's main window could never be found, as replay
|
|
611
|
-
searched only inside windows (now a target equal to the window is the window); the heal model, given only the old
|
|
612
|
-
target, replaced a renamed menu item by the menu itself (that step passed and the next one failed), and the heal was
|
|
613
|
-
remembered and offered for the workflow (now the model is told the step and the one before it, and a heal is
|
|
614
|
-
remembered, written or offered only from a replay that passed; a remembered heal used in a failed replay is
|
|
615
|
-
forgotten); and the offer to write heals waited for an answer with no terminal (now never asked without one). Explore
|
|
616
|
-
ran 4 steps for $0.12 when the app opened at its main window.</p>
|
|
617
|
-
<p>Also found there and fixed: an app that opens with a start-up dialog (KeePass's update question) left UFO on that
|
|
618
|
-
dialog's window after it closed, so every later click went to (0, 0) until the step limit ($1.22 for nothing); now a
|
|
619
|
-
closed window UFO chose is replaced by the app's live window (<code>follow_live_window</code>, <code>ufo_runner.py</code>), and the same
|
|
620
|
-
explore passes for $0.18. In recording by hand, the OK that closed a dialog right after typing was lost, since the
|
|
621
|
-
control under the click was looked up after a lookup per typed key (now the click is held while it is looked up, and
|
|
622
|
-
typing is one lookup). A click on a list row's <code>********</code> cell was recorded as that cell alone, which every row has (now
|
|
623
|
-
inside its row). App memory borrowed another goal's whole flow as a "shared start"; that flow ended where it began (a
|
|
624
|
-
dialog opened and closed again), so UFO, seeing the screen it started from, did it all again and the workflow held it
|
|
625
|
-
twice. Now the note lists the replayed steps and says to finish if they do the goal (UFO then made no click, $0.02),
|
|
626
|
-
and steps that exactly repeat the replayed block are kept once. A replay with <code>--no-heal</code>, or with a model whose key
|
|
627
|
-
is not set, stopped at "No model in llms.json can …" (now healing is off for that replay, and it runs).</p>
|
|
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>
|
|
628
667
|
</div>
|
|
629
668
|
</section>
|
|
630
669
|
<section class="doc" id="doc-docs-desktop-next-steps">
|
|
@@ -632,8 +671,8 @@ is not set, stopped at "No model in llms.json can …" (now healing is
|
|
|
632
671
|
<div class="prose"><ol>
|
|
633
672
|
<li>The checks above.</li>
|
|
634
673
|
<li><code>forgeqe suite</code> and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back.</li>
|
|
635
|
-
<li>Quill: export a workflow as
|
|
636
|
-
<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>
|
|
637
676
|
<li>A pipeline template for a self-hosted Windows runner signed in to a desktop session.</li>
|
|
638
677
|
</ol>
|
|
639
678
|
</div>
|
|
@@ -661,9 +700,18 @@ Azure DevOps agents and Jenkins nodes.</p>
|
|
|
661
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>
|
|
662
701
|
</tbody>
|
|
663
702
|
</table></div>
|
|
664
|
-
<p>Before each replay or explore,
|
|
665
|
-
|
|
666
|
-
same check
|
|
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>
|
|
667
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)
|
|
668
716
|
</span></span><span class="ln"><span class="cmd">explore not set up (forgeqe desktop setup --ufo)
|
|
669
717
|
</span></span><span class="ln"><span class="cmd">session 1, screen 1920x1080
|
|
@@ -735,14 +783,13 @@ control fails the run.</p>
|
|
|
735
783
|
</div>
|
|
736
784
|
</section>
|
|
737
785
|
</div>
|
|
738
|
-
</article>
|
|
739
786
|
|
|
740
787
|
<nav class="pager" aria-label="Previous and next">
|
|
741
788
|
<a class="prev" href="../area-quality/index.html"><small>Previous</small><span>Quality checks</span></a>
|
|
742
789
|
<a class="next" href="../area-mobile/index.html"><small>Next</small><span>Mobile apps</span></a>
|
|
743
790
|
</nav>
|
|
744
791
|
</main>
|
|
745
|
-
<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-
|
|
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>
|
|
746
793
|
</div>
|
|
747
794
|
<footer class="foot">
|
|
748
795
|
<div class="container foot__row">
|