@capagents/forgeqe 2.7.0 → 2.7.2

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 (95) hide show
  1. package/HOW_TO_USE.md +92 -19
  2. package/THIRD_PARTY_NOTICES.md +39 -0
  3. package/dist/docs-site/docs/index.html +79 -2
  4. package/dist/docs-site/docs/search.js +1 -1
  5. package/dist/forgeqe.js +1564 -1506
  6. package/dist/web/THIRD_PARTY_NOTICES.md +18 -51
  7. package/dist/web/assets/Agent-CxCmYQU5.js +4 -0
  8. package/dist/web/assets/ApiTests-BYx-CDHt.js +10 -0
  9. package/dist/web/assets/Chat-C6tALAzM.js +3 -0
  10. package/dist/web/assets/Data-IpXp3YB-.js +3 -0
  11. package/dist/web/assets/Evidence-B9rcXYHM.js +1 -0
  12. package/dist/web/assets/Features-EGps6J7t.js +1 -0
  13. package/dist/web/assets/Jobs-DutW6w6P.js +5 -0
  14. package/dist/web/assets/KindPage-DOYNwJDp.js +6 -0
  15. package/dist/web/assets/Migration-5kPbd43c.js +2 -0
  16. package/dist/web/assets/Product-DSxgpqDA.js +1 -0
  17. package/dist/web/assets/Quality-Bo0GxWoZ.js +1 -0
  18. package/dist/web/assets/Record-gGESInMV.js +2 -0
  19. package/dist/web/assets/Regression-b5ykN8hf.js +5 -0
  20. package/dist/web/assets/Reports-BcIDq-yP.js +2 -0
  21. package/dist/web/assets/Response-DLbH7Zyc.js +4 -0
  22. package/dist/web/assets/Runs-C9YExlBk.js +2 -0
  23. package/dist/web/assets/Shell-DGv_Zqjs.js +3 -0
  24. package/dist/web/assets/TestCases-CynVHtUB.js +1 -0
  25. package/dist/web/assets/TestData-5ynuvxFS.js +2 -0
  26. package/dist/web/assets/Tosca-BMePLsZA.js +2 -0
  27. package/dist/web/assets/WhatsNew-gMY090GS.js +1 -0
  28. package/dist/web/assets/dataParts-PzO8u_dt.js +3 -0
  29. package/dist/web/assets/index-CrZYPHPP.css +2 -0
  30. package/dist/web/assets/index-DI1ST-gI.js +43 -0
  31. package/dist/web/assets/parts-BD8kP4IN.js +1 -0
  32. package/dist/web/assets/productParts-Q9GA6BML.js +1 -0
  33. package/dist/web/assets/qualityParts-Df8rJX4J.js +1 -0
  34. package/dist/web/assets/segmented-1nc3D7ML.js +1 -0
  35. package/dist/web/assets/{thread-Jysn_9Ki.js → thread-CE28Yblm.js} +2 -2
  36. package/dist/web/assets/{usePageChat-DOel8PVW.js → usePageChat-3HvaQpPP.js} +1 -1
  37. package/dist/web/index.html +3 -3
  38. package/docs/prompts/graphify-evidence.md +164 -0
  39. package/docs/user-guide.html +79 -2
  40. package/forgeqe.example.yaml +17 -1
  41. package/package.json +3 -1
  42. package/prompts/README.md +1 -0
  43. package/prompts/tosca.md +64 -0
  44. package/py/forgeqe_tosca/__init__.py +85 -0
  45. package/py/forgeqe_tosca/__main__.py +50 -0
  46. package/py/forgeqe_tosca/ntir.py +484 -0
  47. package/py/forgeqe_tosca/render.py +128 -0
  48. package/py/forgeqe_tosca/tsu.py +187 -0
  49. package/py/forgeqe_tosca/vendor/toscatsu/LICENSE +26 -0
  50. package/py/forgeqe_tosca/vendor/toscatsu/UPSTREAM +7 -0
  51. package/py/forgeqe_tosca/vendor/toscatsu/gen_tsu.py +735 -0
  52. package/py/forgeqe_tosca/vendor/toscatsu/parse_tsu.py +1979 -0
  53. package/py/forgeqe_tosca/vendor/toscatsu/spec_to_manifest.py +878 -0
  54. package/py/forgeqe_tosca/vendored.py +50 -0
  55. package/skills/tosca-knowledge/SKILL.md +56 -0
  56. package/skills/tosca-knowledge/references/actions-and-values.md +63 -0
  57. package/skills/tosca-knowledge/references/locators.md +29 -0
  58. package/skills/tosca-knowledge/references/mapping-cypress.md +21 -0
  59. package/skills/tosca-knowledge/references/mapping-playwright.md +31 -0
  60. package/skills/tosca-knowledge/references/mapping-selenium-webdriverio.md +26 -0
  61. package/skills/tosca-knowledge/references/ntir.md +46 -0
  62. package/dist/web/assets/Agent-CTf8KPLI.js +0 -4
  63. package/dist/web/assets/ApiTests-8frnNIDb.js +0 -10
  64. package/dist/web/assets/Chat-Dj_ewn_H.js +0 -3
  65. package/dist/web/assets/Data-rQIV2OfV.js +0 -3
  66. package/dist/web/assets/Evidence-Dn4Uyakw.js +0 -1
  67. package/dist/web/assets/Features-BHbDkY6d.js +0 -1
  68. package/dist/web/assets/Jobs-1kD96CNp.js +0 -5
  69. package/dist/web/assets/KindPage-zoTK8F69.js +0 -6
  70. package/dist/web/assets/Migration-BZcHKmJc.js +0 -2
  71. package/dist/web/assets/Product-DDFGmWxZ.js +0 -1
  72. package/dist/web/assets/Quality-CopMddhf.js +0 -1
  73. package/dist/web/assets/Record-DrgYte-f.js +0 -2
  74. package/dist/web/assets/Regression-Cvj1amuO.js +0 -5
  75. package/dist/web/assets/Reports-BCZeHlgo.js +0 -2
  76. package/dist/web/assets/Response-wbe7YDRm.js +0 -4
  77. package/dist/web/assets/Runs-C-U8Zto_.js +0 -2
  78. package/dist/web/assets/Shell-CUmMbYAE.js +0 -3
  79. package/dist/web/assets/TestCases-D_WpgWxA.js +0 -1
  80. package/dist/web/assets/TestData-B5gzaqO3.js +0 -2
  81. package/dist/web/assets/WhatsNew-BD1_wOmf.js +0 -1
  82. package/dist/web/assets/arrow-down-I4TbiZy1.js +0 -1
  83. package/dist/web/assets/arrow-right-vf1aUPQ0.js +0 -1
  84. package/dist/web/assets/circle-DdyoI0MW.js +0 -1
  85. package/dist/web/assets/circle-dashed-D-xCti8W.js +0 -1
  86. package/dist/web/assets/circle-dot-__mRW42w.js +0 -1
  87. package/dist/web/assets/dataParts-Pr6w8WFl.js +0 -3
  88. package/dist/web/assets/index-BiJ_Nvm1.css +0 -2
  89. package/dist/web/assets/index-mdr9iNZb.js +0 -43
  90. package/dist/web/assets/keyboard-yInSyaVv.js +0 -1
  91. package/dist/web/assets/pencil-wafYzIpD.js +0 -1
  92. package/dist/web/assets/productParts-96V-QyCQ.js +0 -1
  93. package/dist/web/assets/qualityParts-CQ_0RsYl.js +0 -1
  94. package/dist/web/assets/segmented-OwL-zu4L.js +0 -1
  95. package/dist/web/assets/upload-CXgoFfF6.js +0 -1
