@capagents/forgeqe 2.10.5 → 3.0.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.
- package/HOW_TO_USE.md +104 -19
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/docs-site/docs/index.html +97 -16
- package/dist/docs-site/docs/mobile/index.html +8 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +1950 -1932
- package/dist/web/assets/Agent-BqVEwTVC.js +8 -0
- package/dist/web/assets/ApiTests-DCatslaV.js +10 -0
- package/dist/web/assets/Browse-Bl8Qmv19.js +2 -0
- package/dist/web/assets/Chat-CclDgwrO.js +5 -0
- package/dist/web/assets/{CommandPalette-D7ufvlUN.js → CommandPalette-yhEQVq1q.js} +1 -1
- package/dist/web/assets/Compare-y9bBCySM.js +1 -0
- package/dist/web/assets/{Cost-DGZ5t-Q_.js → Cost-DJ3HO9gf.js} +1 -1
- package/dist/web/assets/{Data-DqGA1ZtQ.js → Data-HZP8SHLn.js} +4 -4
- package/dist/web/assets/Desktop-CI6C43R3.js +1 -0
- package/dist/web/assets/DesktopReview-CGDj4Ujf.js +1 -0
- package/dist/web/assets/Evidence-C1Vyg39z.js +1 -0
- package/dist/web/assets/{Explore-TtfTWmGW.js → Explore-BPWjMsOz.js} +2 -2
- package/dist/web/assets/{Features-DazoSiEi.js → Features-BXBE6r6G.js} +1 -1
- package/dist/web/assets/{Flags-Brja-ZXF.js → Flags-gDtVVBId.js} +2 -2
- package/dist/web/assets/Flaky-h8C09CFf.js +1 -0
- package/dist/web/assets/Impact-BT55F8b-.js +3 -0
- package/dist/web/assets/Jobs-BZJxI0NN.js +5 -0
- package/dist/web/assets/KindPage-DtUCsf9W.js +6 -0
- package/dist/web/assets/Migration-DTauoKTG.js +2 -0
- package/dist/web/assets/Product-CvKbCdHY.js +7 -0
- package/dist/web/assets/Production-CJQsBg05.js +1 -0
- package/dist/web/assets/{Quality-C4Aak_hw.js → Quality-CjipajoK.js} +1 -1
- package/dist/web/assets/Readiness-LaLczR5L.js +1 -0
- package/dist/web/assets/Record-TQ_WSnsE.js +2 -0
- package/dist/web/assets/Regression-CrjROhTU.js +5 -0
- package/dist/web/assets/{RelationGraph-DLeEarQd.js → RelationGraph-eoGXXz5t.js} +1 -1
- package/dist/web/assets/{Reports-ClSAzQOh.js → Reports-BTF2tHQN.js} +2 -2
- package/dist/web/assets/{Response-De60pk_7.js → Response-Dm1See-Y.js} +3 -9
- package/dist/web/assets/{RunDiff-0ibEcmI5.js → RunDiff-B6t56dwu.js} +1 -1
- package/dist/web/assets/{Runs-T8yF8Hi0.js → Runs-Oj-NO8Vl.js} +2 -2
- package/dist/web/assets/{Steps-CB30w6BA.js → Steps-Cm-atRtk.js} +2 -2
- package/dist/web/assets/TestCases-SL9YqWlm.js +1 -0
- package/dist/web/assets/TestData-C6j4ZbaF.js +2 -0
- package/dist/web/assets/TestDebt-CISwXKl-.js +1 -0
- package/dist/web/assets/Tosca-DTVz50ex.js +3 -0
- package/dist/web/assets/{WhatsNew-D7n48IsG.js → WhatsNew-2AgkrdMk.js} +1 -1
- package/dist/web/assets/agentLink-DfJdkmLQ.js +1 -0
- package/dist/web/assets/{dataParts-CZAcb4L_.js → dataParts-BwxK_p1D.js} +3 -3
- package/dist/web/assets/{families-D2ygriY6.js → families-DPlFfKf2.js} +1 -1
- package/dist/web/assets/filters-Bj5K1WaL.js +1 -0
- package/dist/web/assets/{fold-BhYvId2X.js → fold-BD-sox6G.js} +1 -1
- package/dist/web/assets/frame-B428t9gN.js +18 -0
- package/dist/web/assets/index-BtYlZE0c.js +67 -0
- package/dist/web/assets/index-DUWIa2Tp.css +2 -0
- package/dist/web/assets/{logos-DmK40tlV.js → logos-DCsyIKX5.js} +1 -1
- package/dist/web/assets/{markdown-Bej6qyls.js → markdown-6z0km3hN.js} +3 -3
- package/dist/web/assets/paletteCommands-3NG1WPGZ.js +1 -0
- package/dist/web/assets/{parts-BOpbd90H.js → parts-VPcxh6Jc.js} +1 -1
- package/dist/web/assets/{productParts-B3_FGd-T.js → productParts-BjfWgMtq.js} +1 -1
- package/dist/web/assets/{qualityParts-B8yJRVpP.js → qualityParts-BA-1cidT.js} +1 -1
- package/dist/web/assets/{recordTest-CZUrGm8I.js → recordTest-EkxSMWbe.js} +1 -1
- package/dist/web/assets/{rows-BcG6gFCy.js → rows-BOGSBviK.js} +1 -1
- package/dist/web/assets/{segmented-ffWUfF8N.js → segmented-DphDskQz.js} +1 -1
- package/dist/web/assets/{usePageChat-T6vQY_1C.js → usePageChat-Zg7SGziM.js} +1 -1
- package/dist/web/index.html +5 -5
- package/docs/MOBILE.md +9 -0
- package/docs/user-guide.html +97 -16
- package/forgeqe.example.yaml +2 -0
- package/package.json +3 -1
- package/prompts/brain.md +3 -2
- package/prompts/requests-rule.md +1 -1
- package/prompts/talk-summary.md +43 -0
- package/prompts/talk.md +63 -0
- package/prompts/test-agent.md +2 -1
- package/py/forgeqe_data/__init__.py +1 -0
- package/py/forgeqe_data/__main__.py +12 -0
- package/py/forgeqe_data/connect.py +290 -0
- package/py/forgeqe_data/connstr.py +169 -0
- package/py/forgeqe_data/flows.py +603 -0
- package/py/forgeqe_data/guard.py +214 -0
- package/py/forgeqe_data/mongo.py +219 -0
- package/py/forgeqe_data/schema.py +431 -0
- package/py/forgeqe_data/service.py +651 -0
- package/py/forgeqe_data/streams.py +400 -0
- package/py/forgeqe_data/subset.py +299 -0
- package/py/forgeqe_data/testdata.py +861 -0
- package/py/forgeqe_data/vector.py +113 -0
- package/py/forgeqe_talk/__init__.py +1 -0
- package/py/forgeqe_talk/__main__.py +65 -0
- package/py/forgeqe_voice/worker.py +24 -4
- package/dist/web/assets/Agent-bSVNDlcU.js +0 -8
- package/dist/web/assets/ApiTests-DOxGgoZC.js +0 -10
- package/dist/web/assets/Browse-CG8jzqR1.js +0 -2
- package/dist/web/assets/Chat-DzufzeGg.js +0 -5
- package/dist/web/assets/Compare-6vHuAaKv.js +0 -1
- package/dist/web/assets/Desktop-CSOFE8cN.js +0 -1
- package/dist/web/assets/DesktopReview-BWtionFH.js +0 -1
- package/dist/web/assets/Evidence-D8pLFcbr.js +0 -1
- package/dist/web/assets/Flaky-jJlHFFCa.js +0 -1
- package/dist/web/assets/Impact-b60dmhJK.js +0 -3
- package/dist/web/assets/Jobs-Y9W9nBgx.js +0 -5
- package/dist/web/assets/KindPage-Y72w2UwG.js +0 -6
- package/dist/web/assets/Migration-CvIeTB9p.js +0 -2
- package/dist/web/assets/Product-BEe2GyO6.js +0 -7
- package/dist/web/assets/Production-D2qmPFYy.js +0 -1
- package/dist/web/assets/Readiness-ClXnnmLo.js +0 -1
- package/dist/web/assets/Record-LaLYhQgk.js +0 -2
- package/dist/web/assets/Regression-DKz05MC_.js +0 -5
- package/dist/web/assets/TestCases-Ba6bUE4i.js +0 -1
- package/dist/web/assets/TestData-DefDzeMW.js +0 -2
- package/dist/web/assets/TestDebt-zohltDHp.js +0 -1
- package/dist/web/assets/Tosca-jAtdiG28.js +0 -3
- package/dist/web/assets/filters-CYaF2RvC.js +0 -1
- package/dist/web/assets/frame-DeJBYtBX.js +0 -11
- package/dist/web/assets/index-CYlacOTX.css +0 -2
- package/dist/web/assets/index-DXpBYobT.js +0 -67
- package/dist/web/assets/paletteCommands-CKBMmhb4.js +0 -1
package/HOW_TO_USE.md
CHANGED
|
@@ -54,7 +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
|
|
57
|
+
| an arch bridge, spruce | Tosca agent | `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
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 |
|
|
59
59
|
| a magnifier, cyan | Test finder | `forgeqe-find` | Finds the repository tests a request means | No |
|
|
60
60
|
| a comment bubble, rose | PR reviewer | `forgeqe-pr-review` | Reviews pull requests | No |
|
|
@@ -79,6 +79,7 @@ agent:
|
|
|
79
79
|
| a lens over a node, moss | Investigator | `forgeqe-investigate` | Answers one question about the product, with the lines it rests on | No |
|
|
80
80
|
| a clipboard, brick | Acceptance reader | `forgeqe-evidence-acceptance` | Reads a change against its work items' acceptance criteria, quoting the lines it rests on | No |
|
|
81
81
|
| ripples spreading from a point, ochre | Change reader | `forgeqe-impact-reader` | Reads what a code change does, file by file, against what its pull request and work items meant it to do | No |
|
|
82
|
+
| a sound wave, sky | Talk | `forgeqe-talk` | Talk's voice agent: moves around the web app, finds things and hands work to ForgeQE's agent, by voice | No |
|
|
82
83
|
| a browser window, blue | Browser agent | `engine` | The browser agent (every browser run and test case) | No |
|
|
83
84
|
|
|
84
85
|
The icons as the shell draws them, each in its agent's colour:
|
|
@@ -93,7 +94,7 @@ The icons as the shell draws them, each in its agent's colour:
|
|
|
93
94
|
▚▖ Test planner ▗▟▙▖ Healer
|
|
94
95
|
▝▀▄ ▝▜▛▘
|
|
95
96
|
|
|
96
|
-
▄▄█▄ Migrator ▗▀▀▖ Tosca
|
|
97
|
+
▄▄█▄ Migrator ▗▀▀▖ Tosca agent
|
|
97
98
|
▀█▀▀ ▌▘▝▐
|
|
98
99
|
|
|
99
100
|
▗▀█ Tosca assistant ▟█▖ Test finder
|
|
@@ -132,8 +133,8 @@ The icons as the shell draws them, each in its agent's colour:
|
|
|
132
133
|
▞▀▀▚ Acceptance reader ▗▚▞▖ Change reader
|
|
133
134
|
▙██▟ ▝▞▚▘
|
|
134
135
|
|
|
135
|
-
▛▀▀▜ Browser agent
|
|
136
|
-
▙▄▄▟
|
|
136
|
+
▖▙▟▗ Talk ▛▀▀▜ Browser agent
|
|
137
|
+
▘▛▜▝ ▙▄▄▟
|
|
137
138
|
```
|
|
138
139
|
<!-- subagents:end -->
|
|
139
140
|
|
|
@@ -163,7 +164,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
|
|
|
163
164
|
| Data | **Data flows between systems**: Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas. | `data_flows`, `check_flows`, `trace_record`, `read_mapping_file` | [docs](#data-flows) |
|
|
164
165
|
| 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) |
|
|
165
166
|
| 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) |
|
|
166
|
-
| 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
|
|
167
|
+
| 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, Selenium or Robot Framework), 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) |
|
|
167
168
|
| 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) |
|
|
168
169
|
| 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) |
|
|
169
170
|
| 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) |
|
|
@@ -1530,20 +1531,42 @@ forgeqe web --no-open # only print the address
|
|
|
1530
1531
|
The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same
|
|
1531
1532
|
as `forgeqe init`), what this computer needs, and a model. See [docs/WEB_APP.md](docs/WEB_APP.md) for every page.
|
|
1532
1533
|
|
|
1533
|
-
**Talk to it.** Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1534
|
+
**Talk to it.** Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a voice assistant
|
|
1535
|
+
for the whole app, like an ElevenLabs agent: a quick model of its own (your active model) that holds the spoken
|
|
1536
|
+
conversation and acts with tools the page carries out. Say "open the model settings", "where are my failed runs? open
|
|
1537
|
+
it", "search for TestMu", "take me to Record", "go back": it moves around and finds things without starting a chat, and
|
|
1538
|
+
asks which one you mean when it is not sure. What you see happen (a page opened, words in the box, a search) it does
|
|
1539
|
+
without a word; it speaks to answer, to ask, or when something did not work. Ask for several things in one breath
|
|
1540
|
+
("switch to dark mode, open the runs page and ask ForgeQE why the last run failed") and it does them in order. It
|
|
1541
|
+
changes a few settings by voice: light or dark, its own language, voice and wake word at once, and the project's
|
|
1542
|
+
browser window (shown or hidden while tests run) or model in use only after it asks and you say yes, saved and audited
|
|
1543
|
+
as Settings saves them; the test environment in use too, never one named like production. Every other setting stays in
|
|
1544
|
+
Settings. Ask "what's on this page?" or "why did this run fail?" for a few spoken words of what the page shows, "how
|
|
1545
|
+
many runs failed today?" for the counts, "show only the failed runs" to filter Runs. It starts work only after you say
|
|
1546
|
+
yes to its question: the failed tests of a run again, a regression pack (on this computer or TestMu), a recording of an
|
|
1547
|
+
app your settings list, or a test written from the recording you have open. It switches desktop replays between
|
|
1548
|
+
headless and headed (the mouse and keyboard) and shows or hides mobile emulators, after a yes too. With Answer
|
|
1549
|
+
questions by voice on (Settings › Voice), it reads ForgeQE's question and its options: say one, then yes to send it.
|
|
1550
|
+
A question about production, and a pause that waits for you, still need a click. While ForgeQE works you can still move around, and "stop" stops its work.
|
|
1551
|
+
Its model is its own: Settings › Models, Talk's voice agent (else the cheapest model rated for quick planning work). In
|
|
1552
|
+
a chat or on Home, what you ask ForgeQE to do goes into the message box to change or Refine; "send it" sends it (or turn
|
|
1553
|
+
on Send when I pause). Real work, such as "get me the ACs for 256 from ADO", goes to ForgeQE's agent. Its answer is
|
|
1554
|
+
not read back to you: once it is done, a short answer is said as it is and a longer one in a sentence or two of what it
|
|
1555
|
+
found or did (code, tables, links and its sources stay on the screen); talking over it stops it and listens. It all runs on this computer with free, open-source models, so nothing you say
|
|
1543
1556
|
leaves it: Whisper (faster-whisper) writes down what you said and Kokoro reads replies, in a voice you pick. The first
|
|
1544
1557
|
time, Talk asks before downloading them, about 750 MB into `~/.forgeqe/voice` (or run `forgeqe voice setup`; `forgeqe
|
|
1545
1558
|
voice status` says whether it is ready). Talk never answers for you: when the chat asks a question or waits for an
|
|
1546
1559
|
approval, it says so and stops listening until you answer with a click. The browser asks once for the microphone.
|
|
1560
|
+
Talk speaks English or Hindi (हिन्दी): pick the language in Talk's note. In Hindi it hears you in Hindi (English names
|
|
1561
|
+
such as ADO or TestMu included), answers you in Hindi in a Hindi voice, and still reads the chat's English replies in
|
|
1562
|
+
your English voice. Hindi is heard far better with its own listening model (Whisper small, about 465 MB): Talk offers it
|
|
1563
|
+
the first time you pick Hindi, downloads it only when you say so, and listens with the English model meanwhile.
|
|
1564
|
+
Turn on **Wake word** in Talk's note to talk hands-free: Talk then waits for "Hey ForgeQE" (or "Hey" and the name you
|
|
1565
|
+
gave ForgeQE, or a phrase you type, such as "Hey Nova") and acts on nothing else. Say it and what you want in one breath
|
|
1566
|
+
("Hey ForgeQE, open the runs page"), or say it, wait for the tone, then ask. It stays awake for follow-ups until 20
|
|
1567
|
+
seconds of quiet, then waits for the phrase again. With the wake word on, Talk starts listening again when ForgeQE web
|
|
1568
|
+
opens (the browser may need one click on the page first). While it waits, what it hears is written down on this
|
|
1569
|
+
computer only to look for the phrase, and is never shown, kept or sent.
|
|
1547
1570
|
|
|
1548
1571
|
**Found a problem in ForgeQE itself?** Settings › Report a problem. ForgeQE picks the recent session that went wrong
|
|
1549
1572
|
and reads its log for what was run and ForgeQE's own errors; the bug reporter (`forgeqe-bug-report`) drafts the bug from
|
|
@@ -1891,7 +1914,7 @@ The report is `heal.md` and `heal.json` in `.forgeqe/reports/heal/<time>/`: each
|
|
|
1891
1914
|
|
|
1892
1915
|
### Migrating a test suite
|
|
1893
1916
|
|
|
1894
|
-
`forgeqe migrate` moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO
|
|
1917
|
+
`forgeqe migrate` moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#) or Robot Framework (with the Browser library). `forgeqe migrate targets` lists them, and a project adds its own (below). It always starts with a plan, which writes nothing:
|
|
1895
1918
|
|
|
1896
1919
|
```bash
|
|
1897
1920
|
forgeqe migrate plan --from tests --to playwright-typescript # the source stack is detected
|
|
@@ -1917,11 +1940,67 @@ dependency folders are not copied.
|
|
|
1917
1940
|
3. **Confirm.** A person confirms the plan: at a terminal by typing its id, or on the Migration page of `forgeqe web`. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.
|
|
1918
1941
|
4. **Run.** The setup step makes the target folder a project of its own (`package.json` and `playwright.config.ts`, `requirements.txt` and `conftest.py`, `pom.xml`, a `.csproj`). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (`npx playwright test login.spec.ts`, `python3 -m pytest test_login.py`, `mvn -q test -Dtest=LoginTest`) and started without a shell. A failure goes back to the agent with the output, up to `code.max_attempts` times.
|
|
1919
1942
|
5. **Validate and fix.** When every file is done, ForgeQE runs each migrated test again with all files in place, and
|
|
1920
|
-
counts its tests
|
|
1921
|
-
|
|
1922
|
-
|
|
1943
|
+
counts its tests against the source. A test that passes is then *proved to check something*, by experiment rather
|
|
1944
|
+
than by reading its code: ForgeQE takes the values the source expected, writes a copy of the migrated test with each
|
|
1945
|
+
of them made wrong, and runs it once more. **That run has to fail.** A test that passes either way does not check
|
|
1946
|
+
what its source checked, whatever its framework and however its assertions are spelled, so it is not migrated — and
|
|
1947
|
+
a value the source checked that the migrated file never mentions at all is reported without a run. The copy is put
|
|
1948
|
+
back in every case, and the "Checks proved" column of `migrate.md` says which tests were proved this way. Where
|
|
1949
|
+
there is nothing to corrupt (the source checks only computed values), assertion lines are counted as before. Each
|
|
1950
|
+
test that fails goes to the fixing agent with its output, then runs again. From the page or with
|
|
1951
|
+
`forgeqe migrate fix`, you can send a test to the fixing agent yourself with a note.
|
|
1923
1952
|
6. **Report.** A test is *migrated* only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and *written* otherwise. A file the agent could not do is *failed* or *cannot be migrated*, with why. The run is `migrated` (every test), `partial` or `failed`. A model error never counts as a migrated file. The source tests are never changed. `migrate.md` and `result.json` are in `.forgeqe/migrations/<plan>/`, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.
|
|
1924
1953
|
|
|
1954
|
+
**A framework ForgeQE does not ship.** Every target above is data, not code, and a project adds its own the same way:
|
|
1955
|
+
a profile in `.forgeqe/migrate-targets/<id>.yaml`. So Karate, Gauge, Behave or anything else your team uses is a file
|
|
1956
|
+
you write, not a release you wait for.
|
|
1957
|
+
|
|
1958
|
+
```yaml
|
|
1959
|
+
# .forgeqe/migrate-targets/karate-java.yaml
|
|
1960
|
+
id: karate-java
|
|
1961
|
+
title: Karate (Java)
|
|
1962
|
+
framework: Karate # a name of your own; ForgeQE needs to know nothing about it
|
|
1963
|
+
language: java # one ForgeQE knows how to name files for (see below)
|
|
1964
|
+
ext: .feature
|
|
1965
|
+
needs: [mvn] # programs a run needs; {python} is this computer's python
|
|
1966
|
+
setup: [pom.xml, karate-config.js] # what the setup step writes before the first test
|
|
1967
|
+
runs: [mvn, -q, test, "-Dtest={class}"] # the command for ONE test, as arguments: {file} {class} {python} {evidenceDir}
|
|
1968
|
+
ran_nothing: ["No tests were executed"] # output that means it ran nothing although it exited 0
|
|
1969
|
+
conventions: Feature files with Scenario blocks; match for assertions; one Runner per feature.
|
|
1970
|
+
evidence:
|
|
1971
|
+
how: In karate-config.js, set the report directory to test-results.
|
|
1972
|
+
video: false
|
|
1973
|
+
```
|
|
1974
|
+
|
|
1975
|
+
The same profiles serve a Tosca conversion (`forgeqe tosca plan --to karate-java`), so a framework you added is
|
|
1976
|
+
available to both. Then a person approves it at a terminal, by typing its id:
|
|
1977
|
+
|
|
1978
|
+
```bash
|
|
1979
|
+
forgeqe migrate targets # lists it, and whether it is approved
|
|
1980
|
+
forgeqe migrate target approve karate-java # shows the command it would run; you type the id
|
|
1981
|
+
forgeqe migrate plan --from tests --to karate-java # a target like any other from here on
|
|
1982
|
+
```
|
|
1983
|
+
|
|
1984
|
+
Why the approval: a profile can come with the repository, and it names a program ForgeQE will start. So it is read as
|
|
1985
|
+
untrusted (unknown keys, YAML aliases and anything but an argument list are refused, and a shell, downloader,
|
|
1986
|
+
container, database client or file-moving command is refused outright), and what migrates is the exact copy you
|
|
1987
|
+
approved, kept with its digest in `.approved/`. Edit the profile afterwards and the approved copy still runs, with
|
|
1988
|
+
`forgeqe migrate targets` saying it changed, until you approve it again. An unapproved profile cannot be migrated to at
|
|
1989
|
+
all, and a profile can never take one of ForgeQE's own ids.
|
|
1990
|
+
|
|
1991
|
+
Nothing in a profile is ever run as a pattern or a command line: `ran_nothing` and `evidence.signs` are plain words
|
|
1992
|
+
ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.
|
|
1993
|
+
|
|
1994
|
+
Whether a profile is *right* is settled by running it, not by trusting it: the validate stage runs every migrated test
|
|
1995
|
+
again with the values its source expected made wrong, so a command that does not really run the test, or never reports
|
|
1996
|
+
a failure, passes both times and fails the migration instead of signing it off.
|
|
1997
|
+
|
|
1998
|
+
What a profile cannot do is invent a language: `language` is one of typescript, javascript, python, java, csharp, ruby
|
|
1999
|
+
or robot, because where a test file goes and what its class is called is code (a Java test is `src/test/java/<Class>.java`,
|
|
2000
|
+
a Python one `test_<name>.py`). A new framework in one of those languages is a profile; a new language still needs a
|
|
2001
|
+
change to ForgeQE. `naming` adjusts the rest where a language has no convention of its own:
|
|
2002
|
+
`naming: { test_suffix: .cy, test_dirs: [cypress, e2e], support_dirs: [cypress, support] }` is how Cypress is described.
|
|
2003
|
+
|
|
1925
2004
|
Exit codes of `migrate run`: `0` every test migrated, `1` some or none, `2` stopped. The Migration page of `forgeqe web` does all of this in four steps (source, target, instructions, review), then follows
|
|
1926
2005
|
the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
|
|
1927
2006
|
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.
|
|
@@ -1946,8 +2025,14 @@ forgeqe tosca map tsc-… [--json] # e
|
|
|
1946
2025
|
forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data] # what running the tests needs, before it starts
|
|
1947
2026
|
forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
|
|
1948
2027
|
forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to the Tosca agent
|
|
2028
|
+
forgeqe tosca targets # the targets, this project's own included
|
|
1949
2029
|
```
|
|
1950
2030
|
|
|
2031
|
+
A Tosca conversion may target any framework a migration may, so a target profile of your own
|
|
2032
|
+
(`.forgeqe/migrate-targets/<id>.yaml`, see [Migrating a test suite](#migrating-a-test-suite)) is a Tosca target as soon
|
|
2033
|
+
as a person has approved it: `forgeqe tosca plan --file shop.tsu --to karate-java`. `forgeqe tosca targets` says which
|
|
2034
|
+
of your own are approved, and an unapproved one is refused here exactly as it is for a migration.
|
|
2035
|
+
|
|
1951
2036
|
1. **Read.** ForgeQE reads the export with no model, through [ToscaTSU](https://github.com/bermudas/ToscaTSU)'s parser
|
|
1952
2037
|
(MIT, included unchanged in `py/forgeqe_tosca/vendor/toscatsu`). It follows folders, reusable blocks with their
|
|
1953
2038
|
parameter layers, If and Loop, buffers, and SelfHealingData, and writes each test case as NTIR, a neutral JSON form
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -71,7 +71,7 @@ ForgeQE downloads these onto the machine it runs on, from their own sources, whe
|
|
|
71
71
|
| uv and Python | the browser engine's interpreter (src/engine/setup.ts) | MIT or Apache-2.0; PSF | https://github.com/astral-sh/uv |
|
|
72
72
|
| browser-use, Playwright, PyYAML, azure-identity, github-copilot-sdk, truststore | the browser engine's libraries and Chromium (src/engine/setup.ts) | MIT; Apache-2.0; MIT; MIT; MIT; MIT | https://pypi.org |
|
|
73
73
|
| Graphify (graphifyy), its tree-sitter grammars, NetworkX, NumPy, RapidFuzz, PyYAML, pypdf, python-docx, openpyxl, markdownify | reads the product's code structure, and PDF, Word and Excel documents, for the knowledge graph, in its own environment (src/product/graphify.ts) | Apache-2.0; MIT; BSD-3-Clause; BSD-3-Clause; MIT; MIT; BSD-3-Clause; MIT; MIT; MIT | https://github.com/Graphify-Labs/graphify |
|
|
74
|
-
| faster-whisper, CTranslate2, PyAV, tokenizers, huggingface_hub, kokoro-onnx, ONNX Runtime, NumPy, phonemizer and eSpeak NG (espeakng-loader); the Whisper base and Kokoro-82M models | Talk mode's speech on this computer, set up only when a person asks for it, in its own environment (src/voice/setup.ts) | MIT; MIT; BSD-3-Clause; Apache-2.0; Apache-2.0; MIT; MIT; BSD-3-Clause; GPL-3.0 and GPL-3.0 (run as separate programs, never linked into ForgeQE); MIT and Apache-2.0 | https://github.com/SYSTRAN/faster-whisper, https://github.com/thewh1teagle/kokoro-onnx |
|
|
74
|
+
| faster-whisper, CTranslate2, PyAV, tokenizers, huggingface_hub, kokoro-onnx, ONNX Runtime, NumPy, phonemizer and eSpeak NG (espeakng-loader); the Whisper base, Whisper small (Hindi, only when a person asks for it) and Kokoro-82M models | Talk mode's speech on this computer, set up only when a person asks for it, in its own environment (src/voice/setup.ts) | MIT; MIT; BSD-3-Clause; Apache-2.0; Apache-2.0; MIT; MIT; BSD-3-Clause; GPL-3.0 and GPL-3.0 (run as separate programs, never linked into ForgeQE); MIT and Apache-2.0 | https://github.com/SYSTRAN/faster-whisper, https://github.com/thewh1teagle/kokoro-onnx |
|
|
75
75
|
| GitHub Copilot CLI and its runtime | the runtime downloaded by GitHub's Copilot SDK for github_copilot profiles (src/copilot.ts), and the CLI for the browser sign-in (src/auth/copilotLogin.ts) | GitHub Copilot CLI license (GitHub) | https://github.com/github/copilot-cli |
|
|
76
76
|
|
|
77
77
|
## Source code included unchanged
|
|
@@ -733,19 +733,41 @@ forgeqe web --no-open # only print the address
|
|
|
733
733
|
</code></pre></div>
|
|
734
734
|
<p>The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same
|
|
735
735
|
as <code>forgeqe init</code>), what this computer needs, and a model. See <a href="web-app/index.html">docs/WEB_APP.md</a> for every page.</p>
|
|
736
|
-
<p><strong>Talk to it.</strong> Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
736
|
+
<p><strong>Talk to it.</strong> Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a voice assistant
|
|
737
|
+
for the whole app, like an ElevenLabs agent: a quick model of its own (your active model) that holds the spoken
|
|
738
|
+
conversation and acts with tools the page carries out. Say "open the model settings", "where are my failed runs? open
|
|
739
|
+
it", "search for TestMu", "take me to Record", "go back": it moves around and finds things without starting a chat, and
|
|
740
|
+
asks which one you mean when it is not sure. What you see happen (a page opened, words in the box, a search) it does
|
|
741
|
+
without a word; it speaks to answer, to ask, or when something did not work. Ask for several things in one breath
|
|
742
|
+
("switch to dark mode, open the runs page and ask ForgeQE why the last run failed") and it does them in order. It
|
|
743
|
+
changes a few settings by voice: light or dark, its own language, voice and wake word at once, and the project's
|
|
744
|
+
browser window (shown or hidden while tests run) or model in use only after it asks and you say yes, saved and audited
|
|
745
|
+
as Settings saves them; the test environment in use too, never one named like production. Every other setting stays in
|
|
746
|
+
Settings. Ask "what's on this page?" or "why did this run fail?" for a few spoken words of what the page shows, "how
|
|
747
|
+
many runs failed today?" for the counts, "show only the failed runs" to filter Runs. It starts work only after you say
|
|
748
|
+
yes to its question: the failed tests of a run again, a regression pack (on this computer or TestMu), a recording of an
|
|
749
|
+
app your settings list, or a test written from the recording you have open. It switches desktop replays between
|
|
750
|
+
headless and headed (the mouse and keyboard) and shows or hides mobile emulators, after a yes too. With Answer
|
|
751
|
+
questions by voice on (Settings › Voice), it reads ForgeQE's question and its options: say one, then yes to send it.
|
|
752
|
+
A question about production, and a pause that waits for you, still need a click. While ForgeQE works you can still move around, and "stop" stops its work.
|
|
753
|
+
Its model is its own: Settings › Models, Talk's voice agent (else the cheapest model rated for quick planning work). In
|
|
754
|
+
a chat or on Home, what you ask ForgeQE to do goes into the message box to change or Refine; "send it" sends it (or turn
|
|
755
|
+
on Send when I pause). Real work, such as "get me the ACs for 256 from ADO", goes to ForgeQE's agent. Its answer is
|
|
756
|
+
not read back to you: once it is done, a short answer is said as it is and a longer one in a sentence or two of what it
|
|
757
|
+
found or did (code, tables, links and its sources stay on the screen); talking over it stops it and listens. It all runs on this computer with free, open-source models, so nothing you say
|
|
746
758
|
leaves it: Whisper (faster-whisper) writes down what you said and Kokoro reads replies, in a voice you pick. The first
|
|
747
759
|
time, Talk asks before downloading them, about 750 MB into <code>~/.forgeqe/voice</code> (or run <code>forgeqe voice setup</code>; <code>forgeqe voice status</code> says whether it is ready). Talk never answers for you: when the chat asks a question or waits for an
|
|
748
|
-
approval, it says so and stops listening until you answer with a click. The browser asks once for the microphone
|
|
760
|
+
approval, it says so and stops listening until you answer with a click. The browser asks once for the microphone.
|
|
761
|
+
Talk speaks English or Hindi (हिन्दी): pick the language in Talk's note. In Hindi it hears you in Hindi (English names
|
|
762
|
+
such as ADO or TestMu included), answers you in Hindi in a Hindi voice, and still reads the chat's English replies in
|
|
763
|
+
your English voice. Hindi is heard far better with its own listening model (Whisper small, about 465 MB): Talk offers it
|
|
764
|
+
the first time you pick Hindi, downloads it only when you say so, and listens with the English model meanwhile.
|
|
765
|
+
Turn on <strong>Wake word</strong> in Talk's note to talk hands-free: Talk then waits for "Hey ForgeQE" (or "Hey" and the name you
|
|
766
|
+
gave ForgeQE, or a phrase you type, such as "Hey Nova") and acts on nothing else. Say it and what you want in one breath
|
|
767
|
+
("Hey ForgeQE, open the runs page"), or say it, wait for the tone, then ask. It stays awake for follow-ups until 20
|
|
768
|
+
seconds of quiet, then waits for the phrase again. With the wake word on, Talk starts listening again when ForgeQE web
|
|
769
|
+
opens (the browser may need one click on the page first). While it waits, what it hears is written down on this
|
|
770
|
+
computer only to look for the phrase, and is never shown, kept or sent.</p>
|
|
749
771
|
<p><strong>Found a problem in ForgeQE itself?</strong> Settings › Report a problem. ForgeQE picks the recent session that went wrong
|
|
750
772
|
and reads its log for what was run and ForgeQE's own errors; the bug reporter (<code>forgeqe-bug-report</code>) drafts the bug from
|
|
751
773
|
that and asks only what it cannot find, usually what you expected. You edit it, keep or untick what is attached (that
|
|
@@ -3368,12 +3390,20 @@ capabilities.</p>
|
|
|
3368
3390
|
type: virtual
|
|
3369
3391
|
platform: android
|
|
3370
3392
|
udid: emulator-5554
|
|
3393
|
+
pixel-headless: # an emulator Appium starts for the run (emulator -list-avds)
|
|
3394
|
+
type: virtual
|
|
3395
|
+
platform: android
|
|
3396
|
+
avd: Pixel_8_API_35
|
|
3371
3397
|
iphone-sim: # an iOS simulator (XCUITest boots it)
|
|
3372
3398
|
type: virtual
|
|
3373
3399
|
platform: ios
|
|
3374
3400
|
model: iPhone 15
|
|
3375
3401
|
os_version: "17.2"
|
|
3376
3402
|
</code></pre></div>
|
|
3403
|
+
<p><code>avd</code> names an Android emulator for Appium to start for the run, instead of one already running. With
|
|
3404
|
+
<code>mobile.headless: true</code> (Settings → Mobile, Emulators without a window) Appium starts those emulators, and iOS
|
|
3405
|
+
simulators, without a window (<code>appium:isHeadless</code>); a real device and a cloud's devices are never affected. Talk can
|
|
3406
|
+
switch it by voice ("hide the mobile emulators"), after you say yes.</p>
|
|
3377
3407
|
<p>Devices on TestMu AI or BrowserStack are in that cloud's own file, the one <code>browser.providers</code> links
|
|
3378
3408
|
(<code>.forgeqe/testmu.yaml</code>, <code>.forgeqe/browserstack.yaml</code>), beside its browsers and with the same sign-in. Settings →
|
|
3379
3409
|
Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices.
|
|
@@ -5132,7 +5162,7 @@ a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
|
|
|
5132
5162
|
</article>
|
|
5133
5163
|
<article class="spec feat" id="cap-migrate-tests">
|
|
5134
5164
|
<div class="hd"><span class="mono">Automated tests</span><h3>Migrate a test suite</h3></div>
|
|
5135
|
-
<p class="ds">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
|
|
5165
|
+
<p class="ds">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, Selenium or Robot Framework), 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.</p>
|
|
5136
5166
|
<div class="facts">
|
|
5137
5167
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Migrate the Selenium tests in tests/ to Playwright TypeScript</li></ul></div>
|
|
5138
5168
|
<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 git repository with the tests to migrate</span></li></ul></div>
|
|
@@ -5141,7 +5171,7 @@ a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
|
|
|
5141
5171
|
<div class="detail"><span class="mono">In detail</span>
|
|
5142
5172
|
<section class="doc" id="doc-how_to_use-migrating-a-test-suite">
|
|
5143
5173
|
<h4>Migrating a test suite</h4>
|
|
5144
|
-
<div class="prose"><p><code>forgeqe migrate</code> moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO
|
|
5174
|
+
<div class="prose"><p><code>forgeqe migrate</code> moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#) or Robot Framework (with the Browser library). <code>forgeqe migrate targets</code> lists them, and a project adds its own (below). It always starts with a plan, which writes nothing:</p>
|
|
5145
5175
|
<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 migrate plan --from tests --to playwright-typescript # the source stack is detected
|
|
5146
5176
|
forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only "checkout/**" \
|
|
5147
5177
|
--instructions "Page objects go in pages/, one class per page"
|
|
@@ -5164,11 +5194,57 @@ dependency folders are not copied.</p>
|
|
|
5164
5194
|
<li><strong>Confirm.</strong> A person confirms the plan: at a terminal by typing its id, or on the Migration page of <code>forgeqe web</code>. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.</li>
|
|
5165
5195
|
<li><strong>Run.</strong> The setup step makes the target folder a project of its own (<code>package.json</code> and <code>playwright.config.ts</code>, <code>requirements.txt</code> and <code>conftest.py</code>, <code>pom.xml</code>, a <code>.csproj</code>). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (<code>npx playwright test login.spec.ts</code>, <code>python3 -m pytest test_login.py</code>, <code>mvn -q test -Dtest=LoginTest</code>) and started without a shell. A failure goes back to the agent with the output, up to <code>code.max_attempts</code> times.</li>
|
|
5166
5196
|
<li><strong>Validate and fix.</strong> When every file is done, ForgeQE runs each migrated test again with all files in place, and
|
|
5167
|
-
counts its tests
|
|
5168
|
-
|
|
5169
|
-
|
|
5197
|
+
counts its tests against the source. A test that passes is then <em>proved to check something</em>, by experiment rather
|
|
5198
|
+
than by reading its code: ForgeQE takes the values the source expected, writes a copy of the migrated test with each
|
|
5199
|
+
of them made wrong, and runs it once more. <strong>That run has to fail.</strong> A test that passes either way does not check
|
|
5200
|
+
what its source checked, whatever its framework and however its assertions are spelled, so it is not migrated — and
|
|
5201
|
+
a value the source checked that the migrated file never mentions at all is reported without a run. The copy is put
|
|
5202
|
+
back in every case, and the "Checks proved" column of <code>migrate.md</code> says which tests were proved this way. Where
|
|
5203
|
+
there is nothing to corrupt (the source checks only computed values), assertion lines are counted as before. Each
|
|
5204
|
+
test that fails goes to the fixing agent with its output, then runs again. From the page or with
|
|
5205
|
+
<code>forgeqe migrate fix</code>, you can send a test to the fixing agent yourself with a note.</li>
|
|
5170
5206
|
<li><strong>Report.</strong> A test is <em>migrated</em> only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and <em>written</em> otherwise. A file the agent could not do is <em>failed</em> or <em>cannot be migrated</em>, with why. The run is <code>migrated</code> (every test), <code>partial</code> or <code>failed</code>. A model error never counts as a migrated file. The source tests are never changed. <code>migrate.md</code> and <code>result.json</code> are in <code>.forgeqe/migrations/<plan>/</code>, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.</li>
|
|
5171
5207
|
</ol>
|
|
5208
|
+
<p><strong>A framework ForgeQE does not ship.</strong> Every target above is data, not code, and a project adds its own the same way:
|
|
5209
|
+
a profile in <code>.forgeqe/migrate-targets/<id>.yaml</code>. So Karate, Gauge, Behave or anything else your team uses is a file
|
|
5210
|
+
you write, not a release you wait for.</p>
|
|
5211
|
+
<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># .forgeqe/migrate-targets/karate-java.yaml
|
|
5212
|
+
id: karate-java
|
|
5213
|
+
title: Karate (Java)
|
|
5214
|
+
framework: Karate # a name of your own; ForgeQE needs to know nothing about it
|
|
5215
|
+
language: java # one ForgeQE knows how to name files for (see below)
|
|
5216
|
+
ext: .feature
|
|
5217
|
+
needs: [mvn] # programs a run needs; {python} is this computer's python
|
|
5218
|
+
setup: [pom.xml, karate-config.js] # what the setup step writes before the first test
|
|
5219
|
+
runs: [mvn, -q, test, "-Dtest={class}"] # the command for ONE test, as arguments: {file} {class} {python} {evidenceDir}
|
|
5220
|
+
ran_nothing: ["No tests were executed"] # output that means it ran nothing although it exited 0
|
|
5221
|
+
conventions: Feature files with Scenario blocks; match for assertions; one Runner per feature.
|
|
5222
|
+
evidence:
|
|
5223
|
+
how: In karate-config.js, set the report directory to test-results.
|
|
5224
|
+
video: false
|
|
5225
|
+
</code></pre></div>
|
|
5226
|
+
<p>The same profiles serve a Tosca conversion (<code>forgeqe tosca plan --to karate-java</code>), so a framework you added is
|
|
5227
|
+
available to both. Then a person approves it at a terminal, by typing its id:</p>
|
|
5228
|
+
<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 migrate targets # lists it, and whether it is approved
|
|
5229
|
+
forgeqe migrate target approve karate-java # shows the command it would run; you type the id
|
|
5230
|
+
forgeqe migrate plan --from tests --to karate-java # a target like any other from here on
|
|
5231
|
+
</code></pre></div>
|
|
5232
|
+
<p>Why the approval: a profile can come with the repository, and it names a program ForgeQE will start. So it is read as
|
|
5233
|
+
untrusted (unknown keys, YAML aliases and anything but an argument list are refused, and a shell, downloader,
|
|
5234
|
+
container, database client or file-moving command is refused outright), and what migrates is the exact copy you
|
|
5235
|
+
approved, kept with its digest in <code>.approved/</code>. Edit the profile afterwards and the approved copy still runs, with
|
|
5236
|
+
<code>forgeqe migrate targets</code> saying it changed, until you approve it again. An unapproved profile cannot be migrated to at
|
|
5237
|
+
all, and a profile can never take one of ForgeQE's own ids.</p>
|
|
5238
|
+
<p>Nothing in a profile is ever run as a pattern or a command line: <code>ran_nothing</code> and <code>evidence.signs</code> are plain words
|
|
5239
|
+
ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.</p>
|
|
5240
|
+
<p>Whether a profile is <em>right</em> is settled by running it, not by trusting it: the validate stage runs every migrated test
|
|
5241
|
+
again with the values its source expected made wrong, so a command that does not really run the test, or never reports
|
|
5242
|
+
a failure, passes both times and fails the migration instead of signing it off.</p>
|
|
5243
|
+
<p>What a profile cannot do is invent a language: <code>language</code> is one of typescript, javascript, python, java, csharp, ruby
|
|
5244
|
+
or robot, because where a test file goes and what its class is called is code (a Java test is <code>src/test/java/<Class>.java</code>,
|
|
5245
|
+
a Python one <code>test_<name>.py</code>). A new framework in one of those languages is a profile; a new language still needs a
|
|
5246
|
+
change to ForgeQE. <code>naming</code> adjusts the rest where a language has no convention of its own:
|
|
5247
|
+
<code>naming: { test_suffix: .cy, test_dirs: [cypress, e2e], support_dirs: [cypress, support] }</code> is how Cypress is described.</p>
|
|
5172
5248
|
<p>Exit codes of <code>migrate run</code>: <code>0</code> every test migrated, <code>1</code> some or none, <code>2</code> stopped. The Migration page of <code>forgeqe web</code> does all of this in four steps (source, target, instructions, review), then follows
|
|
5173
5249
|
the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
|
|
5174
5250
|
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.</p>
|
|
@@ -5203,7 +5279,12 @@ forgeqe tosca map tsc-… [--json] # e
|
|
|
5203
5279
|
forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data] # what running the tests needs, before it starts
|
|
5204
5280
|
forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
|
|
5205
5281
|
forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to the Tosca agent
|
|
5282
|
+
forgeqe tosca targets # the targets, this project's own included
|
|
5206
5283
|
</code></pre></div>
|
|
5284
|
+
<p>A Tosca conversion may target any framework a migration may, so a target profile of your own
|
|
5285
|
+
(<code>.forgeqe/migrate-targets/<id>.yaml</code>, see <a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a>) is a Tosca target as soon
|
|
5286
|
+
as a person has approved it: <code>forgeqe tosca plan --file shop.tsu --to karate-java</code>. <code>forgeqe tosca targets</code> says which
|
|
5287
|
+
of your own are approved, and an unapproved one is refused here exactly as it is for a migration.</p>
|
|
5207
5288
|
<ol>
|
|
5208
5289
|
<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
|
|
5209
5290
|
(MIT, included unchanged in <code>py/forgeqe_tosca/vendor/toscatsu</code>). It follows folders, reusable blocks with their
|
|
@@ -203,12 +203,20 @@ capabilities.</p>
|
|
|
203
203
|
type: virtual
|
|
204
204
|
platform: android
|
|
205
205
|
udid: emulator-5554
|
|
206
|
+
pixel-headless: # an emulator Appium starts for the run (emulator -list-avds)
|
|
207
|
+
type: virtual
|
|
208
|
+
platform: android
|
|
209
|
+
avd: Pixel_8_API_35
|
|
206
210
|
iphone-sim: # an iOS simulator (XCUITest boots it)
|
|
207
211
|
type: virtual
|
|
208
212
|
platform: ios
|
|
209
213
|
model: iPhone 15
|
|
210
214
|
os_version: "17.2"
|
|
211
215
|
</code></pre></div>
|
|
216
|
+
<p><code>avd</code> names an Android emulator for Appium to start for the run, instead of one already running. With
|
|
217
|
+
<code>mobile.headless: true</code> (Settings → Mobile, Emulators without a window) Appium starts those emulators, and iOS
|
|
218
|
+
simulators, without a window (<code>appium:isHeadless</code>); a real device and a cloud's devices are never affected. Talk can
|
|
219
|
+
switch it by voice ("hide the mobile emulators"), after you say yes.</p>
|
|
212
220
|
<p>Devices on TestMu AI or BrowserStack are in that cloud's own file, the one <code>browser.providers</code> links
|
|
213
221
|
(<code>.forgeqe/testmu.yaml</code>, <code>.forgeqe/browserstack.yaml</code>), beside its browsers and with the same sign-in. Settings →
|
|
214
222
|
Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices.
|