@capagents/forgeqe 2.5.0 → 2.5.1

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.
Files changed (37) hide show
  1. package/dist/docs-site/docs/index.html +29 -7
  2. package/dist/docs-site/docs/mobile/index.html +29 -7
  3. package/dist/docs-site/docs/search.js +1 -1
  4. package/dist/forgeqe.js +969 -959
  5. package/dist/web/assets/{Agent-Q7njo1Nn.js → Agent-BMqCDZeZ.js} +1 -1
  6. package/dist/web/assets/ApiTests-CkxIx6sI.js +2 -0
  7. package/dist/web/assets/{Chat-QFcqaBtK.js → Chat-BT6yGqKW.js} +3 -3
  8. package/dist/web/assets/{Data-CYWRWMA2.js → Data-BPtl_mUy.js} +4 -4
  9. package/dist/web/assets/{Features-CuixPXUj.js → Features-DwHyOoJu.js} +1 -1
  10. package/dist/web/assets/{Jobs-B88qIb_r.js → Jobs-DW2uXMkv.js} +3 -3
  11. package/dist/web/assets/{Quality-BIUiBg1X.js → Quality-BeuhtzZi.js} +1 -1
  12. package/dist/web/assets/Record-EHgUTspl.js +1 -0
  13. package/dist/web/assets/{Regression-BH1i_yvJ.js → Regression-BDq3BUP_.js} +2 -2
  14. package/dist/web/assets/{Reports-DnidGC7G.js → Reports-Bapldq1A.js} +2 -2
  15. package/dist/web/assets/{Response-o9QqBpwk.js → Response-Dh_kxnCt.js} +3 -3
  16. package/dist/web/assets/Runs-BOi2fP0o.js +2 -0
  17. package/dist/web/assets/{circle-dashed-CO-RmzsR.js → circle-dashed-C84s5T0C.js} +1 -1
  18. package/dist/web/assets/{frame-C0RAa-Ev.js → frame-z3iL_6aL.js} +2 -2
  19. package/dist/web/assets/index-BVw2ygO2.js +26 -0
  20. package/dist/web/assets/index-CBa29-yG.css +2 -0
  21. package/dist/web/assets/{markdown-9nLYjAqd.js → markdown-BtqKvAEi.js} +1 -1
  22. package/dist/web/assets/{sticky-note-BffcGVvl.js → sticky-note-C_NJNONZ.js} +1 -1
  23. package/dist/web/assets/{trending-up-BbHX2F6j.js → trending-up-DK1wDqic.js} +1 -1
  24. package/dist/web/index.html +3 -3
  25. package/docs/MOBILE.md +29 -7
  26. package/docs/user-guide.html +29 -7
  27. package/forgeqe.example.yaml +7 -0
  28. package/package.json +1 -1
  29. package/py/forgeqe_mobile/cli.py +9 -2
  30. package/py/forgeqe_mobile/hyperexecute.py +133 -19
  31. package/py/forgeqe_mobile/maestro.py +45 -3
  32. package/py/forgeqe_mobile/service.py +51 -14
  33. package/dist/web/assets/ApiTests-C0ZAAuTl.js +0 -2
  34. package/dist/web/assets/Record-DnT3bDoJ.js +0 -1
  35. package/dist/web/assets/Runs-hOT-2g1a.js +0 -2
  36. package/dist/web/assets/index-BdhUnF_q.css +0 -2
  37. package/dist/web/assets/index-DBQd0Qgk.js +0 -26
@@ -2395,8 +2395,10 @@ no CI job tests it yet (it needs a macOS runner with a simulator).</p>
2395
2395
  </section>
2396
2396
  <section class="doc" id="doc-docs-mobile-use">
2397
2397
  <h4>Use</h4>
2398
- <div class="prose"><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><code>forgeqe mobile doctor # does the Appium server answer, is maestro installed?
2398
+ <div class="prose"><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><code>forgeqe mobile doctor # does the Appium server answer, is maestro installed? (or, with
2399
+ # mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?)
2399
2400
  forgeqe mobile apps # the mobile apps of the active environment