package/HOW_TO_USE.md CHANGED
@@ -54,6 +54,7 @@ agent:
54
54
  | a route between two points, violet | Test planner | `forgeqe-test-plan` | Plans how a test recorded by hand fits the repository | No |
55
55
  | a cross, lime | Healer | `forgeqe-heal` | Heals tests the application outgrew | Yes, the repository |
56
56
  | two arrows, one each way, jade | Migrator | `forgeqe-migrate` | Migrates a test suite to another framework or language, one file at a time | Yes, the target folder of a confirmed migration plan |
57
+ | an arch bridge, spruce | Tosca converter | `forgeqe-tosca` | Converts Tricentis Tosca test cases into tests of another framework, one file at a time | Yes, the target folder of a confirmed Tosca plan |
57
58
  | a magnifier, cyan | Test finder | `forgeqe-find` | Finds the repository tests a request means | No |
58
59
  | a comment bubble, rose | PR reviewer | `forgeqe-pr-review` | Reviews pull requests | No |
59
60
  | a plug, teal | API test writer | `forgeqe-api` | Writes API and contract tests | Yes, the repository |
@@ -84,32 +85,35 @@ The icons as the shell draws them, each in its agent's colour:
84
85
  ▚▖ Test planner ▗▟▙▖ Healer
85
86
  ▝▀▄ ▝▜▛▘
