Skip to content

Commit 33df6e6

Browse files
Manuraj-7Ishavyas9
authored andcommitted
adding test case generator back & updates in network assertions
1 parent 55ebdfb commit 33df6e6

File tree

7 files changed

+184
-4
lines changed

7 files changed

+184
-4
lines changed
1.13 MB
Loading
94.8 KB
Loading
72.5 KB
Loading
80.4 KB
Loading
102 KB
Loading

docs/generate-test-cases.md

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
---
2+
id: generate-test-cases-with-ai
3+
title: Generate Test Cases with AI
4+
hide_title: true
5+
sidebar_label: Generate Test Cases with AI
6+
description: Learn efficient test case generation with in LambdaTest's Test Manager using AI.
7+
keywords:
8+
- test case creation
9+
- test case
10+
- test cases
11+
- generate test cases
12+
url: https://www.lambdatest.com/support/docs/generate-test-cases-with-ai/
13+
site_name: LambdaTest
14+
slug: generate-test-cases-with-ai/
15+
---
16+
17+
<script type="application/ld+json"
18+
dangerouslySetInnerHTML={{ __html: JSON.stringify({
19+
"@context": "https://schema.org",
20+
"@type": "BreadcrumbList",
21+
"itemListElement": [{
22+
"@type": "ListItem",
23+
"position": 1,
24+
"name": "LambdaTest",
25+
"item": "https://www.lambdatest.com"
26+
},{
27+
"@type": "ListItem",
28+
"position": 2,
29+
"name": "Support",
30+
"item": "https://www.lambdatest.com/support/docs/"
31+
},{
32+
"@type": "ListItem",
33+
"position": 3,
34+
"name": "Generate Test Cases with AI",
35+
"item": "https://www.lambdatest.com/support/docs/generate-test-cases/"
36+
}]
37+
})
38+
}}
39+
></script>
40+
41+
# AI Test Case Generator
42+
43+
## What is the AI Test Case Generator?
44+
The **AI Test Case Generator** is an intelligent feature within LambdaTest Test Manager that allows users to convert various requirement formats (like text, PDFs, audio, videos, images, Jira tickets and more) into structured, contextual software test cases. It significantly accelerates the test case creation process while improving coverage and quality.
45+
This feature is designed to save time, improve test coverage, and streamline the test design process for both manual and automated testing workflows.
46+
47+
## How It Works: Step-by-Step
48+
49+
### Step 1: Open the AI Test Case Generator
50+
Go to the Test Case Listing page and click on `Generate With AI`. An input box will appear where you can provide your requirements.
51+
52+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/generate_with_ai_button.png').default} alt="generate-with-ai" width="1347" height="616" className="doc_img"/>
53+
54+
### Step 2: Enter Your Requirements
55+
Start by entering your product or feature requirements in the input box.
56+
57+
We support multiple input formats, including:
58+
- **Textual requirements**
59+
- **Jira/Azure DevOps links** (e.g., epics, stories, tasks)
60+
- **PDFs**
61+
- **Images**
62+
- **Audio** (recordings or uploads)
63+
- **Videos**
64+
- **Spreadsheets** (CSV or XLSX)
65+
- **Documents**
66+
- **JSON or XML**
67+
68+
### Add Input requirements:
69+
#### Text Input:
70+
71+
- Type your requirement directly into the input box.
72+
73+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/first_prompt_tets_cases_generation.png').default} alt="first_prompt_tets_cases_generation" width="1347" height="616" className="doc_img"/>
74+
75+
76+
#### Record Audio:
77+
- Click the mic icon to begin recording, as shown in the picture.
78+
79+
:::note
80+
Audio recording is not supported in Firefox, ARC and Opera browsers.
81+
:::
82+
83+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/recording_button_test_cases_generation.png').default} alt="recording_button_test_cases_generation" width="1347" height="616" className="doc_img"/>
84+
85+
- Click the tick icon to confirm, or the cross to discard.
86+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/test_cases_generation_through_recording.png').default} alt="test_cases_generation_through_recording" width="1347" height="616" className="doc_img"/>
87+
88+
#### Upload Files:
89+
- Click on the **pin** icon 📎, then select `Upload from device`.
90+
- You can select a maximum of 10 files from your device.
91+
92+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/upload_from_device_test_cases_generation.png').default} alt="upload_from_device_test_cases_generation" width="1347" height="616" className="doc_img"/>
93+
94+
- Uploaded files will appear within the input box.
95+
96+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/uploaded_files_test_cases_generation.png').default} alt="uploaded_files_test_cases_generation" width="1347" height="616" className="doc_img"/>
97+
98+
#### Add Issue Links:
99+
- Integrate your LambdaTest account with Jira/Azure DevOps. Follow the steps described in the following link to integrate Jira/Azure DevOps:
100+
[LambdaTest Jira Integration](https://www.lambdatest.com/support/docs/jira-integration/#how-to-establish-integration-with-jira-from-your-lambdatest-account) / [LambdaTest Azure DevOps Integration](https://www.lambdatest.com/support/docs/link-ado-issues-with-test-manager/)
101+
102+
- After integration is completed, select `Link Jira Issues` / `Link Azure DevOps Issues`.
103+
104+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/link_jira_test_cases_generation.png').default} alt="link_jira_test_cases_generation" width="1347" height="616" className="doc_img"/>
105+
106+
- Enter your Jira/Azure DevOps issue ID or link and press Enter.
107+
108+
:::note
109+
Only issues from the connected Jira/Azure DevOps project can be linked here.
110+
:::
111+
112+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/jira_id_test_cases_generation.png').default} alt="jira_id_test_cases_generation" width="1347" height="616" className="doc_img"/>
113+
114+
- The linked issue will then appear inside the input box.
115+
116+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/linked_jira_view_test_cases_generation.png').default} alt="linked_jira_view_test_cases_generation" width="1347" height="616" className="doc_img"/>
117+
118+
### Step 3: Generate Test Cases
119+
- Once all your input requirements are added, press **Enter** to start generating test cases.
120+
- The AI will analyze the content and redirect you to a new screen where test cases will be suggested based on the input provided.
121+
122+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/ai_thinking_suggestions_test_cases_generation.png').default} alt="ai_thinking_suggestions_test_cases_generation" width="1347" height="616" className="doc_img"/>
123+
124+
:::info
125+
To end the test case generation while the Agent is thinking, click on the **Stop** button.
126+
:::
127+
128+
### Step 4: Review Test Cases Across Scenarios
129+
- Test cases are grouped into high-level, logical test scenarios. Each scenario represents a theme or functional area for easier navigation and categorization.
130+
131+
- Scenarios are **labeled** with tags such as `Must have`, `Should have`, and `Could have`, indicating their relative importance as determined by the Agent.
132+
133+
- Individual test cases are further categorized with tags:
134+
- **Positive**: Valid test cases expected to pass.
135+
- **Negative**: Invalid or failure cases designed to test robustness.
136+
- **Edge**: Corner cases that may be overlooked in testing flows.
137+
138+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/ai_suggested_testcases.png').default} alt="ai_suggested_testcases" width="1347" height="616" className="doc_img"/>
139+
140+
### Step 5: View and Edit Test Case Details
141+
Click on any test case to explore its full details, including:
142+
- Test Case Title
143+
- Description
144+
- Pre-conditions
145+
- Priority
146+
- Test Steps and Expected Outcomes
147+
148+
149+
You can **edit** any part of the test case if you want to add more context or align it with your test strategy.
150+
151+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/edit_suggested_test_cases.png').default} alt="edit_suggested_test_cases" className="doc_img"/>
152+
153+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/edit_suggested_test_cases_steps.png').default} alt="edit_suggested_test_cases_steps" className="doc_img"/>
154+
155+
### Step 6: Edit and Regenerate
156+
Want to try a different approach or add missing information?
157+
158+
You can **edit your original input** and regenerate a new set of test cases. This allows you to experiment and fine-tune the output before saving.
159+
160+
:::note
161+
When you regenerate, the previously generated test cases and scenarios are not retained.
162+
:::
163+
164+
:::tip
165+
Watch the thinking tokens during the Agent’s reasoning phase they show how your input is being interpreted. Use this insight to refine prompts and improve future test case generation.
166+
:::
167+
168+
To edit, click on the pencil icon on the Summary listing page as shown below:
169+
170+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/edit_test_cases_generation_prompt.png').default} alt="edit_test_cases_generation_prompt" width="1347" height="616" className="doc_img"/>
171+
172+
Click on regenerate after updating the input.
173+
174+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/regenerate_test_cases_generation.png').default} alt="regenerate_test_cases_generation" width="1347" height="616" className="doc_img"/>
175+
### Step 7: Select and Save Test Cases
176+
Once satisfied, **select the test cases** you want to keep and **save them directly** to your **Test Case Repository** in LambdaTest Test Manager. These saved test cases can then be assigned to test runs, shared with teams, or used in manual or automated test planning.
177+
178+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/save_generated_test_cases.png').default} alt="save_generated_test_cases" width="1347" height="616" className="doc_img"/>
179+
180+
<img loading="lazy" src={require('../assets/images/mobile-app-testing/test_cases_generation_ack.png').default} alt="test_cases_generation_ack" width="1347" height="616" className="doc_img"/>

docs/kane-ai-network-assertions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ This is useful when you need to ensure that API calls, response codes, payloads,
5252

5353
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/hit-network-req.png').default} alt="Image" className="doc_img img_center"/>
5454

55-
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-assertion-button.png').default} alt="Image" className="doc_img img_center"/>
56-
5755
- Here you will find all the Network requests made in this session so far and **having the Json data format**, you can filter the requests on basis of **Status Code** or **HTTP Methods**:
5856

5957
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-logs.png').default} alt="Image" className="doc_img img_center"/>
6058

61-
- You can select specific keys from the **Request Headers**, or add entire **Request** or **Response blocks** in the assertion by clicking on `Add Assertion`. All chosen values are validated in a single step.
59+
- Select the specific key's that you want to add in the assertion from the **Request Headers**.
6260

6361
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-log-headers.png').default} alt="Image" className="doc_img img_center"/>
6462

63+
- To add **Request** or **Response blocks** in assertions click on the `Add Assertion` button. All the chosen values will be validated in a single step.
64+
6565
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-log-response.png').default} alt="Image" className="doc_img img_center"/>
6666

6767
- Once added, the request will be stored as a **variable**. KaneAI then makes assertions based on this variable.
@@ -76,7 +76,7 @@ This is useful when you need to ensure that API calls, response codes, payloads,
7676

7777
- The stored variable is in **JSON format**, so you can easily access nested values with dot-notation (e.g., `header.status`).
7878

79-
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/child-variables.png').default} alt="Image" className="doc_img img_center"/>
79+
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/child-variables.png').default} alt="Image" className="doc_img img_center" style={{width: '60%'}}/>
8080

8181
:::note
8282
This feature is not enabled for all users. Please contact our support team to request access.

0 commit comments

Comments
 (0)