2401
+ forgeqe mobile devices --like &quot;Pixel 8-14&quot; # the devices TestMu or BrowserStack has, most like one first
2400
2402
  forgeqe mobile explore &quot;Sign in as the courier and accept the first delivery&quot; --app courier
2401
2403
  forgeqe mobile replay .forgeqe/reports/mobile-explore-…/workflow.yaml
2402
2404
  forgeqe mobile replay workflow.yaml --driver maestro
@@ -2541,11 +2543,11 @@ the build (it must be inside the working folder), and saves the <code>lt://</cod
2541
2543
  username_env: LT_USERNAME
2542
2544
  access_key_env: LT_ACCESS_KEY
2543
2545
  capabilities:
2544
- &quot;LT:Options&quot;: { w3c: true, isRealMobile: true, deviceName: &quot;Pixel 6&quot;, platformVersion: &quot;14&quot;, build: nightly } # app: added from the app's own
2546
+ &quot;LT:Options&quot;: { w3c: true, isRealMobile: true, deviceName: &quot;Pixel 8&quot;, platformVersion: &quot;14&quot;, build: nightly } # app: added from the app's own
2545
2547
  maestro:
2546
2548
  testmu: # Maestro on TestMu, through HyperExecute
2547
2549
  cli: /opt/hyperexecute # TestMu's hyperexecute CLI
2548
- devices: [&quot;Pixel 6-14&quot;] # name-version, or a pattern such as &quot;.*-.*&quot;
2550
+ devices: [&quot;Pixel 8-14&quot;] # name-version, or a pattern such as &quot;.*-.*&quot;
2549
2551
  real_device: true # false: TestMu's emulators
2550
2552
  # username_env: LT_USERNAME # the defaults
2551
2553
  # access_key_env: LT_ACCESS_KEY
@@ -2557,13 +2559,33 @@ The project holds the flows in their folder layout (so <code>runFlow</code> stil
2557
2559
  the device's <code>appId</code>; a build file is uploaded with the project), a fixed setup script (Android platform tools 35.0.2
2558
2560
  and Maestro 2.6.1 from its release, both checked against their SHA-256) and a fixed run script, and
2559
2561
  <code>hyperexecute.yaml</code>. Team flows are checked against the allowlist first, as always. Flow file names may only use
2560
- letters, digits and <code>_ . - /</code> (and one leading dot, for <code>.maestro/</code>), because HyperExecute's shell reads them. After
2561
- the job, ForgeQE downloads its artifacts (Maestro's command results and JUnit reports), so each step gets its own
2562
- result in the report.</li>
2562
+ letters, digits and <code>_ . - /</code>, because HyperExecute's shell reads them, and no folder or file may be hidden except
2563
+ a top-level <code>.maestro/</code> (hidden files of the working folder never leave the machine). After the job, ForgeQE
2564
+ downloads its artifacts (Maestro's command results and JUnit reports), so each step gets its own result in the
2565
+ report. A job on several devices (more than one entry in <code>devices</code>, or a pattern) brings back one run per device:
2566
+ the steps show the first device that failed, or the first device when all passed, and the job's page has each one.
2567
+ The job's link is printed from either <code>hyperexecute.lambdatest.com</code> or <code>hyperexecute.testmu.ai</code>.</li>
2568
+ <li><strong>Devices are checked first.</strong> On TestMu (Appium or Maestro) and BrowserStack (Appium), <code>replay</code>, <code>maestro</code> and
2569
+ <code>explore</code> read the cloud's device list before they start (TestMu's list for the region, BrowserStack's
2570
+ <code>devices.json</code>) and check each configured device, exact or a pattern. A device the cloud does not have would wait
2571
+ in its queue and time out (<code>QUEUE_TIMEOUT_DEVICE_UNAVAILABLE</code>), so ForgeQE offers the devices most like it instead:
2572
+ the same model on other OS versions, then the same family. In a terminal you pick one for this run; without one it
2573
+ stops and names them. <code>--device &quot;Pixel 8-13&quot;</code> runs on another device this time (several, comma-separated, for
2574
+ Maestro), <code>--no-device-check</code> skips the check, and <code>forgeqe mobile devices</code> lists what the cloud has. The list
2575
+ says what a cloud offers in the region, not whether a device is free this minute. TestMu's emulators
2576
+ (<code>real_device: false</code>, <code>isRealMobile: false</code>) are not in it and are not checked.</li>
2577
+ <li><strong>Videos.</strong> TestMu records each Maestro flow as an App Automation session (its dashboard, not the HyperExecute job
2578
+ page, shows the video). Each run is its own build there, and after the job ForgeQE saves each flow's recording as
2579
+ <code>videos/&lt;flow&gt;.mp4</code> in the run folder, plays it in the report's Artifacts tab, and prints it with the session's
2580
+ TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one.</li>
2563
2581
  <li><strong>Secrets on Maestro on TestMu:</strong> a workflow that types a secret is refused there for now (HyperExecute would need
2564
- the value in its own vault). Replay it on TestMu with <code>--driver appium</code>.</li>
2582
+ the value in its own vault). Replay it on TestMu with <code>--driver appium</code>. For the same reason, a team flow that reads
2583
+ a <code>${NAME}</code> variable its own <code>env:</code> blocks do not set is refused on TestMu (locally it could come from the
2584
+ environment); run it with a local <code>maestro</code>.</li>
2565
2585
  <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