86
87
 
87
- ▄▄█▄ Migrator ▟█▖ Test finder
88
- ▀█▀▀ ▝▀▐▖
88
+ ▄▄█▄ Migrator ▗▀▀▖ Tosca converter
89
+ ▀█▀▀ ▌▘▝▐
89
90
 
90
- ▛▛▛█ PR reviewer ▗▙▟▖ API test writer
91
- ▜▛▀▀ ▝▜▛▘
91
+ ▟█▖ Test finder ▛▛▛█ PR reviewer
92
+ ▝▀▐▖ ▜▛▀▀
92
93
 
93
- ▘▀▀▀ API planner ███▘ Explorer
94
- ▘▀▀ █
94
+ ▗▙▟▖ API test writer ▘▀▀▀ API planner
95
+ ▝▜▛▘ ▘▀▀
95
96
 
96
- ▚▟▙▞ Root cause ▜██▛ Refine
97
- ▜██▛ ▜▛
97
+ ███▘ Explorer ▚▟▙▞ Root cause
98
+ █ ▜██▛
98
99
 
99
- █ █ Agent builder ▟██▙ DB agent
100
- █ █ ▚▄▄▞
100
+ ▜██▛ Refine █ █ Agent builder
101
+ ▜▛ █ █
101
102
 
102
- ▐█▙ Judge ▄▟▙▄ Model profiler
103
- ▄▖▝▙ ▙▖ ▙
103
+ ▟██▙ DB agent ▐█▙ Judge
104
+ ▚▄▄▞ ▄▖▝▙
104
105
 
105
- █ █ Content judge ▛▀█▖ Scenario drafter
106
- ▞ ▞ ▙█▄▌
106
+ ▄▟▙▄ Model profiler █ █ Content judge
107
+ ▙▖ ▙ ▞ ▞
107
108
 
108
- ▀▖▗▀ Knowledge builder ▗▜▛▖ Investigator
109
- ▄▝▘▄ ▝▄▄▙
109
+ ▛▀█▖ Scenario drafter ▀▖▗▀ Knowledge builder
110
+ ▙█▄▌ ▄▝▘▄
110
111
 
