@capagents/forgeqe 2.9.0 → 2.9.1

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 (123) hide show
  1. package/HOW_TO_USE.md +250 -22
  2. package/dist/docs-site/docs/desktop/index.html +45 -1
  3. package/dist/docs-site/docs/index.html +261 -4
  4. package/dist/docs-site/docs/search.js +1 -1
  5. package/dist/forgeqe.js +1671 -1623
  6. package/dist/web/assets/Agent-BNWcLTrm.js +4 -0
  7. package/dist/web/assets/ApiTests-CZFzjMKc.js +10 -0
  8. package/dist/web/assets/Browse-CeiK4X_V.js +2 -0
  9. package/dist/web/assets/{Chat-BcFP0BbA.js → Chat-BqXSNxV2.js} +3 -3
  10. package/dist/web/assets/CommandPalette-VSEzjRS1.js +1 -0
  11. package/dist/web/assets/Compare-Bjh-qB8C.js +1 -0
  12. package/dist/web/assets/Cost-BRtni21m.js +1 -0
  13. package/dist/web/assets/Data-Bzn351xU.js +6 -0
  14. package/dist/web/assets/Evidence-eM1ZsFF-.js +1 -0
  15. package/dist/web/assets/{Explore-Dw8S6DG1.js → Explore-D07Qbzyq.js} +2 -2
  16. package/dist/web/assets/Features-DFwuL5cN.js +1 -0
  17. package/dist/web/assets/Flags-pxSAu21R.js +2 -0
  18. package/dist/web/assets/Flaky-BdfqCR6j.js +1 -0
  19. package/dist/web/assets/ForceGraph-DC7NzeR4.js +1 -0
  20. package/dist/web/assets/Impact-CfnvrPzq.js +3 -0
  21. package/dist/web/assets/Jobs-CIKpgvcv.js +5 -0
  22. package/dist/web/assets/KindPage-OyYE9NU7.js +6 -0
  23. package/dist/web/assets/Migration-BQA6MOPN.js +2 -0
  24. package/dist/web/assets/Product-DNe8RV_H.js +7 -0
  25. package/dist/web/assets/Production-ClEiFS1u.js +1 -0
  26. package/dist/web/assets/Quality-BZnQcbb2.js +1 -0
  27. package/dist/web/assets/Readiness-Dk2KZZm4.js +1 -0
  28. package/dist/web/assets/Record-CSapdwkr.js +2 -0
  29. package/dist/web/assets/Regression-C7bZ5sSE.js +5 -0
  30. package/dist/web/assets/Reports-BWtgbiVp.js +2 -0
  31. package/dist/web/assets/{Response-DGl2R0A-.js → Response-DyvlQXek.js} +2 -2
  32. package/dist/web/assets/RunDiff-DWV5qdHx.js +1 -0
  33. package/dist/web/assets/{Runs-CkNWhAhe.js → Runs-CET6zwQu.js} +2 -2
  34. package/dist/web/assets/Steps-DUG1BKJb.js +2 -0
  35. package/dist/web/assets/TestCases-DyicRSqL.js +1 -0
  36. package/dist/web/assets/TestData-D2aWG3dq.js +2 -0
  37. package/dist/web/assets/TestDebt-DobUiGTz.js +1 -0
  38. package/dist/web/assets/Tosca-DvTni6va.js +3 -0
  39. package/dist/web/assets/WhatsNew-B3xewvk5.js +1 -0
  40. package/dist/web/assets/dataParts-rU9wRwfo.js +3 -0
  41. package/dist/web/assets/families-DWrv-fcS.js +1 -0
  42. package/dist/web/assets/filters-BDJYWuRV.js +1 -0
  43. package/dist/web/assets/fold-BgITvJex.js +1 -0
  44. package/dist/web/assets/frame-Dn34zQXO.js +4 -0
  45. package/dist/web/assets/index-BiMUTOBo.js +45 -0
  46. package/dist/web/assets/index-CGfii-zv.css +2 -0
  47. package/dist/web/assets/logos-C067hMmF.js +1 -0
  48. package/dist/web/assets/palette-Br50dJuQ.js +1 -0
  49. package/dist/web/assets/parts-CbA0h_uO.js +1 -0
  50. package/dist/web/assets/productParts-BxQnjrHo.js +1 -0
  51. package/dist/web/assets/qualityParts-Cn74cNyX.js +1 -0
  52. package/dist/web/assets/rows-X8lfgK8j.js +1 -0
  53. package/dist/web/assets/segmented-mcjXGwLg.js +1 -0
  54. package/dist/web/assets/{thread-BeaLQ_f4.js → thread-Bamx8xqR.js} +2 -2
  55. package/dist/web/assets/usePageChat-B-vpiXQ6.js +1 -0
  56. package/dist/web/index.html +4 -3
  57. package/docs/DESKTOP.md +48 -1
  58. package/docs/user-guide.html +261 -4
  59. package/package.json +1 -1
  60. package/prompts/README.md +1 -0
  61. package/prompts/impact-reader.md +8 -9
  62. package/prompts/tosca-assistant.md +47 -0
  63. package/prompts/tosca.md +3 -1
  64. package/py/forgeqe_desktop/agentdesktop_driver.py +57 -7
  65. package/py/forgeqe_desktop/handhooks.py +71 -22
  66. package/py/forgeqe_desktop/handrecord.py +7 -1
  67. package/py/forgeqe_desktop/heal.py +24 -2
  68. package/py/forgeqe_desktop/memory.py +54 -4
  69. package/py/forgeqe_desktop/pywinauto_driver.py +210 -12
  70. package/py/forgeqe_desktop/replay.py +10 -2
  71. package/py/forgeqe_desktop/service.py +9 -2
  72. package/py/forgeqe_desktop/ufo_runner.py +101 -1
  73. package/py/forgeqe_mobile/service.py +4 -1
  74. package/py/forgeqe_tosca/__init__.py +11 -1
  75. package/py/forgeqe_tosca/app.py +168 -0
  76. package/py/forgeqe_tosca/db.py +131 -0
  77. package/py/forgeqe_tosca/files.py +74 -0
  78. package/py/forgeqe_tosca/ntir.py +357 -5
  79. package/py/forgeqe_tosca/render.py +38 -0
  80. package/py/forgeqe_tosca/tsu.py +110 -0
  81. package/skills/tosca-knowledge/SKILL.md +14 -3
  82. package/skills/tosca-knowledge/references/api.md +54 -0
  83. package/dist/web/assets/Agent-BGwHbXbc.js +0 -4
  84. package/dist/web/assets/ApiTests-DSnZHRlF.js +0 -10
  85. package/dist/web/assets/Browse-Dx3pHGuG.js +0 -2
  86. package/dist/web/assets/CommandPalette-v6mqHZnU.js +0 -1
  87. package/dist/web/assets/Cost-C9LZdx1p.js +0 -1
  88. package/dist/web/assets/Data-DvbaOc9e.js +0 -6
  89. package/dist/web/assets/Evidence-Y1AeSzh5.js +0 -1
  90. package/dist/web/assets/Features-CjrVraBE.js +0 -1
  91. package/dist/web/assets/Flags-C_Qm0078.js +0 -2
  92. package/dist/web/assets/Flaky-DYgN586D.js +0 -1
  93. package/dist/web/assets/ForceGraph-CEH86-Z0.js +0 -1
  94. package/dist/web/assets/Impact-dBPp7aM2.js +0 -3
  95. package/dist/web/assets/Jobs-CSyN6YRx.js +0 -5
  96. package/dist/web/assets/KindPage-BQl-5bcd.js +0 -6
  97. package/dist/web/assets/Migration-COly7O-T.js +0 -2
  98. package/dist/web/assets/Product-7mM8tcxH.js +0 -7
  99. package/dist/web/assets/Production-De5CCUoP.js +0 -1
  100. package/dist/web/assets/Quality-Q_iqj3fk.js +0 -1
  101. package/dist/web/assets/Readiness-kU9kum_I.js +0 -1
  102. package/dist/web/assets/Record-CIhINuEz.js +0 -2
  103. package/dist/web/assets/Regression-CMQnH7dN.js +0 -5
  104. package/dist/web/assets/Reports-dUOe6_vN.js +0 -2
  105. package/dist/web/assets/RunDiff-BVRRIz3m.js +0 -1
  106. package/dist/web/assets/TestCases-exR7hRWd.js +0 -1
  107. package/dist/web/assets/TestData-yVPMg9kw.js +0 -2
  108. package/dist/web/assets/TestDebt-C3sM6cH0.js +0 -1
  109. package/dist/web/assets/Tosca-Bcalg1JU.js +0 -2
  110. package/dist/web/assets/WhatsNew-EFSt6xx2.js +0 -1
  111. package/dist/web/assets/dataParts-D33u08WR.js +0 -3
  112. package/dist/web/assets/families-Btjss8bN.js +0 -1
  113. package/dist/web/assets/frame-D3IhgCFt.js +0 -4
  114. package/dist/web/assets/index-D5sya6FK.css +0 -2
  115. package/dist/web/assets/index-v-k_CVn7.js +0 -45
  116. package/dist/web/assets/logos-CfpaNwbY.js +0 -1
  117. package/dist/web/assets/palette-X7hU78Wy.js +0 -1
  118. package/dist/web/assets/parts-B7YrlR3a.js +0 -1
  119. package/dist/web/assets/productParts-CAxyMnWJ.js +0 -1
  120. package/dist/web/assets/qualityParts-CN9JVKZN.js +0 -1
  121. package/dist/web/assets/rows-IEP4Jvfi.js +0 -1
  122. package/dist/web/assets/segmented-DBqHvZW3.js +0 -1
  123. package/dist/web/assets/usePageChat-D_3KsqBU.js +0 -1
