@capagents/forgeqe 2.5.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/HOW_TO_USE.md +91 -2
  2. package/dist/docs-site/docs/index.html +89 -3
  3. package/dist/docs-site/docs/search.js +1 -1
  4. package/dist/docs-site/docs/web-app/index.html +8 -4
  5. package/dist/forgeqe.js +1093 -1074
  6. package/dist/web/assets/{Agent-BMqCDZeZ.js → Agent-u7Ey8Slc.js} +1 -1
  7. package/dist/web/assets/ApiTests-D_PZKUXw.js +10 -0
  8. package/dist/web/assets/Chat-BCwImb3U.js +3 -0
  9. package/dist/web/assets/{Data-BPtl_mUy.js → Data-x_yeOrL3.js} +4 -4
  10. package/dist/web/assets/{Features-DwHyOoJu.js → Features-BQr8SMEU.js} +1 -1
  11. package/dist/web/assets/Jobs-KYn7S4yx.js +3 -0
  12. package/dist/web/assets/Quality-BY4sCSwU.js +1 -0
  13. package/dist/web/assets/Record-yZT93LmM.js +2 -0
  14. package/dist/web/assets/Regression-BMzfuhsG.js +5 -0
  15. package/dist/web/assets/{Reports-Bapldq1A.js → Reports-D_L3pa9R.js} +2 -2
  16. package/dist/web/assets/Response-DeCMeFqw.js +4 -0
  17. package/dist/web/assets/Runs-ShLZeGq3.js +2 -0
  18. package/dist/web/assets/Shell-B8HJCZ4f.js +3 -0
  19. package/dist/web/assets/arrow-down-B8XP1MaD.js +1 -0
  20. package/dist/web/assets/capgemini-white-ByjwPW8N.svg +21 -0
  21. package/dist/web/assets/{circle-dashed-C84s5T0C.js → circle-dashed-ByDXyh2H.js} +1 -1
  22. package/dist/web/assets/index-Ct2Md_DL.js +26 -0
  23. package/dist/web/assets/index-DtP9ditr.css +2 -0
  24. package/dist/web/assets/{markdown-BtqKvAEi.js → markdown-BQVf95TM.js} +7 -7
  25. package/dist/web/assets/{sticky-note-C_NJNONZ.js → sticky-note-Cx1bYZ3E.js} +1 -1
  26. package/dist/web/assets/thread-CIhAcfY-.js +5 -0
  27. package/dist/web/assets/{trending-up-DK1wDqic.js → trending-up-Dg2FfbKu.js} +1 -1
  28. package/dist/web/assets/usePageChat-PSLtKusy.js +1 -0
  29. package/dist/web/index.html +3 -3
  30. package/docs/WEB_APP.md +9 -4
  31. package/docs/user-guide.html +89 -3
  32. package/package.json +1 -1
  33. package/py/forgeqe_engine/cli.py +16 -0
  34. package/py/forgeqe_engine/recordsession.py +180 -7
  35. package/py/forgeqe_engine/suggest.py +79 -0
  36. package/py/forgeqe_engine/webrecord.py +19 -0
  37. package/py/forgeqe_engine/webrecord_page.py +11 -3
  38. package/dist/web/assets/ApiTests-CkxIx6sI.js +0 -2
  39. package/dist/web/assets/Chat-BT6yGqKW.js +0 -3
  40. package/dist/web/assets/Jobs-DW2uXMkv.js +0 -3
  41. package/dist/web/assets/Quality-BeuhtzZi.js +0 -1
  42. package/dist/web/assets/Record-EHgUTspl.js +0 -1
  43. package/dist/web/assets/Regression-BDq3BUP_.js +0 -2
  44. package/dist/web/assets/Response-Dh_kxnCt.js +0 -8
  45. package/dist/web/assets/Runs-BOi2fP0o.js +0 -2
  46. package/dist/web/assets/frame-z3iL_6aL.js +0 -3
  47. package/dist/web/assets/index-BVw2ygO2.js +0 -26
  48. package/dist/web/assets/index-CBa29-yG.css +0 -2