111
- ▞▀▀▚ Acceptance reader ▛▀▀▜ Browser agent
112
- ▙██▟ ▙▄▄▟
112
+ ▗▜▛▖ Investigator ▞▀▀▚ Acceptance reader
113
+ ▝▄▄▙ ▙██▟
114
+
115
+ ▛▀▀▜ Browser agent
116
+ ▙▄▄▟
113
117
  ```
114
118
  <!-- subagents:end -->
115
119
 
@@ -138,6 +142,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
138
142
  | 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) |
139
143
  | 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) |
140
144
  | Automated tests | **Migrate a test suite**: Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO or Selenium), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working. | `migrate_tests` | [docs](#migrating-a-test-suite) |
145
+ | Automated tests | **Convert Tosca test cases**: Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with the Tosca agent, after a plan the user confirms; every Tosca step and check is marked in the converted test and checked, secrets become environment variables, and ForgeQE runs each test itself. | `convert_tosca` | [docs](#converting-tosca-tests) |
141
146
  | 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) |
142
147
  | 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) |
143
148
  | 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) |
@@ -492,7 +497,17 @@ forgeqe prompts eval refine --runs 3 # one prompt, three runs of each case
492
497
 
493
498
  ### Product knowledge graph
494
499
 
495
- ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it. Name the repositories in `forgeqe.yaml`, each a local clone (`path`, relative to the file) or its link (`git`):
500
+ ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it.
501
+
502
+ The quickest way is **Settings › Evidence** in `forgeqe web`, five steps in order:
503
+
504
+ 1. **Repositories.** Add an account on GitHub, Azure DevOps, GitLab or Bitbucket (Cloud or Data Center), sign in in the browser or with a personal access token, then pick its repositories. In the browser, GitHub signs in with the GitHub CLI, Azure DevOps with Microsoft through the Azure CLI, and GitLab and Bitbucket with Git Credential Manager; ForgeQE fetches the repositories with the same sign-in. A local clone or a link can still be added by hand.
505
+ 2. **Search service.** Where your requirements are searched (a RAG index): a service at an address, a tool of one of your MCP servers, or a local command. Try a search on the page (a command runs only on a real search).
506
+ 3. **Documents.** Add Markdown files (kept in `.forgeqe/documents`), or name folders, links, Confluence spaces and web apps.
507
+ 4. **The product and its knowledge.** Its industry and regulations, where the built knowledge is kept, and the team's shared knowledge pack.
508
+ 5. **Advanced.** What the build leaves out and how much the model reads.
509
+
510
+ The same settings in `forgeqe.yaml`: name the repositories, each a local clone (`path`, relative to the file) or its link (`git`):
496
511
 
497
512
  ```yaml
498
513
  product:
@@ -1728,6 +1743,64 @@ Exit codes of `migrate run`: `0` every test migrated, `1` some or none, `2` stop
1728
1743
  the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
1729
1744
  In the shell, "migrate our Selenium tests to Playwright" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job.
1730
1745
 
