Skip to content

Commit 6c2d24a

Browse files
authored
Merge pull request LambdaTest#1517 from Manuraj-7/stage
Stage-KaneAI-automation-code-generation-doc
2 parents e8a1afe + 51a8d88 commit 6c2d24a

File tree

4 files changed

+98
-0
lines changed

4 files changed

+98
-0
lines changed
49.9 KB
Loading
63.8 KB
Loading
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
id: kane-ai-automation-code-generation
3+
title: KaneAI Automation Code Generation
4+
hide_title: false
5+
sidebar_label: Automation Code Generation
6+
description: Explore KaneAI’s features and components to generate automation test code.
7+
keywords:
8+
- lambdatest automation
9+
- lambdatest kaneai
10+
- kaneai code gen
11+
url: https://www.lambdatest.com/support/docs/kane-ai-automation-code-generation
12+
site_name: LambdaTest
13+
slug: kane-ai-automation-code-generation/
14+
---
15+
16+
import Tabs from '@theme/Tabs';
17+
import TabItem from '@theme/TabItem';
18+
19+
<script type="application/ld+json"
20+
dangerouslySetInnerHTML={{ __html: JSON.stringify({
21+
"@context": "https://schema.org",
22+
"@type": "BreadcrumbList",
23+
"itemListElement": [{
24+
"@type": "ListItem",
25+
"position": 1,
26+
"name": "Home",
27+
"item": "https://www.lambdatest.com"
28+
},{
29+
"@type": "ListItem",
30+
"position": 2,
31+
"name": "Support",
32+
"item": "https://www.lambdatest.com/support/docs/"
33+
},{
34+
"@type": "ListItem",
35+
"position": 3,
36+
"name": "KaneAI Code Gen",
37+
"item": "https://www.lambdatest.com/support/docs/kane-ai-automation-code-generation/"
38+
}]
39+
})
40+
}}
41+
></script>
42+
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.
43+
44+
<img loading="lazy" src={require('../assets/images/kane-ai/generate-code-button.png').default} alt="generated-code-listing" className="doc_img"/>
45+
Click the `Generate New Code` button to go to code generation page where you can select desired framework and language.
46+
47+
<img loading="lazy" src={require('../assets/images/kane-ai/generate-code-page.png').default} alt="code-generation-dashboard" className="doc_img"/>
48+
49+
50+
## Web Frameworks
51+
52+
### Selenium
53+
Selenium is your go-to tool for cross-browser testing, enabling automated testing across different web browsers like Chrome, Firefox, Safari, and Edge. It's perfect for end-to-end testing of web applications. With Kane AI, you can generate Selenium code in:
54+
55+
- **Python:** PyTest is used to generate Selenium Python code.
56+
- **Java:** TestNG is used to generate Selenium Java code.
57+
58+
:::tip
59+
By default all KaneAI authored tests automation scripts for Web are generated in Selenium Python.
60+
:::
61+
62+
### Playwright
63+
Playwright is a fast and reliable end-to-end testing for complex modern web applications it uses a single API to automate Chromium, Firefox, and WebKit. You can generate Playwright code in:
64+
65+
- **Javascript**
66+
- **Python**
67+
68+
### Cypress
69+
Cypress is a modern web front-end testing tool built with JavaScript Mocha. It operates directly on the browsers without the need for Selenium. Its unique DOM manipulation technique makes it a very developer and QA friendly tool. You can generate Cypress code in:
70+
71+
- **Javascript**
72+
73+
:::note
74+
Cypress won't be available for test cases where **Switching Tabs** or **File Upload** is present as its not inherently supported by the tool.
75+
:::
76+
77+
### WebdriverIO
78+
WebdriverIO is a popular automation testing framework for web and mobile applications. It is built on top of the WebDriver protocol and provides a simple and flexible API for writing tests. You can generate WebdriverIO code in:
79+
80+
- **Javascript**
81+
82+
## App Frameworks
83+
84+
### Appium
85+
Appium is an open-source automation tool for running scripts and testing native applications and mobile web apps on different platforms like IOS and Android. You can generate Appium code in:
86+
87+
- **Python:** PyTest is used to generate Appium Python script.
88+
- **Java:** TestNG is used to generate Appium Java scripts.
89+
- **Javascript** : The code generation for the Appium framework in JavaScript is being rolled out gradually and is not yet generally available.
90+
91+
:::tip
92+
By default all KaneAI authored tests automation scripts for App are generated in Appium Python.
93+
:::
94+
95+
:::note
96+
For now test runs only work for code generation in Selenium - Python & Appium Python. The support for others will be rolled out shortly.
97+
:::

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ module.exports = {
10981098
"kane-ai-web-test",
10991099
"kane-ai-guided-walkthrough",
11001100
"kane-ai-app-test",
1101+
"kane-ai-automation-code-generation"
11011102
],
11021103
},
11031104
{

0 commit comments

Comments
 (0)