package/HOW_TO_USE.md CHANGED
@@ -55,6 +55,7 @@ agent:
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
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 |
58
+ | a compass, lilac | Tosca assistant | `forgeqe-tosca-assistant` | Reads what a person asks to migrate from Tosca and fills in the Tosca wizard for them | No |
58
59
  | a magnifier, cyan | Test finder | `forgeqe-find` | Finds the repository tests a request means | No |
59
60
  | a comment bubble, rose | PR reviewer | `forgeqe-pr-review` | Reviews pull requests | No |
60
61
  | a plug, teal | API test writer | `forgeqe-api` | Writes API and contract tests | Yes, the repository |
@@ -90,35 +91,35 @@ The icons as the shell draws them, each in its agent's colour:
90
91
  ▄▄█▄ Migrator ▗▀▀▖ Tosca converter
91
92
  ▀█▀▀ ▌▘▝▐
92
93
 
93
- ▟█▖ Test finder ▛▛▛█ PR reviewer
94
- ▝▀▐▖ ▜▛▀▀
94
+ ▗▀█ Tosca assistant ▟█▖ Test finder
95
+ ▝▟▄▘ ▝▀▐▖
95
96
 
96
- ▗▙▟▖ API test writer ▘▀▀▀ API planner
97
- ▝▜▛▘ ▘▀▀
97
+ ▛▛▛█ PR reviewer ▗▙▟▖ API test writer
98
+ ▜▛▀▀ ▝▜▛▘
98
99
 
99
- ███▘ Explorer ▚▟▙▞ Root cause
100
- █ ▜██▛
100
+ ▘▀▀▀ API planner ███▘ Explorer
101
+ ▘▀▀ █
101
102
 
102
- ▜██▛ Refine █ █ Agent builder
103
- ▜▛ █ █
103
+ ▚▟▙▞ Root cause ▜██▛ Refine
104
+ ▜██▛ ▜▛
104
105
 
