diff --git a/assets/images/kane-ai/features/network-assertions/child-variables.png b/assets/images/kane-ai/features/network-assertions/child-variables.png new file mode 100644 index 000000000..21433f47a Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/child-variables.png differ diff --git a/assets/images/kane-ai/features/network-assertions/hit-network-req.png b/assets/images/kane-ai/features/network-assertions/hit-network-req.png new file mode 100644 index 000000000..a023bf950 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/hit-network-req.png differ diff --git a/assets/images/kane-ai/features/network-assertions/network-assertion-block.png b/assets/images/kane-ai/features/network-assertions/network-assertion-block.png new file mode 100644 index 000000000..925017066 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/network-assertion-block.png differ diff --git a/assets/images/kane-ai/features/network-assertions/network-assertion-button.png b/assets/images/kane-ai/features/network-assertions/network-assertion-button.png new file mode 100644 index 000000000..2df500c82 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/network-assertion-button.png differ diff --git a/assets/images/kane-ai/features/network-assertions/network-log-headers.png b/assets/images/kane-ai/features/network-assertions/network-log-headers.png new file mode 100644 index 000000000..c43409eb6 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/network-log-headers.png differ diff --git a/assets/images/kane-ai/features/network-assertions/network-log-response.png b/assets/images/kane-ai/features/network-assertions/network-log-response.png new file mode 100644 index 000000000..855d8d779 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/network-log-response.png differ diff --git a/assets/images/kane-ai/features/network-assertions/network-logs.png b/assets/images/kane-ai/features/network-assertions/network-logs.png new file mode 100644 index 000000000..04fa91565 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/network-logs.png differ diff --git a/assets/images/kane-ai/features/network-assertions/network-req-variable.png b/assets/images/kane-ai/features/network-assertions/network-req-variable.png new file mode 100644 index 000000000..01abceec0 Binary files /dev/null and b/assets/images/kane-ai/features/network-assertions/network-req-variable.png differ diff --git a/assets/images/mobile-app-testing/ai_thinking_suggestions_test_cases_generation.png b/assets/images/mobile-app-testing/ai_thinking_suggestions_test_cases_generation.png deleted file mode 100644 index 4b3263cb9..000000000 Binary files a/assets/images/mobile-app-testing/ai_thinking_suggestions_test_cases_generation.png and /dev/null differ diff --git a/assets/images/mobile-app-testing/edit_suggested_test_cases.png b/assets/images/mobile-app-testing/edit_suggested_test_cases.png deleted file mode 100644 index bb199048b..000000000 Binary files a/assets/images/mobile-app-testing/edit_suggested_test_cases.png and /dev/null differ diff --git a/assets/images/mobile-app-testing/edit_suggested_test_cases_steps.png b/assets/images/mobile-app-testing/edit_suggested_test_cases_steps.png deleted file mode 100644 index 80eb96336..000000000 Binary files a/assets/images/mobile-app-testing/edit_suggested_test_cases_steps.png and /dev/null differ diff --git a/assets/images/mobile-app-testing/generate_with_ai_button.png b/assets/images/mobile-app-testing/generate_with_ai_button.png deleted file mode 100644 index 8bd409072..000000000 Binary files a/assets/images/mobile-app-testing/generate_with_ai_button.png and /dev/null differ diff --git a/docs/generate-test-cases.md b/docs/generate-test-cases.md deleted file mode 100644 index 1d4f3fd16..000000000 --- a/docs/generate-test-cases.md +++ /dev/null @@ -1,180 +0,0 @@ ---- -id: generate-test-cases-with-ai -title: Generate Test Cases with AI -hide_title: true -sidebar_label: Generate Test Cases with AI -description: Learn efficient test case generation with in LambdaTest's Test Manager using AI. -keywords: - - test case creation - - test case - - test cases - - generate test cases -url: https://www.lambdatest.com/support/docs/generate-test-cases-with-ai/ -site_name: LambdaTest -slug: generate-test-cases-with-ai/ ---- - - - -# AI Test Case Generator - -## What is the AI Test Case Generator? -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. -This feature is designed to save time, improve test coverage, and streamline the test design process for both manual and automated testing workflows. - -## How It Works: Step-by-Step - -### Step 1: Open the AI Test Case Generator -Go to the Test Case Listing page and click on `Generate With AI`. An input box will appear where you can provide your requirements. - -generate-with-ai - -### Step 2: Enter Your Requirements -Start by entering your product or feature requirements in the input box. - -We support multiple input formats, including: -- **Textual requirements** -- **Jira/Azure DevOps links** (e.g., epics, stories, tasks) -- **PDFs** -- **Images** -- **Audio** (recordings or uploads) -- **Videos** -- **Spreadsheets** (CSV or XLSX) -- **Documents** -- **JSON or XML** - -### Add Input requirements: -#### Text Input: - -- Type your requirement directly into the input box. - -first_prompt_tets_cases_generation - - -#### Record Audio: -- Click the mic icon to begin recording, as shown in the picture. - -:::note - Audio recording is not supported in Firefox, ARC and Opera browsers. -::: - -recording_button_test_cases_generation - -- Click the tick icon to confirm, or the cross to discard. -test_cases_generation_through_recording - -#### Upload Files: -- Click on the **pin** icon 📎, then select `Upload from device`. -- You can select a maximum of 10 files from your device. - -upload_from_device_test_cases_generation - -- Uploaded files will appear within the input box. - -uploaded_files_test_cases_generation - -#### Add Issue Links: -- Integrate your LambdaTest account with Jira/Azure DevOps. Follow the steps described in the following link to integrate Jira/Azure DevOps: -[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/) - -- After integration is completed, select `Link Jira Issues` / `Link Azure DevOps Issues`. - -link_jira_test_cases_generation - -- Enter your Jira/Azure DevOps issue ID or link and press Enter. - -:::note - Only issues from the connected Jira/Azure DevOps project can be linked here. -::: - -jira_id_test_cases_generation - -- The linked issue will then appear inside the input box. - -linked_jira_view_test_cases_generation - -### Step 3: Generate Test Cases -- Once all your input requirements are added, press **Enter** to start generating test cases. -- The AI will analyze the content and redirect you to a new screen where test cases will be suggested based on the input provided. - -ai_thinking_suggestions_test_cases_generation - -:::info -To end the test case generation while the Agent is thinking, click on the **Stop** button. -::: - -### Step 4: Review Test Cases Across Scenarios -- Test cases are grouped into high-level, logical test scenarios. Each scenario represents a theme or functional area for easier navigation and categorization. - -- Scenarios are **labeled** with tags such as `Must have`, `Should have`, and `Could have`, indicating their relative importance as determined by the Agent. - -- Individual test cases are further categorized with tags: - - **Positive**: Valid test cases expected to pass. - - **Negative**: Invalid or failure cases designed to test robustness. - - **Edge**: Corner cases that may be overlooked in testing flows. - -ai_suggested_testcases - -### Step 5: View and Edit Test Case Details -Click on any test case to explore its full details, including: -- Test Case Title -- Description -- Pre-conditions -- Priority -- Test Steps and Expected Outcomes - - -You can **edit** any part of the test case if you want to add more context or align it with your test strategy. - -edit_suggested_test_cases - -edit_suggested_test_cases_steps - -### Step 6: Edit and Regenerate -Want to try a different approach or add missing information? - -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. - -:::note -When you regenerate, the previously generated test cases and scenarios are not retained. -::: - -:::tip -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. -::: - -To edit, click on the pencil icon on the Summary listing page as shown below: - -edit_test_cases_generation_prompt - -Click on regenerate after updating the input. - -regenerate_test_cases_generation -### Step 7: Select and Save Test Cases - 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. - -save_generated_test_cases - -test_cases_generation_ack \ No newline at end of file diff --git a/docs/kaneai-network-assertions.md b/docs/kaneai-network-assertions.md new file mode 100644 index 000000000..9af73249c --- /dev/null +++ b/docs/kaneai-network-assertions.md @@ -0,0 +1,83 @@ +--- +id: kane-ai-network-assertions +title: Network Logs Assertions +hide_title: false +sidebar_label: Network Logs Assertions +description: In this detailed guide, you will learn how you can add network logs assertions in your tests. +keywords: + - network + - network logs assertion + - assertion + - lambdatest kaneai +url: https://www.lambdatest.com/support/docs/kane-ai-network-assertions +site_name: LambdaTest +slug: kane-ai-network-assertions/ +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + +# Network Logs Assertions +The **Network Logs Assertions** feature in KaneAI enables you to test and validate the behavior of your application at the **network layer**. +This is useful when you need to ensure that API calls, response codes, payloads, or request timings meet expected conditions during your test executions. + +# Let's see how to add Network Logs Assertions in a Test + +- **Start a test session** (Desktop or Mobile Web). + +- All network calls are automatically recorded in the background as you navigate through your application, you can see the Network calls made so far through the **Assert Network Logs** option available in the " / " commands. + +Image + +Image + +- 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**: + +Image + +- 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. + +Image + +Image + +- Once added, the request will be stored as a **variable**. KaneAI then makes assertions based on this variable. + +Image + +#### How to validate a specific object in request or response of an API? + +- You can reuse the request later in your test using the familiar `{{variable}}` syntax. + +Image + +- The stored variable is in **JSON format**, so you can easily access nested values with dot-notation (e.g., `header.status`). + +Image + +:::note +This feature is not enabled for all users. Please contact our support team to request access. +::: \ No newline at end of file diff --git a/sidebars.js b/sidebars.js index a7e8ebe0e..47c0b0a8c 100644 --- a/sidebars.js +++ b/sidebars.js @@ -1282,6 +1282,7 @@ module.exports = { "kane-ai-scroll-in-feature", "kane-ai-jira-integration", "kane-ai-api-testing", + "kane-ai-network-assertions", "kaneai-network-throttling", "kane-ai-modules", "kaneai-modules-versions-and-enhancement",