@capagents/forgeqe 2.8.9 → 2.9.0
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/dist/docs-site/docs/index.html +74 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +2035 -2028
- package/dist/template.html +66 -66
- package/dist/web/THIRD_PARTY_NOTICES.md +455 -0
- package/dist/web/assets/Agent-BGwHbXbc.js +4 -0
- package/dist/web/assets/ApiTests-DSnZHRlF.js +10 -0
- package/dist/web/assets/Browse-Dx3pHGuG.js +2 -0
- package/dist/web/assets/Chat-BcFP0BbA.js +3 -0
- package/dist/web/assets/CommandPalette-v6mqHZnU.js +1 -0
- package/dist/web/assets/Cost-C9LZdx1p.js +1 -0
- package/dist/web/assets/Data-DvbaOc9e.js +6 -0
- package/dist/web/assets/Evidence-Y1AeSzh5.js +1 -0
- package/dist/web/assets/Explore-Dw8S6DG1.js +2 -0
- package/dist/web/assets/Features-CjrVraBE.js +1 -0
- package/dist/web/assets/Flags-C_Qm0078.js +2 -0
- package/dist/web/assets/Flaky-DYgN586D.js +1 -0
- package/dist/web/assets/ForceGraph-CEH86-Z0.js +1 -0
- package/dist/web/assets/Impact-dBPp7aM2.js +3 -0
- package/dist/web/assets/Jobs-CSyN6YRx.js +5 -0
- package/dist/web/assets/KindPage-BQl-5bcd.js +6 -0
- package/dist/web/assets/Migration-COly7O-T.js +2 -0
- package/dist/web/assets/Product-7mM8tcxH.js +7 -0
- package/dist/web/assets/Production-De5CCUoP.js +1 -0
- package/dist/web/assets/Quality-Q_iqj3fk.js +1 -0
- package/dist/web/assets/Readiness-kU9kum_I.js +1 -0
- package/dist/web/assets/Record-CIhINuEz.js +2 -0
- package/dist/web/assets/Regression-CMQnH7dN.js +5 -0
- package/dist/web/assets/Reports-dUOe6_vN.js +2 -0
- package/dist/web/assets/Response-DGl2R0A-.js +4 -0
- package/dist/web/assets/RunDiff-BVRRIz3m.js +1 -0
- package/dist/web/assets/Runs-CkNWhAhe.js +2 -0
- package/dist/web/assets/TestCases-exR7hRWd.js +1 -0
- package/dist/web/assets/TestData-yVPMg9kw.js +2 -0
- package/dist/web/assets/TestDebt-C3sM6cH0.js +1 -0
- package/dist/web/assets/Tosca-Bcalg1JU.js +2 -0
- package/dist/web/assets/WhatsNew-EFSt6xx2.js +1 -0
- package/dist/web/assets/dataParts-D33u08WR.js +3 -0
- package/dist/web/assets/{families-q4nF1Fqo.js → families-Btjss8bN.js} +1 -1
- package/dist/web/assets/frame-D3IhgCFt.js +4 -0
- package/dist/web/assets/index-D5sya6FK.css +2 -0
- package/dist/web/assets/index-v-k_CVn7.js +45 -0
- package/dist/web/assets/line-icons-CQ-3V8ax.js +1 -0
- package/dist/web/assets/logos-CfpaNwbY.js +1 -0
- package/dist/web/assets/palette-X7hU78Wy.js +1 -0
- package/dist/web/assets/parts-B7YrlR3a.js +1 -0
- package/dist/web/assets/productParts-CAxyMnWJ.js +1 -0
- package/dist/web/assets/qualityParts-CN9JVKZN.js +1 -0
- package/dist/web/assets/rows-IEP4Jvfi.js +1 -0
- package/dist/web/assets/{segmented-BJECij_J.js → segmented-DBqHvZW3.js} +1 -1
- package/dist/web/assets/thread-BeaLQ_f4.js +5 -0
- package/dist/web/assets/usePageChat-D_3KsqBU.js +1 -0
- package/dist/web/index.html +4 -3
- package/docs/user-guide.html +74 -0
- package/evals/evidence/build/README.md +20 -0
- package/evals/evidence/build/base/package.json +1 -0
- package/evals/evidence/build/base/src/index.ts +1 -0
- package/evals/evidence/build/base/src/pricing.ts +22 -0
- package/evals/evidence/build/base/tests/discount.test.ts +6 -0
- package/evals/evidence/build/base/tests/legacy.test.ts +7 -0
- package/evals/evidence/build/base/tests/pricing.test.ts +10 -0
- package/evals/evidence/build/cases/build-broken/after/src/pricing.ts +22 -0
- package/evals/evidence/build/cases/build-broken/case.json +13 -0
- package/evals/evidence/build/cases/fixes-legacy/after/src/pricing.ts +22 -0
- package/evals/evidence/build/cases/fixes-legacy/case.json +11 -0
- package/evals/evidence/build/cases/flaky-test/after/tests/flaky.test.ts +11 -0
- package/evals/evidence/build/cases/flaky-test/case.json +11 -0
- package/evals/evidence/build/cases/good-feature/after/src/index.ts +1 -0
- package/evals/evidence/build/cases/good-feature/after/src/pricing.ts +28 -0
- package/evals/evidence/build/cases/good-feature/after/tests/bulk.test.ts +7 -0
- package/evals/evidence/build/cases/good-feature/case.json +17 -0
- package/evals/evidence/build/cases/new-test-fails/after/src/index.ts +1 -0
- package/evals/evidence/build/cases/new-test-fails/after/src/pricing.ts +27 -0
- package/evals/evidence/build/cases/new-test-fails/after/tests/coupon.test.ts +6 -0
- package/evals/evidence/build/cases/new-test-fails/case.json +19 -0
- package/evals/evidence/build/cases/regression/after/src/pricing.ts +23 -0
- package/evals/evidence/build/cases/regression/case.json +13 -0
- package/evals/evidence/build/cases/test-removed/case.json +14 -0
- package/forgeqe.example.yaml +2 -0
- package/package.json +2 -1
- package/py/forgeqe_engine/browser.py +309 -31
- package/py/forgeqe_engine/browserdoctor.py +255 -0
- package/py/forgeqe_engine/browserlaunch.py +271 -0
- package/py/forgeqe_engine/capture.py +20 -4
- package/py/forgeqe_engine/cli.py +26 -0
- package/py/forgeqe_engine/logins.py +1 -1
- package/py/forgeqe_engine/pwlaunch.mjs +61 -0
- package/py/forgeqe_engine/recordsession.py +1 -1
- package/py/forgeqe_engine/service.py +1 -1
- package/dist/web/assets/Agent-CHliM9aG.js +0 -4
- package/dist/web/assets/ApiTests-DcGDtIjl.js +0 -10
- package/dist/web/assets/Browse-DWZgEdaB.js +0 -1
- package/dist/web/assets/Chat-DVolc6Rs.js +0 -3
- package/dist/web/assets/CommandPalette-CdwjRIsa.js +0 -1
- package/dist/web/assets/Cost-BifpK_Ac.js +0 -1
- package/dist/web/assets/Data-Crk0ef8O.js +0 -6
- package/dist/web/assets/Evidence-EYGofupD.js +0 -1
- package/dist/web/assets/Explore-DtqBRQi7.js +0 -2
- package/dist/web/assets/Features-B_ZtQEtR.js +0 -1
- package/dist/web/assets/Flags-DCLSg8Na.js +0 -2
- package/dist/web/assets/Flaky-HpgrkJIF.js +0 -1
- package/dist/web/assets/ForceGraph-Dm4VEUjO.js +0 -1
- package/dist/web/assets/Impact-CyzbgGih.js +0 -3
- package/dist/web/assets/Jobs-CbTd9csb.js +0 -5
- package/dist/web/assets/KindPage-cfP76U_9.js +0 -6
- package/dist/web/assets/Migration-va16JqtB.js +0 -2
- package/dist/web/assets/Product-D0iY6orX.js +0 -7
- package/dist/web/assets/Production-CBUb6wZJ.js +0 -1
- package/dist/web/assets/Quality-OMhrUKTU.js +0 -1
- package/dist/web/assets/Readiness-B64Rxahv.js +0 -1
- package/dist/web/assets/Record-B_JXq6Dv.js +0 -2
- package/dist/web/assets/Regression-2blJAX7v.js +0 -5
- package/dist/web/assets/Reports-DCgjGdw4.js +0 -2
- package/dist/web/assets/Response-BtMM8nqx.js +0 -4
- package/dist/web/assets/RunDiff-KuUVRuQI.js +0 -1
- package/dist/web/assets/Runs-zHDZ-rSo.js +0 -2
- package/dist/web/assets/TestCases-B1j2Oelt.js +0 -1
- package/dist/web/assets/TestData-CZSynoi-.js +0 -2
- package/dist/web/assets/TestDebt-DEdIBwdb.js +0 -1
- package/dist/web/assets/Tosca-BcuaHsQC.js +0 -2
- package/dist/web/assets/WhatsNew-CjvX6DNo.js +0 -1
- package/dist/web/assets/dataParts-BImZKYEu.js +0 -3
- package/dist/web/assets/frame-eAHxqKfn.js +0 -4
- package/dist/web/assets/index-COTk3Bz-.js +0 -45
- package/dist/web/assets/index-DvuGI8X3.css +0 -2
- package/dist/web/assets/logos-DEPdha9g.js +0 -1
- package/dist/web/assets/parts-CVdJRIxI.js +0 -1
- package/dist/web/assets/productParts-CqY4Zs7J.js +0 -1
- package/dist/web/assets/qualityParts-BcrXEQ9B.js +0 -1
- package/dist/web/assets/thread-Cuvu0HhP.js +0 -5
- package/dist/web/assets/usePageChat-Bz7fuynu.js +0 -1
|
@@ -3017,6 +3017,80 @@ mobile:
|
|
|
3017
3017
|
<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>
|
|
3018
3018
|
</div>
|
|
3019
3019
|
</section>
|
|
3020
|
+
<section class="doc" id="doc-docs-mobile-devices">
|
|
3021
|
+
<h4>Devices</h4>
|
|
3022
|
+
<div class="prose"><p>Say what each device is and where it runs; Settings → Mobile edits all of it. ForgeQE builds what Appium, Maestro and
|
|
3023
|
+
the cloud need from that and the app: the W3C capabilities (<code>platformName</code>, <code>appium:udid</code>, <code>bstack:options</code>,
|
|
3024
|
+
<code>LT:Options</code>, …), the cloud's hub address, Maestro's <code>--device</code>, and TestMu's HyperExecute YAML. Nobody types
|
|
3025
|
+
capabilities.</p>
|
|
3026
|
+
<p>Devices on this computer are in forgeqe.yaml:</p>
|
|
3027
|
+
<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><code>mobile:
|
|
3028
|
+
parallel: 3 # devices at once, here and on the clouds; default: all of them
|
|
3029
|
+
devices:
|
|
3030
|
+
pixel8: # an emulator
|
|
3031
|
+
type: virtual
|
|
3032
|
+
platform: android
|
|
3033
|
+
udid: emulator-5554
|
|
3034
|
+
iphone-sim: # an iOS simulator (XCUITest boots it)
|
|
3035
|
+
type: virtual
|
|
3036
|
+
platform: ios
|
|
3037
|
+
model: iPhone 15
|
|
3038
|
+
os_version: "17.2"
|
|
3039
|
+
</code></pre></div>
|
|
3040
|
+
<p>Devices on TestMu AI or BrowserStack are in that cloud's own file, the one <code>browser.providers</code> links
|
|
3041
|
+
(<code>.forgeqe/testmu.yaml</code>, <code>.forgeqe/browserstack.yaml</code>), beside its browsers and with the same sign-in. Settings →
|
|
3042
|
+
Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices.
|
|
3043
|
+
A file with only mobile devices sets up no browser on that cloud.</p>
|
|
3044
|
+
<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><code># .forgeqe/testmu.yaml
|
|
3045
|
+
provider: testmu
|
|
3046
|
+
remote:
|
|
3047
|
+
username_env: LT_USERNAME # the sign-in, as variable names; values in the credential store
|
|
3048
|
+
access_key_env: LT_ACCESS_KEY
|
|
3049
|
+
mobile:
|
|
3050
|
+
region: us
|
|
3051
|
+
devices:
|
|
3052
|
+
galaxy-s23:
|
|
3053
|
+
type: real # real | virtual (TestMu's emulators and simulators)
|
|
3054
|
+
platform: android
|
|
3055
|
+
model: Galaxy S23
|
|
3056
|
+
os_version: "13"
|
|
3057
|
+
</code></pre></div>
|
|
3058
|
+
<ul>
|
|
3059
|
+
<li><strong>Which devices run.</strong> Every device with <code>enabled</code> on (the default), of the app's platform: an Android workflow
|
|
3060
|
+
skips the iOS devices. <code>--devices pixel8,galaxy</code> (or the agent's <code>devices</code>) names some for one run.</li>
|
|
3061
|
+
<li><strong>At once.</strong> <code>mobile.parallel</code> of them at a time. Devices on this computer running at once get their own driver
|
|
3062
|
+
ports (<code>appium:systemPort</code> 8200+, <code>appium:wdaLocalPort</code> 8100+, <code>appium:mjpegServerPort</code> 9100+) on the one Appium
|
|
3063
|
+
server. On TestMu, <code>mobile.parallel</code> also caps HyperExecute's concurrency.</li>
|
|
3064
|
+
<li><strong>Maestro</strong> runs on each device on this computer, and as one HyperExecute job for TestMu's real devices (and one
|
|
3065
|
+
for its emulators). It does not run on BrowserStack here: replay those with Appium.</li>
|
|
3066
|
+
<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
|
|
3067
|
+
one's result and report, and a failed device's first failed step. The run passes only when every device passes;
|
|
3068
|
+
<code>--junit</code> has one case per device. Each step line and log line names its device (<code>[pixel8] ✓ 3 tap Sign in</code>).</li>
|
|
3069
|
+
<li><strong>The cloud check.</strong> Before a run, ForgeQE asks each cloud whether it has the real devices the run goes on (those of
|
|
3070
|
+
the app's platform; for explore, the first); for one it does not, it offers the most similar (in a terminal) and
|
|
3071
|
+
swaps only that device, this run only. TestMu's list changes through the day (a model's OS versions come and go),
|
|
3072
|
+
so a pipeline that must not stop can list a pattern (<code>os_version: "1[345]"</code>) or a second device.</li>
|
|
3073
|
+
<li><code>explore</code> works through a goal once, on the first device in use.</li>
|
|
3074
|
+
<li><strong>TestMu's emulators and simulators</strong> are a list of their own, which no API gives: <code>type: virtual</code> devices are not
|
|
3075
|
+
checked, and one TestMu does not have is refused at once with where to look (its capabilities generator). An iOS
|
|
3076
|
+
simulator's <code>os_version: "17"</code> is sent as <code>17.0</code>, which TestMu needs. Every TestMu session says <code>w3c: true</code>.</li>
|
|
3077
|
+
<li><strong>iOS alerts</strong> stay until a step closes them: TestMu accepts every iOS alert by default, which closes a success or
|
|
3078
|
+
error alert before a check can read it. A config that sets <code>appium:autoAcceptAlerts</code> or <code>autoDismissAlerts</code> keeps it.
|
|
3079
|
+
iOS's own permission prompts (notifications, location, tracking) are saved under <code>dismiss</code>, like Android's system
|
|
3080
|
+
dialogs, and a replay closes a <code>dismiss</code> dialog that shows as the app starts; where it never shows, nothing fails.</li>
|
|
3081
|
+
<li><strong>iOS real devices</strong> need a device build (<code>.ipa</code> built for iphoneos); a simulator build (<code>.app</code> in a <code>.zip</code>) runs
|
|
3082
|
+
on TestMu's simulators only. TestMu signs an uploaded <code>.ipa</code> for its devices. iOS lists only the controls on screen
|
|
3083
|
+
to the model and to steps (XCUITest also lists ones scrolled out of view).</li>
|
|
3084
|
+
<li><strong>Secrets</strong> a workflow types are checked before a device is taken: one that is not set, or not listed, stops the
|
|
3085
|
+
replay at once.</li>
|
|
3086
|
+
<li><strong>A control re-drawn under a step</strong> (an alert animating in: Appium's "stale element reference") is looked up again,
|
|
3087
|
+
twice at most, besides the step's own <code>retries</code>.</li>
|
|
3088
|
+
<li><code>mobile.appium.capabilities</code> is still added to every session, for the rare setting ForgeQE does not make.</li>
|
|
3089
|
+
</ul>
|
|
3090
|
+
<p>Without <code>mobile.devices</code>, the device is the one <code>mobile.appium</code> (its URL and capabilities) and <code>mobile.maestro</code>
|
|
3091
|
+
(<code>device</code>, <code>testmu</code>) name, as before.</p>
|
|
3092
|
+
</div>
|
|
3093
|
+
</section>
|
|
3020
3094
|
<section class="doc" id="doc-docs-mobile-workflow-yaml-forgeqe-mobile-v1">
|
|
3021
3095
|
<h4>Workflow YAML (<code>forgeqe-mobile-v1</code>)</h4>
|
|
3022
3096
|
<div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>format: forgeqe-mobile-v1
|