2566
2586
  run folder. Neither the user name nor the key is passed to the flows' environment.</li>
2587
+ <li><code>maestro</code> and the <code>hyperexecute</code> CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
2588
+ their environment; only the mobile engine itself holds them.</li>
2567
2589
  <li>The <code>testmu</code> job of <code>.github/workflows/ci.yml</code> (Run workflow, job <code>testmu</code>) runs all three on TestMu (Appium, Maestro with a workflow, a team flow)
2568
2590
  with TestMu's Wikipedia sample app, once the repository has the secrets <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code>.</li>
2569
2591
  </ul>
@@ -139,8 +139,10 @@ no CI job tests it yet (it needs a macOS runner with a simulator).</p>
139
139
  </tbody>
140
140
  </table></div>
141
141
  <h2 id="use"><a href="#use" class="hash">#</a>Use</h2>
142
- <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><code>forgeqe mobile doctor # does the Appium server answer, is maestro installed?
142
+ <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><code>forgeqe mobile doctor # does the Appium server answer, is maestro installed? (or, with
143
+ # mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?)
143
144
  forgeqe mobile apps # the mobile apps of the active environment
145
+ forgeqe mobile devices --like &quot;Pixel 8-14&quot; # the devices TestMu or BrowserStack has, most like one first
144
146
  forgeqe mobile explore &quot;Sign in as the courier and accept the first delivery&quot; --app courier
145
147
  forgeqe mobile replay .forgeqe/reports/mobile-explore-…/workflow.yaml
146
148
  forgeqe mobile replay workflow.yaml --driver maestro
@@ -270,11 +272,11 @@ the build (it must be inside the working folder), and saves the <code>lt://</cod
270
272
  username_env: LT_USERNAME
271
273
  access_key_env: LT_ACCESS_KEY
272
274
  capabilities:
273
- &quot;LT:Options&quot;: { w3c: true, isRealMobile: true, deviceName: &quot;Pixel 6&quot;, platformVersion: &quot;14&quot;, build: nightly } # app: added from the app's own
275
+ &quot;LT:Options&quot;: { w3c: true, isRealMobile: true, deviceName: &quot;Pixel 8&quot;, platformVersion: &quot;14&quot;, build: nightly } # app: added from the app's own
274
276
  maestro:
275
277
  testmu: # Maestro on TestMu, through HyperExecute
276
278
  cli: /opt/hyperexecute # TestMu's hyperexecute CLI
277
- devices: [&quot;Pixel 6-14&quot;] # name-version, or a pattern such as &quot;.*-.*&quot;
279
+ devices: [&quot;Pixel 8-14&quot;] # name-version, or a pattern such as &quot;.*-.*&quot;
278
280
  real_device: true # false: TestMu's emulators
279
281
  # username_env: LT_USERNAME # the defaults
280
282
  # access_key_env: LT_ACCESS_KEY
