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 the experience each is available under.

FrameworkLanguageAvailabilityClassicNew Experience
SeleniumPythonGenerally available (default)
JavaAvailable on request *
PlaywrightPythonAvailable on request *
C#Available on request *
JavaScriptAvailable on request *
CypressJavaScriptComing soon
WebdriverIOJavaScriptComing soon
AppiumPythonGenerally available (default)

Supported    Not available. New Experience currently covers Desktop Web only. Mobile is supported in Classic.

note

Available on request. Please reach out to Support to enable it. These features are partially rolled out and will soon be generally available for all users.

Understanding the Code Tab

After code generation completes, the Code tab shows the status of each generated code entry and lets you run a Sample Run Execution to validate it before adding the test case to a full Test Run.

KaneAI Code tab showing generated code with status and actions

Code Generation States

StateWhat it means
GeneratingCode is being created. No actions are available until generation finishes.
UnverifiedCode generation is complete, but a Sample Run Execution has not been run, or the test case has changed since the last run.
VerifyingA Sample Run Execution is in progress via HyperExecute.
VerifiedThe most recent Sample Run Execution completed successfully.

Actions Available After Code is Generated

Once code is generated, the following actions are available:

  • Execute & Verify: Triggers a Sample Run Execution on HyperExecute. This runs the generated code the same way a real KaneAI test run would, including respecting assertion outcomes. While the run is in progress, the status changes to Verifying and a Sample execution in progress · View in HyperExecute link appears. Once complete, the status updates to Verified and the button label changes to Execute.
  • Download: Downloads the generated code to your local machine.

Sample Run Execution Behavior

  • Sample Run Execution can only be initiated from the Code tab of a test case.
  • The Execute button is always enabled. You can proceed to run the test on HyperExecute regardless of whether a Sample Run Execution has passed, failed, or not been triggered.

Adding Test Cases to a Test Run

Test cases with generated code can be added to a Test Run regardless of the Sample Run Execution status, whether it passed, failed, or was never triggered. The only cases where a test case is not available for selection in a Test Run are:

  • Code generation failed or was not initiated.
  • Code generation is still in progress.
note

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

Test across 3000+ combinations of browsers, real devices & OS.

×
Schedule Your Personal Demo
Book Demo

Help and Support

Related Articles