105
- █▀▀█ Bug reporter ▟██▙ DB agent
106
- ▙▟▙▟ ▚▄▄▞
106
+ █ █ Agent builder █▀▀█ Bug reporter
107
+ █ █ ▙▟▙▟
107
108
 
108
- ▐█▙ Judge ▄▟▙▄ Model profiler
109
- ▄▖▝▙ ▙▖ ▙
109
+ ▟██▙ DB agent ▐█▙ Judge
110
+ ▚▄▄▞ ▄▖▝▙
110
111
 
111
- █ █ Content judge ▛▀█▖ Scenario drafter
112
- ▞ ▞ ▙█▄▌
112
+ ▄▟▙▄ Model profiler █ █ Content judge
113
+ ▙▖ ▙ ▞ ▞
113
114
 
114
- ▀▖▗▀ Knowledge builder ▗▜▛▖ Investigator
115
- ▄▝▘▄ ▝▄▄▙
115
+ ▛▀█▖ Scenario drafter ▀▖▗▀ Knowledge builder
116
+ ▙█▄▌ ▄▝▘▄
116
117
 
117
- ▞▀▀▚ Acceptance reader ▗▚▞▖ Change reader
118
- ▙██▟ ▝▞▚▘
118
+ ▗▜▛▖ Investigator ▞▀▀▚ Acceptance reader
119
+ ▝▄▄▙ ▙██▟
119
120
 
120
- ▛▀▀▜ Browser agent
121
- ▙▄▄▟
121
+ ▗▚▞▖ Change reader ▛▀▀▜ Browser agent
122
+ ▝▞▚▘ ▙▄▄▟
122
123
  ```
123
124
  <!-- subagents:end -->
124
125
 
@@ -990,6 +991,41 @@ For Ollama this matters: a prompt longer than the server's context length is cut
990
991
 
991
992
  Instead of copying tokens into `.env`, sign in once and ForgeQE saves the token in your system's credential store: the macOS Keychain, Windows Credential Manager, or the Secret Service keyring on Linux. On a machine without one, such as a headless Linux box, it uses `~/.forgeqe/credentials.json`, readable only by you.
992
993
 
994
+ **Secrets and vaults.** Settings › Secrets has every password, key and token ForgeQE keeps in your credential store,
995
+ by name: typed in Settings, pulled from a vault, or kept by a sign-in (removed by signing out of it). Add a secret saves
996
+ its value one way; ForgeQE never shows it again and the agents see only its name. Agents and tests use a secret by its
997
+ name: in a sign-in (`logins:`), an environment's `secrets:`, or a test's variables (model-run shells never get one a
998
+ test does not read).
999
+
1000
+ The Vaults tab connects Azure Key Vault (a vault's name), Google Secret Manager (a project) and AWS Secrets Manager (a
1001
+ region). Sign in with your browser (recommended): each vault's row shows whether ForgeQE can sign in, and **Sign in**
1002
+ starts the provider's own browser sign-in on this computer (`az login`, `gcloud auth login`, or `aws sso login` for an
1003
+ SSO profile set up once with `aws configure sso`; AWS CLI 2.9 or later), showing its link and one-time code when there
1004
+ is one. The cloud's CLI keeps the sign-in and renews it; ForgeQE saves nothing. For a computer with nobody to sign in,
1005
+ such as a build agent, a vault signs in with keys that are themselves saved secrets instead (a service principal's
1006
+ tenant, client id and secret; a service account's JSON key; access keys). Browse lists a vault's secret names, never a value; pick one, give it a
1007
+ variable's name (and a JSON field, for a secret that holds JSON) and Pull: the value goes from the vault straight to
1008
+ the credential store. Pull all again reads each one's newest value. Vault connections are kept on this computer for
1009
+ this project (`~/.forgeqe/secrets`), never in the repository, so a repository cannot make ForgeQE read your vault; a
1010
+ value is read only when you pull it. ForgeQE calls only the provider's own https address, follows no redirect, and an
1011
+ error never repeats what the provider sent.
1012
+
1013
+ To give teammates the same vaults, **Export** on the Vaults tab saves a file of the connections (`forgeqe-vaults.json`):
1014
+ each vault's provider, place and how it signs in (key variables by name), and which vault secret each variable is
1015
+ pulled from. It holds no value, token or time, so it can be shared. A teammate's **Import** checks every vault again,
1016
+ keeps a vault they already have by that name as it is (one that differs is skipped, never replaced), and lists each
1017
+ secret to pull on Saved as "not pulled yet": they sign in with their own account and press Pull. A file that holds
1018
+ anything but connections is refused whole.
1019
+
1020
+ **Repository tokens.** The git repositories ForgeQE clones (Tosca exports, a migration's source, the product's
1021
+ repositories) sign in with a personal access token named by its variable. They are secrets like the others: Settings ›
1022
+ Secrets › **Repository tokens** (a filter of its Saved list) shows each one by name, saved by ForgeQE (Edit, Remove)
1023
+ or set in your shell, with what uses it, and first the ones a clone or product repository needs that have no value
1024
+ yet. Add a token saves its value straight to the credential store; the page never shows it again, and the agents see
1025
+ only its name. The old address `#/settings/repo-tokens` opens this filter. A name is capital letters,
1026
+ digits and `_` (`GITHUB_TOKEN`, `AZURE_DEVOPS_PAT`); names that change how programs start, `GIT_*` among them, are
1027
+ refused. Give each token read access to the repositories only.
1028
+
993
1029
  ```bash
994
1030
  forgeqe auth login # pick a system
995
1031
  forgeqe auth login jira # or name it: azure_devops, github, copilot, jira, confluence, testrail, zephyr, qtest, xray,
@@ -1804,6 +1840,12 @@ forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698
1804
1840
  forgeqe tosca confirm tsc-20261105-151116-1f21 --accept-limits # a person at a terminal types the plan's id
1805
1841
  forgeqe tosca run tsc-20261105-151116-1f21 # here, or as a job:
1806
1842
  forgeqe jobs add tosca-ui --now -- tosca run tsc-20261105-151116-1f21
1843
+ forgeqe tosca plan tosca/ --to playwright-typescript # every .tsu in a folder, as one plan
1844
+ forgeqe tosca clone https://github.com/org/tosca-exports.git --branch main --token-var GITHUB_TOKEN # exports from git
1845
+ forgeqe tosca plan --workspace ws-… --to playwright-typescript # every export of that clone (or name some)
1846
+ forgeqe tosca reimport tsc-… [--refresh] # read the exports again: a new plan that keeps unchanged tests
1847
+ forgeqe tosca map tsc-… [--json] # each Tosca test case by its unique id, and what became of it
1848
+ forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data] # what running the tests needs, before it starts
1807
1849
  forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
1808
1850
  forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to the Tosca agent
1809
1851
  ```
