@capagents/forgeqe 2.10.3 → 2.10.5
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 +36 -7
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/docs-site/docs/architecture/index.html +1 -0
- package/dist/docs-site/docs/cost-architecture/index.html +1 -1
- package/dist/docs-site/docs/index.html +91 -14
- package/dist/docs-site/docs/mobile/index.html +38 -2
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +1966 -1808
- package/dist/web/assets/Agent-bSVNDlcU.js +8 -0
- package/dist/web/assets/ApiTests-DOxGgoZC.js +10 -0
- package/dist/web/assets/Browse-CG8jzqR1.js +2 -0
- package/dist/web/assets/Chat-DzufzeGg.js +5 -0
- package/dist/web/assets/CommandPalette-D7ufvlUN.js +1 -0
- package/dist/web/assets/Compare-6vHuAaKv.js +1 -0
- package/dist/web/assets/Cost-DGZ5t-Q_.js +1 -0
- package/dist/web/assets/Data-DqGA1ZtQ.js +6 -0
- package/dist/web/assets/Desktop-CSOFE8cN.js +1 -0
- package/dist/web/assets/DesktopReview-BWtionFH.js +1 -0
- package/dist/web/assets/Evidence-D8pLFcbr.js +1 -0
- package/dist/web/assets/Explore-TtfTWmGW.js +2 -0
- package/dist/web/assets/Features-DazoSiEi.js +1 -0
- package/dist/web/assets/Flags-Brja-ZXF.js +2 -0
- package/dist/web/assets/Flaky-jJlHFFCa.js +1 -0
- package/dist/web/assets/Impact-b60dmhJK.js +3 -0
- package/dist/web/assets/Jobs-Y9W9nBgx.js +5 -0
- package/dist/web/assets/KindPage-Y72w2UwG.js +6 -0
- package/dist/web/assets/Migration-CvIeTB9p.js +2 -0
- package/dist/web/assets/Product-BEe2GyO6.js +7 -0
- package/dist/web/assets/Production-D2qmPFYy.js +1 -0
- package/dist/web/assets/Quality-C4Aak_hw.js +1 -0
- package/dist/web/assets/Readiness-ClXnnmLo.js +1 -0
- package/dist/web/assets/Record-LaLYhQgk.js +2 -0
- package/dist/web/assets/Regression-DKz05MC_.js +5 -0
- package/dist/web/assets/{RelationGraph-D_ZVeOBh.js → RelationGraph-DLeEarQd.js} +1 -1
- package/dist/web/assets/Reports-ClSAzQOh.js +2 -0
- package/dist/web/assets/Response-De60pk_7.js +10 -0
- package/dist/web/assets/RunDiff-0ibEcmI5.js +1 -0
- package/dist/web/assets/Runs-T8yF8Hi0.js +2 -0
- package/dist/web/assets/Steps-CB30w6BA.js +2 -0
- package/dist/web/assets/TestCases-Ba6bUE4i.js +1 -0
- package/dist/web/assets/TestData-DefDzeMW.js +2 -0
- package/dist/web/assets/TestDebt-zohltDHp.js +1 -0
- package/dist/web/assets/Tosca-jAtdiG28.js +3 -0
- package/dist/web/assets/WhatsNew-D7n48IsG.js +1 -0
- package/dist/web/assets/capture.worklet-C2TjBQ56.js +11 -0
- package/dist/web/assets/capture.worklet-UcNywATd.js +1 -0
- package/dist/web/assets/dataParts-CZAcb4L_.js +3 -0
- package/dist/web/assets/{families-zlLgApNV.js → families-D2ygriY6.js} +1 -1
- package/dist/web/assets/filters-CYaF2RvC.js +1 -0
- package/dist/web/assets/fold-BhYvId2X.js +1 -0
- package/dist/web/assets/frame-DeJBYtBX.js +11 -0
- package/dist/web/assets/index-CYlacOTX.css +2 -0
- package/dist/web/assets/index-DXpBYobT.js +67 -0
- package/dist/web/assets/{line-icons-CQ-3V8ax.js → line-icons-DBwNPSmu.js} +1 -1
- package/dist/web/assets/{logos-CMkTgBD8.js → logos-DmK40tlV.js} +1 -1
- package/dist/web/assets/{markdown-nTIj9lyp.js → markdown-Bej6qyls.js} +7 -7
- package/dist/web/assets/paletteCommands-CKBMmhb4.js +1 -0
- package/dist/web/assets/parts-BOpbd90H.js +1 -0
- package/dist/web/assets/{productParts-DK3ULNpv.js → productParts-B3_FGd-T.js} +1 -1
- package/dist/web/assets/qualityParts-B8yJRVpP.js +1 -0
- package/dist/web/assets/{recordTest-CqxnF953.js → recordTest-CZUrGm8I.js} +1 -1
- package/dist/web/assets/rows-BcG6gFCy.js +1 -0
- package/dist/web/assets/segmented-ffWUfF8N.js +1 -0
- package/dist/web/assets/{usePageChat-DWmmQrbC.js → usePageChat-T6vQY_1C.js} +1 -1
- package/dist/web/index.html +6 -6
- package/docs/ARCHITECTURE.md +1 -0
- package/docs/COST_ARCHITECTURE.md +1 -1
- package/docs/MOBILE.md +40 -0
- package/docs/user-guide.html +91 -14
- package/evals/prompts/brain/browser-narrow-with-filters.yaml +20 -0
- package/forgeqe.example.yaml +11 -1
- package/package.json +2 -1
- package/prompts/brain.md +4 -0
- package/prompts/browser-goal-verification.md +2 -0
- package/prompts/refine.md +2 -0
- package/prompts/test-reviewer.md +2 -1
- package/prompts/test-rules.md +3 -0
- package/py/forgeqe_desktop/workflow.py +6 -4
- package/py/forgeqe_engine/capture.py +5 -4
- package/py/forgeqe_engine/diagnostics.py +2 -2
- package/py/forgeqe_engine/lenient_json.py +96 -0
- package/py/forgeqe_engine/llm.py +4 -0
- package/py/forgeqe_engine/network.py +93 -15
- package/py/forgeqe_engine/neutral_log.py +16 -1
- package/py/forgeqe_engine/recordsession.py +79 -1
- package/py/forgeqe_engine/service.py +22 -3
- package/py/forgeqe_mobile/appium_driver.py +9 -0
- package/py/forgeqe_mobile/apps.py +4 -0
- package/py/forgeqe_mobile/maestro.py +3 -0
- package/py/forgeqe_mobile/record.py +610 -0
- package/py/forgeqe_mobile/service.py +37 -7
- package/py/forgeqe_voice/worker.py +121 -0
- package/skills/dotnet-nunit-playwright/SKILL.md +1 -0
- package/skills/playwright-typescript/SKILL.md +1 -1
- package/dist/web/assets/Agent-DyyAZPKr.js +0 -8
- package/dist/web/assets/ApiTests-p_cbulD4.js +0 -10
- package/dist/web/assets/Browse-DOAlK-ox.js +0 -2
- package/dist/web/assets/Chat-BCV5OsEz.js +0 -3
- package/dist/web/assets/CommandPalette-o9PuLas2.js +0 -1
- package/dist/web/assets/Compare-Bf1LhXmj.js +0 -1
- package/dist/web/assets/Cost-r7D19VSG.js +0 -1
- package/dist/web/assets/Data-CRttp4iM.js +0 -6
- package/dist/web/assets/Desktop-DcaKyfKA.js +0 -1
- package/dist/web/assets/DesktopReview-BjplTYfH.js +0 -1
- package/dist/web/assets/Evidence-BAAKcK0h.js +0 -1
- package/dist/web/assets/Explore-D_RZhVAc.js +0 -2
- package/dist/web/assets/Features-B6azjGtN.js +0 -1
- package/dist/web/assets/Flags-BQR4dRaK.js +0 -2
- package/dist/web/assets/Flaky-Ci1bvglt.js +0 -1
- package/dist/web/assets/Impact-CPB7NjQF.js +0 -3
- package/dist/web/assets/Jobs-CR8SxpWA.js +0 -5
- package/dist/web/assets/KindPage-Bl7q-2b8.js +0 -6
- package/dist/web/assets/Migration-BecNlszU.js +0 -2
- package/dist/web/assets/Product-AMUC5arL.js +0 -7
- package/dist/web/assets/Production-CZ-EG3t2.js +0 -1
- package/dist/web/assets/Quality-k2U9v2Dn.js +0 -1
- package/dist/web/assets/Readiness-D3_S6lDT.js +0 -1
- package/dist/web/assets/Record-Ba6XRn7c.js +0 -2
- package/dist/web/assets/Regression-jpkQRkt_.js +0 -5
- package/dist/web/assets/Reports-BHKtb9Oi.js +0 -2
- package/dist/web/assets/Response-CVNWGdun.js +0 -4
- package/dist/web/assets/RunDiff-dbcFibiJ.js +0 -1
- package/dist/web/assets/Runs-ij-80l3A.js +0 -2
- package/dist/web/assets/Steps-BDSeIznj.js +0 -2
- package/dist/web/assets/TestCases-BW8laQ_8.js +0 -1
- package/dist/web/assets/TestData-0f1XzLdc.js +0 -2
- package/dist/web/assets/TestDebt-C-2y3RTV.js +0 -1
- package/dist/web/assets/Tosca-DnfpS6Zf.js +0 -3
- package/dist/web/assets/WhatsNew-C1HUalPw.js +0 -1
- package/dist/web/assets/dataParts-DWD2uUxL.js +0 -3
- package/dist/web/assets/filters-CflRmNDz.js +0 -1
- package/dist/web/assets/fold-o_l3hXTU.js +0 -1
- package/dist/web/assets/frame-CdUL-UeQ.js +0 -4
- package/dist/web/assets/index-BmJOj6t1.js +0 -67
- package/dist/web/assets/index-DP3riJZe.css +0 -2
- package/dist/web/assets/palette-D-wSuihi.js +0 -1
- package/dist/web/assets/parts-C53RxMcR.js +0 -1
- package/dist/web/assets/qualityParts-DS83Q0nG.js +0 -1
- package/dist/web/assets/rows-DYYObxPx.js +0 -1
- package/dist/web/assets/segmented-CAf_qz5Z.js +0 -1
- package/dist/web/assets/thread-Cnjdo5ve.js +0 -5
package/HOW_TO_USE.md
CHANGED
|
@@ -156,7 +156,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
|
|
|
156
156
|
| Test cases | **Business assurance: testing as the business, its customers and its opportunists**: The Business Testing agent: builds a model of how the business works from the product's code (capabilities, processes, the rules the code enforces, record states, personal data), asks business questions rather than functional ones (can a refund exceed what was paid, can a one-time coupon be used twice at once, can a rule on one journey be bypassed on another, can one customer act on another's order), plays them out as multi-persona scenarios through the API and the browser on a test environment, and judges business outcomes rather than HTTP statuses. Findings are classed as confirmed failures, potential risks, policy ambiguities or missing evidence, ranked by business impact, with exposure estimated only from observed breaches and stated assumptions. | `business_assurance` | [docs](#business-assurance) |
|
|
157
157
|
| Setup | **Test environments and their apps**: Knows the test environments in env.yaml (QA, UAT, …) and each one's apps: web apps and APIs by URL, Windows desktop apps, and mobile apps, with what each is for. Every agent works from the active one; switches environment on request, picks the apps a scenario needs, and carries values such as an order number from one app to the next. | `test_apps`, `use_environment` | [docs](#environments-and-apps) |
|
|
158
158
|
| Desktop | **Automate Windows desktop apps**: Carries out a plain-language goal in a Windows thick-client app with UFO² and saves it as a workflow with checks of the outcome, or records the steps a tester does by hand, with no model; replays saved workflows with no model, healing a step whose control moved, and fixes a workflow from chat (a timeout, a wait, a dialog to dismiss) after showing the change. Apps and the secrets they may type come from env.yaml or forgeqe.yaml desktop:. | `desktop_explore`, `desktop_record`, `desktop_replay`, `desktop_edit_workflow`, `desktop_manage` | [docs](#desktop-apps-windows) |
|
|
159
|
-
| Mobile | **Automate Android and iOS apps**: Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome; replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. | `mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload` | [docs](#mobile-apps-android-ios) |
|
|
159
|
+
| Mobile | **Automate Android and iOS apps**: Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome, or records one by hand on the Record page (the device's screen shown there, here or on TestMu AI or BrowserStack, each tap, entry and check done on the device and kept as a step, no model); replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. | `mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload` | [docs](#mobile-apps-android-ios) |
|
|
160
160
|
| Operations | **Services, mocks, workspace and browser in Docker or Podman**: Starts the services a test run needs (a database, a queue, the API under test) in Docker or Podman, as forgeqe.yaml declares them, and waits until each is ready; stops them, and shows their status and logs. Starts mocks of an API on WireMock, from the calls a browser run recorded or from an OpenAPI description, with an optional rules file for conditional responses and fault or latency injection, and can point an API app of the environment at the mock for the session. With containers.workspace, the coding agents' shell commands (build, restore, run) and every test ForgeQE runs go to a container of the project's image; with browser.provider docker, the browser agent, the replay and the coding agent's live browser use Chromium in a container. | `services`, `mock_service` | [docs](#containers-and-mock-services) |
|
|
161
161
|
| Data | **Ask a database in plain language**: Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema through DB-GPT's connectors and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them. | `databases`, `database_schema`, `run_sql` | [docs](#databases) |
|
|
162
162
|
| Data | **Test data on demand**: Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask the DB agent for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch. | `generate_test_data`, `test_data_batches`, `request_test_data` | [docs](#test-data) |
|
|
@@ -170,7 +170,8 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
|
|
|
170
170
|
| 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) |
|
|
171
171
|
| 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) |
|
|
172
172
|
| 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) |
|
|
173
|
-
| 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.
|
|
173
|
+
| 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_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
|
|
174
|
+
| 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) |
|
|
174
175
|
| Quality | **Accessibility and page performance**: Checks every page a run visits against WCAG rules (axe-core) and measures its Core Web Vitals, against budgets, with trends over time per page. | `quality_report`, `quality_trends` | [docs](#accessibility-and-performance-budgets) |
|
|
175
176
|
| 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) |
|
|
176
177
|
| Quality | **Visual comparison with baselines**: Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees. | `visual_compare`, `visual_approve` | [docs](#visual-comparison) |
|
|
@@ -197,7 +198,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
|
|
|
197
198
|
| Setup | **Product knowledge from the product's repositories**: Reads every repository of the product, and its documents and links (folders, docs sites, API descriptions, Confluence, and the pages ForgeQE remembers of the apps), into one knowledge graph: its services, HTTP endpoints, database tables, classes, files, documents, and tests, and how they connect, across repositories (the web app's call to the API endpoint it reaches, the code that reads or writes a table). The configured model (a GitHub Copilot seat or any llms.json profile) then writes what each part does and the product's business domains, flows, rules, glossary and roles, as a graph and as pages. Agents search it by requirement, follow a flow step by step to its code, and see what a change reaches and which tests cover it. | `product_knowledge` | [docs](#product-knowledge-graph) |
|
|
198
199
|
| Setup | **The Knowledge agent: what ForgeQE understood, and your corrections**: Says what ForgeQE has understood about the product from its knowledge notes, documents, skills, the team's prompts and the product graph, citing each source. A correction in your words becomes changes: a section of a knowledge note or a project skill, a team prompt, or Right/Wrong with what is right on a business rule, journey, capability or term of the graph. Where two sources disagree it asks which is right. Each change is shown as a diff and written only when a person approves it. | `knowledge_agent` | [docs](#the-knowledge-agent) |
|
|
199
200
|
| Setup | **Search the project's documents, without vectors**: Finds the passages of the project's documents that answer a question: the team's notes, the documents added in Settings, the folders of product.docs and of rag.documents (Markdown, text, HTML, and PDF, Word and Excel once indexed). No vector database or embedding model: each document is read as a tree of its sections, ranked by keywords, and the Document reader picks the sections that answer from their outline. Each passage says its file, line and headings. | `search_documents` | [docs](#searching-your-documents-without-vectors) |
|
|
200
|
-
| Setup | **Setup, skills, and documentation**: Shows the model profiles and MCP servers, installs or repairs the browser engine, creates a forgeqe.yaml, manages skills, and answers any question about ForgeQE from its documentation, this list, and its own code (the prompts, skills, and source it runs). | `forgeqe_setup`, `capabilities`, `playbook`, `use_capabilities` | [docs](#2-scaffold-config) |
|
|
201
|
+
| Setup | **Setup, skills, and documentation**: Shows the model profiles and MCP servers, installs or repairs the browser engine, creates a forgeqe.yaml, manages skills, and answers any question about ForgeQE from its documentation, this list, and its own code (the prompts, skills, and source it runs). | `forgeqe_setup`, `capabilities`, `playbook`, `use_capabilities`, `app_action` | [docs](#2-scaffold-config) |
|
|
201
202
|
|
|
202
203
|
Not supported: Load, stress, or soak testing with many simultaneous users (instead: per-page Core Web Vitals with budgets); Penetration testing or dynamic security scanning (instead: security findings in pull request reviews).
|
|
203
204
|
<!-- capabilities:end -->
|
|
@@ -1529,6 +1530,21 @@ forgeqe web --no-open # only print the address
|
|
|
1529
1530
|
The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same
|
|
1530
1531
|
as `forgeqe init`), what this computer needs, and a model. See [docs/WEB_APP.md](docs/WEB_APP.md) for every page.
|
|
1531
1532
|
|
|
1533
|
+
**Talk to it.** Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a spoken
|
|
1534
|
+
conversation with ForgeQE that goes on as you move between pages. In a chat or on Home, what you say goes into the
|
|
1535
|
+
message box, where you change it or Refine it, then send it with Send or by saying "send it" (turn on Send when I pause
|
|
1536
|
+
in the Talk note to send at each pause instead); on Home it starts the chat, and Talk carries on there. On any other
|
|
1537
|
+
page, a pause sends what you said to Talk's chat at once. ForgeQE acts in the app as you ask, like a voice agent with
|
|
1538
|
+
tools: "open model settings", "show me the last run", "what failed yesterday? open it", "search for TestMu", "go back";
|
|
1539
|
+
a short "open …" that names a page is done at once, anything else goes to ForgeQE's agent, which opens what it found
|
|
1540
|
+
(its app_action tool; the page opens only what the app has). The reply is read aloud as it arrives, a paragraph at a
|
|
1541
|
+
time (code, tables, links and its sources stay on the screen), and
|
|
1542
|
+
talking over it stops it and listens. It all runs on this computer with free, open-source models, so nothing you say
|
|
1543
|
+
leaves it: Whisper (faster-whisper) writes down what you said and Kokoro reads replies, in a voice you pick. The first
|
|
1544
|
+
time, Talk asks before downloading them, about 750 MB into `~/.forgeqe/voice` (or run `forgeqe voice setup`; `forgeqe
|
|
1545
|
+
voice status` says whether it is ready). Talk never answers for you: when the chat asks a question or waits for an
|
|
1546
|
+
approval, it says so and stops listening until you answer with a click. The browser asks once for the microphone.
|
|
1547
|
+
|
|
1532
1548
|
**Found a problem in ForgeQE itself?** Settings › Report a problem. ForgeQE picks the recent session that went wrong
|
|
1533
1549
|
and reads its log for what was run and ForgeQE's own errors; the bug reporter (`forgeqe-bug-report`) drafts the bug from
|
|
1534
1550
|
that and asks only what it cannot find, usually what you expected. You edit it, keep or untick what is attached (that
|
|
@@ -2336,7 +2352,7 @@ A job can run it on a schedule: `jobs add` with `["flags", "run", …]`.
|
|
|
2336
2352
|
|
|
2337
2353
|
ForgeQE tests APIs directly too: REST, GraphQL (queries, mutations and subscriptions), SOAP, gRPC (unary and streaming), WebSocket and Server-Sent Events. API tests check the same logic as UI tests in a fraction of the time, and they do not break when the page changes. Contracts come from two places:
|
|
2338
2354
|
|
|
2339
|
-
- **A browser run.** Every browser run
|
|
2355
|
+
- **A browser run, a recording, or its latest try.** Every browser run, every recording you make by hand, and the latest **Try it** of a recording record the application's own API calls (XHR, fetch, event streams) in `network.json` in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: `Authorization`, cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Only a few headers are kept (content type, accept, SOAP action); `api.keep_headers` adds others your API needs, such as `X-Tenant`, which the contracts' example calls then send too. A header that can carry a credential (`Authorization`, `Cookie`, or one named like a token, key, auth or session) is refused there. Analytics and monitoring calls are left out. "Turn the last run's API calls into tests" (`api_contracts` from `run`) groups the calls into operations: one per method and path, with ids in paths turned into `{id}` (`GET /api/orders/{id}`), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used.
|
|
2340
2356
|
- **An API description,** by link or file: OpenAPI 3 or Swagger 2 (JSON or YAML, or the Swagger UI page, which ForgeQE looks behind for the document), WSDL for SOAP, a GraphQL endpoint (read by introspection) or an SDL or introspection file, `.proto` files, or `grpc://host:port` for a gRPC server with reflection (through [grpcurl](https://github.com/fullstorydev/grpcurl)); client, server and bidi streaming rpcs become streaming contracts, and a GraphQL subscription becomes a `graphql-transport-ws` WebSocket contract. Each operation gets an example call from the description's examples; values it gives no example for are made up and the contract is marked as needing real values.
|
|
2341
2357
|
|
|
2342
2358
|
Each contract has one example call and what its answer must have: the **status**, the **content type**, the body's **schema**, and **key fields** (ids, statuses, names, totals: present, with their type; a value only where it does not change between calls, like a status). GraphQL answers must have no `errors`; SOAP answers no `Fault` and the expected elements; gRPC calls the OK status. Contract sets are saved in `.forgeqe/reports/api/<id>/`: `contracts.json` (edit the examples freely, e.g. to give real ids) and `api.md`.
|
|
@@ -2344,7 +2360,11 @@ Each contract has one example call and what its answer must have: the **status**
|
|
|
2344
2360
|
Then:
|
|
2345
2361
|
|
|
2346
2362
|
- **Run them now** (`run_api_contracts`, or `forgeqe api run`): ForgeQE makes each call and checks the answer, without a browser or a model. Calls that change data (POST, PUT, PATCH, DELETE, mutations, SOAP and gRPC calls not named like reads) are left out unless you allow them, on a test environment; the agent asks first. Calls with made-up values are skipped until you give real ones. Results go to `results.json` and `junit.xml`, with `report.html` (each contract a case, its checks the steps, with what the API answered) and `suite.json` beside them; a 401 or 403 says which header the call needs.
|
|
2363
|
+
- **Calls the site's bot protection blocks.** A site behind Cloudflare, Akamai, Imperva, DataDome or a similar service can answer a call that does not come from a browser with a challenge or block page (a 403, 429 or 503 with the service's marks, or HTML where the API answers JSON). ForgeQE tells that apart from the API's own refusal (a JSON 403 is the API's answer) and, with `api.browser_fallback` on (the default), sends a call that only reads again from a page of a real browser on the API's own site: the page loads first, so a challenge can set its cookie, and the call is made with `fetch()` in a part of the page the site's own scripts cannot see, so they never read its credentials. The result says "sent from a browser page". A call that changes data is never sent again. Contract runs, scenarios, healing and the API page's **Send** use it (the page says "Sent from a browser page" by the answer; `forgeqe web` keeps that browser for two minutes after the last blocked call); load tests and security checks never do. Turned off, a blocked call fails with "blocked" and the reason.
|
|
2347
2364
|
- **Write them as tests** (`write_api_tests`, or `forgeqe api tests`): Scribe writes them in the repository's own framework and HTTP client (Playwright's `request` fixture, pytest with requests, REST Assured, RestSharp or HttpClient, supertest...) with the base URL from configuration and credentials from environment variables, and ForgeQE runs them until they pass.
|
|
2365
|
+
- **Heal them when the app changed** (`heal_api_contracts`, or `forgeqe api heal [SET] --run RUN`): run the flow again in the browser, and ForgeQE runs the set's read-only calls, learns each one that fails again from the newer run (the same operation with a new answer, or the one call of the same method and step that moved, like `/api/v1/orders/{id}` to `/api/v2/orders/{id}`), and replays it. Only a version whose replay passes is offered, with what changed (path, status, fields now required or gone), and the set changes only when you agree (`--yes` in a terminal); the old `contracts.json` is kept in `history/`, and scenarios that still make the old call are named. A contract that fails can be a real defect, so nothing is changed on its own. Calls that change data are never replayed, contracts from a description are fixed in the description, and another site's call is never taken.
|
|
2366
|
+
|
|
2367
|
+
**Learning what the caller chooses.** One run cannot tell `/domains/github.com` from a fixed path. Give `api_contracts` other runs of the same flow (other data, another user: `compare_runs`, or `forgeqe api contracts --run RUN --compare RUN2,RUN3`) and the calls made in the same step, with the same method and the same number of path segments, are compared: a segment that differed becomes a parameter named for the segment before it (`GET /domains/{domain}`), when the first segment is the same, no more than half of them differ, and the answers have the same shape, so two endpoints are not made one. Each contract lists its **inputs** in `contracts.json`, `api.md` and on the API page (under the call's request, with a note when a call was learned again by healing): its path parameters, and the query keys and body fields whose values differed between calls (names only, never values). The example stays a real call, so it runs as it is.
|
|
2348
2368
|
|
|
2349
2369
|
Credentials for API calls go in `forgeqe.yaml`, as references to environment variables; the values are sent, never stored or shown to a model:
|
|
2350
2370
|
|
|
@@ -2356,6 +2376,8 @@ api:
|
|
|
2356
2376
|
Authorization: Bearer ${API_TOKEN}
|
|
2357
2377
|
X-Tenant: ${API_TENANT}
|
|
2358
2378
|
third_party: false # keep calls to other sites than the page's (sign-in providers, CDNs)
|
|
2379
|
+
keep_headers: [X-Tenant] # more headers to keep on captured calls, and to send in the calls made from them
|
|
2380
|
+
browser_fallback: true # a read-only call the site's bot protection blocks is sent again from a browser page
|
|
2359
2381
|
timeout_seconds: 30
|
|
2360
2382
|
oauth2: # a bearer token fetched with the client-credentials grant (sent unless a call has its own Authorization)
|
|
2361
2383
|
token_url: https://login.shop.example/oauth2/token
|
|
@@ -2824,7 +2846,7 @@ More of managing test cases, each set in `forgeqe.yaml` (and Settings › Integr
|
|
|
2824
2846
|
- **Fields on new cases.** `new_cases` gives every new case a priority, tags or labels, and in Azure DevOps a state: `state: Design` makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags.
|
|
2825
2847
|
- **Shared steps and data.** `sources.azure_devops.shared_steps` lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters (`@user`) and a data table.
|
|
2826
2848
|
- **Cases left behind by a story change.** `story_test_cases` reads the story's history and marks the linked cases last changed before its title, description or acceptance criteria were (stale), with what changed. The agent offers to update each one the change affects, or to retire one that tests behaviour the story no longer has.
|
|
2827
|
-
- **Retiring a case.** `retire_test_case` asks first, then closes it (Azure DevOps `retire_state
|
|
2849
|
+
- **Retiring a case.** `retire_test_case` asks first, then closes it (Azure DevOps `retire_state`; by default a state the project itself calls done, so a workflow that ends in *Verified* or *Shipped* needs no setting) or labels it (Jira `retire_label`, default obsolete), with the reason. Nothing is deleted, and retired cases are not offered for reuse.
|
|
2828
2850
|
- **Duplicates before saving.** `check_test_cases` with `against` (a story) compares the cases with the story's linked cases and its scope: the same steps is a duplicate naming the existing case, more steps or a close title an overlap.
|
|
2829
2851
|
- **Cases with no story.** Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, compared with that area's or project's scope.
|
|
2830
2852
|
- **The feature's other stories.** `sibling_cases: true` also compares with the cases of the other stories under the story's feature or epic (the first 30 stories; in Jira, the parent field Jira Cloud uses for epics).
|
|
@@ -3219,7 +3241,13 @@ with no panel in it, only a small "Recording" badge that takes no click. **Pause
|
|
|
3219
3241
|
Record page (and on the keys: Ctrl+Shift+Space, then P, Z or S). After each step the recorder keeps a picture of the
|
|
3220
3242
|
page and what it showed (`steps/NNN.jpg` and `.json` in the run folder; the badge is left out of the picture, and an
|
|
3221
3243
|
address keeps no query, where a form sent by GET puts what was typed), and the calls the page made to its own site
|
|
3222
|
-
that change data or fail (method, path and status only)
|
|
3244
|
+
that change data or fail (method, path and status only), for checks in the review. With `api.capture` on (the
|
|
3245
|
+
default), it also keeps the application's API calls in full in `network.json`, as a browser run does, each with the
|
|
3246
|
+
step it came after: the request and response bodies for API tests, with credentials in headers dropped, fields named
|
|
3247
|
+
like a password, token, key or session redacted, and every saved login's username and password replaced wherever they
|
|
3248
|
+
appear. Nothing is kept while the recording is paused. A value you make a secret in the review is taken out of
|
|
3249
|
+
`network.json` too (a contract set made from it before keeps its copy: make the set again). When you stop, you review
|
|
3250
|
+
the recording with clicks.
|
|
3223
3251
|
|
|
3224
3252
|
The review starts with the steps and **Write the test**; everything else is under **More**. ForgeQE has already made
|
|
3225
3253
|
the choices most recordings need, as one version you can undo: an email typed where an account is made is new on each
|
|
@@ -3241,7 +3269,7 @@ so: **Use the block** marks them as the block.
|
|
|
3241
3269
|
| Test data | Each typed value: as typed, test data, new on each run (`ann+{{$unique}}@shop.test`), or a secret read from the environment, its typed text removed from the recording, its pictures and every kept version |
|
|
3242
3270
|
| Blocks | Keep steps you do in many tests (Sign in) as a block, `.forgeqe/blocks/<name>.yaml`; put a block in after a step. Blocks go into the repository, so the team shares them (the review says when `.gitignore` leaves them out). A block holds only steps done by hand: a block file with a step that runs JavaScript, calls an API or uploads a file is ignored |
|
|
3243
3271
|
| History | Every change is a version: go back to any of them, or to the recording as recorded |
|
|
3244
|
-
| Try it | Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of `env.yaml` (the same web app's address there), with the test data as recorded or other values |
|
|
3272
|
+
| Try it | Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of `env.yaml` (the same web app's address there), with the test data as recorded or other values. With `api.capture` on (the default) it keeps the application's API calls of the latest try in `tries/network.json`, cleaned as a recording's are; **API tests from its calls** opens the API page with that try picked and the recording to compare with, so values that differ between them become the calls' inputs |
|
|
3245
3273
|
|
|
3246
3274
|
**Start from a block** (More options on the Record page): the recording opens the block's first page and does its
|
|
3247
3275
|
steps for you in the same tab, the recorder paused meanwhile; then you record the rest. A step that cannot be done (a
|
|
@@ -3291,6 +3319,7 @@ ask for a goal in the app ("sign in to the courier app and accept the first deli
|
|
|
3291
3319
|
on your device or emulator and saves a workflow with checks of the outcome. The same from the command line:
|
|
3292
3320
|
|
|
3293
3321
|
```bash
|
|
3322
|
+
forgeqe mobile setup # Appium and its drivers here, pinned (once); runs start it themselves
|
|
3294
3323
|
forgeqe mobile doctor # does the Appium server answer, is maestro installed?
|
|
3295
3324
|
forgeqe mobile explore "Sign in and accept the first delivery" --app courier
|
|
3296
3325
|
forgeqe mobile replay <run folder>/workflow.yaml # on Appium (mobile.driver), healing moved controls
|
package/README.md
CHANGED
|
@@ -389,7 +389,7 @@ For single sign-on, captchas, or security keys, sign in by hand once: `forgeqe l
|
|
|
389
389
|
|
|
390
390
|
## Azure DevOps, Jira, and other systems
|
|
391
391
|
|
|
392
|
-
ForgeQE's agent connects to each system's MCP server, configured from the same `sources:` settings in `forgeqe.yaml`: organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls.
|
|
392
|
+
ForgeQE's agent connects to each system's MCP server, configured from the same `sources:` settings in `forgeqe.yaml`: organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls. A chat starts none of them: a server starts the first time a request needs its tools ("Connecting to Azure DevOps MCP…") and stays for the rest of that chat. A server whose tools ForgeQE could not list starts with the chat, as before.
|
|
393
393
|
|
|
394
394
|
| System | MCP server | Needs |
|
|
395
395
|
|--------|------------|-------|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -71,6 +71,7 @@ ForgeQE downloads these onto the machine it runs on, from their own sources, whe
|
|
|
71
71
|
| uv and Python | the browser engine's interpreter (src/engine/setup.ts) | MIT or Apache-2.0; PSF | https://github.com/astral-sh/uv |
|
|
72
72
|
| browser-use, Playwright, PyYAML, azure-identity, github-copilot-sdk, truststore | the browser engine's libraries and Chromium (src/engine/setup.ts) | MIT; Apache-2.0; MIT; MIT; MIT; MIT | https://pypi.org |
|
|
73
73
|
| Graphify (graphifyy), its tree-sitter grammars, NetworkX, NumPy, RapidFuzz, PyYAML, pypdf, python-docx, openpyxl, markdownify | reads the product's code structure, and PDF, Word and Excel documents, for the knowledge graph, in its own environment (src/product/graphify.ts) | Apache-2.0; MIT; BSD-3-Clause; BSD-3-Clause; MIT; MIT; BSD-3-Clause; MIT; MIT; MIT | https://github.com/Graphify-Labs/graphify |
|
|
74
|
+
| faster-whisper, CTranslate2, PyAV, tokenizers, huggingface_hub, kokoro-onnx, ONNX Runtime, NumPy, phonemizer and eSpeak NG (espeakng-loader); the Whisper base and Kokoro-82M models | Talk mode's speech on this computer, set up only when a person asks for it, in its own environment (src/voice/setup.ts) | MIT; MIT; BSD-3-Clause; Apache-2.0; Apache-2.0; MIT; MIT; BSD-3-Clause; GPL-3.0 and GPL-3.0 (run as separate programs, never linked into ForgeQE); MIT and Apache-2.0 | https://github.com/SYSTRAN/faster-whisper, https://github.com/thewh1teagle/kokoro-onnx |
|
|
74
75
|
| GitHub Copilot CLI and its runtime | the runtime downloaded by GitHub's Copilot SDK for github_copilot profiles (src/copilot.ts), and the CLI for the browser sign-in (src/auth/copilotLogin.ts) | GitHub Copilot CLI license (GitHub) | https://github.com/github/copilot-cli |
|
|
75
76
|
|
|
76
77
|
## Source code included unchanged
|
|
@@ -286,6 +286,7 @@
|
|
|
286
286
|
<tr><td><code>mcp/scope.ts</code></td><td><code>CapabilityScope</code>, one per agent session. <code>beginTurn(text)</code> picks the turn's capabilities and returns the per-prompt <code>tools</code> switches (<code>forgeqe_&lt;tool>: true|false</code>). The picks are: the core (<code>setup-help</code>, <code>test-apps</code>), <code>agent.capabilities.always</code>, the ones <code>use_capabilities</code> asked for, those used in the last <code>STICKY_TURNS</code> (3) turns, and up to <code>MAX_PICKED</code> (4) from <code>scoreRequest</code>. <code>scoreRequest</code> makes no model call: it matches keywords and tool names, URLs (the browser), issue keys (test cases), and the names of the active environment's apps (by kind). A capability whose required apps or system are missing (<code>usableCapabilities</code>) is not picked from words alone, and nothing is picked from <code>agent.capabilities.off</code>. When nothing matches, <code>browser-goals</code> is the fallback. <code>request</code> (from <code>use_capabilities</code>) refuses unknown and switched-off ids and queues the added ones in <code>takePending</code>. <code>listedTools</code> is the list for MCP clients. <code>capabilityIndex</code> is the short list of capabilities in the agent's prompt. Other MCP servers' <code>ToolGroup</code>s are switched the same way: <code>always</code> ones every turn, a group whose keywords match the request as whole words (they do not count against <code>MAX_PICKED</code>; when the request names a system, by a group's <code>system</code> words such as "github" or "azure devops", only that system's groups), the ones <code>use_capabilities</code> asked for, and one whose tool ran in the last turns (<code>used</code> takes the runtime name, from <code>onToolResult</code>). <code>toggles</code> adds a switch per tool of each group; opencode applies a prompt's <code>tools</code> to MCP tools by name, so a switched-off group's definitions are not sent (tests/brain-groups.e2e.test.ts)</td></tr>
|
|
287
287
|
<tr><td><code>mcp/discover.ts</code></td><td><code>discoverTools</code> asks every server for its tools (initialize, tools/list) as the runtime starts it: a local command through <code>spawnPlan</code> (an argument list; cmd.exe quoting on Windows) with its <code>{env:}</code> values filled in and ForgeQE's private variables left out, or a remote address (streamable HTTP, JSON or SSE). The list is kept in <code>~/.forgeqe/cache/mcp-tools/&lt;hash>.json</code> (mode 0600) for <code>LIST_TTL_MS</code> (a week); the hash is of what the server runs and the names of its variables, never a value or the server's name. <code>serverGroups</code> groups each list; a server that does not answer is left out, so its tools stay on</td></tr>
|
|
288
288
|
<tr><td><code>mcp/toolgroups.ts</code></td><td><code>groupTools</code> makes a server's groups from its tool names alone. Words of a name are split (snake and camel case), made singular, and verbs and fillers dropped; two words that only ever come together are one ("pull request"). A server whose tools mostly share a first word is split by it; otherwise, and for a prefix group over <code>MAX_GROUP</code> tools or <code>MAX_GROUP_TOKENS</code>, each tool goes to the rarest word at least 3 of them share, then the rest to words 2 share, the remainder to a catch-all whose keywords are its members' words. Keywords are the group's word or phrase, phrases from its names, plurals, and <code>SPELLED</code> (wit: work item); broad words (<code>WEAK</code>) are never one alone. A server under <code>SMALL_SERVER_TOKENS</code> is one group, always on. <code>ServerHints</code> only add titles, keywords and the always-on groups (<code>mcp/adogroups.ts</code> for Azure DevOps)</td></tr>
|
|
289
|
+
<tr><td><code>mcp/lazy.ts</code></td><td>Other systems' servers started only when a turn needs them. <code>deferrable</code> names the servers with tool groups; <code>openBrain</code> gives the runtime their entries with <code>enabled: false</code> (<code>deferredConfig</code>), so a chat starts none of them and signs in nowhere. <code>ServerStarter.ensure</code> runs after <code>beginTurn</code> and after <code>use_capabilities</code> added groups: each server whose group is on (<code>serverOfGroup</code>: the server that prefixes all its tools) is started once through the runtime (<code>connectMcp</code>, <code>client.mcp.connect</code>; the runtime restarts a server asked twice), with "Connecting to …" and connected or why not (<code>statusWhy</code>, one line). A failed one is not asked again in that chat. A server without groups (not listed, or <code>FORGEQE_TOOL_SCOPE=off</code>) starts with the chat, as its tools are on every turn</td></tr>
|
|
289
290
|
<tr><td><code>mcp/captools.ts</code></td><td><code>use_capabilities</code>: adds capabilities for the rest of the session</td></tr>
|
|
290
291
|
<tr><td><code>mcp/routing.ts</code></td><td><code>createRouter</code> passes every ForgeQE tool that runs to <code>scope.used</code></td></tr>
|
|
291
292
|
<tr><td><code>brain/index.ts</code></td><td><code>ask</code> starts each turn with <code>beginTurn</code> and prompts with its switches. When <code>use_capabilities</code> added capabilities during the turn, it continues the same request with them, at most <code>MAX_SCOPE_CONTINUATIONS</code> (2) times. <code>FORGEQE_TOOL_SCOPE=off</code> turns the scope off</td></tr>
|
|
@@ -436,7 +436,7 @@ same request.</li>
|
|
|
436
436
|
<tr><td>The forgeqe agent's fixed context (prompt 6.2K + core tools 1.6K)</td><td>7.8K of a 10K budget</td></tr>
|
|
437
437
|
<tr><td>A turn with the four largest capabilities</td><td>14.7K</td></tr>
|
|
438
438
|
<tr><td>Every tool on every turn (<code>FORGEQE_TOOL_SCOPE=off</code>)</td><td>about 26.7K</td></tr>
|
|
439
|
-
<tr><td>Largest single capability (<code>api-testing</code>, <code>systems</code>)</td><td>
|
|
439
|
+
<tr><td>Largest single capability (<code>api-testing</code>, <code>systems</code>)</td><td>2.2K of a 2.5K budget per capability</td></tr>
|
|
440
440
|
</tbody>
|
|
441
441
|
</table></div>
|
|
442
442
|
<p>A typical turn ("replay the courier login on Maestro") adds one or two capabilities, around 1–3K. Beyond
|
|
@@ -159,7 +159,7 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
|
|
|
159
159
|
<div class="area"><a href="#area-data" class="area-name"><span class="mono">Data</span></a><ul class="tiles"><li><a href="#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="#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="#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>
|
|
160
160
|
<div class="area"><a href="#area-automated-tests" class="area-name"><span class="mono">Automated tests</span></a><ul class="tiles"><li><a href="#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="#cap-heal-tests" class="tile"><b>Heal failing tests</b><span>Heal the failing tests in ../app</span></a></li><li><a href="#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="#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="#cap-find-run-tests" class="tile"><b>Find and run existing tests</b><span>Run the checkout tests</span></a></li><li><a href="#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="#cap-flaky-tests" class="tile"><b>Flaky test detection and quarantine</b><span>Which tests are flaky?</span></a></li><li><a href="#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="#cap-test-debt" class="tile"><b>Test debt and coverage gaps</b><span>What has no test?</span></a></li></ul></div>
|
|
161
161
|
<div class="area"><a href="#area-pull-requests" class="area-name"><span class="mono">Pull requests</span></a><ul class="tiles"><li><a href="#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="#cap-pr-impact" class="tile"><b>Pull request impact and test selection</b><span>What does PR 42 impact?</span></a></li></ul></div>
|
|
162
|
-
<div class="area"><a href="#area-api" class="area-name"><span class="mono">API</span></a><ul class="tiles"><li><a href="#cap-api-testing" class="tile"><b>API and contract testing</b><span>Turn the last run's API calls into tests</span></a></li></ul></div>
|
|
162
|
+
<div class="area"><a href="#area-api" class="area-name"><span class="mono">API</span></a><ul class="tiles"><li><a href="#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="#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>
|
|
163
163
|
<div class="area"><a href="#area-quality" class="area-name"><span class="mono">Quality</span></a><ul class="tiles"><li><a href="#cap-accessibility-performance" class="tile"><b>Accessibility and page performance</b><span>Is the checkout page accessible?</span></a></li><li><a href="#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="#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="#cap-defect-intelligence" class="tile"><b>Defect intelligence: trends and prediction</b><span>Which defects keep coming back?</span></a></li><li><a href="#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="#cap-localization-checks" class="tile"><b>Localization checks</b><span>Is the German checkout fully translated?</span></a></li></ul></div>
|
|
164
164
|
<div class="area"><a href="#area-release" class="area-name"><span class="mono">Release</span></a><ul class="tiles"><li><a href="#cap-release-readiness" class="tile"><b>Requirement coverage and release readiness</b><span>Are we ready to release?</span></a></li><li><a href="#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="#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="#cap-reports" class="tile"><b>Reports you can share</b><span>Create a release report for all projects</span></a></li></ul></div>
|
|
165
165
|
<div class="area"><a href="#area-systems" class="area-name"><span class="mono">Systems</span></a><ul class="tiles"><li><a href="#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="#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>
|
|
@@ -733,6 +733,19 @@ forgeqe web --no-open # only print the address
|
|
|
733
733
|
</code></pre></div>
|
|
734
734
|
<p>The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same
|
|
735
735
|
as <code>forgeqe init</code>), what this computer needs, and a model. See <a href="web-app/index.html">docs/WEB_APP.md</a> for every page.</p>
|
|
736
|
+
<p><strong>Talk to it.</strong> Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a spoken
|
|
737
|
+
conversation with ForgeQE that goes on as you move between pages. In a chat or on Home, what you say goes into the
|
|
738
|
+
message box, where you change it or Refine it, then send it with Send or by saying "send it" (turn on Send when I pause
|
|
739
|
+
in the Talk note to send at each pause instead); on Home it starts the chat, and Talk carries on there. On any other
|
|
740
|
+
page, a pause sends what you said to Talk's chat at once. ForgeQE acts in the app as you ask, like a voice agent with
|
|
741
|
+
tools: "open model settings", "show me the last run", "what failed yesterday? open it", "search for TestMu", "go back";
|
|
742
|
+
a short "open …" that names a page is done at once, anything else goes to ForgeQE's agent, which opens what it found
|
|
743
|
+
(its app_action tool; the page opens only what the app has). The reply is read aloud as it arrives, a paragraph at a
|
|
744
|
+
time (code, tables, links and its sources stay on the screen), and
|
|
745
|
+
talking over it stops it and listens. It all runs on this computer with free, open-source models, so nothing you say
|
|
746
|
+
leaves it: Whisper (faster-whisper) writes down what you said and Kokoro reads replies, in a voice you pick. The first
|
|
747
|
+
time, Talk asks before downloading them, about 750 MB into <code>~/.forgeqe/voice</code> (or run <code>forgeqe voice setup</code>; <code>forgeqe voice status</code> says whether it is ready). Talk never answers for you: when the chat asks a question or waits for an
|
|
748
|
+
approval, it says so and stops listening until you answer with a click. The browser asks once for the microphone.</p>
|
|
736
749
|
<p><strong>Found a problem in ForgeQE itself?</strong> Settings › Report a problem. ForgeQE picks the recent session that went wrong
|
|
737
750
|
and reads its log for what was run and ForgeQE's own errors; the bug reporter (<code>forgeqe-bug-report</code>) drafts the bug from
|
|
738
751
|
that and asks only what it cannot find, usually what you expected. You edit it, keep or untick what is attached (that
|
|
@@ -1051,7 +1064,13 @@ with no panel in it, only a small "Recording" badge that takes no clic
|
|
|
1051
1064
|
Record page (and on the keys: Ctrl+Shift+Space, then P, Z or S). After each step the recorder keeps a picture of the
|
|
1052
1065
|
page and what it showed (<code>steps/NNN.jpg</code> and <code>.json</code> in the run folder; the badge is left out of the picture, and an
|
|
1053
1066
|
address keeps no query, where a form sent by GET puts what was typed), and the calls the page made to its own site
|
|
1054
|
-
that change data or fail (method, path and status only)
|
|
1067
|
+
that change data or fail (method, path and status only), for checks in the review. With <code>api.capture</code> on (the
|
|
1068
|
+
default), it also keeps the application's API calls in full in <code>network.json</code>, as a browser run does, each with the
|
|
1069
|
+
step it came after: the request and response bodies for API tests, with credentials in headers dropped, fields named
|
|
1070
|
+
like a password, token, key or session redacted, and every saved login's username and password replaced wherever they
|
|
1071
|
+
appear. Nothing is kept while the recording is paused. A value you make a secret in the review is taken out of
|
|
1072
|
+
<code>network.json</code> too (a contract set made from it before keeps its copy: make the set again). When you stop, you review
|
|
1073
|
+
the recording with clicks.</p>
|
|
1055
1074
|
<p>The review starts with the steps and <strong>Write the test</strong>; everything else is under <strong>More</strong>. ForgeQE has already made
|
|
1056
1075
|
the choices most recordings need, as one version you can undo: an email typed where an account is made is new on each
|
|
1057
1076
|
run, and the last step has the check its page suggests first. When steps of the recording are a saved block, it says
|
|
@@ -1074,7 +1093,7 @@ so: <strong>Use the block</strong> marks them as the block.</p>
|
|
|
1074
1093
|
<tr><td>Test data</td><td>Each typed value: as typed, test data, new on each run (<code>ann+{{$unique}}@shop.test</code>), or a secret read from the environment, its typed text removed from the recording, its pictures and every kept version</td></tr>
|
|
1075
1094
|
<tr><td>Blocks</td><td>Keep steps you do in many tests (Sign in) as a block, <code>.forgeqe/blocks/<name>.yaml</code>; put a block in after a step. Blocks go into the repository, so the team shares them (the review says when <code>.gitignore</code> leaves them out). A block holds only steps done by hand: a block file with a step that runs JavaScript, calls an API or uploads a file is ignored</td></tr>
|
|
1076
1095
|
<tr><td>History</td><td>Every change is a version: go back to any of them, or to the recording as recorded</td></tr>
|
|
1077
|
-
<tr><td>Try it</td><td>Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of <code>env.yaml</code> (the same web app's address there), with the test data as recorded or other values</td></tr>
|
|
1096
|
+
<tr><td>Try it</td><td>Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of <code>env.yaml</code> (the same web app's address there), with the test data as recorded or other values. With <code>api.capture</code> on (the default) it keeps the application's API calls of the latest try in <code>tries/network.json</code>, cleaned as a recording's are; <strong>API tests from its calls</strong> opens the API page with that try picked and the recording to compare with, so values that differ between them become the calls' inputs</td></tr>
|
|
1078
1097
|
</tbody>
|
|
1079
1098
|
</table></div>
|
|
1080
1099
|
<p><strong>Start from a block</strong> (More options on the Record page): the recording opens the block's first page and does its
|
|
@@ -1334,7 +1353,7 @@ forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke
|
|
|
1334
1353
|
<li><strong>Fields on new cases.</strong> <code>new_cases</code> gives every new case a priority, tags or labels, and in Azure DevOps a state: <code>state: Design</code> makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags.</li>
|
|
1335
1354
|
<li><strong>Shared steps and data.</strong> <code>sources.azure_devops.shared_steps</code> lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters (<code>@user</code>) and a data table.</li>
|
|
1336
1355
|
<li><strong>Cases left behind by a story change.</strong> <code>story_test_cases</code> reads the story's history and marks the linked cases last changed before its title, description or acceptance criteria were (stale), with what changed. The agent offers to update each one the change affects, or to retire one that tests behaviour the story no longer has.</li>
|
|
1337
|
-
<li><strong>Retiring a case.</strong> <code>retire_test_case</code> asks first, then closes it (Azure DevOps <code>retire_state</code
|
|
1356
|
+
<li><strong>Retiring a case.</strong> <code>retire_test_case</code> asks first, then closes it (Azure DevOps <code>retire_state</code>; by default a state the project itself calls done, so a workflow that ends in <em>Verified</em> or <em>Shipped</em> needs no setting) or labels it (Jira <code>retire_label</code>, default obsolete), with the reason. Nothing is deleted, and retired cases are not offered for reuse.</li>
|
|
1338
1357
|
<li><strong>Duplicates before saving.</strong> <code>check_test_cases</code> with <code>against</code> (a story) compares the cases with the story's linked cases and its scope: the same steps is a duplicate naming the existing case, more steps or a close title an overlap.</li>
|
|
1339
1358
|
<li><strong>Cases with no story.</strong> Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, compared with that area's or project's scope.</li>
|
|
1340
1359
|
<li><strong>The feature's other stories.</strong> <code>sibling_cases: true</code> also compares with the cases of the other stories under the story's feature or epic (the first 30 stories; in Jira, the parent field Jira Cloud uses for epics).</li>
|
|
@@ -2350,7 +2369,7 @@ forgeqe knowledge docs outline specs/payments.md # the tree of one document
|
|
|
2350
2369
|
<div class="facts">
|
|
2351
2370
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What can you do?</li><li>Which model am I using?</li><li>How do I set up email alerts?</li><li>Show me the icons of all agents</li><li>Which version of ForgeQE is this?</li></ul></div>
|
|
2352
2371
|
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
2353
|
-
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>forgeqe_setup</code> <code>capabilities</code> <code>playbook</code> <code>use_capabilities</code></p></div>
|
|
2372
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>forgeqe_setup</code> <code>capabilities</code> <code>playbook</code> <code>use_capabilities</code> <code>app_action</code></p></div>
|
|
2354
2373
|
</div>
|
|
2355
2374
|
<div class="detail"><span class="mono">In detail</span>
|
|
2356
2375
|
<p class="see">See <a href="#doc-how_to_use-2-scaffold-config">2. Scaffold config</a>.</p>
|
|
@@ -3180,7 +3199,7 @@ control fails the run.</p>
|
|
|
3180
3199
|
<header class="chead"><img class="pix pix--chapter" src="../img/icons/mobile.svg" alt="" width="40" height="40"><span class="mono">08</span><h2 id="area-mobile-h">Mobile</h2><p>Android and iOS apps through Appium or Maestro: explore a goal, replay, run the team's flows</p></header>
|
|
3181
3200
|
<article class="spec feat" id="cap-mobile-apps">
|
|
3182
3201
|
<div class="hd"><span class="mono">Mobile</span><h3>Automate Android and iOS apps</h3></div>
|
|
3183
|
-
<p class="ds">Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome; replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:.</p>
|
|
3202
|
+
<p class="ds">Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome, or records one by hand on the Record page (the device's screen shown there, here or on TestMu AI or BrowserStack, each tap, entry and check done on the device and kept as a step, no model); replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:.</p>
|
|
3184
3203
|
<div class="facts">
|
|
3185
3204
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Sign in to the courier app and accept the first delivery, and save it as a test</li><li>Replay the courier login on Maestro</li><li>Run our Maestro flows in .maestro/</li><li>Upload builds/courier.apk to TestMu for the courier app</li></ul></div>
|
|
3186
3205
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need req">Required</span><span>Mobile apps: env.yaml (kind: mobile) or mobile.apps in forgeqe.yaml</span></li><li><span class="need input">You give</span><span>an Appium server with a device or emulator (or a device cloud), or Maestro installed; the app in env.yaml or forgeqe.yaml mobile.apps</span></li></ul></div>
|
|
@@ -3194,7 +3213,8 @@ control fails the run.</p>
|
|
|
3194
3213
|
and heals a control that moved), and through <strong>Maestro</strong> (fast replays, and your team's own Maestro flows). In the shell,
|
|
3195
3214
|
ask for a goal in the app ("sign in to the courier app and accept the first delivery") and ForgeQE's agent explores it
|
|
3196
3215
|
on your device or emulator and saves a workflow with checks of the outcome. The same from the command line:</p>
|
|
3197
|
-
<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
|
|
3216
|
+
<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 setup # Appium and its drivers here, pinned (once); runs start it themselves
|
|
3217
|
+
forgeqe mobile doctor # does the Appium server answer, is maestro installed?
|
|
3198
3218
|
forgeqe mobile explore "Sign in and accept the first delivery" --app courier
|
|
3199
3219
|
forgeqe mobile replay <run folder>/workflow.yaml # on Appium (mobile.driver), healing moved controls
|
|
3200
3220
|
forgeqe mobile replay workflow.yaml --driver maestro # the same workflow as a Maestro flow
|
|
@@ -3278,7 +3298,8 @@ no CI job tests it yet (it needs a macOS runner with a simulator).</p>
|
|
|
3278
3298
|
</section>
|
|
3279
3299
|
<section class="doc" id="doc-docs-mobile-use">
|
|
3280
3300
|
<h4>Use</h4>
|
|
3281
|
-
<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
|
|
3301
|
+
<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 setup # Appium and its drivers, pinned, into ForgeQE's tools folder (once)
|
|
3302
|
+
forgeqe mobile doctor # does the Appium server answer (the cloud's hub and sign-in when every
|
|
3282
3303
|
# device in use is on TestMu or BrowserStack), is maestro installed? (or, with
|
|
3283
3304
|
# mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?)
|
|
3284
3305
|
forgeqe mobile apps # the mobile apps of the active environment
|
|
@@ -3451,6 +3472,44 @@ label; <code>control_type</code> is the Android class (<code>android.widget.Butt
|
|
|
3451
3472
|
</ul>
|
|
3452
3473
|
</div>
|
|
3453
3474
|
</section>
|
|
3475
|
+
<section class="doc" id="doc-docs-mobile-appium-on-this-computer">
|
|
3476
|
+
<h4>Appium on this computer</h4>
|
|
3477
|
+
<div class="prose"><p>For an emulator or a phone on this computer, <code>forgeqe mobile setup</code> (or Settings › Set up › Install what's missing,
|
|
3478
|
+
when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
|
|
3479
|
+
into ForgeQE's tools folder, pinned, with no install script run. A run on a device here then starts that Appium by
|
|
3480
|
+
itself when nothing answers at <code>mobile.appium.url</code>, on 127.0.0.1, and stops it when ForgeQE exits; an Appium already
|
|
3481
|
+
running there (your own) is used as it is. It finds the Android SDK (<code>ANDROID_HOME</code>, else Android Studio's folder) and
|
|
3482
|
+
Java (<code>JAVA_HOME</code>, else the one Android Studio ships), and needs Node.js 20 or later on PATH. <code>forgeqe mobile doctor</code>
|
|
3483
|
+
says what is missing. A device cloud (TestMu AI, BrowserStack) needs none of it: its own Appium runs there.</p>
|
|
3484
|
+
</div>
|
|
3485
|
+
</section>
|
|
3486
|
+
<section class="doc" id="doc-docs-mobile-record-by-hand">
|
|
3487
|
+
<h4>Record by hand</h4>
|
|
3488
|
+
<div class="prose"><p>Record → <strong>Mobile app</strong> in <code>forgeqe web</code> records a test with no model: pick the app and a device (one of this
|
|
3489
|
+
computer's, or TestMu AI's or BrowserStack's), and the device's screen appears on the page with its controls outlined.</p>
|
|
3490
|
+
<ul>
|
|
3491
|
+
<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
|
|
3492
|
+
saved secret by its name). <strong>Check</strong> adds a check of what a control shows now, <strong>Long-press</strong> and <strong>Wait for</strong> do
|
|
3493
|
+
what they say. Under the screen: scroll, swipe, Back, Enter, hide the keyboard, wait.</li>
|
|
3494
|
+
<li>Each action is done on the device through the locator ForgeQE records for it (the control's id, its text, and its
|
|
3495
|
+
place among controls alike), so a step a replay could not find is never kept. A control with neither an id nor a
|
|
3496
|
+
text is not offered.</li>
|
|
3497
|
+
<li>A permission prompt's answer (Android's permission controller, iOS's own alerts) goes to the workflow's <code>dismiss</code>
|
|
3498
|
+
list, so a replay answers it only when asked.</li>
|
|
3499
|
+
<li>A password field takes only a saved secret (<code>mobile.secrets</code>), typed from the environment; the workflow keeps
|
|
3500
|
+
<code>{{secret:NAME}}</code>, and the value never reaches the page. Text equal to a secret is saved as its placeholder.</li>
|
|
3501
|
+
<li>A tap on a drop-down (an Android <code>Spinner</code>) and then on one of its items is one <code>select</code> step: the drop-down by its
|
|
3502
|
+
id and the item by the text it shows (<code>value</code>), which a replay picks again, and Maestro does as two taps.</li>
|
|
3503
|
+
<li>Stop saves <code>workflow.yaml</code>, a picture of each step with the controls it shows, and a report in
|
|
3504
|
+
<code>.forgeqe/reports/mobile-record-…/</code>, and opens the workflow's review, as a desktop recording does: change a step's
|
|
3505
|
+
control, add a check by clicking a control on a step's picture, make a typed value test data or a secret
|
|
3506
|
+
(<code>mobile.secrets</code>), and replay it there (<code>forgeqe mobile replay</code>, rows from a data file).</li>
|
|
3507
|
+
</ul>
|
|
3508
|
+
<p>It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
|
|
3509
|
+
hands its first screen over at once (a splash, then a sign-in) starts fine: sessions wait for any of the app's
|
|
3510
|
+
screens (<code>appium:appWaitActivity: "*"</code>, which <code>mobile.appium.capabilities</code> can change).</p>
|
|
3511
|
+
</div>
|
|
3512
|
+
</section>
|
|
3454
3513
|
<section class="doc" id="doc-docs-mobile-explore">
|
|
3455
3514
|
<h4>Explore</h4>
|
|
3456
3515
|
<div class="prose"><p>The model sees the goal, its steps so far, the numbered controls on screen with the text each shows, and a screenshot
|
|
@@ -5656,27 +5715,30 @@ forgeqe pr-tests 42 --run --post # and post the results on p
|
|
|
5656
5715
|
<header class="chead"><img class="pix pix--chapter" src="../img/icons/api.svg" alt="" width="40" height="40"><span class="mono">13</span><h2 id="area-api-h">API</h2><p>Contracts and end-to-end scenarios, without a browser</p></header>
|
|
5657
5716
|
<article class="spec feat" id="cap-api-testing">
|
|
5658
5717
|
<div class="hd"><span class="mono">API</span><h3>API and contract testing</h3></div>
|
|
5659
|
-
<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.
|
|
5718
|
+
<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>
|
|
5660
5719
|
<div class="facts">
|
|
5661
|
-
<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></ul></div>
|
|
5720
|
+
<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>
|
|
5662
5721
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li></ul></div>
|
|
5663
|
-
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>
|
|
5664
|
-
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>
|
|
5722
|
+
<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>
|
|
5723
|
+
<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_new_set</code> <code>api_add_calls</code> <code>api_import_collection</code></p></div>
|
|
5665
5724
|
</div>
|
|
5666
5725
|
<div class="detail"><span class="mono">In detail</span>
|
|
5667
5726
|
<section class="doc" id="doc-how_to_use-api-and-contract-tests">
|
|
5668
5727
|
<h4>API and contract tests</h4>
|
|
5669
5728
|
<div class="prose"><p>ForgeQE tests APIs directly too: REST, GraphQL (queries, mutations and subscriptions), SOAP, gRPC (unary and streaming), WebSocket and Server-Sent Events. API tests check the same logic as UI tests in a fraction of the time, and they do not break when the page changes. Contracts come from two places:</p>
|
|
5670
5729
|
<ul>
|
|
5671
|
-
<li><strong>A browser run.</strong> Every browser run
|
|
5730
|
+
<li><strong>A browser run, a recording, or its latest try.</strong> Every browser run, every recording you make by hand, and the latest <strong>Try it</strong> of a recording record the application's own API calls (XHR, fetch, event streams) in <code>network.json</code> in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: <code>Authorization</code>, cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Only a few headers are kept (content type, accept, SOAP action); <code>api.keep_headers</code> adds others your API needs, such as <code>X-Tenant</code>, which the contracts' example calls then send too. A header that can carry a credential (<code>Authorization</code>, <code>Cookie</code>, or one named like a token, key, auth or session) is refused there. Analytics and monitoring calls are left out. "Turn the last run's API calls into tests" (<code>api_contracts</code> from <code>run</code>) groups the calls into operations: one per method and path, with ids in paths turned into <code>{id}</code> (<code>GET /api/orders/{id}</code>), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used.</li>
|
|
5672
5731
|
<li><strong>An API description,</strong> by link or file: OpenAPI 3 or Swagger 2 (JSON or YAML, or the Swagger UI page, which ForgeQE looks behind for the document), WSDL for SOAP, a GraphQL endpoint (read by introspection) or an SDL or introspection file, <code>.proto</code> files, or <code>grpc://host:port</code> for a gRPC server with reflection (through <a href="https://github.com/fullstorydev/grpcurl" class="ext" rel="noopener">grpcurl</a>); client, server and bidi streaming rpcs become streaming contracts, and a GraphQL subscription becomes a <code>graphql-transport-ws</code> WebSocket contract. Each operation gets an example call from the description's examples; values it gives no example for are made up and the contract is marked as needing real values.</li>
|
|
5673
5732
|
</ul>
|
|
5674
5733
|
<p>Each contract has one example call and what its answer must have: the <strong>status</strong>, the <strong>content type</strong>, the body's <strong>schema</strong>, and <strong>key fields</strong> (ids, statuses, names, totals: present, with their type; a value only where it does not change between calls, like a status). GraphQL answers must have no <code>errors</code>; SOAP answers no <code>Fault</code> and the expected elements; gRPC calls the OK status. Contract sets are saved in <code>.forgeqe/reports/api/<id>/</code>: <code>contracts.json</code> (edit the examples freely, e.g. to give real ids) and <code>api.md</code>.</p>
|
|
5675
5734
|
<p>Then:</p>
|
|
5676
5735
|
<ul>
|
|
5677
5736
|
<li><strong>Run them now</strong> (<code>run_api_contracts</code>, or <code>forgeqe api run</code>): ForgeQE makes each call and checks the answer, without a browser or a model. Calls that change data (POST, PUT, PATCH, DELETE, mutations, SOAP and gRPC calls not named like reads) are left out unless you allow them, on a test environment; the agent asks first. Calls with made-up values are skipped until you give real ones. Results go to <code>results.json</code> and <code>junit.xml</code>, with <code>report.html</code> (each contract a case, its checks the steps, with what the API answered) and <code>suite.json</code> beside them; a 401 or 403 says which header the call needs.</li>
|
|
5737
|
+
<li><strong>Calls the site's bot protection blocks.</strong> A site behind Cloudflare, Akamai, Imperva, DataDome or a similar service can answer a call that does not come from a browser with a challenge or block page (a 403, 429 or 503 with the service's marks, or HTML where the API answers JSON). ForgeQE tells that apart from the API's own refusal (a JSON 403 is the API's answer) and, with <code>api.browser_fallback</code> on (the default), sends a call that only reads again from a page of a real browser on the API's own site: the page loads first, so a challenge can set its cookie, and the call is made with <code>fetch()</code> in a part of the page the site's own scripts cannot see, so they never read its credentials. The result says "sent from a browser page". A call that changes data is never sent again. Contract runs, scenarios, healing and the API page's <strong>Send</strong> use it (the page says "Sent from a browser page" by the answer; <code>forgeqe web</code> keeps that browser for two minutes after the last blocked call); load tests and security checks never do. Turned off, a blocked call fails with "blocked" and the reason.</li>
|
|
5678
5738
|
<li><strong>Write them as tests</strong> (<code>write_api_tests</code>, or <code>forgeqe api tests</code>): Scribe writes them in the repository's own framework and HTTP client (Playwright's <code>request</code> fixture, pytest with requests, REST Assured, RestSharp or HttpClient, supertest...) with the base URL from configuration and credentials from environment variables, and ForgeQE runs them until they pass.</li>
|
|
5739
|
+
<li><strong>Heal them when the app changed</strong> (<code>heal_api_contracts</code>, or <code>forgeqe api heal [SET] --run RUN</code>): run the flow again in the browser, and ForgeQE runs the set's read-only calls, learns each one that fails again from the newer run (the same operation with a new answer, or the one call of the same method and step that moved, like <code>/api/v1/orders/{id}</code> to <code>/api/v2/orders/{id}</code>), and replays it. Only a version whose replay passes is offered, with what changed (path, status, fields now required or gone), and the set changes only when you agree (<code>--yes</code> in a terminal); the old <code>contracts.json</code> is kept in <code>history/</code>, and scenarios that still make the old call are named. A contract that fails can be a real defect, so nothing is changed on its own. Calls that change data are never replayed, contracts from a description are fixed in the description, and another site's call is never taken.</li>
|
|
5679
5740
|
</ul>
|
|
5741
|
+
<p><strong>Learning what the caller chooses.</strong> One run cannot tell <code>/domains/github.com</code> from a fixed path. Give <code>api_contracts</code> other runs of the same flow (other data, another user: <code>compare_runs</code>, or <code>forgeqe api contracts --run RUN --compare RUN2,RUN3</code>) and the calls made in the same step, with the same method and the same number of path segments, are compared: a segment that differed becomes a parameter named for the segment before it (<code>GET /domains/{domain}</code>), when the first segment is the same, no more than half of them differ, and the answers have the same shape, so two endpoints are not made one. Each contract lists its <strong>inputs</strong> in <code>contracts.json</code>, <code>api.md</code> and on the API page (under the call's request, with a note when a call was learned again by healing): its path parameters, and the query keys and body fields whose values differed between calls (names only, never values). The example stays a real call, so it runs as it is.</p>
|
|
5680
5742
|
<p>Credentials for API calls go in <code>forgeqe.yaml</code>, as references to environment variables; the values are sent, never stored or shown to a model:</p>
|
|
5681
5743
|
<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>api:
|
|
5682
5744
|
capture: true # record the application's API calls in every browser run (default)
|
|
@@ -5685,6 +5747,8 @@ forgeqe pr-tests 42 --run --post # and post the results on p
|
|
|
5685
5747
|
Authorization: Bearer ${API_TOKEN}
|
|
5686
5748
|
X-Tenant: ${API_TENANT}
|
|
5687
5749
|
third_party: false # keep calls to other sites than the page's (sign-in providers, CDNs)
|
|
5750
|
+
keep_headers: [X-Tenant] # more headers to keep on captured calls, and to send in the calls made from them
|
|
5751
|
+
browser_fallback: true # a read-only call the site's bot protection blocks is sent again from a browser page
|
|
5688
5752
|
timeout_seconds: 30
|
|
5689
5753
|
oauth2: # a bearer token fetched with the client-credentials grant (sent unless a call has its own Authorization)
|
|
5690
5754
|
token_url: https://login.shop.example/oauth2/token
|
|
@@ -5844,6 +5908,19 @@ forgeqe api tests --scenarios --repo ../api-tests # on the repo's exi
|
|
|
5844
5908
|
</section>
|
|
5845
5909
|
</div>
|
|
5846
5910
|
</article>
|
|
5911
|
+
<article class="spec feat" id="cap-api-load-security">
|
|
5912
|
+
<div class="hd"><span class="mono">API</span><h3>API load and security checks</h3></div>
|
|
5913
|
+
<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>
|
|
5914
|
+
<div class="facts">
|
|
5915
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Load test the orders API with 20 users for a minute</li><li>Run OWASP security checks on the shop API</li><li>Fuzz the API's endpoints for robustness</li></ul></div>
|
|
5916
|
+
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
5917
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Load and security checks run against a test environment, never production; calls that change data are never load tested, and probed only when allowed.</li></ul></div>
|
|
5918
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>run_api_load</code> <code>run_api_security</code></p></div>
|
|
5919
|
+
</div>
|
|
5920
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
5921
|
+
<p class="see">See <a href="#doc-how_to_use-api-and-contract-tests">API and contract tests</a>.</p>
|
|
5922
|
+
</div>
|
|
5923
|
+
</article>
|
|
5847
5924
|
</section>
|
|
5848
5925
|
<section class="chapter" id="area-quality" aria-labelledby="area-quality-h">
|
|
5849
5926
|
<header class="chead"><img class="pix pix--chapter" src="../img/icons/result.svg" alt="" width="40" height="40"><span class="mono">14</span><h2 id="area-quality-h">Quality</h2><p>Accessibility, page performance, and visual changes</p></header>
|
|
@@ -6247,7 +6324,7 @@ forgeqe bi build --from //share/qa-reports # this machine's runs plus every bund
|
|
|
6247
6324
|
<div class="detail"><span class="mono">In detail</span>
|
|
6248
6325
|
<section class="doc" id="doc-readme-azure-devops-jira-and-other-systems">
|
|
6249
6326
|
<h4>Azure DevOps, Jira, and other systems</h4>
|
|
6250
|
-
<div class="prose"><p>ForgeQE's agent connects to each system's MCP server, configured from the same <code>sources:</code> settings in <code>forgeqe.yaml</code>: organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls.</p>
|
|
6327
|
+
<div class="prose"><p>ForgeQE's agent connects to each system's MCP server, configured from the same <code>sources:</code> settings in <code>forgeqe.yaml</code>: organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls. A chat starts none of them: a server starts the first time a request needs its tools ("Connecting to Azure DevOps MCP…") and stays for the rest of that chat. A server whose tools ForgeQE could not list starts with the chat, as before.</p>
|
|
6251
6328
|
<div class="tbl"><table>
|
|
6252
6329
|
<thead>
|
|
6253
6330
|
<tr><th>System</th><th>MCP server</th><th>Needs</th></tr>
|
|
@@ -139,7 +139,8 @@ 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
|
|
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 setup # Appium and its drivers, pinned, into ForgeQE's tools folder (once)
|
|
143
|
+
forgeqe mobile doctor # does the Appium server answer (the cloud's hub and sign-in when every
|
|
143
144
|
# device in use is on TestMu or BrowserStack), is maestro installed? (or, with
|
|
144
145
|
# mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?)
|
|
145
146
|
forgeqe mobile apps # the mobile apps of the active environment
|
|
@@ -324,6 +325,38 @@ drag started on a carousel, which took it), it is tried again from another point
|
|
|
324
325
|
<li><strong>Memory.</strong> A failed explore of a goal is resumed from its last action (a tap, a type), never through the swipes
|
|
325
326
|
and backs after it, which are the search that failed.</li>
|
|
326
327
|
</ul>
|
|
328
|
+
<h2 id="appium-on-this-computer"><a href="#appium-on-this-computer" class="hash">#</a>Appium on this computer</h2>
|
|
329
|
+
<p>For an emulator or a phone on this computer, <code>forgeqe mobile setup</code> (or Settings › Set up › Install what's missing,
|
|
330
|
+
when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
|
|
331
|
+
into ForgeQE's tools folder, pinned, with no install script run. A run on a device here then starts that Appium by
|
|
332
|
+
itself when nothing answers at <code>mobile.appium.url</code>, on 127.0.0.1, and stops it when ForgeQE exits; an Appium already
|
|
333
|
+
running there (your own) is used as it is. It finds the Android SDK (<code>ANDROID_HOME</code>, else Android Studio's folder) and
|
|
334
|
+
Java (<code>JAVA_HOME</code>, else the one Android Studio ships), and needs Node.js 20 or later on PATH. <code>forgeqe mobile doctor</code>
|
|
335
|
+
says what is missing. A device cloud (TestMu AI, BrowserStack) needs none of it: its own Appium runs there.</p>
|
|
336
|
+
<h2 id="record-by-hand"><a href="#record-by-hand" class="hash">#</a>Record by hand</h2>
|
|
337
|
+
<p>Record → <strong>Mobile app</strong> in <code>forgeqe web</code> records a test with no model: pick the app and a device (one of this
|
|
338
|
+
computer's, or TestMu AI's or BrowserStack's), and the device's screen appears on the page with its controls outlined.</p>
|
|
339
|
+
<ul>
|
|
340
|
+
<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
|
|
341
|
+
saved secret by its name). <strong>Check</strong> adds a check of what a control shows now, <strong>Long-press</strong> and <strong>Wait for</strong> do
|
|
342
|
+
what they say. Under the screen: scroll, swipe, Back, Enter, hide the keyboard, wait.</li>
|
|
343
|
+
<li>Each action is done on the device through the locator ForgeQE records for it (the control's id, its text, and its
|
|
344
|
+
place among controls alike), so a step a replay could not find is never kept. A control with neither an id nor a
|
|
345
|
+
text is not offered.</li>
|
|
346
|
+
<li>A permission prompt's answer (Android's permission controller, iOS's own alerts) goes to the workflow's <code>dismiss</code>
|
|
347
|
+
list, so a replay answers it only when asked.</li>
|
|
348
|
+
<li>A password field takes only a saved secret (<code>mobile.secrets</code>), typed from the environment; the workflow keeps
|
|
349
|
+
<code>{{secret:NAME}}</code>, and the value never reaches the page. Text equal to a secret is saved as its placeholder.</li>
|
|
350
|
+
<li>A tap on a drop-down (an Android <code>Spinner</code>) and then on one of its items is one <code>select</code> step: the drop-down by its
|
|
351
|
+
id and the item by the text it shows (<code>value</code>), which a replay picks again, and Maestro does as two taps.</li>
|
|
352
|
+
<li>Stop saves <code>workflow.yaml</code>, a picture of each step with the controls it shows, and a report in
|
|
353
|
+
<code>.forgeqe/reports/mobile-record-…/</code>, and opens the workflow's review, as a desktop recording does: change a step's
|
|
354
|
+
control, add a check by clicking a control on a step's picture, make a typed value test data or a secret
|
|
355
|
+
(<code>mobile.secrets</code>), and replay it there (<code>forgeqe mobile replay</code>, rows from a data file).</li>
|
|
356
|
+
</ul>
|
|
357
|
+
<p>It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
|
|
358
|
+
hands its first screen over at once (a splash, then a sign-in) starts fine: sessions wait for any of the app's
|
|
359
|
+
screens (<code>appium:appWaitActivity: "*"</code>, which <code>mobile.appium.capabilities</code> can change).</p>
|
|
327
360
|
<h2 id="maestro"><a href="#maestro" class="hash">#</a>Maestro</h2>
|
|
328
361
|
<p><strong>ForgeQE workflows on Maestro.</strong> <code>--driver maestro</code> writes the workflow as a Maestro flow (<code>flow.yaml</code> in the run
|
|
329
362
|
folder) and runs <code>maestro test</code>. Maestro's debug output gives each workflow step its result. Variables are filled in
|
|
@@ -437,6 +470,9 @@ the URL is refused. TLS is verified as usual.</li>
|
|
|
437
470
|
<tr><td><code>py/forgeqe_mobile/maestro.py</code></td><td>Workflows as Maestro flows, the allowlist for team flows, running <code>maestro test</code></td></tr>
|
|
438
471
|
<tr><td><code>py/forgeqe_mobile/hyperexecute.py</code></td><td>Maestro on TestMu: the HyperExecute project and running its CLI</td></tr>
|
|
439
472
|
<tr><td><code>py/forgeqe_mobile/explore.py</code></td><td>The model's action loop on Appium</td></tr>
|
|
473
|
+
<tr><td><code>py/forgeqe_mobile/record.py</code></td><td>Recording by hand: the screen's controls and their locators, the page's commands as steps</td></tr>
|
|
474
|
+
<tr><td><code>src/mobile/record.ts</code></td><td>The commands the Record page may send a mobile recording, checked</td></tr>
|
|
475
|
+
<tr><td><code>src/mobile/setup.ts</code></td><td><code>forgeqe mobile setup</code>: the pinned Appium and drivers, finding the SDK and Java, starting Appium here</td></tr>
|
|
440
476
|
<tr><td><code>py/forgeqe_mobile/service.py</code></td><td><code>serve</code>: replay, explore and maestro runs, <code>run.json</code></td></tr>
|
|
441
477
|
<tr><td><code>py/forgeqe_mobile/apps.py</code></td><td>The mobile app allowlist and its capabilities</td></tr>
|
|
442
478
|
</tbody>
|
|
@@ -453,7 +489,7 @@ OS), and <code>bun test tests/mobile.test.ts</code>.</p>
|
|
|
453
489
|
</nav>
|
|
454
490
|
</main>
|
|
455
491
|
<aside class="docs-toc" aria-label="On this page">
|
|
456
|
-
<p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#apps-and-settings">Apps and settings</a></li><li><a href="#devices">Devices</a></li><li><a href="#workflow-yaml-forgeqe-mobile-v1">Workflow YAML (forgeqe-mobile-v1)</a></li><li><a href="#explore">Explore</a></li><li><a href="#maestro">Maestro</a></li><li><a href="#testmu-ai-formerly-lambdatest">TestMu AI (formerly LambdaTest)</a></li><li><a href="#security">Security</a></li><li><a href="#code">Code</a></li></ul>
|
|
492
|
+
<p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#apps-and-settings">Apps and settings</a></li><li><a href="#devices">Devices</a></li><li><a href="#workflow-yaml-forgeqe-mobile-v1">Workflow YAML (forgeqe-mobile-v1)</a></li><li><a href="#explore">Explore</a></li><li><a href="#appium-on-this-computer">Appium on this computer</a></li><li><a href="#record-by-hand">Record by hand</a></li><li><a href="#maestro">Maestro</a></li><li><a href="#testmu-ai-formerly-lambdatest">TestMu AI (formerly LambdaTest)</a></li><li><a href="#security">Security</a></li><li><a href="#code">Code</a></li></ul>
|
|
457
493
|
</aside>
|
|
458
494
|
</div>
|
|
459
495
|
<footer class="foot">
|