package/HOW_TO_USE.md CHANGED
@@ -106,11 +106,11 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
106
106
  | Automated tests | **Turn a passed run into an automated test**: Scribe, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it. | `write_test`, `run_test` | [docs](#6-tests) |
107
107
  | Automated tests | **Heal failing tests**: Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead. | `heal_tests` | [docs](#fixing-broken-tests) |
108
108
  | Automated tests | **Find and run existing tests**: Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test. | `find_tests`, `run_tests`, `list_sprints` | [docs](#finding-and-running-existing-tests) |
109
- | Automated tests | **Regression packs for a release**: Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug. | `build_regression_pack`, `run_regression_pack`, `list_regression_packs` | [docs](#regression-packs-for-a-release) |
109
+ | Automated tests | **Regression packs for a release**: Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug. | `build_regression_pack`, `run_regression_pack`, `list_regression_packs`, `regression_sources`, `edit_regression_pack` | [docs](#regression-packs-for-a-release) |
110
110
  | 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) |
111
111
  | 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) |
112
112
  | 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) |
113
- | 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, SOAP, and gRPC. | `api_contracts`, `run_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests` | [docs](#api-and-contract-tests) |
113
+ | 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, SOAP, and gRPC. | `api_contracts`, `run_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests`, `api_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
114
114
  | 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) |
115
115
  | 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) |
116
116
  | Quality | **Defect intelligence: trends and prediction**: Groups failures into defects, keeps their history across suites (new, known, gone, back again), and gives defect trends and where a change is likely to cause defects, with the cases to run first. | `defect_trends`, `predict_defects` | [docs](#bugs-for-failures) |
@@ -1268,6 +1268,27 @@ Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../sh
1268
1268
 
1269
1269
  **Gaps.** Changes no test is in for are listed as *not covered*, each with the closest existing test and what it lacks, so you can extend that test rather than write a new one.
1270
1270
 
1271
+ **The plan: what the release needs.** Besides the tests to run, a pack is a plan in four groups, so what is ready is never mixed up with what someone still has to do:
1272
+
1273
+ | Group | What it is | Its script |
1274
+ |---|---|---|
1275
+ | A Automated | tests of the repository the pack found (the reasons above) | *checked* only while its file is in the repository and still names the test; otherwise *missing* (moved, renamed or deleted since) |
1276
+ | B Manual | test cases linked to a changed work item that no automated test runs | run by a person |
1277
+ | C New automation | changes no test covers: a test to write, or the closest one to extend | to write |
1278
+ | D Exploratory | the risk areas the release touches | a session for a person |
1279
+
1280
+ Each entry has a priority, says where it came from (*found* in the sources and the code, or *suggested* by ForgeQE or its agent) and keeps its evidence (the work item, pull request or defect history, with links). Change it in your words ("take out the flaky ones", "add a manual check of the invoice PDF", "why is this in?") or on the page: priority, take out and put back, move between B, C and D, add an entry. An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the pack never claims a script it has not found. Every change is kept in the pack's history, with who made it.
1281
+
1282
+ A pack starts as a **draft**; save it (a name, the release) when it is right, then run it now or on a schedule (a job that runs `forgeqe pack run`). Reuse it:
1283
+
1284
+ - **Refresh**: the same changes read again (`forgeqe pack build --refresh release-22`); your edits and its runs stay.
1285
+ - **The next release**: a new pack from new changes that keeps the edits of an earlier one (`--based-on release-22`).
1286
+ - **Compare** two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and the other not, and their last runs.
1287
+
1288
+ `--release "Release 22"` names the release a pack is for.
1289
+
1290
+ **On the Regression page** there are two tabs. On **Agent** you ask for a pack in a sentence ("Create a regression pack for Release 22"). The agent reads which sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management, docs, a pipeline: the line at the top says which), says what a missing one would add and offers to connect it, and asks for the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then whether to save it and run it now or on a schedule. Above the message box, *The pack needs* ticks off each detail as it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it. The tab looks and works like the API page's Agent tab. None of the sources is required, and nothing runs until you say so. On **Packs** the packs are a table, newest first: each with how many entries are ready to run, scripts missing, manual, to automate and exploratory, and its last run. A row opens the pack's page: one strip of numbers (ready to run, script missing, the four groups, high priority, coverage of the release's changes, the last run; click one to show those entries), the plan as a table (all or one group, high priority, script missing, flaky or taken out, a search over tests, files and features, 50 rows a page with the highest priority first; a row opens its evidence), and beside it the release's changes, risk areas, runs and triage, history and a comparison with another release. Without a model set up, *Choose the changes* picks the sprint, commits or pull requests yourself.
1291
+
1271
1292
  **Running it.** ForgeQE asks before it runs anything.
1272
1293
 
1273
1294
  - *This machine*: ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test (for .NET, a `--filter` with each test, the settings an earlier job used, TRX results), runs it, and reads each result. A failed test runs once more; one that then passes is flaky.
@@ -1346,6 +1367,34 @@ forgeqe api run --base-url https://qa.shop.example # exit 1 when a contract fa
1346
1367
  forgeqe api tests --repo ../app # Scribe writes them as tests
1347
1368
  ```
1348
1369
 
1370
+ **The Agent tab** of the API tests page is a conversation: paste a link (an API description, a Postman collection,
1371
+ the docs), cURL commands, or tell it about the API in your words, and attach a file (a Postman collection is imported
1372
+ at once; an API description is kept in `.forgeqe/specs/` for the agent to read). The agent makes the API and its
1373
+ calls in folders, as Postman would (`api_new_set`, `api_add_calls`, `api_import_collection`, `api_contracts`), sends
1374
+ them, and says what it found; each API it made shows as a card to open on the Workbench tab. It never puts a
1375
+ credential in a call: you set the API's sign-in on the Workbench.
1376
+
1377
+ **Postman collections** (v2.0 and v2.1) come in from **Add an API** or the Agent tab, and go out with **Export as a
1378
+ Postman collection**: requests become calls in their folders, a saved example's status what each call must answer;
1379
+ only requests to the collection's own address are kept, and credentials (headers, secret variables, auth values)
1380
+ never are. An exported collection has a test of what each call must answer and `{{variables}}` where credentials go.
1381
+
1382
+ **On the API tests page's Workbench tab** (`forgeqe web`), it works like Postman, with an agent beside it. The APIs are on the left,
1383
+ each with its **calls** (contracts) and **flows** (scenarios). Open a call to see and change its request (method,
1384
+ path, params, headers, a JSON body), **Send** it and see what came back (body, headers, the checks that passed or
1385
+ failed), **Save** it, and set **what it must answer** (the status, the statuses that also pass, fields with their
1386
+ type or value), or take it from a right answer with **Use as what it must answer**. Pick the **environment** from
1387
+ `env.yaml` at the top: calls go to its API app's address, and **Run** runs every call and then every flow there
1388
+ (`forgeqe api run-all`). A call that changes data asks first: **Send it once**, or **Always on** that environment
1389
+ (remembered for the API, never for an environment named like production). **Sign in** once per API: a bearer token,
1390
+ an API key in a header, or a user name and password; the value you type goes to the credential store under a variable
1391
+ name, and only the name is kept with the API. Credential headers cannot be typed into a call's headers, and answers
1392
+ come back with credentials masked. Build a **flow** step by step from the API's calls: a step keeps a value from its
1393
+ answer by a name (`id` as `itemId`), and later steps use it as `{{itemId}}` in their path or body; `{{$unique}}` is
1394
+ new on each run. **Ask the agent** writes the tests, says why a call fails, or what is not tested yet, and its work
1395
+ shows on the page. Adding an API runs its calls that only read at once. Each run keeps the start of every answer (secrets
1396
+ masked), and each call shows how its last runs went.
1397
+
1349
1398
  ### End-to-end API scenarios
1350
1399
 
1351
1400
  A scenario is API calls in order, where later calls use values earlier answers gave: create a cart, add an item to `{{cartId}}`, place the order, read `{{orderId}}`. Each step has its own checks (status, schema, key fields). `{{$unique}}` is new on every run, for emails, usernames, and references that must not clash; `{{$uuid}}`, `{{$now}}`, and `{{$randomInt}}` are there too. Scenarios are saved in the contract set's `contracts.json` (edit them freely) and listed in `api.md`. There are four ways to make them (`api_scenarios`):
@@ -1923,6 +1972,46 @@ The recorder runs in an isolated world in each page, so the page's own scripts c
1923
1972
  records only real input: clicks and keys a script fakes are ignored. The panel's own clicks and keys never reach the page
1924
1973
  and are never recorded, and it stays above the page's dialogs. Recording uses local Chrome or Chromium.
1925
1974
 
1975
+ **From the web app (Record page).** You only do the steps, with nothing to describe first: the browser shows the site
1976
+ with no panel in it, only a small "Recording" badge that takes no click. **Pause**, **Undo** and **Stop** are on the
1977
+ Record page (and on the keys: Ctrl+Shift+Space, then P, Z or S). After each step the recorder keeps a picture of the
1978
+ page and what it showed (`steps/NNN.jpg` and `.json` in the run folder; the badge is left out of the picture, and an
1979
+ address keeps no query, where a form sent by GET puts what was typed), and the calls the page made to its own site
1980
+ that change data or fail (method, path and status only). When you stop, you review the recording with clicks.
1981
+
1982
+ The review starts with the steps and **Write the test**; everything else is under **More**. ForgeQE has already made
1983
+ the choices most recordings need, as one version you can undo: an email typed where an account is made is new on each
1984
+ run, and the last step has the check its page suggests first. When steps of the recording are a saved block, it says
1985
+ so: **Use the block** marks them as the block.
1986
+
1987
+ | In the review | What it does |
1988
+ |---|---|
1989
+ | Name | Written from what you did ("shop.test: Sign in → Email → Password → Log in …"); change it if you like |
1990
+ | Check that … under a step | One click adds a check of what the step brought to the page: a new title, a message or heading. Digits are checked by their shape (`Order placed: #\d+`) |
1991
+ | A call under a step | One click checks the page's own call to its server, such as `POST /api/orders answers 201`: the test waits for it and checks its status |
1992
+ | Suggest with the model | One model call reads the pages after each step and suggests checks and test data; each is kept only when it is what the recording holds. **Add** one, or **Add all** |
1993
+ | The picture of a step | Click a text on it to check that it shows, or a field to check its value |
1994
+ | Add, then Check | The page the step leads to, or a check in your words, which the coding agent finds on the page |
1995
+ | Add, then Step | **Record more from here**: the browser opens and does the steps up to there, and you record what comes next; it goes in after that step. Or a step in your words ("choose the cheapest delivery"), which the coding agent finds on the page and does there; open a page; or go back |
1996
+ | Add, then Note | A note on the step for whoever writes the test ("this is the cart page object") |
1997
+ | Drop (bin) | Removes the step |
1998
+ | Instructions for the Coding agent | Anything else about the test, in your words: where it goes, the page objects to use, its tags. The coding agent follows them, as long as they keep to the steps and checks |
1999
+ | 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 |
2000
+ | 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 |
2001
+ | History | Every change is a version: go back to any of them, or to the recording as recorded |
2002
+ | 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 |
2003
+
2004
+ **Start from a block** (More options on the Record page): the recording opens the block's first page and does its
2005
+ steps for you in the same tab, the recorder paused meanwhile; then you record the rest. A step that cannot be done (a
2006
+ secret not set) ends the block there, and you do the rest by hand. **Write the test** hands the recording to the coding
2007
+ agent, which asks nothing: the plan and where the test goes follow the repository, and each block becomes one helper
2008
+ that every test using it calls. A past recording is run again the same way: **Review** in the list, then **Try it**.
2009
+
2010
+ **Write the test** first plays the steps with Playwright, as the test will. When a step does not work, it says so
2011
+ before any code is written: **Record step N again** (the browser does the steps before it, and what you record takes
2012
+ its place), drop it, or write the test anyway. Then the Coding agent writes the test, and its work shows in the review:
2013
+ what it is doing, the files it changed, and its answer (or why it stopped).
2014
+
1926
2015
  ### Desktop apps (Windows)
1927
2016
 
1928
2017
  ForgeQE also automates Windows thick-client apps (Win32, WinForms, WPF). In the shell, ask for a goal in the app
@@ -865,6 +865,46 @@ change. <code>--no-plan</code> (or <code>--yes</code>) skips the plan. Later: <c
865
865
  <p>The recorder runs in an isolated world in each page, so the page's own scripts can neither see it nor add steps, and it
866
866
  records only real input: clicks and keys a script fakes are ignored. The panel's own clicks and keys never reach the page
867
867
  and are never recorded, and it stays above the page's dialogs. Recording uses local Chrome or Chromium.</p>
868
+ <p><strong>From the web app (Record page).</strong> You only do the steps, with nothing to describe first: the browser shows the site
869
+ with no panel in it, only a small &quot;Recording&quot; badge that takes no click. <strong>Pause</strong>, <strong>Undo</strong> and <strong>Stop</strong> are on the
870
+ Record page (and on the keys: Ctrl+Shift+Space, then P, Z or S). After each step the recorder keeps a picture of the
871
+ 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
872
+ address keeps no query, where a form sent by GET puts what was typed), and the calls the page made to its own site
873
+ that change data or fail (method, path and status only). When you stop, you review the recording with clicks.</p>
874
+ <p>The review starts with the steps and <strong>Write the test</strong>; everything else is under <strong>More</strong>. ForgeQE has already made
875
+ the choices most recordings need, as one version you can undo: an email typed where an account is made is new on each
876
+ run, and the last step has the check its page suggests first. When steps of the recording are a saved block, it says
877
+ so: <strong>Use the block</strong> marks them as the block.</p>
878
+ <div class="tbl"><table>
879
+ <thead>
880
+ <tr><th>In the review</th><th>What it does</th></tr>
881
+ </thead>
882
+ <tbody>
883
+ <tr><td>Name</td><td>Written from what you did (&quot;shop.test: Sign in → Email → Password → Log in …&quot;); change it if you like</td></tr>
884
+ <tr><td>Check that … under a step</td><td>One click adds a check of what the step brought to the page: a new title, a message or heading. Digits are checked by their shape (<code>Order placed: #\d+</code>)</td></tr>
885
+ <tr><td>A call under a step</td><td>One click checks the page's own call to its server, such as <code>POST /api/orders answers 201</code>: the test waits for it and checks its status</td></tr>
886
+ <tr><td>Suggest with the model</td><td>One model call reads the pages after each step and suggests checks and test data; each is kept only when it is what the recording holds. <strong>Add</strong> one, or <strong>Add all</strong></td></tr>
887
+ <tr><td>The picture of a step</td><td>Click a text on it to check that it shows, or a field to check its value</td></tr>
888
+ <tr><td>Add, then Check</td><td>The page the step leads to, or a check in your words, which the coding agent finds on the page</td></tr>
889
+ <tr><td>Add, then Step</td><td><strong>Record more from here</strong>: the browser opens and does the steps up to there, and you record what comes next; it goes in after that step. Or a step in your words (&quot;choose the cheapest delivery&quot;), which the coding agent finds on the page and does there; open a page; or go back</td></tr>
890
+ <tr><td>Add, then Note</td><td>A note on the step for whoever writes the test (&quot;this is the cart page object&quot;)</td></tr>
891
+ <tr><td>Drop (bin)</td><td>Removes the step</td></tr>
892
+ <tr><td>Instructions for the Coding agent</td><td>Anything else about the test, in your words: where it goes, the page objects to use, its tags. The coding agent follows them, as long as they keep to the steps and checks</td></tr>
893
+ <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>
894
+ <tr><td>Blocks</td><td>Keep steps you do in many tests (Sign in) as a block, <code>.forgeqe/blocks/&lt;name&gt;.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>
895
+ <tr><td>History</td><td>Every change is a version: go back to any of them, or to the recording as recorded</td></tr>
896
+ <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>
897
+ </tbody>
898
+ </table></div>
899
+ <p><strong>Start from a block</strong> (More options on the Record page): the recording opens the block's first page and does its
900
+ steps for you in the same tab, the recorder paused meanwhile; then you record the rest. A step that cannot be done (a
901
+ secret not set) ends the block there, and you do the rest by hand. <strong>Write the test</strong> hands the recording to the coding
902
+ agent, which asks nothing: the plan and where the test goes follow the repository, and each block becomes one helper
903
+ that every test using it calls. A past recording is run again the same way: <strong>Review</strong> in the list, then <strong>Try it</strong>.</p>
904
+ <p><strong>Write the test</strong> first plays the steps with Playwright, as the test will. When a step does not work, it says so
905
+ before any code is written: <strong>Record step N again</strong> (the browser does the steps before it, and what you record takes
906
+ its place), drop it, or write the test anyway. Then the Coding agent writes the test, and its work shows in the review:
907
+ what it is doing, the files it changed, and its answer (or why it stopped).</p>
868
908
  </div>
869
909
  </section>
870
910
  </div>
@@ -3881,7 +3921,7 @@ forgeqe report setup # a report after every Playw
3881
3921
  <div class="facts">
3882
3922
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Build a regression pack for sprint 12 and run it on TestMu</li><li>Which tests should we run for the PRs merged this week?</li></ul></div>
3883
3923
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>a repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to read a sprint's or release's work items: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
3884
- <div class="fact"><span class="mono">Tools</span><p class="tools"><code>build_regression_pack</code> <code>run_regression_pack</code> <code>list_regression_packs</code></p></div>
3924
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>build_regression_pack</code> <code>run_regression_pack</code> <code>list_regression_packs</code> <code>regression_sources</code> <code>edit_regression_pack</code></p></div>
3885
3925
  </div>
3886
3926
  <div class="detail"><span class="mono">In detail</span>
3887
3927
  <section class="doc" id="doc-how_to_use-regression-packs-for-a-release">
@@ -3912,6 +3952,27 @@ Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../sh
3912
3952
  </tbody>
3913
3953
  </table></div>
3914
3954
  <p><strong>Gaps.</strong> Changes no test is in for are listed as <em>not covered</em>, each with the closest existing test and what it lacks, so you can extend that test rather than write a new one.</p>
3955
+ <p><strong>The plan: what the release needs.</strong> Besides the tests to run, a pack is a plan in four groups, so what is ready is never mixed up with what someone still has to do:</p>
3956
+ <div class="tbl"><table>
3957
+ <thead>
3958
+ <tr><th>Group</th><th>What it is</th><th>Its script</th></tr>
3959
+ </thead>
3960
+ <tbody>
3961
+ <tr><td>A Automated</td><td>tests of the repository the pack found (the reasons above)</td><td><em>checked</em> only while its file is in the repository and still names the test; otherwise <em>missing</em> (moved, renamed or deleted since)</td></tr>
3962
+ <tr><td>B Manual</td><td>test cases linked to a changed work item that no automated test runs</td><td>run by a person</td></tr>
3963
+ <tr><td>C New automation</td><td>changes no test covers: a test to write, or the closest one to extend</td><td>to write</td></tr>
3964
+ <tr><td>D Exploratory</td><td>the risk areas the release touches</td><td>a session for a person</td></tr>
3965
+ </tbody>
3966
+ </table></div>
3967
+ <p>Each entry has a priority, says where it came from (<em>found</em> in the sources and the code, or <em>suggested</em> by ForgeQE or its agent) and keeps its evidence (the work item, pull request or defect history, with links). Change it in your words (&quot;take out the flaky ones&quot;, &quot;add a manual check of the invoice PDF&quot;, &quot;why is this in?&quot;) or on the page: priority, take out and put back, move between B, C and D, add an entry. An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the pack never claims a script it has not found. Every change is kept in the pack's history, with who made it.</p>
3968
+ <p>A pack starts as a <strong>draft</strong>; save it (a name, the release) when it is right, then run it now or on a schedule (a job that runs <code>forgeqe pack run</code>). Reuse it:</p>
3969
+ <ul>
3970
+ <li><strong>Refresh</strong>: the same changes read again (<code>forgeqe pack build --refresh release-22</code>); your edits and its runs stay.</li>
3971
+ <li><strong>The next release</strong>: a new pack from new changes that keeps the edits of an earlier one (<code>--based-on release-22</code>).</li>
3972
+ <li><strong>Compare</strong> two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and the other not, and their last runs.</li>
3973
+ </ul>
3974
+ <p><code>--release &quot;Release 22&quot;</code> names the release a pack is for.</p>
3975
+ <p><strong>On the Regression page</strong> there are two tabs. On <strong>Agent</strong> you ask for a pack in a sentence (&quot;Create a regression pack for Release 22&quot;). The agent reads which sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management, docs, a pipeline: the line at the top says which), says what a missing one would add and offers to connect it, and asks for the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then whether to save it and run it now or on a schedule. Above the message box, <em>The pack needs</em> ticks off each detail as it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it. The tab looks and works like the API page's Agent tab. None of the sources is required, and nothing runs until you say so. On <strong>Packs</strong> the packs are a table, newest first: each with how many entries are ready to run, scripts missing, manual, to automate and exploratory, and its last run. A row opens the pack's page: one strip of numbers (ready to run, script missing, the four groups, high priority, coverage of the release's changes, the last run; click one to show those entries), the plan as a table (all or one group, high priority, script missing, flaky or taken out, a search over tests, files and features, 50 rows a page with the highest priority first; a row opens its evidence), and beside it the release's changes, risk areas, runs and triage, history and a comparison with another release. Without a model set up, <em>Choose the changes</em> picks the sprint, commits or pull requests yourself.</p>
3915
3976
  <p><strong>Running it.</strong> ForgeQE asks before it runs anything.</p>
3916
3977
  <ul>
3917
3978
  <li><em>This machine</em>: ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test (for .NET, a <code>--filter</code> with each test, the settings an earlier job used, TRX results), runs it, and reads each result. A failed test runs once more; one that then passes is flaky.</li>
@@ -4051,10 +4112,10 @@ forgeqe pr-tests 42 --run --post # and post the results on p
4051
4112
  <div class="hd"><span class="mono">API</span><h3>API and contract testing</h3></div>
4052
4113
  <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, SOAP, and gRPC.</p>
4053
4114
  <div class="facts">
4054
- <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></ul></div>
4115
+ <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>
4055
4116
  <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>
4056
4117
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Functional API testing, not load or stress testing.</li></ul></div>
4057
- <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code></p></div>
4118
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_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>
4058
4119
  </div>
4059
4120
  <div class="detail"><span class="mono">In detail</span>
4060
4121
  <section class="doc" id="doc-how_to_use-api-and-contract-tests">
@@ -4085,6 +4146,31 @@ forgeqe api contracts --run # the latest browser run's API c
4085
4146
  forgeqe api run --base-url https://qa.shop.example # exit 1 when a contract fails: a CI gate
4086
4147
  forgeqe api tests --repo ../app # Scribe writes them as tests
4087
4148
  </code></pre></div>
4149
+ <p><strong>The Agent tab</strong> of the API tests page is a conversation: paste a link (an API description, a Postman collection,
4150
+ the docs), cURL commands, or tell it about the API in your words, and attach a file (a Postman collection is imported
4151
+ at once; an API description is kept in <code>.forgeqe/specs/</code> for the agent to read). The agent makes the API and its
4152
+ calls in folders, as Postman would (<code>api_new_set</code>, <code>api_add_calls</code>, <code>api_import_collection</code>, <code>api_contracts</code>), sends
4153
+ them, and says what it found; each API it made shows as a card to open on the Workbench tab. It never puts a
4154
+ credential in a call: you set the API's sign-in on the Workbench.</p>
4155
+ <p><strong>Postman collections</strong> (v2.0 and v2.1) come in from <strong>Add an API</strong> or the Agent tab, and go out with <strong>Export as a
4156
+ Postman collection</strong>: requests become calls in their folders, a saved example's status what each call must answer;
4157
+ only requests to the collection's own address are kept, and credentials (headers, secret variables, auth values)
4158
+ never are. An exported collection has a test of what each call must answer and <code>{{variables}}</code> where credentials go.</p>
4159
+ <p><strong>On the API tests page's Workbench tab</strong> (<code>forgeqe web</code>), it works like Postman, with an agent beside it. The APIs are on the left,
4160
+ each with its <strong>calls</strong> (contracts) and <strong>flows</strong> (scenarios). Open a call to see and change its request (method,
4161
+ path, params, headers, a JSON body), <strong>Send</strong> it and see what came back (body, headers, the checks that passed or
4162
+ failed), <strong>Save</strong> it, and set <strong>what it must answer</strong> (the status, the statuses that also pass, fields with their
4163
+ type or value), or take it from a right answer with <strong>Use as what it must answer</strong>. Pick the <strong>environment</strong> from
4164
+ <code>env.yaml</code> at the top: calls go to its API app's address, and <strong>Run</strong> runs every call and then every flow there
4165
+ (<code>forgeqe api run-all</code>). A call that changes data asks first: <strong>Send it once</strong>, or <strong>Always on</strong> that environment
4166
+ (remembered for the API, never for an environment named like production). <strong>Sign in</strong> once per API: a bearer token,
4167
+ an API key in a header, or a user name and password; the value you type goes to the credential store under a variable
4168
+ name, and only the name is kept with the API. Credential headers cannot be typed into a call's headers, and answers
4169
+ come back with credentials masked. Build a <strong>flow</strong> step by step from the API's calls: a step keeps a value from its
4170
+ answer by a name (<code>id</code> as <code>itemId</code>), and later steps use it as <code>{{itemId}}</code> in their path or body; <code>{{$unique}}</code> is
4171
+ new on each run. <strong>Ask the agent</strong> writes the tests, says why a call fails, or what is not tested yet, and its work
4172
+ shows on the page. Adding an API runs its calls that only read at once. Each run keeps the start of every answer (secrets
4173
+ masked), and each call shows how its last runs went.</p>
4088
4174
  </div>
4089
4175
  </section>
4090
4176
  <section class="doc" id="doc-how_to_use-end-to-end-api-scenarios">