1746
+ ### Converting Tosca tests
1747
+
1748
+ `forgeqe tosca` converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with the
1749
+ Tosca agent. It is a separate agent from `forgeqe migrate`: a Tosca export is not a folder of code but a graph of test
1750
+ cases, modules, reusable blocks and parameters. Put the export (`.tsu`) inside the repository, then:
1751
+
1752
+ ```bash
1753
+ forgeqe tosca inspect tosca/checkout.tsu # what the export holds; no model, nothing written
1754
+ forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698_submit_order] [--test-attribute data-qa]
1755
+ forgeqe tosca confirm tsc-20261105-151116-1f21 --accept-limits # a person at a terminal types the plan's id
1756
+ forgeqe tosca run tsc-20261105-151116-1f21 # here, or as a job:
1757
+ forgeqe jobs add tosca-ui --now -- tosca run tsc-20261105-151116-1f21
1758
+ forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
1759
+ forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to the Tosca agent
1760
+ ```
1761
+
1762
+ 1. **Read.** ForgeQE reads the export with no model, through [ToscaTSU](https://github.com/bermudas/ToscaTSU)'s parser
1763
+ (MIT, included unchanged in `py/forgeqe_tosca/vendor/toscatsu`). It follows folders, reusable blocks with their
1764
+ parameter layers, If and Loop, buffers, and SelfHealingData, and writes each test case as NTIR, a neutral JSON form
1765
+ with numbered steps (`.forgeqe/tosca/<plan>/read/`). The export is data: nothing in it is run, and its size is capped.
1766
+ 2. **Secrets.** Tosca-encrypted values cannot be decrypted outside the Tosca workspace, and ForgeQE never tries. They
1767
+ and configuration parameters (`{CP[…]}`) become environment variables; the plan and `.env.example` name each one and
1768
+ where it comes from in Tosca. Values never reach the agent, the plan or the code.
1769
+ 3. **Plan.** One page object per Tosca module and one test per web test case, named by the target's conventions and
1770
+ placed under the test case's Tosca folders (`tests/orders/cart/…`; Tosca's own `TestCases` and similar folders left
1771
+ out). Tosca's execution lists become suites: each test is tagged with the lists that run it (Playwright
1772
+ `{ tag: ['@smoke'] }`, `@pytest.mark.smoke`, JUnit `@Tag`, NUnit `[Category]`, `@smoke` in a Cypress or WebdriverIO
1773
+ title), and ForgeQE checks the tags are there. Test
1774
+ cases whose steps are desktop, SAP, API or mobile are left out for now, and named. A step ForgeQE cannot convert
1775
+ (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it stays in the test as a marked
1776
+ comment for a person to finish.
1777
+ 4. **Confirm.** As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
1778
+ ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.
1779
+ 5. **Run.** The setup, then each page object, then each test, each in a fresh session of the Tosca agent, which may edit
1780
+ only the target folder. The agent marks each line that does a Tosca step with its id (`// tosca: n12`). ForgeQE's
1781
+ fidelity check needs every step and check marked (only the branch that runs of an If that is always true or false),
1782
+ no skipped test, and assertions where Tosca checked; then it runs the test with the target's own command. A failure
1783
+ goes back to the agent with the output, up to `code.max_attempts` times. At the end every converted test runs again
1784
+ with all files in place.
1785
+ 6. **Check again.** `forgeqe tosca verify <plan>` runs the converted tests again with no model: all of them, one
1786
+ Tosca execution list (`--suite`), or named tests (`--unit`). Each test's steps and tags are checked again, it is run
1787
+ with the target's own command, and its outcome and whole output are kept. `tosca-suites.json` in the target folder
1788
+ lists each suite with its tag and test files, and each test with its Tosca folders, suites and last outcome.
1789
+ 7. **Report.** `tosca.md` in `.forgeqe/tosca/<plan>/`: each test case's outcome and fidelity (steps marked of steps
1790
+ required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
1791
+ files that are done and unchanged.
1792
+
1793
+ Exit codes of `tosca run`: `0` every test converted, `1` some or none, `2` stopped. The Tosca page of `forgeqe web`
1794
+ (sidebar, Test) does the same in four steps (export, target, instructions, review): it lists the `.tsu` exports in
1795
+ the project, reads the one you pick and lets you choose its test cases, then follows the job: its stages, every file
1796
+ with how many of its Tosca steps the test does and its whole output (Fix sends one back to the Tosca agent with a note),
1797
+ Run tests again for all of them or Run for one suite, each test case's
1798
+ Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
1799
+ happens. In the shell, "convert
1800
+ tosca/checkout.tsu to Playwright" inspects the export and makes the plan; you confirm it yourself. The Tosca agent
1801
+ knows Tosca from its skill `tosca-knowledge` (ActionModes, value tokens, expressions, locators, and how each maps to
1802
+ every target).
1803
+
1731
1804
  ### Finding and running existing tests
1732
1805
 
1733
1806
  Ask for the tests you want in your own words, in the shell or with `forgeqe run`:
@@ -72,8 +72,47 @@ ForgeQE downloads these onto the machine it runs on, from their own sources, whe
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
  | 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 |
74
74
 
75
+ ## Source code included unchanged
76
+
77
+ | Software | What for | Licence | Source |
78
+ |----------|----------|---------|--------|
79
+ | ToscaTSU | The Tosca agent's .tsu reader (parse_tsu.py, gen_tsu.py, spec_to_manifest.py) | MIT | https://github.com/bermudas/ToscaTSU (commit 338f4dd062f0) |
80
+
75
81
  ## Licence texts
76
82
 
83
+ ### ToscaTSU (commit 338f4dd062f0)
84
+
85
+ MIT. https://github.com/bermudas/ToscaTSU
86
+
87
+ ```text
88
+ MIT License
89
+
90
+ Copyright (c) 2026 ToscaTSU contributors
91
+
92
+ Permission is hereby granted, free of charge, to any person obtaining a copy
93
+ of this software and associated documentation files (the "Software"), to deal
94
+ in the Software without restriction, including without limitation the rights
95
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
96
+ copies of the Software, and to permit persons to whom the Software is
97
+ furnished to do so, subject to the following conditions:
98
+
99
+ The above copyright notice and this permission notice shall be included in all
100
+ copies or substantial portions of the Software.
101
+
102
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
103
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
104
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
105
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
106
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
107
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
108
+ SOFTWARE.
109
+
110
+ ---
111
+
112
+ Tricentis Tosca is a trademark of Tricentis GmbH. This project is independent
113
+ and not affiliated with, endorsed by, or sponsored by Tricentis.
114
+ ```
115
+
77
116
  ### @opentui/core 0.5.12
78
117
 
79
118
  MIT. https://github.com/anomalyco/opentui
@@ -157,7 +157,7 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
157
157
  <div class="area"><a href="#area-mobile" class="area-name"><span class="mono">Mobile</span></a><ul class="tiles"><li><a href="#cap-mobile-apps" class="tile"><b>Automate Android and iOS apps</b><span>Sign in to the courier app and accept the first delivery, and save it as a test</span></a></li></ul></div>
158
158
  <div class="area"><a href="#area-operations" class="area-name"><span class="mono">Operations</span></a><ul class="tiles"><li><a href="#cap-containers" class="tile"><b>Services, mocks, workspace and browser in Docker or Podman</b><span>Start the database and the queue in Docker</span></a></li><li><a href="#cap-monitoring" class="tile"><b>Scheduled monitoring with alerts</b><span>Check the login flow every 15 minutes and alert Teams</span></a></li><li><a href="#cap-jobs" class="tile"><b>Background jobs on a schedule</b><span>Run the release-2.3 pack every weekday at 2am in the background</span></a></li><li><a href="#cap-custom-agents" class="tile"><b>Your team's custom agents</b><span>Ask our custom agent checkout-guard to check the basket on QA</span></a></li><li><a href="#cap-notifications" class="tile"><b>Teams and email notifications</b><span>Post the results to the QA channel</span></a></li><li><a href="#cap-pipelines" class="tile"><b>CI pipelines</b><span>Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green</span></a></li></ul></div>
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
- <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-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></ul></div>
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></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
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>
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></ul></div>
@@ -1777,7 +1777,16 @@ forgeqe prompts eval refine --runs 3 # one prompt, three runs of each case
1777
1777
  <div class="detail"><span class="mono">In detail</span>
1778
1778
  <section class="doc" id="doc-how_to_use-product-knowledge-graph">
1779
1779
  <h4>Product knowledge graph</h4>
1780
- <div class="prose"><p>ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it. Name the repositories in <code>forgeqe.yaml</code>, each a local clone (<code>path</code>, relative to the file) or its link (<code>git</code>):</p>
1780
+ <div class="prose"><p>ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it.</p>
1781
+ <p>The quickest way is <strong>Settings › Evidence</strong> in <code>forgeqe web</code>, five steps in order:</p>
1782
+ <ol>
1783
+ <li><strong>Repositories.</strong> Add an account on GitHub, Azure DevOps, GitLab or Bitbucket (Cloud or Data Center), sign in in the browser or with a personal access token, then pick its repositories. In the browser, GitHub signs in with the GitHub CLI, Azure DevOps with Microsoft through the Azure CLI, and GitLab and Bitbucket with Git Credential Manager; ForgeQE fetches the repositories with the same sign-in. A local clone or a link can still be added by hand.</li>
1784
+ <li><strong>Search service.</strong> Where your requirements are searched (a RAG index): a service at an address, a tool of one of your MCP servers, or a local command. Try a search on the page (a command runs only on a real search).</li>
1785
+ <li><strong>Documents.</strong> Add Markdown files (kept in <code>.forgeqe/documents</code>), or name folders, links, Confluence spaces and web apps.</li>
1786
+ <li><strong>The product and its knowledge.</strong> Its industry and regulations, where the built knowledge is kept, and the team's shared knowledge pack.</li>
1787
+ <li><strong>Advanced.</strong> What the build leaves out and how much the model reads.</li>
1788
+ </ol>
1789
+ <p>The same settings in <code>forgeqe.yaml</code>: name the repositories, each a local clone (<code>path</code>, relative to the file) or its link (<code>git</code>):</p>
1781
1790
  <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>product:
1782
1791
  name: Shop
1783
1792
  repos:
@@ -4446,6 +4455,74 @@ In the shell, &quot;migrate our Selenium tests to Playwright&quot; makes the pla
4446
4455
  </section>
4447
4456
  </div>
4448
4457
  </article>
4458
+ <article class="spec feat" id="cap-tosca-convert">
4459
+ <div class="hd"><span class="mono">Automated tests</span><h3>Convert Tosca test cases</h3></div>
4460
+ <p class="ds">Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with the Tosca agent, after a plan the user confirms; every Tosca step and check is marked in the converted test and checked, secrets become environment variables, and ForgeQE runs each test itself.</p>
4461
+ <div class="facts">
4462
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Convert the Tosca export tosca/checkout.tsu to Playwright TypeScript</li></ul></div>
4463
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a Tosca .tsu export inside a git repository</span></li></ul></div>
4464
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>convert_tosca</code></p></div>
4465
+ </div>
4466
+ <div class="detail"><span class="mono">In detail</span>
4467
+ <section class="doc" id="doc-how_to_use-converting-tosca-tests">
4468
+ <h4>Converting Tosca tests</h4>
4469
+ <div class="prose"><p><code>forgeqe tosca</code> converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with the
4470
+ Tosca agent. It is a separate agent from <code>forgeqe migrate</code>: a Tosca export is not a folder of code but a graph of test
4471
+ cases, modules, reusable blocks and parameters. Put the export (<code>.tsu</code>) inside the repository, then:</p>
4472
+ <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 tosca inspect tosca/checkout.tsu # what the export holds; no model, nothing written
4473
+ forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698_submit_order] [--test-attribute data-qa]
4474
+ forgeqe tosca confirm tsc-20261105-151116-1f21 --accept-limits # a person at a terminal types the plan's id
4475
+ forgeqe tosca run tsc-20261105-151116-1f21 # here, or as a job:
4476
+ forgeqe jobs add tosca-ui --now -- tosca run tsc-20261105-151116-1f21
4477
+ forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
4478
+ forgeqe tosca fix tsc-… --unit u004 --note &quot;The cart badge is now a span&quot; # one file back to the Tosca agent
4479
+ </code></pre></div>
4480
+ <ol>
4481
+ <li><strong>Read.</strong> ForgeQE reads the export with no model, through <a href="https://github.com/bermudas/ToscaTSU" class="ext" rel="noopener">ToscaTSU</a>'s parser
4482
+ (MIT, included unchanged in <code>py/forgeqe_tosca/vendor/toscatsu</code>). It follows folders, reusable blocks with their
4483
+ parameter layers, If and Loop, buffers, and SelfHealingData, and writes each test case as NTIR, a neutral JSON form
4484
+ with numbered steps (<code>.forgeqe/tosca/&lt;plan&gt;/read/</code>). The export is data: nothing in it is run, and its size is capped.</li>
4485
+ <li><strong>Secrets.</strong> Tosca-encrypted values cannot be decrypted outside the Tosca workspace, and ForgeQE never tries. They
4486
+ and configuration parameters (<code>{CP[…]}</code>) become environment variables; the plan and <code>.env.example</code> name each one and
4487
+ where it comes from in Tosca. Values never reach the agent, the plan or the code.</li>
4488
+ <li><strong>Plan.</strong> One page object per Tosca module and one test per web test case, named by the target's conventions and
4489
+ placed under the test case's Tosca folders (<code>tests/orders/cart/…</code>; Tosca's own <code>TestCases</code> and similar folders left
4490
+ out). Tosca's execution lists become suites: each test is tagged with the lists that run it (Playwright
4491
+ <code>{ tag: ['@smoke'] }</code>, <code>@pytest.mark.smoke</code>, JUnit <code>@Tag</code>, NUnit <code>[Category]</code>, <code>@smoke</code> in a Cypress or WebdriverIO
4492
+ title), and ForgeQE checks the tags are there. Test
4493
+ cases whose steps are desktop, SAP, API or mobile are left out for now, and named. A step ForgeQE cannot convert
4494
+ (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it stays in the test as a marked
4495
+ comment for a person to finish.</li>
4496
+ <li><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
4497
+ ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</li>
4498
+ <li><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of the Tosca agent, which may edit
4499
+ only the target folder. The agent marks each line that does a Tosca step with its id (<code>// tosca: n12</code>). ForgeQE's
4500
+ fidelity check needs every step and check marked (only the branch that runs of an If that is always true or false),
4501
+ no skipped test, and assertions where Tosca checked; then it runs the test with the target's own command. A failure
4502
+ goes back to the agent with the output, up to <code>code.max_attempts</code> times. At the end every converted test runs again
4503
+ with all files in place.</li>
4504
+ <li><strong>Check again.</strong> <code>forgeqe tosca verify &lt;plan&gt;</code> runs the converted tests again with no model: all of them, one
4505
+ Tosca execution list (<code>--suite</code>), or named tests (<code>--unit</code>). Each test's steps and tags are checked again, it is run
4506
+ with the target's own command, and its outcome and whole output are kept. <code>tosca-suites.json</code> in the target folder
4507
+ lists each suite with its tag and test files, and each test with its Tosca folders, suites and last outcome.</li>
4508
+ <li><strong>Report.</strong> <code>tosca.md</code> in <code>.forgeqe/tosca/&lt;plan&gt;/</code>: each test case's outcome and fidelity (steps marked of steps
4509
+ required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
4510
+ files that are done and unchanged.</li>
4511
+ </ol>
4512
+ <p>Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped. The Tosca page of <code>forgeqe web</code>
4513
+ (sidebar, Test) does the same in four steps (export, target, instructions, review): it lists the <code>.tsu</code> exports in
4514
+ the project, reads the one you pick and lets you choose its test cases, then follows the job: its stages, every file
4515
+ with how many of its Tosca steps the test does and its whole output (Fix sends one back to the Tosca agent with a note),
4516
+ Run tests again for all of them or Run for one suite, each test case's
4517
+ Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
4518
+ happens. In the shell, &quot;convert
4519
+ tosca/checkout.tsu to Playwright&quot; inspects the export and makes the plan; you confirm it yourself. The Tosca agent
4520
+ knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value tokens, expressions, locators, and how each maps to
4521
+ every target).</p>
4522
+ </div>
4523
+ </section>
4524
+ </div>
4525
+ </article>
4449
4526
  <article class="spec feat" id="cap-find-run-tests">
4450
4527
  <div class="hd"><span class="mono">Automated tests</span><h3>Find and run existing tests</h3></div>
4451
4528
  <p class="ds">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.</p>