|
| 1 | +--- |
| 2 | +id: kaneai-mobile-browser-test |
| 3 | +title: Automate your Mobile Browser Testing With KaneAI |
| 4 | +hide_title: false |
| 5 | +sidebar_label: Author your First Mobile Browser Test |
| 6 | +description: Learn how to automate app testing with KaneAI. Generate and execute tests in plain English, save cases, and run them seamlessly |
| 7 | +keywords: |
| 8 | + - lambdatest automation |
| 9 | + - lambdatest kaneai |
| 10 | + - kaneai app test |
| 11 | +url: https://www.lambdatest.com/support/docs/kaneai-mobile-browser-test |
| 12 | +site_name: LambdaTest |
| 13 | +slug: kaneai-mobile-browser-test/ |
| 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": 4, |
| 36 | + "name": "KaneAI Web Test", |
| 37 | + "item": "https://www.lambdatest.com/support/docs/kaneai-mobile-browser-test" |
| 38 | + }] |
| 39 | + }) |
| 40 | + }} |
| 41 | +></script> |
| 42 | + |
| 43 | +In this guide, we'll walk you through the process of generating, and executing automated tests for your Mobile Browser using KaneAI. |
| 44 | + |
| 45 | +<Tabs className="docs__val"> |
| 46 | + |
| 47 | +<TabItem value="bash" label="Android" default> |
| 48 | + |
| 49 | + <div className="lambdatest__codeblock"> |
| 50 | + |
| 51 | + |
| 52 | +## Steps to generate the test cases - Android |
| 53 | + |
| 54 | + |
| 55 | +## Step 1: Author a Browser Test |
| 56 | + |
| 57 | +Navigate to the [KaneAI homepage](https://kaneai.lambdatest.com/objective) and click on the **Author Browser Test** button to initiate the process of generating test cases for your web app. In the right side, a window will open with which you can navigate to your platform to perform the testing. |
| 58 | + |
| 59 | + |
| 60 | +<video class="right-side" width="100%" controls id="vid"> |
| 61 | +<source src= {require('../assets/images/kane-ai/androidStep1.mp4').default} type="video/mp4" /> |
| 62 | +</video> <br /> <br /> |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +### Step 2: Write Your Test Cases in Plain English |
| 67 | + |
| 68 | +**Let KaneAI do the coding!** In this step, you'll describe your desired test outcomes using plain English. Don't worry about writing specific code or scripts – KaneAI will handle that for you. |
| 69 | + |
| 70 | +For example: |
| 71 | +- Visit the website "www.lambdatest.com" |
| 72 | +- Click on the Login button. |
| 73 | + |
| 74 | +Keep adding tests in plain English as you go; KaneAI will automatically queue them up for execution, so you don't have to wait for one test to finish before writing the next. Click on the **Finish Test** button. |
| 75 | +> **Remember:** The more specific you are, the more accurate KaneAI's generated test cases will be. |
| 76 | +
|
| 77 | +<img loading="lazy" src={require('../assets/images/kane-ai/Android-Img2.png').default} alt="Image" width="1347" height="616" className="doc_img"/> <br /> <br /> |
| 78 | + |
| 79 | +### Step 3: Save your Test Case |
| 80 | +Now, save your test cases that you have generated till now. |
| 81 | + |
| 82 | +Select your Project, and the folder in which you want to store your test cases. The **Test Name** and the **Description** will be generated automatically, and you can also edit it. Select the **Type** of your test, and the status, and define the necessary tags which will help you to search your tests later. |
| 83 | + |
| 84 | + |
| 85 | +<img loading="lazy" src={require('../assets/images/kane-ai/Android-Img3.png').default} alt="Image" width="1347" height="616" className="doc_img"/> <br /> <br /> |
| 86 | + |
| 87 | +### Step 4: Execute your test |
| 88 | + |
| 89 | +To execute your test, click on the HyperExecute button and you will be redirected to the HyperExecute dashboard where your tests will be executed. |
| 90 | + |
| 91 | +<video class="right-side" width="100%" controls id="vid"> |
| 92 | +<source src= {require('../assets/images/kane-ai/Execute-Android.mp4').default} type="video/mp4" /> |
| 93 | +</video> <br /> <br /> |
| 94 | + |
| 95 | + |
| 96 | +### Feature Support Matrix |
| 97 | + |
| 98 | + |
| 99 | +| Feature / Action | Support Status | Notes | |
| 100 | +|-------------------------------------------------------------------------|-----------------------|-----------------------------------------------------------------------------------------| |
| 101 | +| Element Scroll | Supported | | |
| 102 | +| Key Events (e.g. Enter, Space, Tab) | Not Supported | | |
| 103 | +| Clear Input Fields | Supported | | |
| 104 | +| App Instructions (e.g. background, hide keyboard, show notifications) | Not Supported | | |
| 105 | +| Textual & Visual Queries | Supported | Includes driver-based queries. | |
| 106 | +| Sites with Permission Popups (notifications, cookies, location) | Supported (Android only) | Popups are auto-accepted on Android. iOS not supported currently. | |
| 107 | +| Cookies & Local Storage | Supported | | |
| 108 | +| DOM Elements Not Exposed (Qwen Use Cases) | Not Supported | Qwen is not supported for browser-based tests. | |
| 109 | +| Network Assertions | Not Supported | Not yet available for mobile web; only supported on web. | |
| 110 | +| Negative Scenarios from App UX (e.g. switch app, go to home, go back) | Not Supported | These are app-specific and not currently available in browser testing mode. | |
| 111 | + |
| 112 | +> _Have any feedback or request? Reach out to us via [email protected] and we would be happy to hear from you._ |
| 113 | +
|
| 114 | + </div> |
| 115 | + |
| 116 | +</TabItem> |
| 117 | + |
| 118 | +<TabItem value="powershell" label="iOS" default> |
| 119 | + |
| 120 | + <div className="lambdatest__codeblock"> |
| 121 | + |
| 122 | + ## Steps to generate the test cases - iOS |
| 123 | + |
| 124 | + |
| 125 | +## Step 1: Author a Browser Test |
| 126 | + |
| 127 | +Navigate to the [KaneAI homepage](https://kaneai.lambdatest.com/objective) and click on the **Author Browser Test** button to initiate the process of generating test cases for your web app. In the right side, a window will open with which you can navigate to your platform to perform the testing. |
| 128 | + |
| 129 | + |
| 130 | +<video class="right-side" width="100%" controls id="vid"> |
| 131 | +<source src= {require('../assets/images/kane-ai/iOSMobileBrowser.mp4').default} type="video/mp4" /> |
| 132 | +</video> <br /> <br /> |
| 133 | + |
| 134 | +### Step 2: Write Your Test Cases in Plain English |
| 135 | +**Let KaneAI do the coding!** In this step, you'll describe your desired test outcomes using plain English. Don't worry about writing specific code or scripts – KaneAI will handle that for you. |
| 136 | + |
| 137 | +For example: |
| 138 | +- Visit the website "www.lambdatest.com" |
| 139 | +- Click on the Login button. |
| 140 | + |
| 141 | +Keep adding tests in plain English as you go; KaneAI will automatically queue them up for execution, so you don't have to wait for one test to finish before writing the next. Click on the **Finish Test** button. |
| 142 | +> **Remember:** The more specific you are, the more accurate KaneAI's generated test cases will be. |
| 143 | +
|
| 144 | + |
| 145 | +<img loading="lazy" src={require('../assets/images/kane-ai/iOSbrowser-img2.png').default} alt="Image" width="1347" height="616" className="doc_img"/> <br /> <br /> |
| 146 | + |
| 147 | +### Step 3: Save your Test Case |
| 148 | +Now, save your test cases that you have generated till now. |
| 149 | + |
| 150 | +Select your Project, and the folder in which you want to store your test cases. The **Test Name** and the **Description** will be generated automatically, and you can also edit it. Select the **Type** of your test, and the status, and define the necessary tags which will help you to search your tests later. |
| 151 | + |
| 152 | +<img loading="lazy" src={require('../assets/images/kane-ai/iOSbrowserimg3.png').default} alt="Image" width="1347" height="616" className="doc_img"/> <br /> <br /> |
| 153 | + |
| 154 | +### Step 4: Execute your test |
| 155 | + |
| 156 | +To execute your test, click on the HyperExecute button and you will be redirected to the HyperExecute dashboard where your tests will be executed. |
| 157 | + |
| 158 | +<video class="right-side" width="100%" controls id="vid"> |
| 159 | +<source src= {require('../assets/images/kane-ai/iOSBrowserExecute.mp4').default} type="video/mp4" /> |
| 160 | +</video> <br /> <br /> |
| 161 | + |
| 162 | + |
| 163 | +Note:- “Permission pop-ups (notifications, location etc) are not supported on iOS at this time. |
| 164 | + |
| 165 | +> _Have any feedback or request? Reach out to us via [email protected] and we would be happy to hear from you._ |
| 166 | +
|
| 167 | + </div> |
| 168 | + |
| 169 | +</TabItem> |
| 170 | +</Tabs> |
0 commit comments