@@ -1823,6 +1865,48 @@ forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # o
1823
1865
  cases whose steps are desktop, SAP, API or mobile are left out for now, and named. A step ForgeQE cannot convert
1824
1866
  (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it stays in the test as a marked
1825
1867
  comment for a person to finish.
1868
+ **Several exports, or a git repository.** A plan can read many `.tsu` files: picked on the page, named on the
1869
+ command line, or a folder (every export in it, at most 50). Each is read on its own and the readings merged: a test
1870
+ case that two exports both hold (same id, name, folders and steps) is converted once and the plan says so; a
1871
+ different test case with the same id gets its export's number; a module of the same name becomes one page object;
1872
+ execution lists and variables join. Exports can come from a git repository instead of the project:
1873
+ `forgeqe tosca clone <url>` (or From a git repository on the page) makes a shallow copy under ForgeQE's home with
1874
+ the Migration agent's checks (https or git@ only, no user name in the address, the token by its variable's name and
1875
+ only as a header, no hooks, submodules or links) and keeps it only when it holds an export; such a copy is a Tosca
1876
+ source, never listed as a migration's. Every file of a plan is checked by its digest before each run, so a changed
1877
+ or removed export (or a removed copy) stops it until a new plan is made.
1878
+ **Back to Tosca.** Each test case keeps Tosca's unique id (its surrogate). `tosca-map.json` in the target folder
1879
+ (beside `tosca-suites.json`, written by ForgeQE after each run and verify) lists every Tosca test case of the plan
1880
+ by that id, its Tosca path and export, and what became of it: its test file, last outcome, the Tosca steps in the
1881
+ test and those left for a person. `forgeqe tosca map <plan>` prints it; the report shows the id on each test case
1882
+ and downloads it as a Traceability CSV, so a team can run both side by side and retire Tosca test cases one by one.
1883
+ **Reading the exports again.** When Tosca changes, `forgeqe tosca reimport <plan>` (or Read exports again on the
1884
+ conversion's page) makes a new plan from the same exports, for the same target and folder, and compares each test
1885
+ case with the earlier plan by its unique id (or, for a plan made before ids were kept, its id) and its steps:
1886
+ unchanged ones keep their tests (no agent call, as long as the file is still as it was converted), changed and new
1887
+ ones are converted, and ones no longer in the exports are listed with their tests left in place for a person to
1888
+ remove. Test cases left unpicked before stay unpicked. `--refresh` (or the page's option) clones each repository
1889
+ again for its newest commit, as before; the old copy stays for the old plan.
1890
+ **What can be migrated.** `forgeqe tosca inspect`, `show` and the Tosca page put every test case of the export in
1891
+ one kind: web (converted), web with steps for a person, API (converted), API with steps for a person, web and API
1892
+ (converted), web or API mixed with another engine (converted: its web and API steps, and each desktop, mobile or
1893
+ database step stays in the test as a marked comment saying what it does, for a person to code), desktop, mobile,
1894
+ database and files, steps nothing reads, nothing to convert, not picked. Each kind says what becomes of it and the Tosca
1895
+ modules (with their engine) behind it, or for steps left to a person the reasons; the page downloads it as a CSV
1896
+ per test case.
1897
+ **Ready to run.** Before a conversion starts, ForgeQE checks what running its tests needs and asks for what is
1898
+ missing (`forgeqe tosca ready <plan>`, or the page's Before it runs): where the tests start (the address the export
1899
+ recorded, an app of env.yaml, never an environment named like production, or one given: http(s) only, no user name
1900
+ in it), every environment variable the tests read (set, or saved in the credential store from the page; never its
1901
+ value in a file), the programs the target runs with (`npx`, `mvn`, `dotnet`, looked up on PATH), and Tosca test
1902
+ data the export does not hold. A missing address or program blocks the start; a variable or the test data is
1903
+ answered or accepted ("convert without it"). Answers are kept in `.forgeqe/tosca/<plan>/ready.json`; `run`, `fix`
1904
+ and `verify` refuse until nothing is open, and the tests get the reviewed address as `BASE_URL`.
1905
+ **What it may cost.** Review's Estimate (and `forgeqe tosca show` or `confirm`) gives the model tokens of the
1906
+ files still to write, as a range, and their price with the model the Tosca agent is routed to when that model has a
1907
+ price in `llms.json` (`price:`; none for a Copilot seat). It is worked out from this project's earlier Tosca
1908
+ conversions once they have written at least 5 files (tokens per file), else from defaults sized by each test case's
1909
+ steps; files already written are not counted again. An estimate, never a limit: a hard test case takes more tries.
1826
1910
  4. **Confirm.** As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
1827
1911
  ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.
1828
1912
  5. **Run.** The setup, then each page object, then each test, each in a fresh session of the Tosca agent, which may edit
@@ -1837,7 +1921,22 @@ forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # o
1837
1921
  lists each suite with its tag and test files, and each test with its Tosca folders, suites and last outcome.
1838
1922
  7. **Report.** `tosca.md` in `.forgeqe/tosca/<plan>/`: each test case's outcome and fidelity (steps marked of steps
1839
1923
  required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
1840
- files that are done and unchanged.
1924
+ files that are done and unchanged. `report.html` beside it is ForgeQE's HTML run report of the conversion, written
1925
+ when a run or `tosca verify` ends: one case per Tosca test case, its Tosca steps as passed, failed or left for a
1926
+ person, its problems and output, and its failure screenshot and video (in `report-cases/`, so the folder opens
1927
+ offline). The web app's report shows the totals, the model's tokens and cost, and where the tests came from and went
1928
+ to at the top; the test cases grouped as Failed, Needs a look, Passed, Not run and Left out, 50 at a time and
1929
+ searchable; and the picked one's details beside them. Its HTML report button downloads `report.html` with the failure
1930
+ screenshots inside; Zip with videos downloads `report.zip` (`report.html` and `report-cases/` with every screenshot
1931
+ and video, made when asked and once the run has ended): unzip it and open `report.html`.
1932
+ 8. **Screenshots and video, by default.** Every test ForgeQE runs after the conversion (each try, the final run, and
1933
+ `tosca verify`) keeps a screenshot when it fails and a video of the run, under `test-results/` in the target folder
1934
+ (the run gets that folder as `FORGEQE_EVIDENCE_DIR`); they are copied to `.forgeqe/tosca/<plan>/evidence/<unit>/`
1935
+ and shown on the report page. Where the runner has switches for it, ForgeQE passes them itself (pytest-playwright's
1936
+ `--screenshot=only-on-failure --video=on`, Cypress's `--config video=true,…`); elsewhere the setup step sets it up
1937
+ (`playwright.config`'s `screenshot: 'only-on-failure', video: 'on'`, a test base for Java and C#, an `afterTest`
1938
+ hook and wdio-video-reporter for WebdriverIO) and ForgeQE checks the project for it, setting it up again when it is
1939
+ missing. Selenium has no video recorder: its tests keep failure screenshots only.
1841
1940
 
1842
1941
  Exit codes of `tosca run`: `0` every test converted, `1` some or none, `2` stopped. The Tosca page of `forgeqe web`
1843
1942
  (sidebar, Test) does the same in four steps (export, target, instructions, review): it lists the `.tsu` exports in
@@ -1845,7 +1944,136 @@ the project, reads the one you pick and lets you choose its test cases, then fol
1845
1944
  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),
1846
1945
  Run tests again for all of them or Run for one suite, each test case's
1847
1946
  Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
1848
- happens. In the shell, "convert
1947
+ happens.
1948
+
1949
+ **The Tosca assistant.** The Tosca page opens on its Agent tab: say in your words what to migrate ("checkout.tsu to
1950
+ Playwright in TypeScript on QA, into e2e/tosca") and the assistant asks only what it still needs, one thing at a time:
1951
+ the exports, the framework, the language, where the tests start, then a folder or rules for the code. Each question
1952
+ offers its options to pick; you can also type, and change anything you said. Open the prefilled wizard then reads the
1953
+ exports, makes the plan and opens it on Review with every stage filled in; nothing starts until you confirm, as before.
1954
+ ForgeQE's model (`forgeqe-tosca-assistant`: no tools, a fixed answer shape) only reads your words. ForgeQE keeps only
1955
+ what your project has (an export it lists, a target it runs, a web app of env.yaml outside production), an address only
1956
+ of http(s) that you wrote and that is not production's, and a folder only inside the repository; it chooses the next
1957
+ question itself. Without a model, ForgeQE's rules read the same words. The exports question lets you pick several, or
1958
+ clone a git repository of exports: paste its address (add "branch <name>" for a branch), and the assistant asks "Clone
1959
+ it?" first; it clones as the wizard does and picks the clone's exports. For a private repository, the question has an
1960
+ Access token field: pick a token already saved (in Settings › Secrets › Repository tokens, or a variable such as GITHUB_TOKEN;
1961
+ Check again reads the list once you have saved one there), or Add a token, which keeps the value in ForgeQE's
1962
+ credential store under its name. The chat and the model only ever see the name, Clone it waits until a value is saved, and a token typed into the
1963
+ chat itself is refused and never sent. Each conversation is kept in ForgeQE's home (`~/.forgeqe/tosca-assistant`, readable by you only,
1964
+ two weeks, the newest 30), so it survives `forgeqe web` starting again, and the page reopens the last one; New
1965
+ conversation removes it. Nothing is written to the project until the wizard makes the plan (or you agree to a clone).
1966
+ When the picked exports hold desktop or mobile test cases, or database checks, the assistant also asks which desktop
1967
+ or mobile app their workflows start and which database their queries read (only the names Settings has, or "Tell you
1968
+ later"); the wizard puts the answers on Review.
1969
+
1970
+ **API test cases.** Test cases of Tosca's API engine (API Scan modules: one per call, its Method, Endpoint and
1971
+ Resource as the module's settings, the request and the response as attribute trees) are converted too, alone or in a
1972
+ test case with web steps. Each call becomes a request with the target's own HTTP client (Playwright's `request`,
1973
+ Cypress's `cy.request`, Node's `fetch` for WebdriverIO, the language's standard client for Selenium; no dependency is
1974
+ added for HTTP), then a check for each Tosca verify: the status, a header, a JSON value (Tosca's `==`, `!=`, `<`, `>`,
1975
+ `*` comparisons kept) or the body; a buffer keeps a response value for a later call. The API's address and any token
1976
+ in a header (`Bearer {CP[ApiToken]}`) are variables the tests read, the token a secret, never in the code. An
1977
+ attribute ForgeQE cannot place (a timeout, a certificate) stays a marked comment for a person, and the fidelity check
1978
+ counts every request and check as it does a web step. A plan of API test cases only needs no start address; a
1979
+ variable the tests read that holds an address of production in env.yaml blocks the start, since the tests change data.
1980
+
1981
+ **Tosca's test data.** A template test case reads its values from a TestCaseDesign test sheet (`{XL[Name]}`), which a
1982
+ .tsu export does not hold. On Review's **Test data from Tosca** (or `forgeqe tosca data <plan> <file> [--sheet NAME]`),
1983
+ name a data file of the project: Tosca's Export to Excel of the test sheet, or any CSV, Excel or JSON with the values.
1984
+ ForgeQE matches each name to a column (ignoring case, spaces and punctuation, then by the last part of a dotted name),
1985
+ in either layout: one row per instance, or Tosca's own with the attributes down the first column and the instances
1986
+ across. Several files can be named, one per test sheet. At conversion each test case whose values are all found gets
1987
+ its rows in `tosca-data/<case>.json` in the target folder, with only the columns it reads, and its test runs once per
1988
+ row. A value named like a password or token is never written to that file (it would be committed): the test reads it
1989
+ from an environment variable, `TOSCA_DATA_<NAME>`, which Review lists to set like any other. The file is read with the
1990
+ project's own reader (inside the project, no hidden part, no link out, sizes capped, a formula never worked out), and
1991
+ the values never reach the agent: it is told the file and the names. A value still not found stays a marked spot for
1992
+ a person, or you accept leaving them all for a person. ForgeQE's reader now keeps `{XL[...]}` as test data even inside
1993
+ a longer value (`Welcome {XL[Customer.FirstName]}`); before, the parser's `$XL:` text could reach a test as typed text.
1994
+
1995
+ **Database steps.** A Tosca database step (a module of a database engine: an SQL statement and checks of its result)
1996
+ becomes code in the test that runs the statement with the target's own database client and asserts each checked cell
1997
+ (row and column) as Tosca did, beside the test's web and API steps; a test case of database checks alone is converted
1998
+ too. Only a statement that reads is converted: one `SELECT` (or `WITH … SELECT`), nothing that changes data or the
1999
+ schema, runs a procedure, writes a table or holds a second statement. A statement Tosca fills with its own values
2000
+ (`{B[...]}`, `{CP[...]}`, `{XL[...]}`) is converted with each value as a bound query parameter, never pasted into the
2001
+ statement; one whose value sits inside quotes, and any other statement, stays a marked comment for a person. Before it runs, Review asks which database:
2002
+ one of Settings › Databases whose connection string is in a variable (`url_env`), never one named like production
2003
+ (`forgeqe tosca ready <plan> --database NAME`). The test reads that connection string from `TOSCA_DB_URL`, which
2004
+ ForgeQE gives only the test run; the export's own connection string (and any password in it) is never read into the
2005
+ plan, the brief or the code. The CI pipeline names `TOSCA_DB_URL` as a secret.
2006
+
2007
+ **File and Excel steps.** A Tosca step that reads a file (a TBox file module: whether it is there, its text, two text
2008
+ files compared) or a workbook (Tosca's Excel engine: a sheet's cells) becomes a check in the test, made with the
2009
+ target's own code: read only, as database steps are. The file is found by its name, among the files the test
2010
+ downloaded or in the folder `TOSCA_FILES_DIR` names (Review asks for it), never at the Tosca machine's own path. A step
2011
+ that writes, copies, moves, renames or deletes a file, or sets a cell, stays a marked comment for a person.
2012
+
2013
+ **Desktop and mobile test cases.** A Tosca test case of desktop steps (UI Automation: WinForms, WPF, Win32) or of
2014
+ mobile steps becomes one of ForgeQE's own workflows, `forgeqe-desktop-v1` or `forgeqe-mobile-v1`, written by code with
2015
+ no model: Tosca finds each control by its UI Automation properties (AutomationId, Name, ControlType, ClassName) or its
2016
+ resource id, accessibility id, text and class, which are what a workflow's targets are. Each step becomes a workflow
2017
+ step (type, click or tap, select, keys, expect, wait for), a Tosca-encrypted value `{{secret:NAME}}`, and test data
2018
+ `{{name}}`. With a data file picked on Review (see Tosca's test data), its rows go into `<case>.data.csv` beside the
2019
+ workflow, for `--data`; a value named like a secret is typed from `TOSCA_DATA_<NAME>` instead and never written. A step a workflow cannot do (a condition, a loop, a buffer, a Tosca expression, a TBox module, a control
2020
+ with no id or name recorded) is left out and listed with why in the conversion's results, for a person to add. Before
2021
+ it runs, Review asks which app the workflows start: one of the desktop or mobile apps of Settings › Environments (or
2022
+ `desktop.apps`, `mobile.apps`); `forgeqe tosca ready <plan> --desktop-app NAME --mobile-app NAME` at a terminal. Review
2023
+ also checks that every secret the workflows type is listed in `desktop.secrets` (or `mobile.secrets`), which replay
2024
+ requires, and says which to add in Settings. They are
2025
+ written under `workflows/` in the target folder (so the pull request carries them) and checked again before they are
2026
+ written; replay them on a computer with the app or a device with `forgeqe desktop replay` or `forgeqe mobile replay`.
2027
+ A plan of workflows only needs no model and no setup. SAP GUI, Java Swing, Delphi and PowerBuilder controls are not
2028
+ ones UI Automation finds, so such cases stay out. In a case that also drives the web or an API, each run of desktop or
2029
+ mobile steps becomes a small workflow of its own (`workflows/<case>-part<N>.yaml`), and the test replays it at that
2030
+ point by starting `forgeqe desktop replay` (or `mobile replay`) with an argument list, failing when it fails. ForgeQE's
2031
+ own runs (and the CI file's tests job) set `TOSCA_SKIP_APP_STEPS=1`, so the test skips those parts on a computer
2032
+ without the app; a run on a machine with the app and ForgeQE installed leaves it unset. Steps a workflow cannot do
2033
+ (SAP GUI, Java Swing) stay marked comments.
2034
+
2035
+ **In batches.** A large export need not be one long run: tick **Convert in batches** when you start (or
2036
+ `forgeqe tosca run <plan> --batch N`) and ForgeQE converts the set-up, then the next N test cases not tried yet with
2037
+ the page objects they use, checks every converted test again, and stops. The others wait ("Waiting for a later
2038
+ batch"). Check the batch (fix a test, or accept it), then **Continue with the next batch** on the conversion's page
2039
+ (or run the same command again). What is done is kept; a test that failed is never tried again by a batch (fix it
2040
+ with Fix), so one hard case never stalls the rest. A run without `--batch` tries everything not done.
2041
+
2042
+ **A CI pipeline per execution list.** When a conversion has run, its page's **CI pipeline** (or
2043
+ `forgeqe tosca ci <plan> [--azure] [--write]`) gives a GitHub Actions workflow or an Azure Pipelines file that runs the
2044
+ converted tests in your CI, one job per Tosca execution list with the runner's own filter (Playwright's `--grep @tag`,
2045
+ pytest's `-m`, Maven's `-Dgroups`, `dotnet test --filter TestCategory=`), picked by hand (one list or all) or on a pull
2046
+ request that changes the target folder. It sets up the target's toolchain, installs the dependencies and browsers, keeps
2047
+ the failure screenshots and videos as artifacts, and names the variables the tests read: `BASE_URL` as a variable and
2048
+ the others as secrets, by name only (`${{ secrets.NAME }}`, `$(NAME)`), passed to the step that runs the tests and not
2049
+ to the installs. No value, address or Tosca text goes in the file. Copy or download it, or add it to the target
2050
+ folder's `ci/` (so the pull request carries it); GitHub runs a workflow only from `.github/workflows/`, so move it there.
2051
+ Desktop and mobile workflows replay in jobs of their own (`forgeqe desktop replay` or `forgeqe mobile replay` of each,
2052
+ with its `.data.csv`, results as JUnit), ForgeQE installed at this version: the desktop job on a self-hosted Windows
2053
+ runner or agent that has the app, the mobile one on a hosted runner with a device cloud set in `forgeqe.yaml` (or
2054
+ your own Appium machine). Each replay step gets only the secrets its workflow types, by name.
2055
+
2056
+ **A pull request of the conversion.** When a conversion has run, its page's **Pull request** (or
2057
+ `forgeqe tosca pr <plan> [--base BRANCH] [--title TEXT] [--draft]` at a terminal, where you type the plan's id to
2058
+ confirm) shows what goes in, then commits the target folder on ForgeQE's own branch `forgeqe/tosca/<plan>` from the
2059
+ branch it merges into (the remote's default unless you name one), pushes it and opens the pull request: on GitHub with
2060
+ the GitHub CLI (`gh`), on Azure DevOps with ForgeQE's Azure DevOps sign-in (the remote must be in that organization).
2061
+ The commit is made in a separate copy of the repository (a git worktree), so your own branch and edits stay as they
2062
+ are, and the repository's git hooks do not run. Only the target folder's own files go in: never a link, a dependency,
2063
+ build or run-output folder (`node_modules`, `test-results`, …), a `.env` (its `.env.example` does), a file named like
2064
+ credentials, or one over 2 MB; the panel lists what was left out and why. The description lists each Tosca test case,
2065
+ its test and how it ran, and points to `tosca-map.json`. Pushing again updates the same branch and pull request;
2066
+ with nothing new, nothing is pushed. git uses the sign-in it already has on this computer (`gh auth setup-git`, Git
2067
+ Credential Manager or ssh). ForgeQE merges nothing.
2068
+
2069
+ **Secrets for the converted tests.** A Tosca export's encrypted and `{CP[...]}` values become variables the tests read
2070
+ (`USER_PWD`, `TOSCA_PASSWORD`). Once the exports are picked, the assistant reads which ones the tests need and, for each
2071
+ with no value, asks which saved secret holds it (Settings › Secrets: typed there or pulled from a vault), or leaves it
2072
+ for Review. Review's Before it runs offers the same: Save a value under the variable's name, or **use a saved secret**
2073
+ under another name. The tests then get that secret's value under the name they read; the agents see only names, and
2074
+ no model sees a secret's name. Which secret a variable uses is kept on this computer (`~/.forgeqe/tosca-secrets`), never
2075
+ in the plan's folder in the repository, and ForgeQE's own keys (its models', trackers') are never offered or given to a
2076
+ test. Conversions lists the plans. In the shell, "convert
1849
2077
  tosca/checkout.tsu to Playwright" inspects the export and makes the plan; you confirm it yourself. The Tosca agent
1850
2078
  knows Tosca from its skill `tosca-knowledge` (ActionModes, value tokens, expressions, locators, and how each maps to
1851
2079
  every target).
@@ -302,7 +302,14 @@ refused there. Values are substituted once and never expanded again. Targets tak
302
302
  <code>{{customer}}</code> as the control to click), never a secret.</li>
303
303
  <li><strong>Keys:</strong> <code>ctrl</code>, <code>shift</code> and <code>alt</code> with one named key or character (<code>ctrl+s</code>, <code>alt+f4</code>, <code>enter</code>, <code>f5</code>). The Windows
304
304
  and context-menu keys are refused: Win+R followed by typing runs any command.</li>
305
- <li><strong>Typing</strong> is literal: pywinauto's key syntax (<code>^</code>, <code>%</code>, <code>+</code>, <code>~</code>, <code>{ENTER}</code>) in the text is escaped.</li>
305
+ <li><strong>Typing</strong> is literal: pywinauto's key syntax (<code>^</code>, <code>%</code>, <code>+</code>, <code>~</code>, <code>{ENTER}</code>) in the text is escaped. On Windows a
306
+ <code>type</code> step clears the field and types the text key by key, like a person: some controls show text set through UI
307
+ Automation but act only on typed input (the Windows Save and Open dialogs keep their default file name). Text with
308
+ line breaks or tabs is set instead, so a line break never presses Enter in a form.</li>
309
+ <li><strong>Only the app gets the input.</strong> pywinauto clicks at screen coordinates and keys go to the window in front, so before
310
+ a click, <code>type</code> or <code>keys</code> the app's window is brought forward, and nothing is sent while another program's window
311
+ covers the point or keeps the keyboard: the step fails and says so. <code>keys</code> go to the app's open dialog, not its main
312
+ window behind it. A <code>dismiss</code> control that could not be clicked is named in the step's error.</li>
306
313
  </ul>
307
314
  <h2 id="recording-by-hand"><a href="#recording-by-hand" class="hash">#</a>Recording by hand</h2>
308
315
  <p>When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs
@@ -335,6 +342,11 @@ or <code>&amp;lt;APP&gt;_PASSWORD</code>, which the result tells you to set). Te
335
342
  placeholder. The typed characters themselves are never kept, only the field's text when you move on.</li>
336
343
  <li><strong>Only the app:</strong> clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys,
337
344
  or controls with neither an AutomationId nor a name. The result lists what was left out.</li>
345
+ <li><strong>A click that closes a dialog</strong> (OK after typing a password) is held for up to 0.2 s while ForgeQE finds the control
346
+ under it and reads the field you typed in, so neither is lost when the dialog goes. Typed characters are looked up
347
+ once per run of typing, not once per key.</li>
348
+ <li><strong>A cell in a list or grid row</strong> is recorded inside its row (<code>path</code>: the row's type and name), since every row has a
349
+ cell like it (a password column's <code>********</code>).</li>
338
350
  <li>The run folder has <code>workflow.yaml</code>, <code>run.json</code> and <code>report.html</code>, like explore. Replay it with
339
351
  <code>forgeqe desktop replay</code>.</li>
340
352
  </ul>
@@ -523,6 +535,38 @@ controls' AutomationIds, and <code>ufo/</code> has UFO's logs.</li>
523
535
  <p>Found by the Windows runs and fixed: UFO's pins need Python 3.10 (pandas 1.4.3); UFO prints emoji panels to stdout, which
524
536
  is the engine's event stream and crashed on the cp1252 console (now sent to stderr, characters replaced); an error in
525
537
  UFO's own evaluation lost the recorded actions (the trace is now kept and saved).</p>
538
+ <p>Found by replaying KeePass 2 on Windows 11 ARM64 (a Parallels VM, runs started from a scheduled task) and fixed: text
539
+ set through UI Automation was shown by the Save dialog but not used, so the database was saved under the default name
540
+ while every step passed (now typed); with the app behind another window, clicks went to that window, <code>dismiss</code>
541
+ reported nothing, and <code>keys</code> went to the main window instead of the dialog (now the app is brought forward, the click
542
+ point and the keyboard are checked, and keys go to the open dialog); a dialog closing while its window was searched
543
+ failed the next step with a COM error (now searched again). On that VM a synthetic double-click did not register;
544
+ check <code>double_click</code> on real hardware. The x64 Python the engine runs in needs the x64 Visual C++ runtime (<code>win32ui</code>).
545
+ On agent-desktop there: npm 11.20 refuses <code>--allow-scripts</code> with <code>--prefix</code> (the install script is now allowed for the
546
+ pinned version in the folder's <code>package.json</code>); the state folder's Windows ACL (Administrators, OWNER RIGHTS) was
547
+ refused by agent-desktop (now this user and SYSTEM only); and a dialog listed as its own window and inside its main
548
+ window's snapshot matched twice (now one control). Still open: a button whose click opens a modal message box times out
549
+ in UI Automation's Invoke, and the step fails without sending it again, so such steps need the pywinauto driver.</p>
550
+ <p>Found by exploring and healing KeePass there with Azure OpenAI gpt-5.4 and fixed: a drop-down menu's items are listed
551
+ twice by UI Automation, so a recorded menu click was &quot;several controls match&quot; and could not replay (now one control
552
+ seen twice, the same runtime id, is that control); a check of the app's main window could never be found, as replay
553
+ searched only inside windows (now a target equal to the window is the window); the heal model, given only the old
554
+ target, replaced a renamed menu item by the menu itself (that step passed and the next one failed), and the heal was
555
+ remembered and offered for the workflow (now the model is told the step and the one before it, and a heal is
556
+ remembered, written or offered only from a replay that passed; a remembered heal used in a failed replay is
557
+ forgotten); and the offer to write heals waited for an answer with no terminal (now never asked without one). Explore
558
+ ran 4 steps for $0.12 when the app opened at its main window.</p>
559
+ <p>Also found there and fixed: an app that opens with a start-up dialog (KeePass's update question) left UFO on that
560
+ dialog's window after it closed, so every later click went to (0, 0) until the step limit ($1.22 for nothing); now a
561
+ closed window UFO chose is replaced by the app's live window (<code>follow_live_window</code>, <code>ufo_runner.py</code>), and the same
562
+ explore passes for $0.18. In recording by hand, the OK that closed a dialog right after typing was lost, since the
563
+ control under the click was looked up after a lookup per typed key (now the click is held while it is looked up, and
564
+ typing is one lookup). A click on a list row's <code>********</code> cell was recorded as that cell alone, which every row has (now
565
+ inside its row). App memory borrowed another goal's whole flow as a &quot;shared start&quot;; that flow ended where it began (a
566
+ dialog opened and closed again), so UFO, seeing the screen it started from, did it all again and the workflow held it
567
+ twice. Now the note lists the replayed steps and says to finish if they do the goal (UFO then made no click, $0.02),
568
+ and steps that exactly repeat the replayed block are kept once. A replay with <code>--no-heal</code>, or with a model whose key
569
+ is not set, stopped at &quot;No model in llms.json can …&quot; (now healing is off for that replay, and it runs).</p>
526
570
  <h2 id="next-steps"><a href="#next-steps" class="hash">#</a>Next steps</h2>
527
571
  <ol>
528
572
  <li>The checks above.</li>