@@ -286,13 +288,33 @@ The project holds the flows in their folder layout (so <code>runFlow</code> stil
286
288
  the device's <code>appId</code>; a build file is uploaded with the project), a fixed setup script (Android platform tools 35.0.2
287
289
  and Maestro 2.6.1 from its release, both checked against their SHA-256) and a fixed run script, and
288
290
  <code>hyperexecute.yaml</code>. Team flows are checked against the allowlist first, as always. Flow file names may only use
289
- letters, digits and <code>_ . - /</code> (and one leading dot, for <code>.maestro/</code>), because HyperExecute's shell reads them. After
290
- the job, ForgeQE downloads its artifacts (Maestro's command results and JUnit reports), so each step gets its own
291
- result in the report.</li>
291
+ letters, digits and <code>_ . - /</code>, because HyperExecute's shell reads them, and no folder or file may be hidden except
292
+ a top-level <code>.maestro/</code> (hidden files of the working folder never leave the machine). After the job, ForgeQE
293
+ downloads its artifacts (Maestro's command results and JUnit reports), so each step gets its own result in the
294
+ report. A job on several devices (more than one entry in <code>devices</code>, or a pattern) brings back one run per device:
295
+ the steps show the first device that failed, or the first device when all passed, and the job's page has each one.
296
+ The job's link is printed from either <code>hyperexecute.lambdatest.com</code> or <code>hyperexecute.testmu.ai</code>.</li>
297
+ <li><strong>Devices are checked first.</strong> On TestMu (Appium or Maestro) and BrowserStack (Appium), <code>replay</code>, <code>maestro</code> and
298
+ <code>explore</code> read the cloud's device list before they start (TestMu's list for the region, BrowserStack's
299
+ <code>devices.json</code>) and check each configured device, exact or a pattern. A device the cloud does not have would wait
300
+ in its queue and time out (<code>QUEUE_TIMEOUT_DEVICE_UNAVAILABLE</code>), so ForgeQE offers the devices most like it instead:
301
+ the same model on other OS versions, then the same family. In a terminal you pick one for this run; without one it
302
+ stops and names them. <code>--device &quot;Pixel 8-13&quot;</code> runs on another device this time (several, comma-separated, for
303
+ Maestro), <code>--no-device-check</code> skips the check, and <code>forgeqe mobile devices</code> lists what the cloud has. The list
304
+ says what a cloud offers in the region, not whether a device is free this minute. TestMu's emulators
305
+ (<code>real_device: false</code>, <code>isRealMobile: false</code>) are not in it and are not checked.</li>
306
+ <li><strong>Videos.</strong> TestMu records each Maestro flow as an App Automation session (its dashboard, not the HyperExecute job
307
+ page, shows the video). Each run is its own build there, and after the job ForgeQE saves each flow's recording as
308
+ <code>videos/&amp;lt;flow&gt;.mp4</code> in the run folder, plays it in the report's Artifacts tab, and prints it with the session's
309
+ TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one.</li>
292
310
  <li><strong>Secrets on Maestro on TestMu:</strong> a workflow that types a secret is refused there for now (HyperExecute would need
293
- the value in its own vault). Replay it on TestMu with <code>--driver appium</code>.</li>
311
+ the value in its own vault). Replay it on TestMu with <code>--driver appium</code>. For the same reason, a team flow that reads
312
+ a <code>${NAME}</code> variable its own <code>env:</code> blocks do not set is refused on TestMu (locally it could come from the
313
+ environment); run it with a local <code>maestro</code>.</li>
294
314
  <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
295
315
  run folder. Neither the user name nor the key is passed to the flows' environment.</li>
316
+ <li><code>maestro</code> and the <code>hyperexecute</code> CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
317
+ their environment; only the mobile engine itself holds them.</li>
296
318
  <li>The <code>testmu</code> job of <code>.github/workflows/ci.yml</code> (Run workflow, job <code>testmu</code>) runs all three on TestMu (Appium, Maestro with a workflow, a team flow)
297
319
  with TestMu's Wikipedia sample app, once the repository has the secrets <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code>.</li>
298
320
  </ul>