@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,17 +113,16 @@
|
|
|
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"><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="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html" aria-current="page"><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="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html" aria-current="page"><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">
|
|
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="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html" aria-current="page"><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="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html" aria-current="page"><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></div>
|
|
120
121
|
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-mobile"/></svg>Mobile apps</h1>
|
|
121
122
|
<article class="prose">
|
|
122
|
-
<p>Status:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
with a simulator).</p>
|
|
123
|
+
<p>Status: tested on an Android emulator, where ForgeQE explores and replays the emulator's Settings app with Appium, and
|
|
124
|
+
replays the same workflow with Maestro. iOS works the same way through Appium's XCUITest driver, but is not yet tested
|
|
125
|
+
by the ForgeQE team (it needs a Mac with a simulator).</p>
|
|
126
126
|
<p>ForgeQE drives mobile apps two ways, and one workflow format runs on both:</p>
|
|
127
127
|
<div class="tbl tbl--cols-3"><table>
|
|
128
128
|
<thead>
|
|
@@ -138,24 +138,57 @@ with a simulator).</p>
|
|
|
138
138
|
</tbody>
|
|
139
139
|
</table></div>
|
|
140
140
|
<h2 id="use"><a href="#use" class="hash">#</a>Use</h2>
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
</
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
<p>What the web app and the terminal each offer:</p>
|
|
142
|
+
<div class="tbl tbl--cols-3"><table>
|
|
143
|
+
<thead>
|
|
144
|
+
<tr><th>Task</th><th>Web app</th><th>Terminal</th></tr>
|
|
145
|
+
</thead>
|
|
146
|
+
<tbody>
|
|
147
|
+
<tr><td data-label="Task">Set up Appium on this computer</td><td data-label="Web app"><strong>Settings › Set up</strong></td><td data-label="Terminal"><code>forgeqe mobile setup</code></td></tr>
|
|
148
|
+
<tr><td data-label="Task">Devices and drivers</td><td data-label="Web app"><strong>Settings › Mobile</strong></td><td data-label="Terminal"><code>forgeqe.yaml</code>, <code>forgeqe mobile devices</code></td></tr>
|
|
149
|
+
<tr><td data-label="Task">Record your own steps</td><td data-label="Web app"><strong>Record › Mobile app</strong></td><td data-label="Terminal">not available</td></tr>
|
|
150
|
+
<tr><td data-label="Task">Review and replay a recording</td><td data-label="Web app">the recording's review</td><td data-label="Terminal"><code>forgeqe mobile replay</code></td></tr>
|
|
151
|
+
<tr><td data-label="Task">Explore a goal with the model</td><td data-label="Web app">in a chat</td><td data-label="Terminal"><code>forgeqe mobile explore</code></td></tr>
|
|
152
|
+
<tr><td data-label="Task">Run your team's Maestro flows</td><td data-label="Web app">in a chat</td><td data-label="Terminal"><code>forgeqe mobile maestro</code></td></tr>
|
|
153
|
+
<tr><td data-label="Task">Upload a build to TestMu AI</td><td data-label="Web app">in a chat</td><td data-label="Terminal"><code>forgeqe mobile upload</code></td></tr>
|
|
154
|
+
</tbody>
|
|
155
|
+
</table></div>
|
|
156
|
+
<p><strong>Setting up.</strong> For an emulator or phone on this computer, ForgeQE installs Appium and its drivers once (see
|
|
157
|
+
<a href="#appium-on-this-computer">Appium on this computer</a>). A device cloud needs none of it.</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>Settings › Set up</strong>.</li>
|
|
161
|
+
<li>Press <strong>Install what's missing</strong>.</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 ln--pair"><span class="cmd">forgeqe mobile setup</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Appium and its drivers, pinned, into ForgeQE's tools folder (once)
|
|
165
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile doctor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> does the Appium server answer (the cloud's hub and sign-in when every device in use is
|
|
166
|
+
</span></span><span class="ln ln--more"><span class="pad"> </span><span class="cm"><span class="h">#</span> on TestMu or BrowserStack), is maestro installed? (or, with mobile.maestro.testmu:
|
|
167
|
+
</span></span><span class="ln ln--more"><span class="pad"> </span><span class="cm"><span class="h">#</span> is the hyperexecute CLI there, are the user and key set?)
|
|
168
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile apps</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the mobile apps of the active environment
|
|
169
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile devices --like "Pixel 8-14"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the devices TestMu or BrowserStack has, most like one first
|
|
170
|
+
</span></span></code></pre></div>
|
|
171
|
+
</div></div><p><strong>Replaying a workflow.</strong> Replay runs the steps with no model, on Appium or Maestro.</p>
|
|
172
|
+
<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>
|
|
173
|
+
<ol>
|
|
174
|
+
<li>Open <strong>Record</strong> and open the recording (the list's filter has <strong>Mobile apps</strong>).</li>
|
|
175
|
+
<li>Open the <strong>Last run</strong> tab and press <strong>Replay</strong>, once or for each row of a data file.</li>
|
|
176
|
+
</ol>
|
|
177
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
178
|
+
<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 mobile replay .forgeqe/reports/mobile-explore-…/workflow.yaml
|
|
149
179
|
</span></span><span class="ln"><span class="cmd">forgeqe mobile replay workflow.yaml --driver maestro
|
|
150
180
|
</span></span><span class="ln"><span class="cmd">forgeqe mobile replay mobile-tests/ --data couriers.csv --junit results.xml
|
|
181
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile validate workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> check it without running it
|
|
182
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile flow workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> print a workflow as a Maestro flow
|
|
183
|
+
</span></span></code></pre></div>
|
|
184
|
+
</div></div><p><strong>Exploring a goal, and the team's flows.</strong> The model does a goal in the app and the run is saved as a workflow; your
|
|
185
|
+
team's own Maestro flows run after an allowlist check. In the web app these are asked for in a chat ("sign in to the
|
|
186
|
+
courier app and save it as a test", "replay the courier login on Maestro", "run our Maestro flows"); the agent asks
|
|
187
|
+
before each one starts, and it fixes a mobile workflow after a failed replay after showing you the change, as for a
|
|
188
|
+
desktop one. At a terminal, ask the same in <code>forgeqe start</code>, or run:</p>
|
|
189
|
+
<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 mobile explore "Sign in as the courier and accept the first delivery" --app courier
|
|
151
190
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile maestro .maestro/</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the team's flows
|
|
152
|
-
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile flow workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> print a workflow as a Maestro flow
|
|
153
|
-
</span></span><span class="ln"><span class="cmd">forgeqe mobile validate workflow.yaml
|
|
154
191
|
</span></span></code></pre></div>
|
|
155
|
-
<p>Or ask ForgeQE's agent in the shell or <code>forgeqe run</code>: "sign in to the courier app and save it as a test", "replay the
|
|
156
|
-
courier login on Maestro", "run our Maestro flows". Its tools are <code>mobile_explore</code>, <code>mobile_replay</code> and
|
|
157
|
-
<code>mobile_maestro</code>. It asks before each one starts, and <code>desktop_edit_workflow</code> fixes a mobile workflow after a failed
|
|
158
|
-
replay, the same way as a desktop one.</p>
|
|
159
192
|
<h2 id="apps-and-settings"><a href="#apps-and-settings" class="hash">#</a>Apps and settings</h2>
|
|
160
193
|
<p>Mobile apps come from the active environment in env.yaml, or from <code>mobile.apps</code> in forgeqe.yaml:</p>
|
|
161
194
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> env.yaml
|
|
@@ -190,10 +223,17 @@ replay, the same way as a desktop one.</p>
|
|
|
190
223
|
<p>Each run writes a folder under the reports folder (<code>mobile-explore-…</code>, <code>mobile-replay-…</code>, <code>mobile-maestro-…</code>) with
|
|
191
224
|
<code>run.json</code>, <code>report.html</code>, step screenshots, and for Maestro runs the flow, <code>maestro.log</code> and Maestro's JUnit report.</p>
|
|
192
225
|
<h2 id="devices"><a href="#devices" class="hash">#</a>Devices</h2>
|
|
193
|
-
<p>Say what each device is and where it runs
|
|
194
|
-
|
|
195
|
-
<code>LT:Options</code>, …), the cloud's hub address, Maestro's <code>--device</code>, and TestMu's HyperExecute YAML. Nobody types
|
|
226
|
+
<p>Say what each device is and where it runs. ForgeQE builds what Appium, Maestro and the cloud need from that and the
|
|
227
|
+
app (Appium's capabilities, the cloud's hub address, Maestro's device, TestMu's HyperExecute file). Nobody types
|
|
196
228
|
capabilities.</p>
|
|
229
|
+
<p><strong>Adding a device.</strong></p>
|
|
230
|
+
<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>
|
|
231
|
+
<ol>
|
|
232
|
+
<li>Open <strong>Settings › Mobile</strong>.</li>
|
|
233
|
+
<li>Add the device with its <strong>Type</strong>, <strong>Platform</strong>, <strong>Device model</strong>, <strong>OS version</strong> (and, on this computer, <strong>Device id</strong>
|
|
234
|
+
or <strong>Emulator to start</strong>), and <strong>Use in runs</strong>.</li>
|
|
235
|
+
</ol>
|
|
236
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
197
237
|
<p>Devices on this computer are in forgeqe.yaml:</p>
|
|
198
238
|
<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">mobile:
|
|
199
239
|
</span></span><span class="ln ln--pair"><span class="cmd"> parallel: 3</span><span class="pad"> </span><span class="cm"><span class="h">#</span> devices at once, here and on the clouds; default: all of them
|
|
@@ -212,7 +252,7 @@ capabilities.</p>
|
|
|
212
252
|
</span></span><span class="ln"><span class="cmd"> model: iPhone 15
|
|
213
253
|
</span></span><span class="ln"><span class="cmd"> os_version: "17.2"
|
|
214
254
|
</span></span></code></pre></div>
|
|
215
|
-
|
|
255
|
+
</div></div><p><strong>What a device's settings mean.</strong> <code>avd</code> names an Android emulator for Appium to start for the run, instead of one already running. With
|
|
216
256
|
<code>mobile.headless: true</code> (Settings → Mobile, Emulators without a window) Appium starts those emulators, and iOS
|
|
217
257
|
simulators, without a window (<code>appium:isHeadless</code>); a real device and a cloud's devices are never affected.</p>
|
|
218
258
|
<p>Devices on TestMu AI or BrowserStack are in that cloud's own file, the one <code>browser.providers</code> links
|
|
@@ -236,9 +276,8 @@ A file with only mobile devices sets up no browser on that cloud.</p>
|
|
|
236
276
|
<ul>
|
|
237
277
|
<li><strong>Which devices run.</strong> Every device with <code>enabled</code> on (the default), of the app's platform: an Android workflow
|
|
238
278
|
skips the iOS devices. <code>--devices pixel8,galaxy</code> (or the agent's <code>devices</code>) names some for one run.</li>
|
|
239
|
-
<li><strong>At once.</strong> <code>mobile.parallel</code> of them at a time
|
|
240
|
-
ports
|
|
241
|
-
server. On TestMu, <code>mobile.parallel</code> also caps HyperExecute's concurrency.</li>
|
|
279
|
+
<li><strong>At once.</strong> <code>mobile.parallel</code> of them at a time (<strong>Devices at once</strong> in Settings › Mobile). Devices on this computer
|
|
280
|
+
running at once get their own ports on the one Appium server. On TestMu, <code>mobile.parallel</code> also caps HyperExecute's concurrency.</li>
|
|
242
281
|
<li><strong>Maestro</strong> runs on each device on this computer, and as one HyperExecute job for TestMu's real devices (and one
|
|
243
282
|
for its emulators). It does not run on BrowserStack here: replay those with Appium.</li>
|
|
244
283
|
<li><strong>Results.</strong> Each device's run is in a folder of its own inside the run's folder, with <code>devices.json</code> listing each
|
|
@@ -332,31 +371,35 @@ text, kept only when that text is really there, as on the desktop.</li>
|
|
|
332
371
|
it as it was is told to the model as such, is not counted as progress, and a swipe or scroll that moved nothing is
|
|
333
372
|
not saved. After 4 such actions in a row (or the same check again) the run stops and says why, instead of spending
|
|
334
373
|
the step budget.</li>
|
|
335
|
-
<li><strong>Gestures.</strong> On Android a swipe is a finger drag
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
<code>scroll</code>.</li>
|
|
374
|
+
<li><strong>Gestures.</strong> On Android a swipe is a finger drag, kept clear of the screen's edges, where a swipe is the system's.
|
|
375
|
+
A scroll is a drag inside the screen's scrolling view, checked: when the content did not move (the drag started on a
|
|
376
|
+
carousel, which took it), it is tried again from another point. iOS uses its own swipe and scroll.</li>
|
|
339
377
|
<li><strong>Memory.</strong> A failed explore of a goal is resumed from its last action (a tap, a type), never through the swipes
|
|
340
378
|
and backs after it, which are the search that failed.</li>
|
|
341
379
|
</ul>
|
|
342
380
|
<h2 id="appium-on-this-computer"><a href="#appium-on-this-computer" class="hash">#</a>Appium on this computer</h2>
|
|
343
|
-
<p>For an emulator or a phone on this computer, <code>forgeqe mobile setup</code> (or
|
|
344
|
-
when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
|
|
381
|
+
<p>For an emulator or a phone on this computer, <code>forgeqe mobile setup</code> (or <strong>Install what's missing</strong> in <strong>Settings › Set
|
|
382
|
+
up</strong>, when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
|
|
345
383
|
into ForgeQE's tools folder, pinned, with no install script run. A run on a device here then starts that Appium by
|
|
346
384
|
itself when nothing answers at <code>mobile.appium.url</code>, on 127.0.0.1, and stops it when ForgeQE exits; an Appium already
|
|
347
385
|
running there (your own) is used as it is. It finds the Android SDK (<code>ANDROID_HOME</code>, else Android Studio's folder) and
|
|
348
386
|
Java (<code>JAVA_HOME</code>, else the one Android Studio ships), and needs Node.js 20 or later on PATH. <code>forgeqe mobile doctor</code>
|
|
349
387
|
says what is missing. A device cloud (TestMu AI, BrowserStack) needs none of it: its own Appium runs there.</p>
|
|
350
388
|
<h2 id="record-by-hand"><a href="#record-by-hand" class="hash">#</a>Record by hand</h2>
|
|
351
|
-
<p>
|
|
352
|
-
|
|
389
|
+
<p>In the web app only: recording a mobile test by hand has no terminal command.</p>
|
|
390
|
+
<ol>
|
|
391
|
+
<li>Open <strong>Record</strong> and pick <strong>Mobile app</strong>.</li>
|
|
392
|
+
<li>Pick the app and a device (one of this computer's, or TestMu AI's or BrowserStack's).</li>
|
|
393
|
+
<li>Press <strong>Record</strong>. The device's screen appears on the page with its controls outlined.</li>
|
|
394
|
+
<li>Press <strong>Stop</strong> when done.</li>
|
|
395
|
+
</ol>
|
|
396
|
+
<p><strong>What you can do while recording.</strong></p>
|
|
353
397
|
<ul>
|
|
354
398
|
<li><strong>Tap</strong> a control on the screen and it is tapped on the device; a field opens a box to type into it (plain text, or a
|
|
355
399
|
saved secret by its name). <strong>Check</strong> adds a check of what a control shows now, <strong>Hold</strong> (a long press) and <strong>Wait for</strong> do
|
|
356
400
|
what they say (pick what a click on the screen does above it). Under the screen: scroll, swipe, Back, Enter, hide the keyboard, wait.</li>
|
|
357
401
|
<li>Each action is done on the device through the locator ForgeQE records for it, so a step a replay could not find is
|
|
358
|
-
never kept. Locators come from the app's own
|
|
359
|
-
ranks a web page's: the resource id or accessibility identifier, the accessibility label, what the control is and
|
|
402
|
+
never kept. Locators come from the app's own controls, ranked as Playwright ranks a web page's: the resource id or accessibility identifier, the accessibility label, what the control is and
|
|
360
403
|
says, its text (a field's text and text that reads as data last). Only one that matches that control alone on the
|
|
361
404
|
screen is kept; alike rows are found inside their uniquely named parent, a position among them only as the last
|
|
362
405
|
resort; up to three more become fallbacks. Android's own ids (<code>android:id/button1</code>) come after the text. The Steps
|
|
@@ -390,9 +433,9 @@ a menu on iOS); an iOS picker wheel is chosen by its value ("Choose in"
|
|
|
390
433
|
<li>Stop saves <code>workflow.yaml</code>, a picture of each step with the controls it shows, and a report in
|
|
391
434
|
<code>.forgeqe/reports/mobile-record-…/</code>, and opens the workflow's review, as a desktop recording does: change a step's
|
|
392
435
|
control, add a check by clicking a control on a step's picture, make a typed value test data or a secret
|
|
393
|
-
(<code>mobile.secrets</code>), and replay it there (<code>forgeqe mobile replay</code
|
|
436
|
+
(<code>mobile.secrets</code>), and replay it there (rows from a data file). At a terminal, replay it with <code>forgeqe mobile replay</code>.</li>
|
|
394
437
|
</ul>
|
|
395
|
-
<p>It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
|
|
438
|
+
<p><strong>Devices and app start.</strong> It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
|
|
396
439
|
hands its first screen over at once (a splash, then a sign-in) starts fine: sessions wait for any of the app's
|
|
397
440
|
screens (<code>appium:appWaitActivity: "*"</code>, which <code>mobile.appium.capabilities</code> can change).</p>
|
|
398
441
|
<h2 id="maestro"><a href="#maestro" class="hash">#</a>Maestro</h2>
|
|
@@ -401,7 +444,7 @@ folder) and runs <code>maestro test</code>. Maestro's debug output gives each wo
|
|
|
401
444
|
first. Values are matched literally, so Maestro's regular expressions never see them as patterns. A secret becomes
|
|
402
445
|
<code>${MAESTRO_NAME}</code>, which Maestro reads from the environment ForgeQE gives it, so a secret's value never lands in the flow
|
|
403
446
|
file or on a command line. A value holding <code>${…}</code> is refused, because Maestro would run it as JavaScript.</p>
|
|
404
|
-
<p><strong>Your team's flows.</strong> <code>forgeqe mobile maestro &
|
|
447
|
+
<p><strong>Your team's flows.</strong> <code>forgeqe mobile maestro <files or folders></code> checks each flow, and every flow it runs, before
|
|
405
448
|
Maestro gets it:</p>
|
|
406
449
|
<ul>
|
|
407
450
|
<li>Only UI commands pass: <code>launchApp</code>, <code>tapOn</code>, <code>inputText</code>, <code>assertVisible</code>, <code>scrollUntilVisible</code>, <code>swipe</code>,
|
|
@@ -420,13 +463,17 @@ Maestro gets it:</p>
|
|
|
420
463
|
</ul>
|
|
421
464
|
<p>A refused flow does not run, and the error names the command.</p>
|
|
422
465
|
<h2 id="testmu-ai-formerly-lambdatest"><a href="#testmu-ai-formerly-lambdatest" class="hash">#</a>TestMu AI (formerly LambdaTest)</h2>
|
|
423
|
-
<p>Both drivers run on TestMu's devices. Upload the app once, then use the <code>lt://</code> id it returns as the app's <code>app</code
|
|
466
|
+
<p>Both drivers run on TestMu's devices. Upload the app once, then use the <code>lt://</code> id it returns as the app's <code>app</code>.</p>
|
|
467
|
+
<p><strong>Uploading a build.</strong></p>
|
|
468
|
+
<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>
|
|
469
|
+
<p>In a chat, ask in words ("upload builds/courier.apk to TestMu for courier"). The agent asks first, uploads the build (it
|
|
470
|
+
must be inside the working folder), and saves the <code>lt://</code> id as that app's <code>app:</code> in forgeqe.yaml.</p>
|
|
471
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
424
472
|
<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 mobile upload courier.apk</span><span class="pad"> </span><span class="cm"><span class="h">#</span> → lt://APP… (--virtual for TestMu's emulators)
|
|
425
473
|
</span></span></code></pre></div>
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
<code>.env</code> file in the project folder. <code>samples/mobile-testmu/</code> is a ready project with TestMu's Wikipedia sample app.</p>
|
|
474
|
+
</div></div><p><strong>Signing in to TestMu AI.</strong> The user and key come from <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> (or the variables the config names), for example in a
|
|
475
|
+
<code>.env</code> file in the project folder (in the web app, <strong>TestMu AI user</strong> and <strong>TestMu AI key</strong> in Settings › Mobile name
|
|
476
|
+
the variables). <code>samples/mobile-testmu/</code> is a ready project with TestMu's Wikipedia sample app.</p>
|
|
430
477
|
<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">mobile:
|
|
431
478
|
</span></span><span class="ln"><span class="cmd"> apps:
|
|
432
479
|
</span></span><span class="ln"><span class="cmd"> courier: { platform: android, app_id: com.contoso.courier, app: "lt://APP1016…" }
|
|
@@ -468,7 +515,7 @@ says what a cloud offers in the region, not whether a device is free this minute
|
|
|
468
515
|
(<code>real_device: false</code>, <code>isRealMobile: false</code>) are not in it and are not checked.</li>
|
|
469
516
|
<li><strong>Videos.</strong> TestMu records each Maestro flow as an App Automation session (its dashboard, not the HyperExecute job
|
|
470
517
|
page, shows the video). Each run is its own build there, and after the job ForgeQE saves each flow's recording as
|
|
471
|
-
<code>videos/&
|
|
518
|
+
<code>videos/<flow>.mp4</code> in the run folder, plays it in the report's Artifacts tab, and prints it with the session's
|
|
472
519
|
TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one.</li>
|
|
473
520
|
<li><strong>Secrets on Maestro on TestMu:</strong> a workflow that types a secret is refused there for now (HyperExecute would need
|
|
474
521
|
the value in its own vault). Replay it on TestMu with <code>--driver appium</code>. For the same reason, a team flow that reads
|
|
@@ -477,7 +524,7 @@ environment); run it with a local <code>maestro</code>.</li>
|
|
|
477
524
|
<li>The access key is passed to the CLI as an argument. It is removed from the CLI's output and from every file in the
|
|
478
525
|
run folder. Neither the user name nor the key is passed to the flows' environment.</li>
|
|
479
526
|
<li><code>maestro</code> and the <code>hyperexecute</code> CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
|
|
480
|
-
their environment
|
|
527
|
+
their environment.</li>
|
|
481
528
|
<li><code>samples/mobile-testmu</code> runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's
|
|
482
529
|
Wikipedia sample app, once <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> are set.</li>
|
|
483
530
|
</ul>
|
|
@@ -488,46 +535,19 @@ spoken to over HTTP, and <code>maestro</code> is started with an argument list,
|
|
|
488
535
|
<li><strong>Locators</strong> go into XPath as quoted literals, so a target cannot change the query.</li>
|
|
489
536
|
<li><strong>Secrets:</strong> <code>{{secret:NAME}}</code> reads only <code>mobile.secrets</code> and the environment's secrets, and ForgeQE's own keys are
|
|
490
537
|
refused there. Explore types a secret from its placeholder, so the model never sees the value.</li>
|
|
491
|
-
<li><strong>The
|
|
538
|
+
<li><strong>The mobile runner's environment</strong> holds system settings, the profile's key, the listed secrets, the cloud's user and key,
|
|
492
539
|
and <code>JAVA_HOME</code> / <code>ANDROID_HOME</code>, nothing else.</li>
|
|
493
540
|
<li><strong>Cloud credentials</strong> come from the variables <code>mobile.appium.username_env</code> and <code>access_key_env</code> name; a user or key in
|
|
494
541
|
the URL is refused. TLS is verified as usual.</li>
|
|
495
542
|
<li><strong>App builds</strong> are absolute paths to an app file, https URLs, or a device cloud's own upload ids (<code>bs://</code>, <code>lt://</code>,
|
|
496
543
|
<code>storage:filename=</code>); <code>file://</code> and other schemes are refused.</li>
|
|
497
544
|
</ul>
|
|
498
|
-
<h2 id="code"><a href="#code" class="hash">#</a>Code</h2>
|
|
499
|
-
<div class="tbl tbl--cols-2"><table>
|
|
500
|
-
<thead>
|
|
501
|
-
<tr><th>File</th><th>Contents</th></tr>
|
|
502
|
-
</thead>
|
|
503
|
-
<tbody>
|
|
504
|
-
<tr><td data-label="File"><code>src/mobile/command.ts</code></td><td data-label="Contents"><code>forgeqe mobile</code>: apps, doctor, explore, replay (folders, <code>--data</code>, <code>--junit</code>, <code>--driver</code>), maestro, flow, validate</td></tr>
|
|
505
|
-
<tr><td data-label="File"><code>src/mobile/run.ts</code></td><td data-label="Contents">Requests to the mobile engine, its environment, Maestro flow paths, the doctor</td></tr>
|
|
506
|
-
<tr><td data-label="File"><code>src/mcp/mobiletools.ts</code></td><td data-label="Contents">ForgeQE's agent's <code>mobile_explore</code>, <code>mobile_replay</code>, <code>mobile_maestro</code></td></tr>
|
|
507
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/appium_driver.py</code></td><td data-label="Contents">The Appium driver: W3C WebDriver over HTTP, the replay <code>Driver</code></td></tr>
|
|
508
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/maestro.py</code></td><td data-label="Contents">Workflows as Maestro flows, the allowlist for team flows, running <code>maestro test</code></td></tr>
|
|
509
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/hyperexecute.py</code></td><td data-label="Contents">Maestro on TestMu: the HyperExecute project and running its CLI</td></tr>
|
|
510
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/explore.py</code></td><td data-label="Contents">The model's action loop on Appium</td></tr>
|
|
511
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/record.py</code></td><td data-label="Contents">Recording by hand: the screen's controls and their locators, the page's commands as steps</td></tr>
|
|
512
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/locators.py</code></td><td data-label="Contents">How a recorded control is found again: ranked candidates, unique on the screen, fallbacks</td></tr>
|
|
513
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/webview.py</code></td><td data-label="Contents">A web page inside the app: the element at a spot, its web locators, their queries</td></tr>
|
|
514
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/magiclink.py</code></td><td data-label="Contents">Magic links: the logins with a mailbox, the newest link read and opened on the device</td></tr>
|
|
515
|
-
<tr><td data-label="File"><code>src/mobile/record.ts</code></td><td data-label="Contents">The commands the Record page may send a mobile recording, checked</td></tr>
|
|
516
|
-
<tr><td data-label="File"><code>src/mobile/setup.ts</code></td><td data-label="Contents"><code>forgeqe mobile setup</code>: the pinned Appium and drivers, finding the SDK and Java, starting Appium here</td></tr>
|
|
517
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/service.py</code></td><td data-label="Contents"><code>serve</code>: replay, explore and maestro runs, <code>run.json</code></td></tr>
|
|
518
|
-
<tr><td data-label="File"><code>py/forgeqe_mobile/apps.py</code></td><td data-label="Contents">The mobile app allowlist and its capabilities</td></tr>
|
|
519
|
-
</tbody>
|
|
520
|
-
</table></div>
|
|
521
|
-
<p>The rest is shared with the desktop engine: <code>forgeqe_desktop.workflow</code> validates both formats, and <code>replay.py</code>,
|
|
522
|
-
<code>heal.py</code>, <code>checks.py</code> and <code>visual.py</code> run on either driver. <code>memory.py</code> (app memory, under <code>&lt;memory dir>/mobile/</code>) lets an explore replay what earlier explores of the app did before it calls the model, and a replay reuse a target an earlier heal found.</p>
|
|
523
|
-
<p>Tests: <code>&lt;engine-python> -m pytest tests/desktop/test_mobile.py -q</code> (a fake Appium server and a stand-in Maestro; any
|
|
524
|
-
OS), and <code>bun test tests/mobile.test.ts</code>.</p>
|
|
525
545
|
|
|
526
546
|
</article>
|
|
527
547
|
|
|
528
548
|
</main>
|
|
529
549
|
<aside class="docs-toc" aria-label="On this page">
|
|
530
|
-
<p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#apps-and-settings">Apps and settings</a></li><li><a href="#devices">Devices</a></li><li><a href="#workflow-yaml-forgeqe-mobile-v1">Workflow YAML (forgeqe-mobile-v1)</a></li><li><a href="#explore">Explore</a></li><li><a href="#appium-on-this-computer">Appium on this computer</a></li><li><a href="#record-by-hand">Record by hand</a></li><li><a href="#maestro">Maestro</a></li><li><a href="#testmu-ai-formerly-lambdatest">TestMu AI (formerly LambdaTest)</a></li><li><a href="#security">Security</a></li
|
|
550
|
+
<p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#apps-and-settings">Apps and settings</a></li><li><a href="#devices">Devices</a></li><li><a href="#workflow-yaml-forgeqe-mobile-v1">Workflow YAML (forgeqe-mobile-v1)</a></li><li><a href="#explore">Explore</a></li><li><a href="#appium-on-this-computer">Appium on this computer</a></li><li><a href="#record-by-hand">Record by hand</a></li><li><a href="#maestro">Maestro</a></li><li><a href="#testmu-ai-formerly-lambdatest">TestMu AI (formerly LambdaTest)</a></li><li><a href="#security">Security</a></li></ul>
|
|
531
551
|
</aside>
|
|
532
552
|
</div>
|
|
533
553
|
<footer class="foot">
|