By default, Kane CLI uploads each session to Test Manager as a test case. This page covers what gets uploaded, where it ends up, and the related features: project and folder selection, code export, share links, the post-session feedback prompt, and the local session directory. This is the default behaviour for every session in both the TUI and the CLI. You do not need to opt in.
What Gets Uploaded
When a session ends, Kane CLI runs an upload pipeline that finalises the test case in Test Manager. Two kinds of artefacts move from your machine to :- Screenshots — uploaded incrementally as the agent runs. By the time the session ends, most of them are already in place. PNG screenshots are converted to WebP before upload.
- Run artefacts and metadata — packaged at session exit. This includes per-run action logs, an execution blob describing the run (objective, status, steps, durations, variables in scope), and the zipped contents of the session run directories.
convert (preparing metadata), zip (packaging run directories), presign (requesting upload URLs), upload (sending the zip and metadata), and finalize (committing the test case in Test Manager). If code export is enabled, a code_export stage runs after finalize. If it is disabled, that stage is reported as skipped.
If the upload fails, Kane CLI prints the error and exits. The local session directory is preserved either way — see Session History on Disk.
Choosing Where Uploads Land
Each test case is filed under a Test Manager project. Optionally, you can also choose a folder inside that project.Project
Configure your project once, and every subsequent session uploads under it:/config command.
Folder
Folders are optional. Once a project is set, you can pick a folder the same way:Finding Your Test Case in Test Manager
After a successful upload, Kane CLI prints two links to the terminal (see Share Links at Session Exit). Both lead into the Test Manager for the test case that was just created.Code Export
Code export converts a completed test case into runnable Playwright code that you can check into your repository or extend by hand.What It Produces
Currently the only supported language is Python with Playwright. Code export runs server-side after the test case is finalised. Kane CLI polls Test Manager until generation is complete, then downloads the resulting files.Enabling Code Export
Code export is off by default. Turn it on either in your stored config or per-run on the CLI. In~/.testmuai/kaneai/tui-config.json, set the code_export block:
--no-skip-code-validation forces validation on for that run. --code-language only accepts python.
Where to Find the Output
Generated code is downloaded into a local directory under your session, by default~/.testmuai/kaneai/sessions/<session-id>/code-export/. At session exit Kane CLI prints a CodeExport line in the links box pointing to that directory.
The same code is also available alongside the test case in Test Manager.
Share Links at Session Exit
When the upload finishes successfully, Kane CLI prints a small links block to the terminal. You see up to three links, depending on what was generated:- ShareLink — a shareable session URL on Test Manager. Anyone you send this link to can view the run summary without needing access to the project. Links are issued with a seven-day expiry.
- TestCase — a direct URL to the test case dashboard inside your Test Manager project. Use this when you are signed in to and want to drill into the run.
- CodeExport — a
file://link to the directory on your machine that holds the generated Playwright code. Only shown when code export is enabled and produced files.
Feedback Prompt
After a session uploads successfully, Kane CLI shows a thumbs-up / thumbs-down prompt. Use the left and right arrow keys to switch between the two options, Enter to submit, or Esc to skip. Skipping sends nothing. If you submit, Kane CLI posts your choice (positive or negative) for the test case that was just finalised. Both the TUI and the CLI render the same prompt; in the CLI it appears on stderr after the links block. You can also submit feedback after the fact for a known test case:Session History on Disk
Every session, regardless of upload outcome, leaves a directory on your machine:<session-id> is a UUID generated when the session starts. The runner writes its step logs and screenshots into runs/<n>/, where n increments per run within the session.
This directory is useful when you want to look back at a past run without going to Test Manager, debug a session that failed to upload, or hand a teammate the raw artefacts.