@capagents/forgeqe 3.2.5 → 3.2.6

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 (105) hide show
  1. package/HOW_TO_USE.md +9 -5
  2. package/dist/docs-site/docs/architecture-reference/index.html +1 -0
  3. package/dist/docs-site/docs/area-api/index.html +17 -4
  4. package/dist/docs-site/docs/get-started/index.html +7 -4
  5. package/dist/docs-site/docs/overview/index.html +1 -1
  6. package/dist/docs-site/docs/search.js +1 -1
  7. package/dist/docs-site/docs/web-app/index.html +4 -1
  8. package/dist/forgeqe.js +1823 -1816
  9. package/dist/web/assets/{3d-force-graph-D62h_vvb.js → 3d-force-graph-CNVqakzA.js} +1 -1
  10. package/dist/web/assets/{Agent-BadQe1GY.js → Agent-CAp1dIHx.js} +6 -6
  11. package/dist/web/assets/{AgentWork-BGc6uVxB.js → AgentWork-DxO8FN6U.js} +1 -1
  12. package/dist/web/assets/{ApiTests-Bo4ds0wk.js → ApiTests-XQ8wXCBj.js} +8 -8
  13. package/dist/web/assets/Browse-BP1oToo4.js +1 -0
  14. package/dist/web/assets/Chat-DjIdHvHj.js +3 -0
  15. package/dist/web/assets/{CommandPalette-Dl_DibqU.js → CommandPalette-rNWxEO_C.js} +1 -1
  16. package/dist/web/assets/{Compare-Dlzg7S1a.js → Compare-DwUP21-2.js} +1 -1
  17. package/dist/web/assets/{Cost-DRKVox_i.js → Cost-qZ-gGn2T.js} +1 -1
  18. package/dist/web/assets/Data-AlbKk5zW.js +6 -0
  19. package/dist/web/assets/Desktop-yGPlxyBz.js +1 -0
  20. package/dist/web/assets/DesktopReview-BlpxN07L.js +2 -0
  21. package/dist/web/assets/{DeviceScreen-CCDj-wqV.js → DeviceScreen-BQKsJonx.js} +1 -1
  22. package/dist/web/assets/{Evidence-BQmhYE2G.js → Evidence-BCodp0GV.js} +1 -1
  23. package/dist/web/assets/{Explore-CVurlUoU.js → Explore-Ck5EEDy7.js} +2 -2
  24. package/dist/web/assets/{Features-DPc3_RSA.js → Features-BOQomaU8.js} +1 -1
  25. package/dist/web/assets/{Flags-D4d9STIv.js → Flags-DjolLE4S.js} +2 -2
  26. package/dist/web/assets/{Flaky-Dt3iYOZg.js → Flaky-D-xnPfil.js} +1 -1
  27. package/dist/web/assets/{Impact-CKy2Ezzt.js → Impact-CoNLaNwy.js} +3 -3
  28. package/dist/web/assets/Jobs-_kBd2W3F.js +5 -0
  29. package/dist/web/assets/KindPage-DfnkzpPj.js +6 -0
  30. package/dist/web/assets/{LiveDevice-DQNdKoh3.js → LiveDevice-DRAN4Gl4.js} +1 -1
  31. package/dist/web/assets/{Migration-EO--lNV1.js → Migration-PETc1Ckc.js} +5 -5
  32. package/dist/web/assets/Mobile-B193VBXu.js +1 -0
  33. package/dist/web/assets/{Observability-DPjKbwcO.js → Observability-CvdV37XD.js} +1 -1
  34. package/dist/web/assets/PageAgent-BJguufGW.js +1 -0
  35. package/dist/web/assets/{Product-ddlw8A_d.js → Product-Cmgcj9fr.js} +4 -4
  36. package/dist/web/assets/{Production-svTscJhy.js → Production-DM62n03j.js} +1 -1
  37. package/dist/web/assets/{Quality-CgIo3fM8.js → Quality-DbgAAeel.js} +1 -1
  38. package/dist/web/assets/{Readiness-D6s73wXK.js → Readiness-CojmD235.js} +1 -1
  39. package/dist/web/assets/Record-C4VFM97k.js +1 -0
  40. package/dist/web/assets/Regression-5mma_vyD.js +5 -0
  41. package/dist/web/assets/{RelationGraph-BZYcwCVA.js → RelationGraph-bDvvcead.js} +1 -1
  42. package/dist/web/assets/{Reports-CDv_x9iB.js → Reports-BeSrlzKk.js} +2 -2
  43. package/dist/web/assets/Responsive-B4CkMBwF.js +3 -0
  44. package/dist/web/assets/{RunDiff-CO8asgjK.js → RunDiff-DGThx7bk.js} +1 -1
  45. package/dist/web/assets/Settings-IjfPYiuf.js +21 -0
  46. package/dist/web/assets/{Steps-Dn12ePte.js → Steps-BPSNI3aY.js} +1 -1
  47. package/dist/web/assets/{TestCases-CzXHBm5G.js → TestCases-hIuP5BLu.js} +1 -1
  48. package/dist/web/assets/TestData-DpAMEMLP.js +2 -0
  49. package/dist/web/assets/{TestDebt-B1_-OBJe.js → TestDebt-D6UjJCpY.js} +1 -1
  50. package/dist/web/assets/TestManagement-CTWh-aA8.js +4 -0
  51. package/dist/web/assets/{WhatsNew-DLE9LimG.js → WhatsNew-DMDg1zmv.js} +1 -1
  52. package/dist/web/assets/agentSettingsSheet-CUogAKga.js +1 -0
  53. package/dist/web/assets/{dataParts-DAuDeT2W.js → dataParts-s8iIR3Ad.js} +3 -3
  54. package/dist/web/assets/{desktopAppPath-C_bB4dWx.js → desktopAppPath-CnmfVr-s.js} +1 -1
  55. package/dist/web/assets/frame-DNgVKrlp.js +13 -0
  56. package/dist/web/assets/index-BBJ_SKdO.js +56 -0
  57. package/dist/web/assets/index-hysPD6U9.css +2 -0
  58. package/dist/web/assets/input-FbzQKk3L.js +1 -0
  59. package/dist/web/assets/{markdown-Cj6qWQq7.js → markdown-1z66EzBR.js} +1 -1
  60. package/dist/web/assets/pageBack-B6bY6ZUl.js +3 -0
  61. package/dist/web/assets/palette-C5Ok5Zd1.js +1 -0
  62. package/dist/web/assets/paletteCommands-CwHwpVqt.js +1 -0
  63. package/dist/web/assets/{parts-BQWLwMBf.js → parts-Dqq6noWp.js} +1 -1
  64. package/dist/web/assets/{productParts-2Ar8qxlW.js → productParts-DNSo4bn5.js} +1 -1
  65. package/dist/web/assets/qualityParts-kh6SukEP.js +1 -0
  66. package/dist/web/assets/{recordTest-CL1Z2YWn.js → recordTest-BCxsm3gC.js} +1 -1
  67. package/dist/web/assets/sectionList-BlwEtA8S.js +1 -0
  68. package/dist/web/assets/{stepper-p4Pkqn9_.js → stepper-ByKrM1LP.js} +1 -1
  69. package/dist/web/index.html +8 -8
  70. package/docs/ARCHITECTURE_REFERENCE.md +1 -0
  71. package/docs/WEB_APP.md +4 -1
  72. package/docs/user-guide.html +16 -3
  73. package/forgeqe.example.yaml +3 -2
  74. package/llms.example.json +22 -0
  75. package/package.json +1 -1
  76. package/prompts/test-agent.md +0 -2
  77. package/prompts/test-rules.md +3 -8
  78. package/py/forgeqe_desktop/replay.py +46 -1
  79. package/py/forgeqe_desktop/workflow.py +60 -7
  80. package/py/forgeqe_engine/copilot_gateway.py +208 -23
  81. package/py/forgeqe_mobile/maestro.py +3 -0
  82. package/dist/web/assets/Browse-CmVZJZ72.js +0 -1
  83. package/dist/web/assets/Chat-LTtQQHqr.js +0 -3
  84. package/dist/web/assets/Data-c2c1QLI9.js +0 -6
  85. package/dist/web/assets/Desktop-BMLYLWq1.js +0 -1
  86. package/dist/web/assets/DesktopReview-CO0vz-8o.js +0 -2
  87. package/dist/web/assets/Jobs-BZ4zn_7P.js +0 -5
  88. package/dist/web/assets/KindPage-joSX8gyV.js +0 -6
  89. package/dist/web/assets/Mobile-DWGNs3HT.js +0 -1
  90. package/dist/web/assets/PageAgent-h70DL1L7.js +0 -1
  91. package/dist/web/assets/Record-Cmzr-0-f.js +0 -1
  92. package/dist/web/assets/Regression--3mygZAw.js +0 -5
  93. package/dist/web/assets/Responsive-BhRYdJlZ.js +0 -3
  94. package/dist/web/assets/Settings-D3zWorNs.js +0 -21
  95. package/dist/web/assets/TestData-CL9bxSAI.js +0 -2
  96. package/dist/web/assets/TestManagement-MwMgDuO_.js +0 -4
  97. package/dist/web/assets/agents-DPabR9dS.js +0 -1
  98. package/dist/web/assets/frame-DBWtBguh.js +0 -13
  99. package/dist/web/assets/index-ByIauY65.css +0 -2
  100. package/dist/web/assets/index-Tsofflw2.js +0 -57
  101. package/dist/web/assets/input-DX7REka8.js +0 -1
  102. package/dist/web/assets/pageBack-DmmT2q53.js +0 -3
  103. package/dist/web/assets/palette-CtM-T-2Q.js +0 -1
  104. package/dist/web/assets/paletteCommands-BYTeXpSW.js +0 -1
  105. package/dist/web/assets/qualityParts-_Sify8OE.js +0 -1
