@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,11 +113,11 @@
|
|
|
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="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="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="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 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="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="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="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><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-mobile-apps">Automate Android and iOS apps</a></li><li><a href="#doc-docs-mobile-forgeqe-mobile-android-and-ios-apps">ForgeQE mobile: Android and iOS apps</a></li><li><a href="#doc-docs-mobile-use">Use</a></li><li><a href="#doc-docs-mobile-apps-and-settings">Apps and settings</a></li><li><a href="#doc-docs-mobile-devices">Devices</a></li><li><a href="#doc-docs-mobile-workflow-yaml-forgeqe-mobile-v1">Workflow YAML (forgeqe-mobile-v1)</a></li><li><a href="#doc-docs-mobile-appium-on-this-computer">Appium on this computer</a></li><li><a href="#doc-docs-mobile-record-by-hand">Record by hand</a></li><li><a href="#doc-docs-mobile-explore">Explore</a></li><li><a href="#doc-docs-mobile-maestro">Maestro</a></li><li><a href="#doc-docs-mobile-testmu-ai-formerly-lambdatest">TestMu AI (formerly LambdaTest)</a></li><li><a href="#doc-docs-mobile-security">Security</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-mobile"/></svg>Mobile apps</h1>
|
|
121
122
|
<p class="guide-lead">Android and iOS apps through Appium or Maestro: explore a goal, replay, run the team's flows</p>
|
|
122
123
|
<article class="spec feat" id="cap-mobile-apps">
|
|
@@ -128,43 +129,53 @@
|
|
|
128
129
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Explore runs on Appium only</li><li>Maestro replays do not heal moved controls or compare images (expect_image)</li><li>On TestMu AI, Maestro (through HyperExecute) refuses workflows that type secrets; replay those there with --driver appium</li></ul></div>
|
|
129
130
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>mobile_explore</code> <code>mobile_replay</code> <code>mobile_maestro</code> <code>mobile_upload</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-mobile-apps-android-ios">
|
|
133
135
|
<h4>Mobile apps (Android, iOS)</h4>
|
|
134
|
-
<div class="prose"><p>ForgeQE drives Android and iOS apps two ways
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
<div class="prose"><p>ForgeQE drives Android and iOS apps two ways:</p>
|
|
137
|
+
<ul>
|
|
138
|
+
<li>through <strong>Appium</strong>, step by step: it can explore a goal with the model, and heals a control that moved;</li>
|
|
139
|
+
<li>through <strong>Maestro</strong>: fast replays, and your team's own Maestro flows.</li>
|
|
140
|
+
</ul>
|
|
141
|
+
<p><strong>Apps</strong> come from env.yaml (<code>kind: mobile</code>, <code>platform: android</code> or <code>ios</code>, <code>app_id</code>, and optionally <code>activity</code> and an <code>app</code> build to install) or <code>mobile.apps</code> in forgeqe.yaml (<strong>Settings › Mobile</strong>). <code>mobile.appium</code> names the Appium server: by default <code>http://127.0.0.1:4723</code>, or a device cloud's hub with its user and key in environment variables.</p>
|
|
142
|
+
<p><strong>Exploring a goal.</strong> Ask for a goal in the app ("sign in to the courier app and accept the first delivery"), in a chat or the shell. ForgeQE's agent explores it on your device or emulator and saves a workflow with checks of the outcome. From the command line:</p>
|
|
138
143
|
<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 here, pinned (once); runs start it themselves
|
|
139
144
|
</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, is maestro installed?
|
|
140
145
|
</span></span><span class="ln"><span class="cmd">forgeqe mobile explore "Sign in and accept the first delivery" --app courier
|
|
141
|
-
</span></span
|
|
146
|
+
</span></span></code></pre></div>
|
|
147
|
+
<p><strong>Recording by hand.</strong> No model is used. Each tap, entry, check and gesture is done on the device through the locator ForgeQE keeps for it, so a step a replay could not find is never kept. This is done in the web app only:</p>
|
|
148
|
+
<ol>
|
|
149
|
+
<li>Open <strong>Record</strong> and pick <strong>Mobile app</strong>.</li>
|
|
150
|
+
<li>Pick the <strong>App</strong> and a <strong>Device</strong> (on this computer, TestMu AI or BrowserStack). The device's screen appears on the page.</li>
|
|
151
|
+
<li>Press <strong>Record</strong>, and tap, type and check on the screen.</li>
|
|
152
|
+
<li><strong>Stop</strong> opens the workflow's review. Details: <a href="#doc-docs-mobile-record-by-hand">docs/MOBILE.md</a>.</li>
|
|
153
|
+
</ol>
|
|
154
|
+
<p><strong>Replaying and Maestro flows.</strong> This is done at a terminal:</p>
|
|
155
|
+
<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 replay <run folder>/workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> on Appium (mobile.driver), healing moved controls
|
|
142
156
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile replay workflow.yaml --driver maestro</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same workflow as a Maestro flow
|
|
143
157
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile replay mobile-tests/ --junit results.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every workflow in a folder, results for CI
|
|
144
158
|
</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> your team's Maestro flows, checked first
|
|
145
159
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile flow workflow.yaml > login.flow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a workflow as a Maestro flow, to keep
|
|
146
160
|
</span></span></code></pre></div>
|
|
147
|
-
<p>
|
|
148
|
-
|
|
149
|
-
device through the locator ForgeQE keeps for it, so a step a replay could not find is never kept. No model is used.
|
|
150
|
-
Stop opens the workflow's review. Details: <a href="#doc-docs-mobile-record-by-hand">docs/MOBILE.md</a>.</p>
|
|
151
|
-
<p>Apps come from env.yaml (<code>kind: mobile</code>, <code>platform: android</code> or <code>ios</code>, <code>app_id</code>, and optionally <code>activity</code> and an
|
|
152
|
-
<code>app</code> build to install) or <code>mobile.apps</code> in forgeqe.yaml. <code>mobile.appium</code> names the Appium server (default
|
|
153
|
-
<code>http://127.0.0.1:4723</code>, or a device cloud's hub with its user and key in environment variables), and <code>{{secret:NAME}}</code>
|
|
154
|
-
reads only <code>mobile.secrets</code> (and the environment's secrets). A flow kept with <code>forgeqe mobile flow</code> reads each secret
|
|
155
|
-
as <code>${MAESTRO_<NAME>}</code>, never its value, so set <code>MAESTRO_<NAME></code> when you run it outside ForgeQE; a workflow that types a
|
|
156
|
-
secret not listed there is refused. Team Maestro flows run only with UI commands: scripts,
|
|
157
|
-
JavaScript in <code>${…}</code>, Maestro's AI commands and file writes are refused. Details: <a href="#doc-docs-mobile-forgeqe-mobile-android-and-ios-apps">docs/MOBILE.md</a>.</p>
|
|
161
|
+
<p><strong>Secrets.</strong> <code>{{secret:NAME}}</code> reads only <code>mobile.secrets</code> (and the environment's secrets). A flow kept with <code>forgeqe mobile flow</code> reads each secret as <code>${MAESTRO_<NAME>}</code>, never its value, so set <code>MAESTRO_<NAME></code> when you run it outside ForgeQE. A workflow that types a secret not listed there is refused.</p>
|
|
162
|
+
<p><strong>Team Maestro flows</strong> run only with UI commands: scripts, JavaScript in <code>${…}</code>, Maestro's AI commands and file writes are refused. Details: <a href="#doc-docs-mobile-forgeqe-mobile-android-and-ios-apps">docs/MOBILE.md</a>.</p>
|
|
158
163
|
<h5>On TestMu AI (formerly LambdaTest)</h5>
|
|
159
|
-
<p>Both drivers run on TestMu AI's devices. Upload the app build once, then use the <code>lt://</code> id it prints as the app's <code>app</code>
|
|
160
|
-
|
|
164
|
+
<p>Both drivers run on TestMu AI's devices. Upload the app build once, then use the <code>lt://</code> id it prints as the app's <code>app</code> (in env.yaml or <code>mobile.apps</code>; ForgeQE adds it to Appium's <code>LT:Options</code> itself).</p>
|
|
165
|
+
<p><strong>Uploading a build.</strong></p>
|
|
166
|
+
<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>
|
|
167
|
+
<ol>
|
|
168
|
+
<li>Open <strong>New chat</strong>.</li>
|
|
169
|
+
<li>Ask: "upload builds/courier.apk to TestMu for the courier app".</li>
|
|
170
|
+
<li>Agree when asked. ForgeQE uploads it and writes the <code>lt://</code> id into that app's <code>app:</code> in <code>forgeqe.yaml</code> (an app from <code>env.yaml</code> gets the id to set there).</li>
|
|
171
|
+
</ol>
|
|
172
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
161
173
|
<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> prints lt://APP…, for TestMu's real devices
|
|
162
174
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile upload courier.apk --virtual</span><span class="pad"> </span><span class="cm"><span class="h">#</span> for TestMu's emulators and simulators instead
|
|
163
175
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe mobile upload courier.apk --name courier-nightly</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the name TestMu shows for the build
|
|
164
176
|
</span></span></code></pre></div>
|
|
165
|
-
<p>
|
|
166
|
-
<code>access_key_env</code> name), for example in a <code>.env</code> file in the project folder. They go only to the mobile engine, never to
|
|
167
|
-
a flow or a model, and a user or key in the hub URL is refused.</p>
|
|
177
|
+
<p>In the shell, ask in the same words as in the web app. A build uploaded by the agent must be inside the working folder; hidden folders and files named like credentials are refused.</p>
|
|
178
|
+
</div></div><p><strong>Signing in to TestMu.</strong> The user name and access key come from <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> (or the variables <code>username_env</code> and <code>access_key_env</code> name), for example in a <code>.env</code> file in the project folder. They go only to the mobile engine, never to a flow or a model, and a user or key in the hub URL is refused.</p>
|
|
168
179
|
<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:
|
|
169
180
|
</span></span><span class="ln"><span class="cmd"> apps:
|
|
170
181
|
</span></span><span class="ln"><span class="cmd"> courier: { platform: android, app_id: com.contoso.courier, app: "lt://APP1016…" }
|
|
@@ -182,30 +193,25 @@ a flow or a model, and a user or key in the hub URL is refused.</p>
|
|
|
182
193
|
</span></span></code></pre></div>
|
|
183
194
|
<ul>
|
|
184
195
|
<li><strong>Appium</strong> needs nothing else: it talks to the hub with the user and key from the two variables.</li>
|
|
185
|
-
<li><strong>Maestro runs through HyperExecute.</strong> <code>mobile.maestro.testmu</code> names TestMu's <code>hyperexecute</code> CLI (<code>cli</code>), the devices
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
<code>hyperexecute.yaml</code>) and starts the CLI. Team flows are checked against the allowlist first, as always. The access key
|
|
189
|
-
is removed from the CLI's output and from every file in the run folder; the run prints the HyperExecute job link.</li>
|
|
190
|
-
<li><strong>Secrets:</strong> a workflow that types a secret is refused on Maestro on TestMu (HyperExecute would need the value in its
|
|
191
|
-
own vault). Replay it on TestMu with <code>--driver appium</code> instead. Maestro on TestMu runs Android apps; run iOS apps
|
|
192
|
-
there through Appium.</li>
|
|
196
|
+
<li><strong>Maestro runs through HyperExecute.</strong> <code>mobile.maestro.testmu</code> names TestMu's <code>hyperexecute</code> CLI (<code>cli</code>), the devices to run on (<code>devices</code>), and real devices or emulators (<code>real_device</code>). ForgeQE writes a HyperExecute project in the run folder (the flows in their folder layout, so <code>runFlow</code> still works, the app, fixed setup and run scripts, and <code>hyperexecute.yaml</code>) and starts the CLI. Team flows are checked against the allowlist first, as always. The access key is removed from the CLI's output and from every file in the run folder, and the run prints the HyperExecute job link.</li>
|
|
197
|
+
<li><strong>Secrets:</strong> a workflow that types a secret is refused on Maestro on TestMu (HyperExecute would need the value in its own vault). Replay it on TestMu with <code>--driver appium</code> instead.</li>
|
|
198
|
+
<li><strong>iOS:</strong> Maestro on TestMu runs Android apps; run iOS apps there through Appium.</li>
|
|
193
199
|
</ul>
|
|
194
|
-
<p>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
<
|
|
198
|
-
<
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
<p><strong>A ready sample.</strong> <span class="xref">samples/mobile-testmu</span> is a ready project with TestMu's Wikipedia sample app:</p>
|
|
201
|
+
<ol>
|
|
202
|
+
<li>Copy <code>.env.example</code> to <code>.env</code>.</li>
|
|
203
|
+
<li>Upload the app with <code>forgeqe mobile upload sample.apk</code>, and put the id in its <code>forgeqe.yaml</code>.</li>
|
|
204
|
+
<li>Download the <code>hyperexecute</code> CLI into the folder.</li>
|
|
205
|
+
<li>Run <code>forgeqe mobile replay wiki.yaml --driver appium</code>, <code>--driver maestro</code>, and <code>forgeqe mobile maestro .maestro</code>.</li>
|
|
206
|
+
</ol>
|
|
207
|
+
<p>Details: <a href="#doc-docs-mobile-testmu-ai-formerly-lambdatest">docs/MOBILE.md</a>.</p>
|
|
201
208
|
</div>
|
|
202
209
|
</section>
|
|
203
210
|
<section class="doc" id="doc-docs-mobile-forgeqe-mobile-android-and-ios-apps">
|
|
204
211
|
<h4>ForgeQE mobile: Android and iOS apps</h4>
|
|
205
|
-
<div class="prose"><p>Status:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
with a simulator).</p>
|
|
212
|
+
<div class="prose"><p>Status: tested on an Android emulator, where ForgeQE explores and replays the emulator's Settings app with Appium, and
|
|
213
|
+
replays the same workflow with Maestro. iOS works the same way through Appium's XCUITest driver, but is not yet tested
|
|
214
|
+
by the ForgeQE team (it needs a Mac with a simulator).</p>
|
|
209
215
|
<p>ForgeQE drives mobile apps two ways, and one workflow format runs on both:</p>
|
|
210
216
|
<div class="tbl tbl--cols-3"><table>
|
|
211
217
|
<thead>
|
|
@@ -224,24 +230,57 @@ with a simulator).</p>
|
|
|
224
230
|
</section>
|
|
225
231
|
<section class="doc" id="doc-docs-mobile-use">
|
|
226
232
|
<h4>Use</h4>
|
|
227
|
-
<div class="prose"><
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
</
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
<div class="prose"><p>What the web app and the terminal each offer:</p>
|
|
234
|
+
<div class="tbl tbl--cols-3"><table>
|
|
235
|
+
<thead>
|
|
236
|
+
<tr><th>Task</th><th>Web app</th><th>Terminal</th></tr>
|
|
237
|
+
</thead>
|
|
238
|
+
<tbody>
|
|
239
|
+
<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>
|
|
240
|
+
<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>
|
|
241
|
+
<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>
|
|
242
|
+
<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>
|
|
243
|
+
<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>
|
|
244
|
+
<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>
|
|
245
|
+
<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>
|
|
246
|
+
</tbody>
|
|
247
|
+
</table></div>
|
|
248
|
+
<p><strong>Setting up.</strong> For an emulator or phone on this computer, ForgeQE installs Appium and its drivers once (see
|
|
249
|
+
<a href="#doc-docs-mobile-appium-on-this-computer">Appium on this computer</a>). A device cloud needs none of it.</p>
|
|
250
|
+
<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>
|
|
251
|
+
<ol>
|
|
252
|
+
<li>Open <strong>Settings › Set up</strong>.</li>
|
|
253
|
+
<li>Press <strong>Install what's missing</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 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)
|
|
257
|
+
</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
|
|
258
|
+
</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:
|
|
259
|
+
</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?)
|
|
260
|
+
</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
|
|
261
|
+
</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
|
|
262
|
+
</span></span></code></pre></div>
|
|
263
|
+
</div></div><p><strong>Replaying a workflow.</strong> Replay runs the steps with no model, on Appium or Maestro.</p>
|
|
264
|
+
<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>
|
|
265
|
+
<ol>
|
|
266
|
+
<li>Open <strong>Record</strong> and open the recording (the list's filter has <strong>Mobile apps</strong>).</li>
|
|
267
|
+
<li>Open the <strong>Last run</strong> tab and press <strong>Replay</strong>, once or for each row of a data file.</li>
|
|
268
|
+
</ol>
|
|
269
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
270
|
+
<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
|
|
235
271
|
</span></span><span class="ln"><span class="cmd">forgeqe mobile replay workflow.yaml --driver maestro
|
|
236
272
|
</span></span><span class="ln"><span class="cmd">forgeqe mobile replay mobile-tests/ --data couriers.csv --junit results.xml
|
|
273
|
+
</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
|
|
274
|
+
</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
|
|
275
|
+
</span></span></code></pre></div>
|
|
276
|
+
</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
|
|
277
|
+
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
|
|
278
|
+
courier app and save it as a test", "replay the courier login on Maestro", "run our Maestro flows"); the agent asks
|
|
279
|
+
before each one starts, and it fixes a mobile workflow after a failed replay after showing you the change, as for a
|
|
280
|
+
desktop one. At a terminal, ask the same in <code>forgeqe start</code>, or run:</p>
|
|
281
|
+
<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
|
|
237
282
|
</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
|
|
238
|
-
</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
|
|
239
|
-
</span></span><span class="ln"><span class="cmd">forgeqe mobile validate workflow.yaml
|
|
240
283
|
</span></span></code></pre></div>
|
|
241
|
-
<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
|
|
242
|
-
courier login on Maestro", "run our Maestro flows". Its tools are <code>mobile_explore</code>, <code>mobile_replay</code> and
|
|
243
|
-
<code>mobile_maestro</code>. It asks before each one starts, and <code>desktop_edit_workflow</code> fixes a mobile workflow after a failed
|
|
244
|
-
replay, the same way as a desktop one.</p>
|
|
245
284
|
</div>
|
|
246
285
|
</section>
|
|
247
286
|
<section class="doc" id="doc-docs-mobile-apps-and-settings">
|
|
@@ -282,10 +321,17 @@ replay, the same way as a desktop one.</p>
|
|
|
282
321
|
</section>
|
|
283
322
|
<section class="doc" id="doc-docs-mobile-devices">
|
|
284
323
|
<h4>Devices</h4>
|
|
285
|
-
<div class="prose"><p>Say what each device is and where it runs
|
|
286
|
-
|
|
287
|
-
<code>LT:Options</code>, …), the cloud's hub address, Maestro's <code>--device</code>, and TestMu's HyperExecute YAML. Nobody types
|
|
324
|
+
<div class="prose"><p>Say what each device is and where it runs. ForgeQE builds what Appium, Maestro and the cloud need from that and the
|
|
325
|
+
app (Appium's capabilities, the cloud's hub address, Maestro's device, TestMu's HyperExecute file). Nobody types
|
|
288
326
|
capabilities.</p>
|
|
327
|
+
<p><strong>Adding a device.</strong></p>
|
|
328
|
+
<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>
|
|
329
|
+
<ol>
|
|
330
|
+
<li>Open <strong>Settings › Mobile</strong>.</li>
|
|
331
|
+
<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>
|
|
332
|
+
or <strong>Emulator to start</strong>), and <strong>Use in runs</strong>.</li>
|
|
333
|
+
</ol>
|
|
334
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
289
335
|
<p>Devices on this computer are in forgeqe.yaml:</p>
|
|
290
336
|
<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:
|
|
291
337
|
</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
|
|
@@ -304,7 +350,7 @@ capabilities.</p>
|
|
|
304
350
|
</span></span><span class="ln"><span class="cmd"> model: iPhone 15
|
|
305
351
|
</span></span><span class="ln"><span class="cmd"> os_version: "17.2"
|
|
306
352
|
</span></span></code></pre></div>
|
|
307
|
-
|
|
353
|
+
</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
|
|
308
354
|
<code>mobile.headless: true</code> (Settings → Mobile, Emulators without a window) Appium starts those emulators, and iOS
|
|
309
355
|
simulators, without a window (<code>appium:isHeadless</code>); a real device and a cloud's devices are never affected.</p>
|
|
310
356
|
<p>Devices on TestMu AI or BrowserStack are in that cloud's own file, the one <code>browser.providers</code> links
|
|
@@ -328,9 +374,8 @@ A file with only mobile devices sets up no browser on that cloud.</p>
|
|
|
328
374
|
<ul>
|
|
329
375
|
<li><strong>Which devices run.</strong> Every device with <code>enabled</code> on (the default), of the app's platform: an Android workflow
|
|
330
376
|
skips the iOS devices. <code>--devices pixel8,galaxy</code> (or the agent's <code>devices</code>) names some for one run.</li>
|
|
331
|
-
<li><strong>At once.</strong> <code>mobile.parallel</code> of them at a time
|
|
332
|
-
ports
|
|
333
|
-
server. On TestMu, <code>mobile.parallel</code> also caps HyperExecute's concurrency.</li>
|
|
377
|
+
<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
|
|
378
|
+
running at once get their own ports on the one Appium server. On TestMu, <code>mobile.parallel</code> also caps HyperExecute's concurrency.</li>
|
|
334
379
|
<li><strong>Maestro</strong> runs on each device on this computer, and as one HyperExecute job for TestMu's real devices (and one
|
|
335
380
|
for its emulators). It does not run on BrowserStack here: replay those with Appium.</li>
|
|
336
381
|
<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
|
|
@@ -415,8 +460,8 @@ with its <code>tag</code>, <code>label</code>, <code>placeholder</code>, <code>t
|
|
|
415
460
|
</section>
|
|
416
461
|
<section class="doc" id="doc-docs-mobile-appium-on-this-computer">
|
|
417
462
|
<h4>Appium on this computer</h4>
|
|
418
|
-
<div class="prose"><p>For an emulator or a phone on this computer, <code>forgeqe mobile setup</code> (or
|
|
419
|
-
when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
|
|
463
|
+
<div class="prose"><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
|
|
464
|
+
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)
|
|
420
465
|
into ForgeQE's tools folder, pinned, with no install script run. A run on a device here then starts that Appium by
|
|
421
466
|
itself when nothing answers at <code>mobile.appium.url</code>, on 127.0.0.1, and stops it when ForgeQE exits; an Appium already
|
|
422
467
|
running there (your own) is used as it is. It finds the Android SDK (<code>ANDROID_HOME</code>, else Android Studio's folder) and
|
|
@@ -426,15 +471,20 @@ says what is missing. A device cloud (TestMu AI, BrowserStack) needs none of it:
|
|
|
426
471
|
</section>
|
|
427
472
|
<section class="doc" id="doc-docs-mobile-record-by-hand">
|
|
428
473
|
<h4>Record by hand</h4>
|
|
429
|
-
<div class="prose"><p>
|
|
430
|
-
|
|
474
|
+
<div class="prose"><p>In the web app only: recording a mobile test by hand has no terminal command.</p>
|
|
475
|
+
<ol>
|
|
476
|
+
<li>Open <strong>Record</strong> and pick <strong>Mobile app</strong>.</li>
|
|
477
|
+
<li>Pick the app and a device (one of this computer's, or TestMu AI's or BrowserStack's).</li>
|
|
478
|
+
<li>Press <strong>Record</strong>. The device's screen appears on the page with its controls outlined.</li>
|
|
479
|
+
<li>Press <strong>Stop</strong> when done.</li>
|
|
480
|
+
</ol>
|
|
481
|
+
<p><strong>What you can do while recording.</strong></p>
|
|
431
482
|
<ul>
|
|
432
483
|
<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
|
|
433
484
|
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
|
|
434
485
|
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>
|
|
435
486
|
<li>Each action is done on the device through the locator ForgeQE records for it, so a step a replay could not find is
|
|
436
|
-
never kept. Locators come from the app's own
|
|
437
|
-
ranks a web page's: the resource id or accessibility identifier, the accessibility label, what the control is and
|
|
487
|
+
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
|
|
438
488
|
says, its text (a field's text and text that reads as data last). Only one that matches that control alone on the
|
|
439
489
|
screen is kept; alike rows are found inside their uniquely named parent, a position among them only as the last
|
|
440
490
|
resort; up to three more become fallbacks. Android's own ids (<code>android:id/button1</code>) come after the text. The Steps
|
|
@@ -468,9 +518,9 @@ a menu on iOS); an iOS picker wheel is chosen by its value ("Choose in"
|
|
|
468
518
|
<li>Stop saves <code>workflow.yaml</code>, a picture of each step with the controls it shows, and a report in
|
|
469
519
|
<code>.forgeqe/reports/mobile-record-…/</code>, and opens the workflow's review, as a desktop recording does: change a step's
|
|
470
520
|
control, add a check by clicking a control on a step's picture, make a typed value test data or a secret
|
|
471
|
-
(<code>mobile.secrets</code>), and replay it there (<code>forgeqe mobile replay</code
|
|
521
|
+
(<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>
|
|
472
522
|
</ul>
|
|
473
|
-
<p>It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
|
|
523
|
+
<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
|
|
474
524
|
hands its first screen over at once (a splash, then a sign-in) starts fine: sessions wait for any of the app's
|
|
475
525
|
screens (<code>appium:appWaitActivity: "*"</code>, which <code>mobile.appium.capabilities</code> can change).</p>
|
|
476
526
|
</div>
|
|
@@ -492,10 +542,9 @@ text, kept only when that text is really there, as on the desktop.</li>
|
|
|
492
542
|
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
|
|
493
543
|
not saved. After 4 such actions in a row (or the same check again) the run stops and says why, instead of spending
|
|
494
544
|
the step budget.</li>
|
|
495
|
-
<li><strong>Gestures.</strong> On Android a swipe is a finger drag
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
<code>scroll</code>.</li>
|
|
545
|
+
<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.
|
|
546
|
+
A scroll is a drag inside the screen's scrolling view, checked: when the content did not move (the drag started on a
|
|
547
|
+
carousel, which took it), it is tried again from another point. iOS uses its own swipe and scroll.</li>
|
|
499
548
|
<li><strong>Memory.</strong> A failed explore of a goal is resumed from its last action (a tap, a type), never through the swipes
|
|
500
549
|
and backs after it, which are the search that failed.</li>
|
|
501
550
|
</ul>
|
|
@@ -530,13 +579,17 @@ Maestro gets it:</p>
|
|
|
530
579
|
</section>
|
|
531
580
|
<section class="doc" id="doc-docs-mobile-testmu-ai-formerly-lambdatest">
|
|
532
581
|
<h4>TestMu AI (formerly LambdaTest)</h4>
|
|
533
|
-
<div class="prose"><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
|
|
582
|
+
<div class="prose"><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>
|
|
583
|
+
<p><strong>Uploading a build.</strong></p>
|
|
584
|
+
<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>
|
|
585
|
+
<p>In a chat, ask in words ("upload builds/courier.apk to TestMu for courier"). The agent asks first, uploads the build (it
|
|
586
|
+
must be inside the working folder), and saves the <code>lt://</code> id as that app's <code>app:</code> in forgeqe.yaml.</p>
|
|
587
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
534
588
|
<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)
|
|
535
589
|
</span></span></code></pre></div>
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
<code>.env</code> file in the project folder. <code>samples/mobile-testmu/</code> is a ready project with TestMu's Wikipedia sample app.</p>
|
|
590
|
+
</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
|
|
591
|
+
<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
|
|
592
|
+
the variables). <code>samples/mobile-testmu/</code> is a ready project with TestMu's Wikipedia sample app.</p>
|
|
540
593
|
<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:
|
|
541
594
|
</span></span><span class="ln"><span class="cmd"> apps:
|
|
542
595
|
</span></span><span class="ln"><span class="cmd"> courier: { platform: android, app_id: com.contoso.courier, app: "lt://APP1016…" }
|
|
@@ -587,7 +640,7 @@ environment); run it with a local <code>maestro</code>.</li>
|
|
|
587
640
|
<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
|
|
588
641
|
run folder. Neither the user name nor the key is passed to the flows' environment.</li>
|
|
589
642
|
<li><code>maestro</code> and the <code>hyperexecute</code> CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
|
|
590
|
-
their environment
|
|
643
|
+
their environment.</li>
|
|
591
644
|
<li><code>samples/mobile-testmu</code> runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's
|
|
592
645
|
Wikipedia sample app, once <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> are set.</li>
|
|
593
646
|
</ul>
|
|
@@ -601,7 +654,7 @@ spoken to over HTTP, and <code>maestro</code> is started with an argument list,
|
|
|
601
654
|
<li><strong>Locators</strong> go into XPath as quoted literals, so a target cannot change the query.</li>
|
|
602
655
|
<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
|
|
603
656
|
refused there. Explore types a secret from its placeholder, so the model never sees the value.</li>
|
|
604
|
-
<li><strong>The
|
|
657
|
+
<li><strong>The mobile runner's environment</strong> holds system settings, the profile's key, the listed secrets, the cloud's user and key,
|
|
605
658
|
and <code>JAVA_HOME</code> / <code>ANDROID_HOME</code>, nothing else.</li>
|
|
606
659
|
<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
|
|
607
660
|
the URL is refused. TLS is verified as usual.</li>
|
|
@@ -611,14 +664,13 @@ the URL is refused. TLS is verified as usual.</li>
|
|
|
611
664
|
</div>
|
|
612
665
|
</section>
|
|
613
666
|
</div>
|
|
614
|
-
</article>
|
|
615
667
|
|
|
616
668
|
<nav class="pager" aria-label="Previous and next">
|
|
617
669
|
<a class="prev" href="../area-desktop/index.html"><small>Previous</small><span>Desktop apps</span></a>
|
|
618
670
|
<a class="next" href="../area-setup/index.html"><small>Next</small><span>Setup and configuration</span></a>
|
|
619
671
|
</nav>
|
|
620
672
|
</main>
|
|
621
|
-
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-mobile-apps">Automate Android and iOS apps</a></li><li><a href="#doc-
|
|
673
|
+
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-mobile-apps">Automate Android and iOS apps</a></li><li><a href="#doc-docs-mobile-forgeqe-mobile-android-and-ios-apps">ForgeQE mobile: Android and iOS apps</a></li><li><a href="#doc-docs-mobile-use">Use</a></li><li><a href="#doc-docs-mobile-apps-and-settings">Apps and settings</a></li><li><a href="#doc-docs-mobile-devices">Devices</a></li><li><a href="#doc-docs-mobile-workflow-yaml-forgeqe-mobile-v1">Workflow YAML (forgeqe-mobile-v1)</a></li><li><a href="#doc-docs-mobile-appium-on-this-computer">Appium on this computer</a></li><li><a href="#doc-docs-mobile-record-by-hand">Record by hand</a></li><li><a href="#doc-docs-mobile-explore">Explore</a></li><li><a href="#doc-docs-mobile-maestro">Maestro</a></li><li><a href="#doc-docs-mobile-testmu-ai-formerly-lambdatest">TestMu AI (formerly LambdaTest)</a></li><li><a href="#doc-docs-mobile-security">Security</a></li></ul></aside>
|
|
622
674
|
</div>
|
|
623
675
|
<footer class="foot">
|
|
624
676
|
<div class="container foot__row">
|