For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

KaneAI Automation Code Generation

KaneAI generates automation scripts in multiple frameworks and languages based on natural language inputs from users. KaneAI is available for desktop web applications as well as native mobile applications currently.

note

KaneAI offers two authoring experiences, Classic and New Experience. New Experience is being rolled out in phases. To enable New Experience for your organization, reach out to our support team. The frameworks and languages supported by each experience are listed below.

generated-code-listing

Click the Generate New Code button to go to code generation page where you can select desired framework and language.

code-generation-dashboard

Supported Frameworks and Languages​

The table below shows the frameworks and languages KaneAI can generate code in, and how each is available in Classic and New Experience.

FrameworkLanguageClassicNew Experience
SeleniumPythonAvailable (default)Not available
JavaAvailable on request *Not available
PlaywrightPythonAvailable on request *Available
C#Available on request *Not available
JavaScriptAvailable on request *Available
CypressJavaScriptComing soon
WebdriverIOJavaScriptComing soon
AppiumPythonAvailable (default)Coming soon

note

Available on request. Please reach out to Support to enable it.

Understanding the Code Tab​

The Code tab shows your generated exports, their generation outcomes, and actions to view, download, or create a pull request for the code.

KaneAI Code tab with a generation-success icon beside the export name, Create PR, Download, and Generate new code

Check Whether Code is Available​

Check the export on the Code tab to see whether code was generated successfully. The test case's Test Summary status is separate: a test case labeled Unverified can still have an available code export.

Use Generate new code to create an export in a supported framework and language.

Code Generation Outcomes​

The icon beside an export name indicates whether code generation succeeded or failed. It does not indicate whether the test passed an execution.

OutcomeWhat it means
GeneratingCode is being created. No actions are available until generation finishes.
Generation succeededThe export is available. Click its name to open the code.
Generation failedThe export shows the failure reason inline. Click Generate again to retry.

These describe generation outcomes, not additional labels on the code card. They do not change the test case's Test Summary status.

Actions Available After Code is Generated​

Once code is generated, the following actions are available:

  • Export name: Opens the generated code. Click the name instead of a separate View code button.
  • Download: Downloads the generated code to your local machine.
  • Create PR: Creates a pull request through your configured integration, subject to existing permissions.
  • Generate new code: Creates another export using your chosen framework and language.

Execute the Test Case​

To execute a single case, open Test Summary and click Quick Run. Select compatible configurations, review the run settings, and click Start quick run. This creates one Test Run with one instance per selected configuration. See Quick Run for the full walkthrough.

  • Classic executes generated code. Execution requires usable code; resolve missing, in-progress, or failed generation first.
  • New Experience executes through Evidence Reporting, without using generated code. A missing or failed export does not by itself block Evidence execution when the test case and selected configurations are otherwise eligible.

For a run containing multiple test cases, follow Test Run Execution.

note

KaneAI code export leverages public libraries. The generated automation scripts depend on these published packages:

Terminal First Testing With Kane CLI

Natural language browser & mobile app tests right from terminal.

×
Schedule Your Personal Demo
Kane CLI terminal

Help and Support

Related Articles