package/HOW_TO_USE.md CHANGED
@@ -232,7 +232,8 @@ forgeqe features # or /features in the shell; --config forgeqe.yaml
232
232
  | Automated tests | **Flaky test detection and quarantine**: Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees. | `flaky_tests`, `quarantine_tests` | [docs](#flaky-tests) |
233
233
  | Pull requests | **Review pull requests**: Reviews an Azure DevOps or GitHub pull request from the local clone for bugs, security, requirements, and tests, and posts the review once the user agrees. | `review_pull_request`, `post_pr_review` | [docs](#reviewing-pull-requests) |
234
234
  | Pull requests | **Pull request impact and test selection**: Works out which product areas, pages, requirements, and tests a pull request touches, picks the tests it can break, runs them, and posts the impact or results on the pull request once the user agrees. | `analyze_pr_impact`, `select_pr_tests`, `post_pr_test_results`, `comment_on_pr` | [docs](#what-a-pull-request-impacts-in-the-product) |
235
- | API | **API and contract testing**: Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts. | `api_contracts`, `run_api_contracts`, `heal_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests`, `api_find_calls`, `api_new_set`, `api_add_calls`, `api_rename_folder`, `api_move_calls`, `api_delete_set`, `api_sign_in`, `api_import_collection` | [docs](#api-and-contract-tests) |
235
+ | API | **API and contract testing**: Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts. | `api_contracts`, `run_api_contracts`, `heal_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests` | [docs](#api-and-contract-tests) |
236
+ | API | **An API's calls and collections**: Keeps an API's calls as a set on the API tests Workbench: finds an API and its calls, adds calls (from the code, cURL or a description), imports a Postman collection, renames, moves and deletes them, and signs in to the API with a saved login, never a credential on a call. | `api_find_calls`, `api_new_set`, `api_add_calls`, `api_rename_folder`, `api_move_calls`, `api_delete_set`, `api_sign_in`, `api_import_collection` | [docs](#api-and-contract-tests) |
236
237
  | API | **API load and security checks**: Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers. | `run_api_load`, `run_api_security` | [docs](#api-and-contract-tests) |
237
238
  | Quality | **Accessibility and page performance**: Checks every page a run visits against WCAG rules and measures its Core Web Vitals, against budgets, with trends over time per page. | `quality_report`, `quality_trends` | [docs](#accessibility-and-performance-budgets) |
238
239
  | Quality | **Accessibility testing with personas**: A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. | `accessibility_test`, `accessibility_personas` | [docs](#accessibility-testing-with-personas) |
@@ -632,7 +633,7 @@ page). To use one model instead, pick it on **Settings › Models** or with `for
632
633
  **Terminal**
633
634
 
634
635
  ```bash
635
- forgeqe auth login copilot # sign in; ForgeQE then uses auto
636
+ forgeqe auth login copilot # sign in; ForgeQE then uses auto, and adds a copilot-<model> profile per seat model
636
637
  forgeqe auth # the Copilot line shows the sign-in
637
638
  ```
638
639
 
@@ -697,9 +698,12 @@ across), and if those do not get through either, none at all (the browser agent
697
698
  in the run, keeps it for an hour in `~/.forgeqe/copilot/model-health.json`, and then tries full screenshots again. To get
698
699
  full screenshots back, ask IT to allow uploads to that address.
699
700
 
700
- **Behind a company proxy.** ForgeQE reaches Copilot over plain HTTPS. Copilot can use WebSockets for some models, which
701
- many company proxies break, leaving requests unanswered; ForgeQE turns them off, as each request is a new Copilot
702
- session anyway. To turn them on, set `FORGEQE_COPILOT_WEBSOCKETS=1`.
701
+ **Behind a company proxy.** ForgeQE reaches Copilot over WebSockets first. Many company proxies break them, which
702
+ leaves requests unanswered rather than failing, so until WebSockets have answered once on this computer, a request that
703
+ hears nothing from Copilot within 45 seconds (or fails on the connection) is sent again over plain HTTPS, and HTTPS is
704
+ kept: for that ForgeQE and, in `~/.forgeqe/copilot/transport.json`, for a week, before WebSockets are tried again.
705
+ `copilot-gateway.log` says when it switched. Set `FORGEQE_COPILOT_WEBSOCKETS=0` to always use HTTPS, or `=1` to always
706
+ use WebSockets with no fallback.
703
707
 
704
708
  **Choosing the model.** Your seat's models each show whether they take screenshots, their premium requests per call (0
705
709
  is included in your plan) and the profiles that use them.
@@ -666,6 +666,7 @@
666
666
  <tr><td data-label="Profile"><code>openai</code></td><td data-label="Agent runtime provider"><code>openai</code>, <code>baseURL</code> when set</td><td data-label="Model"><code>openai/&lt;model&gt;</code></td></tr>
667
667
  <tr><td data-label="Profile"><code>openai_compatible</code>, <code>ollama</code></td><td data-label="Agent runtime provider"><code>forgeqe</code> via <code>@ai-sdk/openai-compatible</code> and the profile's <code>base_url</code></td><td data-label="Model"><code>forgeqe/&lt;model&gt;</code></td></tr>
668
668
  <tr><td data-label="Profile"><code>github_copilot</code></td><td data-label="Agent runtime provider">the Copilot gateway (<code>python -m forgeqe_engine copilot-gateway</code> on 127.0.0.1) as an <code>openai_compatible</code> profile (<code>engineRoute</code>)</td><td data-label="Model"><code>forgeqe/&lt;model&gt;</code></td></tr>
669
+ <tr><td data-label="Profile"><code>anthropic</code>, <code>gemini</code>, <code>bedrock</code></td><td data-label="Agent runtime provider">read as <code>openai_compatible</code> at the vendor's fixed address (<code>VENDORS</code>, <code>vendorEndpoint</code> in <code>src/llm.ts</code>: api.anthropic.com, generativelanguage.googleapis.com, <code>bedrock-mantle.&lt;region&gt;.api.aws</code>; never llms.json's <code>endpoint</code>, a region only of <code>AWS_REGION</code>'s shape)</td><td data-label="Model"><code>forgeqe/&lt;model&gt;</code></td></tr>
669
670
  </tbody>
670
671
  </table></div>
671
672
  <ul>
@@ -117,17 +117,17 @@
117
117
  </nav>
118
118
  <main id="main" class="docs-main guide chapter-page">
119
119
  <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Browser and tests</p>
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">Features</p><ul><li><a href="../area-browser/index.html#doc-how_to_use-recording-a-web-test-by-hand"><span>Recording a test</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-test-management"><span>Test management</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-regression-packs-for-a-release"><span>Regression packs</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-migrating-a-test-suite"><span>Migrating a suite</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-converting-tosca-tests"><span>Tosca conversion</span></a></li><li><a href="../area-pull-requests/index.html#doc-how_to_use-what-a-pull-request-impacts-in-the-product"><span>Change impact</span></a></li><li><a href="../area-quality/index.html#doc-how_to_use-responsive-preview"><span>Responsive preview</span></a></li><li><a href="../area-test-cases/index.html#doc-how_to_use-basal-business-testing"><span>Business testing (BASAL)</span></a></li><li><a href="../area-operations/index.html#doc-how_to_use-custom-agents"><span>Custom agents</span></a></li><li><a href="../get-started/index.html#doc-how_to_use-evidence-what-an-agent-did-decided-and-used"><span>AI Assurance</span></a></li><li><a href="../using/index.html#doc-how_to_use-the-web-app"><span>Talk and the web app</span></a></li><li><a href="../area-operations/index.html#doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell"><span>Scheduled jobs</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="index.html" aria-current="page"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><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-api-testing">API and contract testing</a></li><li><a href="#doc-how_to_use-end-to-end-api-scenarios">End-to-end API scenarios</a></li><li><a href="#cap-api-load-security">API load and security checks</a></li></ul></nav></details></div>
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">Features</p><ul><li><a href="../area-browser/index.html#doc-how_to_use-recording-a-web-test-by-hand"><span>Recording a test</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-test-management"><span>Test management</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-regression-packs-for-a-release"><span>Regression packs</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-migrating-a-test-suite"><span>Migrating a suite</span></a></li><li><a href="../area-automated-tests/index.html#doc-how_to_use-converting-tosca-tests"><span>Tosca conversion</span></a></li><li><a href="../area-pull-requests/index.html#doc-how_to_use-what-a-pull-request-impacts-in-the-product"><span>Change impact</span></a></li><li><a href="../area-quality/index.html#doc-how_to_use-responsive-preview"><span>Responsive preview</span></a></li><li><a href="../area-test-cases/index.html#doc-how_to_use-basal-business-testing"><span>Business testing (BASAL)</span></a></li><li><a href="../area-operations/index.html#doc-how_to_use-custom-agents"><span>Custom agents</span></a></li><li><a href="../get-started/index.html#doc-how_to_use-evidence-what-an-agent-did-decided-and-used"><span>AI Assurance</span></a></li><li><a href="../using/index.html#doc-how_to_use-the-web-app"><span>Talk and the web app</span></a></li><li><a href="../area-operations/index.html#doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell"><span>Scheduled jobs</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="index.html" aria-current="page"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><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-api-testing">API and contract testing</a></li><li><a href="#doc-how_to_use-end-to-end-api-scenarios">End-to-end API scenarios</a></li><li><a href="#cap-api-calls">An API's calls and collections</a></li><li><a href="#cap-api-load-security">API load and security checks</a></li></ul></nav></details></div>
121
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-api"/></svg>API testing</h1>
122
122
  <p class="guide-lead">Contracts and end-to-end scenarios, without a browser</p>
123
123
  <article class="spec feat" id="cap-api-testing">
124
124
  <div class="hd"><span class="mono">API</span><h3>API and contract testing</h3></div>
125
125
  <p class="ds">Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts.</p>
126
126
  <div class="facts">
127
- <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Turn the last run's API calls into tests</li><li>Test the API in openapi.yaml</li><li>Write API scenario tests for the order lifecycle</li><li>Import our Postman collection and send its calls</li><li>Add these cURL calls to the shop API</li><li>Heal the API contracts from the latest run</li></ul></div>
127
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Turn the last run's API calls into tests</li><li>Test the API in openapi.yaml</li><li>Write API scenario tests for the order lifecycle</li><li>Heal the API contracts from the latest run</li></ul></div>
128
128
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li></ul></div>
129
129
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Calls that change data run only when the user allows them, on a test environment, never production; healing never replays them.</li><li>A contract that fails can be a real defect: healing proposes a new version, and a person decides.</li></ul></div>
130
- <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>heal_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code> <code>api_find_calls</code> <code>api_new_set</code> <code>api_add_calls</code> <code>api_rename_folder</code> <code>api_move_calls</code> <code>api_delete_set</code> <code>api_sign_in</code> <code>api_import_collection</code></p></div>
130
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>heal_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code></p></div>
131
131
  </div>
132
132
 
133
133
  </article>
@@ -468,6 +468,19 @@ DevOps test case's Associated Automation when write-back is on.</li>
468
468
  </div>
469
469
  </section>
470
470
  </div>
471
+ <article class="spec feat" id="cap-api-calls">
472
+ <div class="hd"><span class="mono">API</span><h3>An API's calls and collections</h3></div>
473
+ <p class="ds">Keeps an API's calls as a set on the API tests Workbench: finds an API and its calls, adds calls (from the code, cURL or a description), imports a Postman collection, renames, moves and deletes them, and signs in to the API with a saved login, never a credential on a call.</p>
474
+ <div class="facts">
475
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Import our Postman collection and send its calls</li><li>Add these cURL calls to the shop API</li><li>Delete the old orders API from the Workbench</li><li>Send the shop API calls signed in with the admin login</li></ul></div>
476
+ <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
477
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Calls that change data run only when the user allows them, on a test environment, never production.</li><li>Deleting an API asks the user first.</li></ul></div>
478
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_find_calls</code> <code>api_new_set</code> <code>api_add_calls</code> <code>api_rename_folder</code> <code>api_move_calls</code> <code>api_delete_set</code> <code>api_sign_in</code> <code>api_import_collection</code></p></div>
479
+ </div>
480
+
481
+ </article>
482
+ <div class="feat-detail"><p class="see">See <a href="#doc-how_to_use-api-and-contract-tests">API and contract tests</a>.</p>
483
+ </div>
471
484
  <article class="spec feat" id="cap-api-load-security">
472
485
  <div class="hd"><span class="mono">API</span><h3>API load and security checks</h3></div>
473
486
  <p class="ds">Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers.</p>
@@ -487,7 +500,7 @@ DevOps test case's Associated Automation when write-back is on.</li>
487
500
  <a class="next" href="../area-quality/index.html"><small>Next</small><span>Quality checks</span></a>
488
501
  </nav>
489
502
  </main>
490
- <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-api-testing">API and contract testing</a></li><li><a href="#doc-how_to_use-end-to-end-api-scenarios">End-to-end API scenarios</a></li><li><a href="#cap-api-load-security">API load and security checks</a></li></ul></aside>
503
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-api-testing">API and contract testing</a></li><li><a href="#doc-how_to_use-end-to-end-api-scenarios">End-to-end API scenarios</a></li><li><a href="#cap-api-calls">An API's calls and collections</a></li><li><a href="#cap-api-load-security">API load and security checks</a></li></ul></aside>
491
504
  </div>
492
505
  <footer class="foot">
493
506
  <div class="container foot__row">
@@ -332,7 +332,7 @@ page). To use one model instead, pick it on <strong>Settings › Models</strong>
332
332
  <li>Pick the model. The row then says who is signed in and with which model.</li>
333
333
  </ol>
334
334
  </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
335
- <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 auth login copilot</span><span class="pad"> </span><span class="cm"><span class="h">#</span> sign in; ForgeQE then uses auto
335
+ <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 auth login copilot</span><span class="pad"> </span><span class="cm"><span class="h">#</span> sign in; ForgeQE then uses auto, and adds a copilot-&lt;model&gt; profile per seat model
336
336
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe auth</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the Copilot line shows the sign-in
337
337
  </span></span></code></pre></div>
338
338
  </div></div><p><strong>GitHub Enterprise Cloud</strong> (a <code>ghe.com</code> address, with data residency). In the web app press <strong>Enterprise</strong>; in the
@@ -389,9 +389,12 @@ request carrying a browser screenshot; ForgeQE then sends the next screenshots s
389
389
  across), and if those do not get through either, none at all (the browser agent works from the page's text). It says so
390
390
  in the run, keeps it for an hour in <code>~/.forgeqe/copilot/model-health.json</code>, and then tries full screenshots again. To get
391
391
  full screenshots back, ask IT to allow uploads to that address.</p>
392
- <p><strong>Behind a company proxy.</strong> ForgeQE reaches Copilot over plain HTTPS. Copilot can use WebSockets for some models, which
393
- many company proxies break, leaving requests unanswered; ForgeQE turns them off, as each request is a new Copilot
394
- session anyway. To turn them on, set <code>FORGEQE_COPILOT_WEBSOCKETS=1</code>.</p>
392
+ <p><strong>Behind a company proxy.</strong> ForgeQE reaches Copilot over WebSockets first. Many company proxies break them, which
393
+ leaves requests unanswered rather than failing, so until WebSockets have answered once on this computer, a request that
394
+ hears nothing from Copilot within 45 seconds (or fails on the connection) is sent again over plain HTTPS, and HTTPS is
395
+ kept: for that ForgeQE and, in <code>~/.forgeqe/copilot/transport.json</code>, for a week, before WebSockets are tried again.
396
+ <code>copilot-gateway.log</code> says when it switched. Set <code>FORGEQE_COPILOT_WEBSOCKETS=0</code> to always use HTTPS, or <code>=1</code> to always
397
+ use WebSockets with no fallback.</p>
395
398
  <p><strong>Choosing the model.</strong> Your seat's models each show whether they take screenshots, their premium requests per call (0
396
399
  is included in your plan) and the profiles that use them.</p>
397
400
  <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,7 +167,7 @@ set one up. A run that passes becomes a test in your repository, written by <str
167
167
  <div class="area"><a href="../area-data/index.html" class="area-name"><span class="mono">Data</span></a><ul class="tiles"><li><a href="../area-data/index.html#cap-databases" class="tile"><b>Ask a database in plain language</b><span>Which customers in India have paid orders? Ask the orders database</span></a></li><li><a href="../area-data/index.html#cap-test-data" class="tile"><b>Test data on demand</b><span>Generate test data: 20 customers with 1 to 3 orders each in the shop database</span></a></li><li><a href="../area-data/index.html#cap-data-flows" class="tile"><b>Data flows between systems</b><span>Check that customers from the digital database reach the CRM correctly</span></a></li></ul></div>
168
168
  <div class="area"><a href="../area-automated-tests/index.html" class="area-name"><span class="mono">Automated tests</span></a><ul class="tiles"><li><a href="../area-automated-tests/index.html#cap-write-tests" class="tile"><b>Turn a passed run into an automated test</b><span>Write a Playwright test for that run in ../app</span></a></li><li><a href="../area-automated-tests/index.html#cap-heal-tests" class="tile"><b>Heal failing tests</b><span>Heal the failing tests in ../app</span></a></li><li><a href="../area-automated-tests/index.html#cap-migrate-tests" class="tile"><b>Migrate a test suite</b><span>Migrate the Selenium tests in tests/ to Playwright TypeScript</span></a></li><li><a href="../area-automated-tests/index.html#cap-tosca-convert" class="tile"><b>Convert Tosca test cases</b><span>Convert the Tosca export tosca/checkout.tsu to Playwright TypeScript</span></a></li><li><a href="../area-automated-tests/index.html#cap-find-run-tests" class="tile"><b>Find and run existing tests</b><span>Run the checkout tests</span></a></li><li><a href="../area-automated-tests/index.html#cap-regression-packs" class="tile"><b>Regression packs for a release</b><span>Build a regression pack for sprint 12 and run it on TestMu</span></a></li><li><a href="../area-automated-tests/index.html#cap-flaky-tests" class="tile"><b>Flaky test detection and quarantine</b><span>Which tests are flaky?</span></a></li><li><a href="../area-automated-tests/index.html#cap-run-diff" class="tile"><b>Compare two runs step by step</b><span>It passed yesterday and fails today: why?</span></a></li><li><a href="../area-automated-tests/index.html#cap-test-debt" class="tile"><b>Test debt and coverage gaps</b><span>What has no test?</span></a></li><li><a href="../area-automated-tests/index.html#cap-test-management" class="tile"><b>Test management</b><span>Show the test inventory</span></a></li></ul></div>
169
169
  <div class="area"><a href="../area-pull-requests/index.html" class="area-name"><span class="mono">Pull requests</span></a><ul class="tiles"><li><a href="../area-pull-requests/index.html#cap-pr-review" class="tile"><b>Review pull requests</b><span>Review PR 42 and focus on error handling</span></a></li><li><a href="../area-pull-requests/index.html#cap-pr-impact" class="tile"><b>Pull request impact and test selection</b><span>What does PR 42 impact?</span></a></li></ul></div>
170
- <div class="area"><a href="../area-api/index.html" class="area-name"><span class="mono">API</span></a><ul class="tiles"><li><a href="../area-api/index.html#cap-api-testing" class="tile"><b>API and contract testing</b><span>Turn the last run's API calls into tests</span></a></li><li><a href="../area-api/index.html#cap-api-load-security" class="tile"><b>API load and security checks</b><span>Load test the orders API with 20 users for a minute</span></a></li></ul></div>
170
+ <div class="area"><a href="../area-api/index.html" class="area-name"><span class="mono">API</span></a><ul class="tiles"><li><a href="../area-api/index.html#cap-api-testing" class="tile"><b>API and contract testing</b><span>Turn the last run's API calls into tests</span></a></li><li><a href="../area-api/index.html#cap-api-calls" class="tile"><b>An API's calls and collections</b><span>Import our Postman collection and send its calls</span></a></li><li><a href="../area-api/index.html#cap-api-load-security" class="tile"><b>API load and security checks</b><span>Load test the orders API with 20 users for a minute</span></a></li></ul></div>
171
171
  <div class="area"><a href="../area-quality/index.html" class="area-name"><span class="mono">Quality</span></a><ul class="tiles"><li><a href="../area-quality/index.html#cap-accessibility-performance" class="tile"><b>Accessibility and page performance</b><span>Is the checkout page accessible?</span></a></li><li><a href="../area-quality/index.html#cap-accessibility-personas" class="tile"><b>Accessibility testing with personas</b><span>Act as a blind person and use the website to find accessibility issues</span></a></li><li><a href="../area-quality/index.html#cap-visual-comparison" class="tile"><b>Visual comparison with baselines</b><span>What changed visually since the last run?</span></a></li><li><a href="../area-quality/index.html#cap-defect-intelligence" class="tile"><b>Defect intelligence: trends and prediction</b><span>Which defects keep coming back?</span></a></li><li><a href="../area-quality/index.html#cap-security-smoke" class="tile"><b>Passive security smoke checks</b><span>Any security problems in the last checkout run?</span></a></li><li><a href="../area-quality/index.html#cap-localization-checks" class="tile"><b>Localization checks</b><span>Is the German checkout fully translated?</span></a></li><li><a href="../area-quality/index.html#cap-responsive-check" class="tile"><b>Responsive check</b><span>Does the checkout page work on phones?</span></a></li></ul></div>
172
172
  <div class="area"><a href="../area-release/index.html" class="area-name"><span class="mono">Release</span></a><ul class="tiles"><li><a href="../area-release/index.html#cap-release-readiness" class="tile"><b>Requirement coverage and release readiness</b><span>Are we ready to release?</span></a></li><li><a href="../area-release/index.html#cap-release-verdict" class="tile"><b>One release verdict from everything measured</b><span>Can we ship release-2.3?</span></a></li><li><a href="../area-release/index.html#cap-feature-flags" class="tile"><b>Regression across feature-flag combinations</b><span>Run the release pack across the new-checkout feature flag on and off</span></a></li><li><a href="../area-release/index.html#cap-reports" class="tile"><b>Reports you can share</b><span>Create a release report for all projects</span></a></li></ul></div>
173
173
  <div class="area"><a href="../area-systems/index.html" class="area-name"><span class="mono">Systems</span></a><ul class="tiles"><li><a href="../area-systems/index.html#cap-systems" class="tile"><b>Work with Azure DevOps, Jira, GitHub, and Confluence</b><span>Show the open bugs in this sprint</span></a></li><li><a href="../area-systems/index.html#cap-system-data" class="tile"><b>Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests</b><span>Are there open pull requests in any repository of QI-Claims?</span></a></li></ul></div>